OSDN Git Service

2003-08-11 Phil Edwards <pme@gcc.gnu.org>
[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 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 SECTION_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS WERROR 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 CANADIAN_TRUE CANADIAN_FALSE GLIBCXX_BUILD_LIBMATH_TRUE GLIBCXX_BUILD_LIBMATH_FALSE glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES LIBMATH_INCLUDES LIBSUPCXX_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   --enable-sjlj-exceptions
854                           force use of builtin_setjmp for exceptions
855                           [default=auto]
856   --enable-libunwind-exceptions
857                           force use of libunwind for exceptions
858                           [default=no]
859   --enable-libstdcxx-pch  build pre-compiled libstdc++ headers
860                           [default=yes]
861   --enable-cstdio=PACKAGE use target-specific I/O package
862                           [default=stdio]
863   --enable-clocale[=MODEL]
864                           use MODEL for target locale package
865                           [default=auto]
866   --enable-nls            use Native Language Support (default)
867   --enable-cheaders=KIND  construct "C" headers for g++
868                           [default=$c_model]
869   --enable-c-mbchar       enable multibyte (wide) characters
870                           [default=yes]
871   --enable-c99            turns on ISO/IEC 9899:1999 support
872                           [default=yes]
873   --enable-long-long      enables I/O support for 'long long'
874                           [default=yes]
875   --enable-concept-checks use Boost-derived template checks [default=no]
876   --enable-libstdcxx-debug-flags=FLAGS
877                           pass compiler FLAGS when building debug library
878                           [default="-g3 -O0"]
879   --enable-libstdcxx-debug
880                           build extra debug library [default=no]
881   --enable-cxx-flags=FLAGS
882                           pass compiler FLAGS when building library
883                           [default=]
884   --enable-symvers=STYLE  enables symbol versioning of the shared library
885                           [default=yes]
886   --enable-version-specific-runtime-libs
887                           Specify that runtime libraries should be installed
888                           in a compiler-specific directory
889
890 Optional Packages:
891   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
892   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
893   --with-target-subdir=SUBDIR
894                           configuring in a subdirectory
895   --with-cross-host=HOST  configuring with a cross compiler
896   --with-newlib           assume newlib as a system C library
897   --with-gnu-ld           assume the C compiler uses GNU ld default=no
898   --with-pic              try to use only PIC/non-PIC objects default=use both
899   --with-gxx-include-dir=DIR
900                           installation directory for include files
901
902 Some influential environment variables:
903   CC          C compiler command
904   CFLAGS      C compiler flags
905   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
906               nonstandard directory <lib dir>
907   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
908               headers in a nonstandard directory <include dir>
909   CXX         C++ compiler command
910   CXXFLAGS    C++ compiler flags
911   CXXCPP      C++ preprocessor
912   CPP         C preprocessor
913
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
916
917 _ACEOF
918 fi
919
920 if test "$ac_init_help" = "recursive"; then
921   # If there are subdirs, report their specific --help.
922   ac_popdir=`pwd`
923   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924     test -d $ac_dir || continue
925     ac_builddir=.
926
927 if test "$ac_dir" != .; then
928   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929   # A "../" for each directory in $ac_dir_suffix.
930   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 else
932   ac_dir_suffix= ac_top_builddir=
933 fi
934
935 case $srcdir in
936   .)  # No --srcdir option.  We are building in place.
937     ac_srcdir=.
938     if test -z "$ac_top_builddir"; then
939        ac_top_srcdir=.
940     else
941        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942     fi ;;
943   [\\/]* | ?:[\\/]* )  # Absolute path.
944     ac_srcdir=$srcdir$ac_dir_suffix;
945     ac_top_srcdir=$srcdir ;;
946   *) # Relative path.
947     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948     ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 esac
950 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
951 # absolute.
952 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
953 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
954 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
955 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
956
957     cd $ac_dir
958     # Check for guested configure; otherwise get Cygnus style configure.
959     if test -f $ac_srcdir/configure.gnu; then
960       echo
961       $SHELL $ac_srcdir/configure.gnu  --help=recursive
962     elif test -f $ac_srcdir/configure; then
963       echo
964       $SHELL $ac_srcdir/configure  --help=recursive
965     elif test -f $ac_srcdir/configure.ac ||
966            test -f $ac_srcdir/configure.in; then
967       echo
968       $ac_configure --help
969     else
970       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
971     fi
972     cd $ac_popdir
973   done
974 fi
975
976 test -n "$ac_init_help" && exit 0
977 if $ac_init_version; then
978   cat <<\_ACEOF
979 package-unused configure version-unused
980 generated by GNU Autoconf 2.57
981
982 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
983 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
986 _ACEOF
987   exit 0
988 fi
989 exec 5>config.log
990 cat >&5 <<_ACEOF
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
993
994 It was created by package-unused $as_me version-unused, which was
995 generated by GNU Autoconf 2.57.  Invocation command line was
996
997   $ $0 $@
998
999 _ACEOF
1000 {
1001 cat <<_ASUNAME
1002 ## --------- ##
1003 ## Platform. ##
1004 ## --------- ##
1005
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1014
1015 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1016 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1019 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1020 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1021 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1022
1023 _ASUNAME
1024
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 for as_dir in $PATH
1027 do
1028   IFS=$as_save_IFS
1029   test -z "$as_dir" && as_dir=.
1030   echo "PATH: $as_dir"
1031 done
1032
1033 } >&5
1034
1035 cat >&5 <<_ACEOF
1036
1037
1038 ## ----------- ##
1039 ## Core tests. ##
1040 ## ----------- ##
1041
1042 _ACEOF
1043
1044
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1050 ac_configure_args=
1051 ac_configure_args0=
1052 ac_configure_args1=
1053 ac_sep=
1054 ac_must_keep_next=false
1055 for ac_pass in 1 2
1056 do
1057   for ac_arg
1058   do
1059     case $ac_arg in
1060     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062     | -silent | --silent | --silen | --sile | --sil)
1063       continue ;;
1064     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066     esac
1067     case $ac_pass in
1068     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069     2)
1070       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071       if test $ac_must_keep_next = true; then
1072         ac_must_keep_next=false # Got value, back to normal.
1073       else
1074         case $ac_arg in
1075           *=* | --config-cache | -C | -disable-* | --disable-* \
1076           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078           | -with-* | --with-* | -without-* | --without-* | --x)
1079             case "$ac_configure_args0 " in
1080               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081             esac
1082             ;;
1083           -* ) ac_must_keep_next=true ;;
1084         esac
1085       fi
1086       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087       # Get rid of the leading space.
1088       ac_sep=" "
1089       ;;
1090     esac
1091   done
1092 done
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log.  We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102   # Save into config.log some information that might help in debugging.
1103   {
1104     echo
1105
1106     cat <<\_ASBOX
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1110 _ASBOX
1111     echo
1112     # The following way of writing the cache mishandles newlines in values,
1113 {
1114   (set) 2>&1 |
1115     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116     *ac_space=\ *)
1117       sed -n \
1118         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1120       ;;
1121     *)
1122       sed -n \
1123         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124       ;;
1125     esac;
1126 }
1127     echo
1128
1129     cat <<\_ASBOX
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1133 _ASBOX
1134     echo
1135     for ac_var in $ac_subst_vars
1136     do
1137       eval ac_val=$`echo $ac_var`
1138       echo "$ac_var='"'"'$ac_val'"'"'"
1139     done | sort
1140     echo
1141
1142     if test -n "$ac_subst_files"; then
1143       cat <<\_ASBOX
1144 ## ------------- ##
1145 ## Output files. ##
1146 ## ------------- ##
1147 _ASBOX
1148       echo
1149       for ac_var in $ac_subst_files
1150       do
1151         eval ac_val=$`echo $ac_var`
1152         echo "$ac_var='"'"'$ac_val'"'"'"
1153       done | sort
1154       echo
1155     fi
1156
1157     if test -s confdefs.h; then
1158       cat <<\_ASBOX
1159 ## ----------- ##
1160 ## confdefs.h. ##
1161 ## ----------- ##
1162 _ASBOX
1163       echo
1164       sed "/^$/d" confdefs.h | sort
1165       echo
1166     fi
1167     test "$ac_signal" != 0 &&
1168       echo "$as_me: caught signal $ac_signal"
1169     echo "$as_me: exit $exit_status"
1170   } >&5
1171   rm -f core *.core &&
1172   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173     exit $exit_status
1174      ' 0
1175 for ac_signal in 1 2 13 15; do
1176   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177 done
1178 ac_signal=0
1179
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 echo >confdefs.h
1184
1185 # Predefined preprocessor variables.
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 _ACEOF
1210
1211
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215   if test "x$prefix" != xNONE; then
1216     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217   else
1218     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219   fi
1220 fi
1221 for ac_site_file in $CONFIG_SITE; do
1222   if test -r "$ac_site_file"; then
1223     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225     sed 's/^/| /' "$ac_site_file" >&5
1226     . "$ac_site_file"
1227   fi
1228 done
1229
1230 if test -r "$cache_file"; then
1231   # Some versions of bash will fail to source /dev/null (special
1232   # files actually), so we avoid doing that.
1233   if test -f "$cache_file"; then
1234     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1236     case $cache_file in
1237       [\\/]* | ?:[\\/]* ) . $cache_file;;
1238       *)                      . ./$cache_file;;
1239     esac
1240   fi
1241 else
1242   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1244   >$cache_file
1245 fi
1246
1247 # Check that the precious variables saved in the cache have kept the same
1248 # value.
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253   eval ac_new_set=\$ac_env_${ac_var}_set
1254   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255   eval ac_new_val="\$ac_env_${ac_var}_value"
1256   case $ac_old_set,$ac_new_set in
1257     set,)
1258       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260       ac_cache_corrupted=: ;;
1261     ,set)
1262       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264       ac_cache_corrupted=: ;;
1265     ,);;
1266     *)
1267       if test "x$ac_old_val" != "x$ac_new_val"; then
1268         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1271 echo "$as_me:   former value:  $ac_old_val" >&2;}
1272         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1273 echo "$as_me:   current value: $ac_new_val" >&2;}
1274         ac_cache_corrupted=:
1275       fi;;
1276   esac
1277   # Pass precious variables to config.status.
1278   if test "$ac_new_set" = set; then
1279     case $ac_new_val in
1280     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282     *) ac_arg=$ac_var=$ac_new_val ;;
1283     esac
1284     case " $ac_configure_args " in
1285       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1286       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287     esac
1288   fi
1289 done
1290 if $ac_cache_corrupted; then
1291   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295    { (exit 1); exit 1; }; }
1296 fi
1297
1298 ac_ext=c
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303
1304
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           ac_config_headers="$ac_config_headers config.h"
1332
1333
1334 # This works around the fact that libtool configuration may change LD
1335 # for this particular configuration, but some shells, instead of
1336 # keeping the changes in LD private, export them just because LD is
1337 # exported.  Only used at the end of this file.
1338 ### am handles this now?  ORIGINAL_LD_FOR_MULTILIBS=$LD
1339
1340 # For libtool versioning info, format is CURRENT:REVISION:AGE
1341 libtool_VERSION=6:0:0
1342
1343
1344 # Find the rest of the source tree framework.
1345
1346   # Sets up multi_basedir, which is srcdir/.. plus the usual
1347   # "multi_source_toprel_bottom_adjust" lunacy as needed.
1348   # Default to --enable-multilib
1349 # Check whether --enable-multilib or --disable-multilib was given.
1350 if test "${enable_multilib+set}" = set; then
1351   enableval="$enable_multilib"
1352   case "$enableval" in
1353   yes) multilib=yes ;;
1354   no)  multilib=no ;;
1355   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1356 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1357    { (exit 1); exit 1; }; } ;;
1358  esac
1359 else
1360   multilib=yes
1361 fi;
1362
1363 # We may get other options which we leave undocumented:
1364 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1365 # See config-ml.in if you want the gory details.
1366
1367 if test "$srcdir" = "."; then
1368   if test "$with_target_subdir" != "."; then
1369     multi_basedir="$srcdir/$with_multisrctop../.."
1370   else
1371     multi_basedir="$srcdir/$with_multisrctop.."
1372   fi
1373 else
1374   multi_basedir="$srcdir/.."
1375 fi
1376
1377
1378           ac_config_commands="$ac_config_commands default-1"
1379
1380
1381   # The generated code is exactly the same, except that automake's looks in
1382   # ".. $srcdir/.." and autoconf's looks in multi_basedir.  Apparently other
1383   # things are triggered on the presence of the two ...AUX_DIR[S], but I don't
1384   # know what they are or what the other differences might be (and they keep
1385   # changing anyhow).
1386   #
1387   # Looking in multi_basedir seems smarter, so actually execute that branch.
1388   if false; then
1389     # this is for automake
1390     ac_aux_dir=
1391 for ac_dir in .. $srcdir/..; do
1392   if test -f $ac_dir/install-sh; then
1393     ac_aux_dir=$ac_dir
1394     ac_install_sh="$ac_aux_dir/install-sh -c"
1395     break
1396   elif test -f $ac_dir/install.sh; then
1397     ac_aux_dir=$ac_dir
1398     ac_install_sh="$ac_aux_dir/install.sh -c"
1399     break
1400   elif test -f $ac_dir/shtool; then
1401     ac_aux_dir=$ac_dir
1402     ac_install_sh="$ac_aux_dir/shtool install -c"
1403     break
1404   fi
1405 done
1406 if test -z "$ac_aux_dir"; then
1407   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1409    { (exit 1); exit 1; }; }
1410 fi
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1414
1415   else
1416     # this is for autoconf
1417     ac_aux_dir=
1418 for ac_dir in ${multi_basedir}; do
1419   if test -f $ac_dir/install-sh; then
1420     ac_aux_dir=$ac_dir
1421     ac_install_sh="$ac_aux_dir/install-sh -c"
1422     break
1423   elif test -f $ac_dir/install.sh; then
1424     ac_aux_dir=$ac_dir
1425     ac_install_sh="$ac_aux_dir/install.sh -c"
1426     break
1427   elif test -f $ac_dir/shtool; then
1428     ac_aux_dir=$ac_dir
1429     ac_install_sh="$ac_aux_dir/shtool install -c"
1430     break
1431   fi
1432 done
1433 if test -z "$ac_aux_dir"; then
1434   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1435 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1436    { (exit 1); exit 1; }; }
1437 fi
1438 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1439 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1440 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1441
1442   fi
1443
1444
1445
1446 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1447 #
1448 # You will slowly go insane if you do not grok the following fact:  when
1449 # building v3 as part of the compiler, the top-level /target/ becomes the
1450 # library's /host/.  configure then causes --target to default to --host,
1451 # exactly like any other package using autoconf.  Therefore, 'target' and
1452 # 'host' will always be the same.  This makes sense both for native and
1453 # cross compilers, just think about it for a little while.  :-)
1454 #
1455 # Also, if v3 is being configured as part of a cross compiler, the top-level
1456 # configure script will pass the "real" host as $with_cross_host.
1457 #
1458 # Do not delete or change the following two lines.  For why, see
1459 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1460 # Make sure we can run config.sub.
1461 $ac_config_sub sun4 >/dev/null 2>&1 ||
1462   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1463 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1464    { (exit 1); exit 1; }; }
1465
1466 echo "$as_me:$LINENO: checking build system type" >&5
1467 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1468 if test "${ac_cv_build+set}" = set; then
1469   echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471   ac_cv_build_alias=$build_alias
1472 test -z "$ac_cv_build_alias" &&
1473   ac_cv_build_alias=`$ac_config_guess`
1474 test -z "$ac_cv_build_alias" &&
1475   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1476 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1477    { (exit 1); exit 1; }; }
1478 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1479   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1480 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1481    { (exit 1); exit 1; }; }
1482
1483 fi
1484 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1485 echo "${ECHO_T}$ac_cv_build" >&6
1486 build=$ac_cv_build
1487 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1488 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1489 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1490
1491
1492 echo "$as_me:$LINENO: checking host system type" >&5
1493 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1494 if test "${ac_cv_host+set}" = set; then
1495   echo $ECHO_N "(cached) $ECHO_C" >&6
1496 else
1497   ac_cv_host_alias=$host_alias
1498 test -z "$ac_cv_host_alias" &&
1499   ac_cv_host_alias=$ac_cv_build_alias
1500 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1501   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1502 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1503    { (exit 1); exit 1; }; }
1504
1505 fi
1506 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1507 echo "${ECHO_T}$ac_cv_host" >&6
1508 host=$ac_cv_host
1509 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1510 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1511 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1512
1513
1514 echo "$as_me:$LINENO: checking target system type" >&5
1515 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1516 if test "${ac_cv_target+set}" = set; then
1517   echo $ECHO_N "(cached) $ECHO_C" >&6
1518 else
1519   ac_cv_target_alias=$target_alias
1520 test "x$ac_cv_target_alias" = "x" &&
1521   ac_cv_target_alias=$ac_cv_host_alias
1522 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1523   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1524 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1525    { (exit 1); exit 1; }; }
1526
1527 fi
1528 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1529 echo "${ECHO_T}$ac_cv_target" >&6
1530 target=$ac_cv_target
1531 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1532 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1533 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1534
1535
1536 # The aliases save the names the user supplied, while $host etc.
1537 # will get canonicalized.
1538 test -n "$target_alias" &&
1539   test "$program_prefix$program_suffix$program_transform_name" = \
1540     NONENONEs,x,x, &&
1541   program_prefix=${target_alias}-
1542 target_alias=${target_alias-$host_alias}
1543
1544 # Handy for debugging:
1545 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1546
1547 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1548 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1549 #  1.x:  minimum required version
1550 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1551 #              of other PACKAGE_* variables will, however, and there's nothing
1552 #              we can do about that; they come from AC_INIT).
1553 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1554 #            file in the top srcdir, etc, etc), so stop complaining.
1555 #  no-dependencies:  turns off auto dependency generation (just for now)
1556 #  -Wall:  turns on all automake warnings
1557 am__api_version="1.7"
1558 # Find a good install program.  We prefer a C program (faster),
1559 # so one script is as good as another.  But avoid the broken or
1560 # incompatible versions:
1561 # SysV /etc/install, /usr/sbin/install
1562 # SunOS /usr/etc/install
1563 # IRIX /sbin/install
1564 # AIX /bin/install
1565 # AmigaOS /C/install, which installs bootblocks on floppy discs
1566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1569 # ./install, which can be erroneously created by make from ./install.sh.
1570 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1571 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1572 if test -z "$INSTALL"; then
1573 if test "${ac_cv_path_install+set}" = set; then
1574   echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 for as_dir in $PATH
1578 do
1579   IFS=$as_save_IFS
1580   test -z "$as_dir" && as_dir=.
1581   # Account for people who put trailing slashes in PATH elements.
1582 case $as_dir/ in
1583   ./ | .// | /cC/* | \
1584   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1585   /usr/ucb/* ) ;;
1586   *)
1587     # OSF1 and SCO ODT 3.0 have their own names for install.
1588     # Don't use installbsd from OSF since it installs stuff as root
1589     # by default.
1590     for ac_prog in ginstall scoinst install; do
1591       for ac_exec_ext in '' $ac_executable_extensions; do
1592         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1593           if test $ac_prog = install &&
1594             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1595             # AIX install.  It has an incompatible calling convention.
1596             :
1597           elif test $ac_prog = install &&
1598             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599             # program-specific install script used by HP pwplus--don't use.
1600             :
1601           else
1602             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1603             break 3
1604           fi
1605         fi
1606       done
1607     done
1608     ;;
1609 esac
1610 done
1611
1612
1613 fi
1614   if test "${ac_cv_path_install+set}" = set; then
1615     INSTALL=$ac_cv_path_install
1616   else
1617     # As a last resort, use the slow shell script.  We don't cache a
1618     # path for INSTALL within a source directory, because that will
1619     # break other packages using the cache if that directory is
1620     # removed, or if the path is relative.
1621     INSTALL=$ac_install_sh
1622   fi
1623 fi
1624 echo "$as_me:$LINENO: result: $INSTALL" >&5
1625 echo "${ECHO_T}$INSTALL" >&6
1626
1627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1628 # It thinks the first close brace ends the variable substitution.
1629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1630
1631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1632
1633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1634
1635 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1636 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1637 # Just in case
1638 sleep 1
1639 echo timestamp > conftest.file
1640 # Do `set' in a subshell so we don't clobber the current shell's
1641 # arguments.  Must try -L first in case configure is actually a
1642 # symlink; some systems play weird games with the mod time of symlinks
1643 # (eg FreeBSD returns the mod time of the symlink's containing
1644 # directory).
1645 if (
1646    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1647    if test "$*" = "X"; then
1648       # -L didn't work.
1649       set X `ls -t $srcdir/configure conftest.file`
1650    fi
1651    rm -f conftest.file
1652    if test "$*" != "X $srcdir/configure conftest.file" \
1653       && test "$*" != "X conftest.file $srcdir/configure"; then
1654
1655       # If neither matched, then we have a broken ls.  This can happen
1656       # if, for instance, CONFIG_SHELL is bash and it inherits a
1657       # broken ls alias from the environment.  This has actually
1658       # happened.  Such a system could not be considered "sane".
1659       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1660 alias in your environment" >&5
1661 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1662 alias in your environment" >&2;}
1663    { (exit 1); exit 1; }; }
1664    fi
1665
1666    test "$2" = conftest.file
1667    )
1668 then
1669    # Ok.
1670    :
1671 else
1672    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1673 Check your system clock" >&5
1674 echo "$as_me: error: newly created file is older than distributed files!
1675 Check your system clock" >&2;}
1676    { (exit 1); exit 1; }; }
1677 fi
1678 echo "$as_me:$LINENO: result: yes" >&5
1679 echo "${ECHO_T}yes" >&6
1680 test "$program_prefix" != NONE &&
1681   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1682 # Use a double $ so make ignores it.
1683 test "$program_suffix" != NONE &&
1684   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1685 # Double any \ or $.  echo might interpret backslashes.
1686 # By default was `s,x,x', remove it if useless.
1687 cat <<\_ACEOF >conftest.sed
1688 s/[\\$]/&&/g;s/;s,x,x,$//
1689 _ACEOF
1690 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1691 rm conftest.sed
1692
1693
1694 # expand $ac_aux_dir to an absolute path
1695 am_aux_dir=`cd $ac_aux_dir && pwd`
1696
1697 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1698 # Use eval to expand $SHELL
1699 if eval "$MISSING --run true"; then
1700   am_missing_run="$MISSING --run "
1701 else
1702   am_missing_run=
1703   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1704 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1705 fi
1706
1707 for ac_prog in gawk mawk nawk awk
1708 do
1709   # Extract the first word of "$ac_prog", so it can be a program name with args.
1710 set dummy $ac_prog; ac_word=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_AWK+set}" = set; then
1714   echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716   if test -n "$AWK"; then
1717   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1718 else
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
1722   IFS=$as_save_IFS
1723   test -z "$as_dir" && as_dir=.
1724   for ac_exec_ext in '' $ac_executable_extensions; do
1725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726     ac_cv_prog_AWK="$ac_prog"
1727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728     break 2
1729   fi
1730 done
1731 done
1732
1733 fi
1734 fi
1735 AWK=$ac_cv_prog_AWK
1736 if test -n "$AWK"; then
1737   echo "$as_me:$LINENO: result: $AWK" >&5
1738 echo "${ECHO_T}$AWK" >&6
1739 else
1740   echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1742 fi
1743
1744   test -n "$AWK" && break
1745 done
1746
1747 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1748 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1749 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1750 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   cat >conftest.make <<\_ACEOF
1754 all:
1755         @echo 'ac_maketemp="$(MAKE)"'
1756 _ACEOF
1757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1758 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1759 if test -n "$ac_maketemp"; then
1760   eval ac_cv_prog_make_${ac_make}_set=yes
1761 else
1762   eval ac_cv_prog_make_${ac_make}_set=no
1763 fi
1764 rm -f conftest.make
1765 fi
1766 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1767   echo "$as_me:$LINENO: result: yes" >&5
1768 echo "${ECHO_T}yes" >&6
1769   SET_MAKE=
1770 else
1771   echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1773   SET_MAKE="MAKE=${MAKE-make}"
1774 fi
1775
1776 rm -rf .tst 2>/dev/null
1777 mkdir .tst 2>/dev/null
1778 if test -d .tst; then
1779   am__leading_dot=.
1780 else
1781   am__leading_dot=_
1782 fi
1783 rmdir .tst 2>/dev/null
1784
1785  # test to see if srcdir already configured
1786 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1787    test -f $srcdir/config.status; then
1788   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1789 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1790    { (exit 1); exit 1; }; }
1791 fi
1792
1793 # test whether we have cygpath
1794 if test -z "$CYGPATH_W"; then
1795   if (cygpath --version) >/dev/null 2>/dev/null; then
1796     CYGPATH_W='cygpath -w'
1797   else
1798     CYGPATH_W=echo
1799   fi
1800 fi
1801
1802
1803 # Define the identity of the package.
1804  PACKAGE='libstdc++'
1805  VERSION='version-unused'
1806
1807
1808 # Some tools Automake needs.
1809
1810 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1811
1812
1813 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1814
1815
1816 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1817
1818
1819 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1820
1821
1822 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1823
1824
1825 AMTAR=${AMTAR-"${am_missing_run}tar"}
1826
1827 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1828
1829 # Installed binaries are usually stripped using `strip' when the user
1830 # run `make install-strip'.  However `strip' might not be the right
1831 # tool to use in cross-compilation environments, therefore Automake
1832 # will honor the `STRIP' environment variable to overrule this program.
1833 if test "$cross_compiling" != no; then
1834   if test -n "$ac_tool_prefix"; then
1835   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1836 set dummy ${ac_tool_prefix}strip; ac_word=$2
1837 echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839 if test "${ac_cv_prog_STRIP+set}" = set; then
1840   echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842   if test -n "$STRIP"; then
1843   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1844 else
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1847 do
1848   IFS=$as_save_IFS
1849   test -z "$as_dir" && as_dir=.
1850   for ac_exec_ext in '' $ac_executable_extensions; do
1851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854     break 2
1855   fi
1856 done
1857 done
1858
1859 fi
1860 fi
1861 STRIP=$ac_cv_prog_STRIP
1862 if test -n "$STRIP"; then
1863   echo "$as_me:$LINENO: result: $STRIP" >&5
1864 echo "${ECHO_T}$STRIP" >&6
1865 else
1866   echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1868 fi
1869
1870 fi
1871 if test -z "$ac_cv_prog_STRIP"; then
1872   ac_ct_STRIP=$STRIP
1873   # Extract the first word of "strip", so it can be a program name with args.
1874 set dummy strip; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1878   echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880   if test -n "$ac_ct_STRIP"; then
1881   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886   IFS=$as_save_IFS
1887   test -z "$as_dir" && as_dir=.
1888   for ac_exec_ext in '' $ac_executable_extensions; do
1889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890     ac_cv_prog_ac_ct_STRIP="strip"
1891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892     break 2
1893   fi
1894 done
1895 done
1896
1897   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1898 fi
1899 fi
1900 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1901 if test -n "$ac_ct_STRIP"; then
1902   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1903 echo "${ECHO_T}$ac_ct_STRIP" >&6
1904 else
1905   echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909   STRIP=$ac_ct_STRIP
1910 else
1911   STRIP="$ac_cv_prog_STRIP"
1912 fi
1913
1914 fi
1915 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1916
1917 # We need awk for the "check" target.  The system "awk" is bad on
1918 # some platforms.
1919
1920
1921
1922
1923 # Runs configure.host, finds CC, CXX, and assorted other critical bits.  Sets
1924 # up critical shell variables.
1925
1926
1927   # These need to be absolute paths, yet at the same time need to
1928   # canonicalize only relative paths, because then amd will not unmount
1929   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1930   glibcxx_builddir=`${PWDCMD-pwd}`
1931   case $srcdir in
1932     \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
1933     *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1934   esac
1935   toplevel_srcdir=${glibcxx_srcdir}/..
1936
1937
1938
1939
1940   # We use these options to decide which functions to include.  They are
1941   # set from the top level.
1942
1943 # Check whether --with-target-subdir or --without-target-subdir was given.
1944 if test "${with_target_subdir+set}" = set; then
1945   withval="$with_target_subdir"
1946
1947 fi;
1948
1949
1950 # Check whether --with-cross-host or --without-cross-host was given.
1951 if test "${with_cross_host+set}" = set; then
1952   withval="$with_cross_host"
1953
1954 fi;
1955
1956
1957 # Check whether --with-newlib or --without-newlib was given.
1958 if test "${with_newlib+set}" = set; then
1959   withval="$with_newlib"
1960
1961 fi;
1962
1963   # We're almost certainly being configured before anything else which uses
1964   # C++, so all of our AC_PROG_* discoveries will be cached.  It's vital that
1965   # we not cache the value of CXX that we "discover" here, because it's set
1966   # to something unique for us and libjava.  Other target libraries need to
1967   # find CXX for themselves.  We yank the rug out from under the normal AC_*
1968   # process by sneakily renaming the cache variable.  This also lets us debug
1969   # the value of "our" CXX in postmortems.
1970   #
1971   # We must also force CXX to /not/ be a precious variable, otherwise the
1972   # wrong (non-multilib-adjusted) value will be used in multilibs.  This
1973   # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS.  And as a side
1974   # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
1975   # that ourselves.  Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
1976   #
1977   # -fno-builtin must be present here so that a non-conflicting form of
1978   # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
1979
1980
1981
1982
1983   save_CXXFLAGS="$CXXFLAGS"
1984   CXXFLAGS="$CXXFLAGS -fno-builtin"
1985   ac_ext=c
1986 ac_cpp='$CPP $CPPFLAGS'
1987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1990 if test -n "$ac_tool_prefix"; then
1991   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1992 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1993 echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995 if test "${ac_cv_prog_CC+set}" = set; then
1996   echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998   if test -n "$CC"; then
1999   ac_cv_prog_CC="$CC" # Let the user override the test.
2000 else
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2003 do
2004   IFS=$as_save_IFS
2005   test -z "$as_dir" && as_dir=.
2006   for ac_exec_ext in '' $ac_executable_extensions; do
2007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010     break 2
2011   fi
2012 done
2013 done
2014
2015 fi
2016 fi
2017 CC=$ac_cv_prog_CC
2018 if test -n "$CC"; then
2019   echo "$as_me:$LINENO: result: $CC" >&5
2020 echo "${ECHO_T}$CC" >&6
2021 else
2022   echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6
2024 fi
2025
2026 fi
2027 if test -z "$ac_cv_prog_CC"; then
2028   ac_ct_CC=$CC
2029   # Extract the first word of "gcc", so it can be a program name with args.
2030 set dummy gcc; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2034   echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036   if test -n "$ac_ct_CC"; then
2037   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2041 do
2042   IFS=$as_save_IFS
2043   test -z "$as_dir" && as_dir=.
2044   for ac_exec_ext in '' $ac_executable_extensions; do
2045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046     ac_cv_prog_ac_ct_CC="gcc"
2047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048     break 2
2049   fi
2050 done
2051 done
2052
2053 fi
2054 fi
2055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056 if test -n "$ac_ct_CC"; then
2057   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058 echo "${ECHO_T}$ac_ct_CC" >&6
2059 else
2060   echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2062 fi
2063
2064   CC=$ac_ct_CC
2065 else
2066   CC="$ac_cv_prog_CC"
2067 fi
2068
2069 if test -z "$CC"; then
2070   if test -n "$ac_tool_prefix"; then
2071   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2072 set dummy ${ac_tool_prefix}cc; ac_word=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_CC+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   if test -n "$CC"; then
2079   ac_cv_prog_CC="$CC" # Let the user override the test.
2080 else
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2083 do
2084   IFS=$as_save_IFS
2085   test -z "$as_dir" && as_dir=.
2086   for ac_exec_ext in '' $ac_executable_extensions; do
2087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088     ac_cv_prog_CC="${ac_tool_prefix}cc"
2089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090     break 2
2091   fi
2092 done
2093 done
2094
2095 fi
2096 fi
2097 CC=$ac_cv_prog_CC
2098 if test -n "$CC"; then
2099   echo "$as_me:$LINENO: result: $CC" >&5
2100 echo "${ECHO_T}$CC" >&6
2101 else
2102   echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6
2104 fi
2105
2106 fi
2107 if test -z "$ac_cv_prog_CC"; then
2108   ac_ct_CC=$CC
2109   # Extract the first word of "cc", so it can be a program name with args.
2110 set dummy cc; ac_word=$2
2111 echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2114   echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116   if test -n "$ac_ct_CC"; then
2117   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2118 else
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2121 do
2122   IFS=$as_save_IFS
2123   test -z "$as_dir" && as_dir=.
2124   for ac_exec_ext in '' $ac_executable_extensions; do
2125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2126     ac_cv_prog_ac_ct_CC="cc"
2127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128     break 2
2129   fi
2130 done
2131 done
2132
2133 fi
2134 fi
2135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2136 if test -n "$ac_ct_CC"; then
2137   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2138 echo "${ECHO_T}$ac_ct_CC" >&6
2139 else
2140   echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6
2142 fi
2143
2144   CC=$ac_ct_CC
2145 else
2146   CC="$ac_cv_prog_CC"
2147 fi
2148
2149 fi
2150 if test -z "$CC"; then
2151   # Extract the first word of "cc", so it can be a program name with args.
2152 set dummy cc; ac_word=$2
2153 echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$CC"; then
2159   ac_cv_prog_CC="$CC" # Let the user override the test.
2160 else
2161   ac_prog_rejected=no
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2164 do
2165   IFS=$as_save_IFS
2166   test -z "$as_dir" && as_dir=.
2167   for ac_exec_ext in '' $ac_executable_extensions; do
2168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2170        ac_prog_rejected=yes
2171        continue
2172      fi
2173     ac_cv_prog_CC="cc"
2174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175     break 2
2176   fi
2177 done
2178 done
2179
2180 if test $ac_prog_rejected = yes; then
2181   # We found a bogon in the path, so make sure we never use it.
2182   set dummy $ac_cv_prog_CC
2183   shift
2184   if test $# != 0; then
2185     # We chose a different compiler from the bogus one.
2186     # However, it has the same basename, so the bogon will be chosen
2187     # first if we set CC to just the basename; use the full file name.
2188     shift
2189     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2190   fi
2191 fi
2192 fi
2193 fi
2194 CC=$ac_cv_prog_CC
2195 if test -n "$CC"; then
2196   echo "$as_me:$LINENO: result: $CC" >&5
2197 echo "${ECHO_T}$CC" >&6
2198 else
2199   echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6
2201 fi
2202
2203 fi
2204 if test -z "$CC"; then
2205   if test -n "$ac_tool_prefix"; then
2206   for ac_prog in cl
2207   do
2208     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2210 echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2212 if test "${ac_cv_prog_CC+set}" = set; then
2213   echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215   if test -n "$CC"; then
2216   ac_cv_prog_CC="$CC" # Let the user override the test.
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221   IFS=$as_save_IFS
2222   test -z "$as_dir" && as_dir=.
2223   for ac_exec_ext in '' $ac_executable_extensions; do
2224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2225     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227     break 2
2228   fi
2229 done
2230 done
2231
2232 fi
2233 fi
2234 CC=$ac_cv_prog_CC
2235 if test -n "$CC"; then
2236   echo "$as_me:$LINENO: result: $CC" >&5
2237 echo "${ECHO_T}$CC" >&6
2238 else
2239   echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6
2241 fi
2242
2243     test -n "$CC" && break
2244   done
2245 fi
2246 if test -z "$CC"; then
2247   ac_ct_CC=$CC
2248   for ac_prog in cl
2249 do
2250   # Extract the first word of "$ac_prog", so it can be a program name with args.
2251 set dummy $ac_prog; ac_word=$2
2252 echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2255   echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257   if test -n "$ac_ct_CC"; then
2258   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2262 do
2263   IFS=$as_save_IFS
2264   test -z "$as_dir" && as_dir=.
2265   for ac_exec_ext in '' $ac_executable_extensions; do
2266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2267     ac_cv_prog_ac_ct_CC="$ac_prog"
2268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269     break 2
2270   fi
2271 done
2272 done
2273
2274 fi
2275 fi
2276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2277 if test -n "$ac_ct_CC"; then
2278   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2279 echo "${ECHO_T}$ac_ct_CC" >&6
2280 else
2281   echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6
2283 fi
2284
2285   test -n "$ac_ct_CC" && break
2286 done
2287
2288   CC=$ac_ct_CC
2289 fi
2290
2291 fi
2292
2293
2294 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: no acceptable C compiler found in \$PATH
2297 See \`config.log' for more details." >&2;}
2298    { (exit 1); exit 1; }; }
2299
2300 # Provide some information about the compiler.
2301 echo "$as_me:$LINENO:" \
2302      "checking for C compiler version" >&5
2303 ac_compiler=`set X $ac_compile; echo $2`
2304 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2305   (eval $ac_compiler --version </dev/null >&5) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }
2309 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2310   (eval $ac_compiler -v </dev/null >&5) 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); }
2314 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2315   (eval $ac_compiler -V </dev/null >&5) 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); }
2319
2320 cat >conftest.$ac_ext <<_ACEOF
2321 #line $LINENO "configure"
2322 /* confdefs.h.  */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h.  */
2327
2328 int
2329 main ()
2330 {
2331
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 ac_clean_files_save=$ac_clean_files
2337 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2338 # Try to create an executable without -o first, disregard a.out.
2339 # It will help us diagnose broken compilers, and finding out an intuition
2340 # of exeext.
2341 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2342 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2343 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2344 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2345   (eval $ac_link_default) 2>&5
2346   ac_status=$?
2347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348   (exit $ac_status); }; then
2349   # Find the output, starting from the most likely.  This scheme is
2350 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2351 # resort.
2352
2353 # Be careful to initialize this variable, since it used to be cached.
2354 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2355 ac_cv_exeext=
2356 # b.out is created by i960 compilers.
2357 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2358 do
2359   test -f "$ac_file" || continue
2360   case $ac_file in
2361     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2362         ;;
2363     conftest.$ac_ext )
2364         # This is the source file.
2365         ;;
2366     [ab].out )
2367         # We found the default executable, but exeext='' is most
2368         # certainly right.
2369         break;;
2370     *.* )
2371         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2372         # FIXME: I believe we export ac_cv_exeext for Libtool,
2373         # but it would be cool to find out if it's true.  Does anybody
2374         # maintain Libtool? --akim.
2375         export ac_cv_exeext
2376         break;;
2377     * )
2378         break;;
2379   esac
2380 done
2381 else
2382   echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2384
2385 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2386 See \`config.log' for more details." >&5
2387 echo "$as_me: error: C compiler cannot create executables
2388 See \`config.log' for more details." >&2;}
2389    { (exit 77); exit 77; }; }
2390 fi
2391
2392 ac_exeext=$ac_cv_exeext
2393 echo "$as_me:$LINENO: result: $ac_file" >&5
2394 echo "${ECHO_T}$ac_file" >&6
2395
2396 # Check the compiler produces executables we can run.  If not, either
2397 # the compiler is broken, or we cross compile.
2398 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2399 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2400 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2401 # If not cross compiling, check that we can run a simple program.
2402 if test "$cross_compiling" != yes; then
2403   if { ac_try='./$ac_file'
2404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405   (eval $ac_try) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; }; then
2409     cross_compiling=no
2410   else
2411     if test "$cross_compiling" = maybe; then
2412         cross_compiling=yes
2413     else
2414         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2415 If you meant to cross compile, use \`--host'.
2416 See \`config.log' for more details." >&5
2417 echo "$as_me: error: cannot run C compiled programs.
2418 If you meant to cross compile, use \`--host'.
2419 See \`config.log' for more details." >&2;}
2420    { (exit 1); exit 1; }; }
2421     fi
2422   fi
2423 fi
2424 echo "$as_me:$LINENO: result: yes" >&5
2425 echo "${ECHO_T}yes" >&6
2426
2427 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2428 ac_clean_files=$ac_clean_files_save
2429 # Check the compiler produces executables we can run.  If not, either
2430 # the compiler is broken, or we cross compile.
2431 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2432 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2433 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2434 echo "${ECHO_T}$cross_compiling" >&6
2435
2436 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2437 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2439   (eval $ac_link) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; then
2443   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2444 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2445 # work properly (i.e., refer to `conftest.exe'), while it won't with
2446 # `rm'.
2447 for ac_file in conftest.exe conftest conftest.*; do
2448   test -f "$ac_file" || continue
2449   case $ac_file in
2450     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2451     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2452           export ac_cv_exeext
2453           break;;
2454     * ) break;;
2455   esac
2456 done
2457 else
2458   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2459 See \`config.log' for more details." >&5
2460 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2461 See \`config.log' for more details." >&2;}
2462    { (exit 1); exit 1; }; }
2463 fi
2464
2465 rm -f conftest$ac_cv_exeext
2466 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2467 echo "${ECHO_T}$ac_cv_exeext" >&6
2468
2469 rm -f conftest.$ac_ext
2470 EXEEXT=$ac_cv_exeext
2471 ac_exeext=$EXEEXT
2472 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2473 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2474 if test "${ac_cv_objext+set}" = set; then
2475   echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477   cat >conftest.$ac_ext <<_ACEOF
2478 #line $LINENO "configure"
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484
2485 int
2486 main ()
2487 {
2488
2489   ;
2490   return 0;
2491 }
2492 _ACEOF
2493 rm -f conftest.o conftest.obj
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495   (eval $ac_compile) 2>&5
2496   ac_status=$?
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); }; then
2499   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2500   case $ac_file in
2501     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2502     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2503        break;;
2504   esac
2505 done
2506 else
2507   echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509
2510 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2511 See \`config.log' for more details." >&5
2512 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2513 See \`config.log' for more details." >&2;}
2514    { (exit 1); exit 1; }; }
2515 fi
2516
2517 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2518 fi
2519 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2520 echo "${ECHO_T}$ac_cv_objext" >&6
2521 OBJEXT=$ac_cv_objext
2522 ac_objext=$OBJEXT
2523 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2524 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2525 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2526   echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528   cat >conftest.$ac_ext <<_ACEOF
2529 #line $LINENO "configure"
2530 /* confdefs.h.  */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h.  */
2535
2536 int
2537 main ()
2538 {
2539 #ifndef __GNUC__
2540        choke me
2541 #endif
2542
2543   ;
2544   return 0;
2545 }
2546 _ACEOF
2547 rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549   (eval $ac_compile) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -s conftest.$ac_objext'
2554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555   (eval $ac_try) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; }; then
2559   ac_compiler_gnu=yes
2560 else
2561   echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564 ac_compiler_gnu=no
2565 fi
2566 rm -f conftest.$ac_objext conftest.$ac_ext
2567 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2568
2569 fi
2570 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2571 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2572 GCC=`test $ac_compiler_gnu = yes && echo yes`
2573 ac_test_CFLAGS=${CFLAGS+set}
2574 ac_save_CFLAGS=$CFLAGS
2575 CFLAGS="-g"
2576 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2577 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2578 if test "${ac_cv_prog_cc_g+set}" = set; then
2579   echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581   cat >conftest.$ac_ext <<_ACEOF
2582 #line $LINENO "configure"
2583 /* confdefs.h.  */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h.  */
2588
2589 int
2590 main ()
2591 {
2592
2593   ;
2594   return 0;
2595 }
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599   (eval $ac_compile) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); } &&
2603          { ac_try='test -s conftest.$ac_objext'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; }; then
2609   ac_cv_prog_cc_g=yes
2610 else
2611   echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 ac_cv_prog_cc_g=no
2615 fi
2616 rm -f conftest.$ac_objext conftest.$ac_ext
2617 fi
2618 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2619 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2620 if test "$ac_test_CFLAGS" = set; then
2621   CFLAGS=$ac_save_CFLAGS
2622 elif test $ac_cv_prog_cc_g = yes; then
2623   if test "$GCC" = yes; then
2624     CFLAGS="-g -O2"
2625   else
2626     CFLAGS="-g"
2627   fi
2628 else
2629   if test "$GCC" = yes; then
2630     CFLAGS="-O2"
2631   else
2632     CFLAGS=
2633   fi
2634 fi
2635 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2636 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2637 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   ac_cv_prog_cc_stdc=no
2641 ac_save_CC=$CC
2642 cat >conftest.$ac_ext <<_ACEOF
2643 #line $LINENO "configure"
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649 #include <stdarg.h>
2650 #include <stdio.h>
2651 #include <sys/types.h>
2652 #include <sys/stat.h>
2653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2654 struct buf { int x; };
2655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656 static char *e (p, i)
2657      char **p;
2658      int i;
2659 {
2660   return p[i];
2661 }
2662 static char *f (char * (*g) (char **, int), char **p, ...)
2663 {
2664   char *s;
2665   va_list v;
2666   va_start (v,p);
2667   s = g (p, va_arg (v,int));
2668   va_end (v);
2669   return s;
2670 }
2671 int test (int i, double x);
2672 struct s1 {int (*f) (int a);};
2673 struct s2 {int (*f) (double a);};
2674 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2675 int argc;
2676 char **argv;
2677 int
2678 main ()
2679 {
2680 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2681   ;
2682   return 0;
2683 }
2684 _ACEOF
2685 # Don't try gcc -ansi; that turns off useful extensions and
2686 # breaks some systems' header files.
2687 # AIX                   -qlanglvl=ansi
2688 # Ultrix and OSF/1      -std1
2689 # HP-UX 10.20 and later -Ae
2690 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2691 # SVR4                  -Xc -D__EXTENSIONS__
2692 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2693 do
2694   CC="$ac_save_CC $ac_arg"
2695   rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697   (eval $ac_compile) 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); } &&
2701          { ac_try='test -s conftest.$ac_objext'
2702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; }; then
2707   ac_cv_prog_cc_stdc=$ac_arg
2708 break
2709 else
2710   echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712
2713 fi
2714 rm -f conftest.$ac_objext
2715 done
2716 rm -f conftest.$ac_ext conftest.$ac_objext
2717 CC=$ac_save_CC
2718
2719 fi
2720
2721 case "x$ac_cv_prog_cc_stdc" in
2722   x|xno)
2723     echo "$as_me:$LINENO: result: none needed" >&5
2724 echo "${ECHO_T}none needed" >&6 ;;
2725   *)
2726     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2727 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2728     CC="$CC $ac_cv_prog_cc_stdc" ;;
2729 esac
2730
2731 # Some people use a C++ compiler to compile C.  Since we use `exit',
2732 # in C++ we need to declare it.  In case someone uses the same compiler
2733 # for both compiling C and C++ we need to have the C++ compiler decide
2734 # the declaration of exit, since it's the most demanding environment.
2735 cat >conftest.$ac_ext <<_ACEOF
2736 #ifndef __cplusplus
2737   choke me
2738 #endif
2739 _ACEOF
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742   (eval $ac_compile) 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); } &&
2746          { ac_try='test -s conftest.$ac_objext'
2747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748   (eval $ac_try) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; }; then
2752   for ac_declaration in \
2753    '' \
2754    'extern "C" void std::exit (int) throw (); using std::exit;' \
2755    'extern "C" void std::exit (int); using std::exit;' \
2756    'extern "C" void exit (int) throw ();' \
2757    'extern "C" void exit (int);' \
2758    'void exit (int);'
2759 do
2760   cat >conftest.$ac_ext <<_ACEOF
2761 #line $LINENO "configure"
2762 /* confdefs.h.  */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h.  */
2767 $ac_declaration
2768 #include <stdlib.h>
2769 int
2770 main ()
2771 {
2772 exit (42);
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779   (eval $ac_compile) 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); } &&
2783          { ac_try='test -s conftest.$ac_objext'
2784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785   (eval $ac_try) 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; }; then
2789   :
2790 else
2791   echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2793
2794 continue
2795 fi
2796 rm -f conftest.$ac_objext conftest.$ac_ext
2797   cat >conftest.$ac_ext <<_ACEOF
2798 #line $LINENO "configure"
2799 /* confdefs.h.  */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h.  */
2804 $ac_declaration
2805 int
2806 main ()
2807 {
2808 exit (42);
2809   ;
2810   return 0;
2811 }
2812 _ACEOF
2813 rm -f conftest.$ac_objext
2814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2815   (eval $ac_compile) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); } &&
2819          { ac_try='test -s conftest.$ac_objext'
2820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821   (eval $ac_try) 2>&5
2822   ac_status=$?
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); }; }; then
2825   break
2826 else
2827   echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830 fi
2831 rm -f conftest.$ac_objext conftest.$ac_ext
2832 done
2833 rm -f conftest*
2834 if test -n "$ac_declaration"; then
2835   echo '#ifdef __cplusplus' >>confdefs.h
2836   echo $ac_declaration      >>confdefs.h
2837   echo '#endif'             >>confdefs.h
2838 fi
2839
2840 else
2841   echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 fi
2845 rm -f conftest.$ac_objext conftest.$ac_ext
2846 ac_ext=c
2847 ac_cpp='$CPP $CPPFLAGS'
2848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851
2852   ac_ext=cc
2853 ac_cpp='$CXXCPP $CPPFLAGS'
2854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2857 if test -n "$ac_tool_prefix"; then
2858   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2859   do
2860     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2862 echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2865   echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867   if test -n "$CXX"; then
2868   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873   IFS=$as_save_IFS
2874   test -z "$as_dir" && as_dir=.
2875   for ac_exec_ext in '' $ac_executable_extensions; do
2876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2877     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879     break 2
2880   fi
2881 done
2882 done
2883
2884 fi
2885 fi
2886 CXX=$glibcxx_cv_prog_CXX
2887 if test -n "$CXX"; then
2888   echo "$as_me:$LINENO: result: $CXX" >&5
2889 echo "${ECHO_T}$CXX" >&6
2890 else
2891   echo "$as_me:$LINENO: result: no" >&5
2892 echo "${ECHO_T}no" >&6
2893 fi
2894
2895     test -n "$CXX" && break
2896   done
2897 fi
2898 if test -z "$CXX"; then
2899   ac_ct_CXX=$CXX
2900   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2901 do
2902   # Extract the first word of "$ac_prog", so it can be a program name with args.
2903 set dummy $ac_prog; ac_word=$2
2904 echo "$as_me:$LINENO: checking for $ac_word" >&5
2905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2906 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2907   echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909   if test -n "$ac_ct_CXX"; then
2910   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915   IFS=$as_save_IFS
2916   test -z "$as_dir" && as_dir=.
2917   for ac_exec_ext in '' $ac_executable_extensions; do
2918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919     ac_cv_prog_ac_ct_CXX="$ac_prog"
2920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2921     break 2
2922   fi
2923 done
2924 done
2925
2926 fi
2927 fi
2928 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2929 if test -n "$ac_ct_CXX"; then
2930   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2931 echo "${ECHO_T}$ac_ct_CXX" >&6
2932 else
2933   echo "$as_me:$LINENO: result: no" >&5
2934 echo "${ECHO_T}no" >&6
2935 fi
2936
2937   test -n "$ac_ct_CXX" && break
2938 done
2939 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2940
2941   CXX=$ac_ct_CXX
2942 fi
2943
2944
2945 # Provide some information about the compiler.
2946 echo "$as_me:$LINENO:" \
2947      "checking for C++ compiler version" >&5
2948 ac_compiler=`set X $ac_compile; echo $2`
2949 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2950   (eval $ac_compiler --version </dev/null >&5) 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); }
2954 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2955   (eval $ac_compiler -v </dev/null >&5) 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }
2959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2960   (eval $ac_compiler -V </dev/null >&5) 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); }
2964
2965 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2966 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2967 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2968   echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970   cat >conftest.$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2972 /* confdefs.h.  */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h.  */
2977
2978 int
2979 main ()
2980 {
2981 #ifndef __GNUC__
2982        choke me
2983 #endif
2984
2985   ;
2986   return 0;
2987 }
2988 _ACEOF
2989 rm -f conftest.$ac_objext
2990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2991   (eval $ac_compile) 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } &&
2995          { ac_try='test -s conftest.$ac_objext'
2996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997   (eval $ac_try) 2>&5
2998   ac_status=$?
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); }; }; then
3001   ac_compiler_gnu=yes
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006 ac_compiler_gnu=no
3007 fi
3008 rm -f conftest.$ac_objext conftest.$ac_ext
3009 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3010
3011 fi
3012 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3013 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3014 GXX=`test $ac_compiler_gnu = yes && echo yes`
3015 ac_test_CXXFLAGS=${CXXFLAGS+set}
3016 ac_save_CXXFLAGS=$CXXFLAGS
3017 CXXFLAGS="-g"
3018 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3019 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3020 if test "${ac_cv_prog_cxx_g+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   cat >conftest.$ac_ext <<_ACEOF
3024 #line $LINENO "configure"
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030
3031 int
3032 main ()
3033 {
3034
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041   (eval $ac_compile) 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); } &&
3045          { ac_try='test -s conftest.$ac_objext'
3046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047   (eval $ac_try) 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }; }; then
3051   ac_cv_prog_cxx_g=yes
3052 else
3053   echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 ac_cv_prog_cxx_g=no
3057 fi
3058 rm -f conftest.$ac_objext conftest.$ac_ext
3059 fi
3060 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3061 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3062 if test "$ac_test_CXXFLAGS" = set; then
3063   CXXFLAGS=$ac_save_CXXFLAGS
3064 elif test $ac_cv_prog_cxx_g = yes; then
3065   if test "$GXX" = yes; then
3066     CXXFLAGS="-g -O2"
3067   else
3068     CXXFLAGS="-g"
3069   fi
3070 else
3071   if test "$GXX" = yes; then
3072     CXXFLAGS="-O2"
3073   else
3074     CXXFLAGS=
3075   fi
3076 fi
3077 for ac_declaration in \
3078    '' \
3079    'extern "C" void std::exit (int) throw (); using std::exit;' \
3080    'extern "C" void std::exit (int); using std::exit;' \
3081    'extern "C" void exit (int) throw ();' \
3082    'extern "C" void exit (int);' \
3083    'void exit (int);'
3084 do
3085   cat >conftest.$ac_ext <<_ACEOF
3086 #line $LINENO "configure"
3087 /* confdefs.h.  */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h.  */
3092 $ac_declaration
3093 #include <stdlib.h>
3094 int
3095 main ()
3096 {
3097 exit (42);
3098   ;
3099   return 0;
3100 }
3101 _ACEOF
3102 rm -f conftest.$ac_objext
3103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3104   (eval $ac_compile) 2>&5
3105   ac_status=$?
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } &&
3108          { ac_try='test -s conftest.$ac_objext'
3109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110   (eval $ac_try) 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; }; then
3114   :
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 continue
3120 fi
3121 rm -f conftest.$ac_objext conftest.$ac_ext
3122   cat >conftest.$ac_ext <<_ACEOF
3123 #line $LINENO "configure"
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129 $ac_declaration
3130 int
3131 main ()
3132 {
3133 exit (42);
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140   (eval $ac_compile) 2>&5
3141   ac_status=$?
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); } &&
3144          { ac_try='test -s conftest.$ac_objext'
3145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146   (eval $ac_try) 2>&5
3147   ac_status=$?
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); }; }; then
3150   break
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 fi
3156 rm -f conftest.$ac_objext conftest.$ac_ext
3157 done
3158 rm -f conftest*
3159 if test -n "$ac_declaration"; then
3160   echo '#ifdef __cplusplus' >>confdefs.h
3161   echo $ac_declaration      >>confdefs.h
3162   echo '#endif'             >>confdefs.h
3163 fi
3164
3165 ac_ext=c
3166 ac_cpp='$CPP $CPPFLAGS'
3167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170
3171   CXXFLAGS="$save_CXXFLAGS"
3172
3173
3174
3175
3176   # For directory versioning (e.g., headers) and other variables.
3177   echo "$as_me:$LINENO: checking for GCC version number" >&5
3178 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3179   gcc_version=`$CXX -dumpversion`
3180   echo "$as_me:$LINENO: result: $gcc_version" >&5
3181 echo "${ECHO_T}$gcc_version" >&6
3182
3183   # For some reason, gettext needs this.
3184
3185         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3186 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3187 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3188   echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190   ac_check_lib_save_LIBS=$LIBS
3191 LIBS="-lcposix  $LIBS"
3192 cat >conftest.$ac_ext <<_ACEOF
3193 #line $LINENO "configure"
3194 /* confdefs.h.  */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h.  */
3199
3200 /* Override any gcc2 internal prototype to avoid an error.  */
3201 #ifdef __cplusplus
3202 extern "C"
3203 #endif
3204 /* We use char because int might match the return type of a gcc2
3205    builtin and then its argument prototype would still apply.  */
3206 char strerror ();
3207 int
3208 main ()
3209 {
3210 strerror ();
3211   ;
3212   return 0;
3213 }
3214 _ACEOF
3215 rm -f conftest.$ac_objext conftest$ac_exeext
3216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3217   (eval $ac_link) 2>&5
3218   ac_status=$?
3219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220   (exit $ac_status); } &&
3221          { ac_try='test -s conftest$ac_exeext'
3222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223   (eval $ac_try) 2>&5
3224   ac_status=$?
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); }; }; then
3227   ac_cv_lib_cposix_strerror=yes
3228 else
3229   echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3231
3232 ac_cv_lib_cposix_strerror=no
3233 fi
3234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3235 LIBS=$ac_check_lib_save_LIBS
3236 fi
3237 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3238 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3239 if test $ac_cv_lib_cposix_strerror = yes; then
3240   LIBS="$LIBS -lcposix"
3241 fi
3242
3243
3244
3245
3246   # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3247   # available).  Uncomment the next line to force a particular method.
3248   echo "$as_me:$LINENO: checking whether ln -s works" >&5
3249 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3250 LN_S=$as_ln_s
3251 if test "$LN_S" = "ln -s"; then
3252   echo "$as_me:$LINENO: result: yes" >&5
3253 echo "${ECHO_T}yes" >&6
3254 else
3255   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3256 echo "${ECHO_T}no, using $LN_S" >&6
3257 fi
3258
3259   #LN_S='cp -p'
3260
3261   if test -n "$ac_tool_prefix"; then
3262   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3263 set dummy ${ac_tool_prefix}as; ac_word=$2
3264 echo "$as_me:$LINENO: checking for $ac_word" >&5
3265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3266 if test "${ac_cv_prog_AS+set}" = set; then
3267   echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269   if test -n "$AS"; then
3270   ac_cv_prog_AS="$AS" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275   IFS=$as_save_IFS
3276   test -z "$as_dir" && as_dir=.
3277   for ac_exec_ext in '' $ac_executable_extensions; do
3278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279     ac_cv_prog_AS="${ac_tool_prefix}as"
3280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3281     break 2
3282   fi
3283 done
3284 done
3285
3286 fi
3287 fi
3288 AS=$ac_cv_prog_AS
3289 if test -n "$AS"; then
3290   echo "$as_me:$LINENO: result: $AS" >&5
3291 echo "${ECHO_T}$AS" >&6
3292 else
3293   echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6
3295 fi
3296
3297 fi
3298 if test -z "$ac_cv_prog_AS"; then
3299   ac_ct_AS=$AS
3300   # Extract the first word of "as", so it can be a program name with args.
3301 set dummy as; ac_word=$2
3302 echo "$as_me:$LINENO: checking for $ac_word" >&5
3303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3304 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3305   echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307   if test -n "$ac_ct_AS"; then
3308   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315   for ac_exec_ext in '' $ac_executable_extensions; do
3316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317     ac_cv_prog_ac_ct_AS="as"
3318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322 done
3323
3324 fi
3325 fi
3326 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3327 if test -n "$ac_ct_AS"; then
3328   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3329 echo "${ECHO_T}$ac_ct_AS" >&6
3330 else
3331   echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6
3333 fi
3334
3335   AS=$ac_ct_AS
3336 else
3337   AS="$ac_cv_prog_AS"
3338 fi
3339
3340   if test -n "$ac_tool_prefix"; then
3341   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3342 set dummy ${ac_tool_prefix}ar; ac_word=$2
3343 echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3345 if test "${ac_cv_prog_AR+set}" = set; then
3346   echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348   if test -n "$AR"; then
3349   ac_cv_prog_AR="$AR" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354   IFS=$as_save_IFS
3355   test -z "$as_dir" && as_dir=.
3356   for ac_exec_ext in '' $ac_executable_extensions; do
3357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358     ac_cv_prog_AR="${ac_tool_prefix}ar"
3359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360     break 2
3361   fi
3362 done
3363 done
3364
3365 fi
3366 fi
3367 AR=$ac_cv_prog_AR
3368 if test -n "$AR"; then
3369   echo "$as_me:$LINENO: result: $AR" >&5
3370 echo "${ECHO_T}$AR" >&6
3371 else
3372   echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6
3374 fi
3375
3376 fi
3377 if test -z "$ac_cv_prog_AR"; then
3378   ac_ct_AR=$AR
3379   # Extract the first word of "ar", so it can be a program name with args.
3380 set dummy ar; ac_word=$2
3381 echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3383 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   if test -n "$ac_ct_AR"; then
3387   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392   IFS=$as_save_IFS
3393   test -z "$as_dir" && as_dir=.
3394   for ac_exec_ext in '' $ac_executable_extensions; do
3395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396     ac_cv_prog_ac_ct_AR="ar"
3397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398     break 2
3399   fi
3400 done
3401 done
3402
3403 fi
3404 fi
3405 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3406 if test -n "$ac_ct_AR"; then
3407   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3408 echo "${ECHO_T}$ac_ct_AR" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414   AR=$ac_ct_AR
3415 else
3416   AR="$ac_cv_prog_AR"
3417 fi
3418
3419   if test -n "$ac_tool_prefix"; then
3420   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3422 echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3424 if test "${ac_cv_prog_RANLIB+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   if test -n "$RANLIB"; then
3428   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443
3444 fi
3445 fi
3446 RANLIB=$ac_cv_prog_RANLIB
3447 if test -n "$RANLIB"; then
3448   echo "$as_me:$LINENO: result: $RANLIB" >&5
3449 echo "${ECHO_T}$RANLIB" >&6
3450 else
3451   echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6
3453 fi
3454
3455 fi
3456 if test -z "$ac_cv_prog_RANLIB"; then
3457   ac_ct_RANLIB=$RANLIB
3458   # Extract the first word of "ranlib", so it can be a program name with args.
3459 set dummy ranlib; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   if test -n "$ac_ct_RANLIB"; then
3466   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471   IFS=$as_save_IFS
3472   test -z "$as_dir" && as_dir=.
3473   for ac_exec_ext in '' $ac_executable_extensions; do
3474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475     ac_cv_prog_ac_ct_RANLIB="ranlib"
3476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480 done
3481
3482   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3483 fi
3484 fi
3485 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3486 if test -n "$ac_ct_RANLIB"; then
3487   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3488 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3489 else
3490   echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3492 fi
3493
3494   RANLIB=$ac_ct_RANLIB
3495 else
3496   RANLIB="$ac_cv_prog_RANLIB"
3497 fi
3498
3499
3500   echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3501 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3502     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3503 if test "${enable_maintainer_mode+set}" = set; then
3504   enableval="$enable_maintainer_mode"
3505   USE_MAINTAINER_MODE=$enableval
3506 else
3507   USE_MAINTAINER_MODE=no
3508 fi;
3509   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3510 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3511
3512
3513 if test $USE_MAINTAINER_MODE = yes; then
3514   MAINTAINER_MODE_TRUE=
3515   MAINTAINER_MODE_FALSE='#'
3516 else
3517   MAINTAINER_MODE_TRUE='#'
3518   MAINTAINER_MODE_FALSE=
3519 fi
3520
3521   MAINT=$MAINTAINER_MODE_TRUE
3522
3523
3524
3525   # Set up safe default values for all subsequent AM_CONDITIONAL tests.
3526   need_libmath=no
3527   enable_wchar_t=no
3528   #enable_libstdcxx_debug=no
3529   #enable_libstdcxx_pch=no
3530   #enable_cheaders=c
3531   #c_compatibility=no
3532   #enable_abi_check=no
3533   #enable_symvers=no
3534
3535   # Find platform-specific directories containing configuration info.
3536   # Also possibly modify flags used elsewhere, as needed by the platform.
3537
3538   . $glibcxx_srcdir/configure.host
3539   { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3540 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3541   { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3542 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3543
3544
3545
3546 #AC_MSG_NOTICE([====== Starting libtool configuration])
3547
3548 # Check whether --enable-shared or --disable-shared was given.
3549 if test "${enable_shared+set}" = set; then
3550   enableval="$enable_shared"
3551   p=${PACKAGE-default}
3552 case $enableval in
3553 yes) enable_shared=yes ;;
3554 no) enable_shared=no ;;
3555 *)
3556   enable_shared=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_shared=yes
3562     fi
3563   done
3564   IFS="$ac_save_ifs"
3565   ;;
3566 esac
3567 else
3568   enable_shared=yes
3569 fi;
3570 # Check whether --enable-static or --disable-static was given.
3571 if test "${enable_static+set}" = set; then
3572   enableval="$enable_static"
3573   p=${PACKAGE-default}
3574 case $enableval in
3575 yes) enable_static=yes ;;
3576 no) enable_static=no ;;
3577 *)
3578   enable_static=no
3579   # Look at the argument we got.  We use all the common list separators.
3580   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3581   for pkg in $enableval; do
3582     if test "X$pkg" = "X$p"; then
3583       enable_static=yes
3584     fi
3585   done
3586   IFS="$ac_save_ifs"
3587   ;;
3588 esac
3589 else
3590   enable_static=yes
3591 fi;
3592 # Check whether --enable-fast-install or --disable-fast-install was given.
3593 if test "${enable_fast_install+set}" = set; then
3594   enableval="$enable_fast_install"
3595   p=${PACKAGE-default}
3596 case $enableval in
3597 yes) enable_fast_install=yes ;;
3598 no) enable_fast_install=no ;;
3599 *)
3600   enable_fast_install=no
3601   # Look at the argument we got.  We use all the common list separators.
3602   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3603   for pkg in $enableval; do
3604     if test "X$pkg" = "X$p"; then
3605       enable_fast_install=yes
3606     fi
3607   done
3608   IFS="$ac_save_ifs"
3609   ;;
3610 esac
3611 else
3612   enable_fast_install=yes
3613 fi;
3614
3615 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3616 if test "${with_gnu_ld+set}" = set; then
3617   withval="$with_gnu_ld"
3618   test "$withval" = no || with_gnu_ld=yes
3619 else
3620   with_gnu_ld=no
3621 fi;
3622 ac_prog=ld
3623 if test "$GCC" = yes; then
3624   # Check if gcc -print-prog-name=ld gives a path.
3625   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3626 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3627   case $host in
3628   *-*-mingw*)
3629     # gcc leaves a trailing carriage return which upsets mingw
3630     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3631   *)
3632     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3633   esac
3634   case $ac_prog in
3635     # Accept absolute paths.
3636     [\\/]* | [A-Za-z]:[\\/]*)
3637       re_direlt='/[^/][^/]*/\.\./'
3638       # Canonicalize the path of ld
3639       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3640       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3641         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3642       done
3643       test -z "$LD" && LD="$ac_prog"
3644       ;;
3645   "")
3646     # If it fails, then pretend we aren't using GCC.
3647     ac_prog=ld
3648     ;;
3649   *)
3650     # If it is relative, then search for the first ld in PATH.
3651     with_gnu_ld=unknown
3652     ;;
3653   esac
3654 elif test "$with_gnu_ld" = yes; then
3655   echo "$as_me:$LINENO: checking for GNU ld" >&5
3656 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3657 else
3658   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3659 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3660 fi
3661 if test "${lt_cv_path_LD+set}" = set; then
3662   echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664   if test -z "$LD"; then
3665   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3666   for ac_dir in $PATH; do
3667     test -z "$ac_dir" && ac_dir=.
3668     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3669       lt_cv_path_LD="$ac_dir/$ac_prog"
3670       # Check to see if the program is GNU ld.  I'd rather use --version,
3671       # but apparently some GNU ld's only accept -v.
3672       # Break only if it was the GNU/non-GNU ld that we prefer.
3673       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3674         test "$with_gnu_ld" != no && break
3675       else
3676         test "$with_gnu_ld" != yes && break
3677       fi
3678     fi
3679   done
3680   IFS="$ac_save_ifs"
3681 else
3682   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3683 fi
3684 fi
3685
3686 LD="$lt_cv_path_LD"
3687 if test -n "$LD"; then
3688   echo "$as_me:$LINENO: result: $LD" >&5
3689 echo "${ECHO_T}$LD" >&6
3690 else
3691   echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3693 fi
3694 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3695 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3696    { (exit 1); exit 1; }; }
3697 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3698 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3699 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3700   echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3703 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3704   lt_cv_prog_gnu_ld=yes
3705 else
3706   lt_cv_prog_gnu_ld=no
3707 fi
3708 fi
3709 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3710 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3711 with_gnu_ld=$lt_cv_prog_gnu_ld
3712
3713
3714 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3715 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3716 if test "${lt_cv_ld_reload_flag+set}" = set; then
3717   echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719   lt_cv_ld_reload_flag='-r'
3720 fi
3721 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3722 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3723 reload_flag=$lt_cv_ld_reload_flag
3724 test -n "$reload_flag" && reload_flag=" $reload_flag"
3725
3726 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3727 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3728 if test "${lt_cv_path_NM+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   if test -n "$NM"; then
3732   # Let the user override the test.
3733   lt_cv_path_NM="$NM"
3734 else
3735   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3736   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3737     test -z "$ac_dir" && ac_dir=.
3738     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3739     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3740       # Check to see if the nm accepts a BSD-compat flag.
3741       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3742       #   nm: unknown option "B" ignored
3743       # Tru64's nm complains that /dev/null is an invalid object file
3744       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3745         lt_cv_path_NM="$tmp_nm -B"
3746         break
3747       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3748         lt_cv_path_NM="$tmp_nm -p"
3749         break
3750       else
3751         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3752         continue # so that we can try to find one that supports BSD flags
3753       fi
3754     fi
3755   done
3756   IFS="$ac_save_ifs"
3757   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3758 fi
3759 fi
3760
3761 NM="$lt_cv_path_NM"
3762 echo "$as_me:$LINENO: result: $NM" >&5
3763 echo "${ECHO_T}$NM" >&6
3764
3765 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3766 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3767 if test "${lt_cv_deplibs_check_method+set}" = set; then
3768   echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770   lt_cv_file_magic_cmd='$MAGIC_CMD'
3771 lt_cv_file_magic_test_file=
3772 lt_cv_deplibs_check_method='unknown'
3773 # Need to set the preceding variable on all platforms that support
3774 # interlibrary dependencies.
3775 # 'none' -- dependencies not supported.
3776 # `unknown' -- same as none, but documents that we really don't know.
3777 # 'pass_all' -- all dependencies passed with no checks.
3778 # 'test_compile' -- check by making test program.
3779 # 'file_magic [regex]' -- check by looking for files in library path
3780 # which responds to the $file_magic_cmd with a given egrep regex.
3781 # If you have `file' or equivalent on your system and you're not sure
3782 # whether `pass_all' will *always* work, you probably want this one.
3783
3784 case $host_os in
3785 aix*)
3786   lt_cv_deplibs_check_method=pass_all
3787   ;;
3788
3789 beos*)
3790   lt_cv_deplibs_check_method=pass_all
3791   ;;
3792
3793 bsdi4*)
3794   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3795   lt_cv_file_magic_cmd='/usr/bin/file -L'
3796   lt_cv_file_magic_test_file=/shlib/libc.so
3797   ;;
3798
3799 cygwin* | mingw* |pw32*)
3800   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3801   lt_cv_file_magic_cmd='$OBJDUMP -f'
3802   ;;
3803
3804 darwin* | rhapsody*)
3805   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3806   lt_cv_file_magic_cmd='/usr/bin/file -L'
3807   case "$host_os" in
3808   rhapsody* | darwin1.012)
3809     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3810     ;;
3811   *) # Darwin 1.3 on
3812     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3813     ;;
3814   esac
3815   ;;
3816
3817 freebsd* )
3818   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3819     case $host_cpu in
3820     i*86 )
3821       # Not sure whether the presence of OpenBSD here was a mistake.
3822       # Let's accept both of them until this is cleared up.
3823       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3824       lt_cv_file_magic_cmd=/usr/bin/file
3825       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3826       ;;
3827     esac
3828   else
3829     lt_cv_deplibs_check_method=pass_all
3830   fi
3831   ;;
3832
3833 gnu*)
3834   lt_cv_deplibs_check_method=pass_all
3835   ;;
3836
3837 hpux10.20*|hpux11*)
3838   case $host_cpu in
3839   hppa*)
3840     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3841     lt_cv_file_magic_cmd=/usr/bin/file
3842     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3843     ;;
3844   ia64*)
3845     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3846     lt_cv_file_magic_cmd=/usr/bin/file
3847     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3848     ;;
3849   esac
3850   ;;
3851
3852 irix5* | irix6*)
3853   case $host_os in
3854   irix5*)
3855     # this will be overridden with pass_all, but let us keep it just in case
3856     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3857     ;;
3858   *)
3859     case $LD in
3860     *-32|*"-32 ") libmagic=32-bit;;
3861     *-n32|*"-n32 ") libmagic=N32;;
3862     *-64|*"-64 ") libmagic=64-bit;;
3863     *) libmagic=never-match;;
3864     esac
3865     # this will be overridden with pass_all, but let us keep it just in case
3866     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3867     ;;
3868   esac
3869   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3870   lt_cv_deplibs_check_method=pass_all
3871   ;;
3872
3873 # This must be Linux ELF.
3874 linux-gnu*)
3875   case $host_cpu in
3876   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3877     lt_cv_deplibs_check_method=pass_all ;;
3878   *)
3879     # glibc up to 2.1.1 does not perform some relocations on ARM
3880     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3881   esac
3882   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3883   ;;
3884
3885 netbsd*)
3886   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3887     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3888   else
3889     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3890   fi
3891   ;;
3892
3893 newsos6)
3894   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3895   lt_cv_file_magic_cmd=/usr/bin/file
3896   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3897   ;;
3898
3899 osf3* | osf4* | osf5*)
3900   # this will be overridden with pass_all, but let us keep it just in case
3901   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3902   lt_cv_file_magic_test_file=/shlib/libc.so
3903   lt_cv_deplibs_check_method=pass_all
3904   ;;
3905
3906 sco3.2v5*)
3907   lt_cv_deplibs_check_method=pass_all
3908   ;;
3909
3910 solaris*)
3911   lt_cv_deplibs_check_method=pass_all
3912   lt_cv_file_magic_test_file=/lib/libc.so
3913   ;;
3914
3915 sysv5uw[78]* | sysv4*uw2*)
3916   lt_cv_deplibs_check_method=pass_all
3917   ;;
3918
3919 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3920   case $host_vendor in
3921   ncr)
3922     lt_cv_deplibs_check_method=pass_all
3923     ;;
3924   motorola)
3925     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]'
3926     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3927     ;;
3928   esac
3929   ;;
3930 esac
3931
3932 fi
3933 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3934 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3935 file_magic_cmd=$lt_cv_file_magic_cmd
3936 deplibs_check_method=$lt_cv_deplibs_check_method
3937
3938
3939
3940
3941 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3942
3943 # Only perform the check for file, if the check method requires it
3944 case $deplibs_check_method in
3945 file_magic*)
3946   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3947     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3948 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3949 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   case $MAGIC_CMD in
3953   /*)
3954   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3955   ;;
3956   ?:/*)
3957   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3958   ;;
3959   *)
3960   ac_save_MAGIC_CMD="$MAGIC_CMD"
3961   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3962   ac_dummy="/usr/bin:$PATH"
3963   for ac_dir in $ac_dummy; do
3964     test -z "$ac_dir" && ac_dir=.
3965     if test -f $ac_dir/${ac_tool_prefix}file; then
3966       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3967       if test -n "$file_magic_test_file"; then
3968         case $deplibs_check_method in
3969         "file_magic "*)
3970           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3971           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3972           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3973             egrep "$file_magic_regex" > /dev/null; then
3974             :
3975           else
3976             cat <<EOF 1>&2
3977
3978 *** Warning: the command libtool uses to detect shared libraries,
3979 *** $file_magic_cmd, produces output that libtool cannot recognize.
3980 *** The result is that libtool may fail to recognize shared libraries
3981 *** as such.  This will affect the creation of libtool libraries that
3982 *** depend on shared libraries, but programs linked with such libtool
3983 *** libraries will work regardless of this problem.  Nevertheless, you
3984 *** may want to report the problem to your system manager and/or to
3985 *** bug-libtool@gnu.org
3986
3987 EOF
3988           fi ;;
3989         esac
3990       fi
3991       break
3992     fi
3993   done
3994   IFS="$ac_save_ifs"
3995   MAGIC_CMD="$ac_save_MAGIC_CMD"
3996   ;;
3997 esac
3998 fi
3999
4000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4001 if test -n "$MAGIC_CMD"; then
4002   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4003 echo "${ECHO_T}$MAGIC_CMD" >&6
4004 else
4005   echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4007 fi
4008
4009 if test -z "$lt_cv_path_MAGIC_CMD"; then
4010   if test -n "$ac_tool_prefix"; then
4011     echo "$as_me:$LINENO: checking for file" >&5
4012 echo $ECHO_N "checking for file... $ECHO_C" >&6
4013 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   case $MAGIC_CMD in
4017   /*)
4018   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4019   ;;
4020   ?:/*)
4021   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4022   ;;
4023   *)
4024   ac_save_MAGIC_CMD="$MAGIC_CMD"
4025   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4026   ac_dummy="/usr/bin:$PATH"
4027   for ac_dir in $ac_dummy; do
4028     test -z "$ac_dir" && ac_dir=.
4029     if test -f $ac_dir/file; then
4030       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4031       if test -n "$file_magic_test_file"; then
4032         case $deplibs_check_method in
4033         "file_magic "*)
4034           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4035           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4036           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4037             egrep "$file_magic_regex" > /dev/null; then
4038             :
4039           else
4040             cat <<EOF 1>&2
4041
4042 *** Warning: the command libtool uses to detect shared libraries,
4043 *** $file_magic_cmd, produces output that libtool cannot recognize.
4044 *** The result is that libtool may fail to recognize shared libraries
4045 *** as such.  This will affect the creation of libtool libraries that
4046 *** depend on shared libraries, but programs linked with such libtool
4047 *** libraries will work regardless of this problem.  Nevertheless, you
4048 *** may want to report the problem to your system manager and/or to
4049 *** bug-libtool@gnu.org
4050
4051 EOF
4052           fi ;;
4053         esac
4054       fi
4055       break
4056     fi
4057   done
4058   IFS="$ac_save_ifs"
4059   MAGIC_CMD="$ac_save_MAGIC_CMD"
4060   ;;
4061 esac
4062 fi
4063
4064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4065 if test -n "$MAGIC_CMD"; then
4066   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4067 echo "${ECHO_T}$MAGIC_CMD" >&6
4068 else
4069   echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4071 fi
4072
4073   else
4074     MAGIC_CMD=:
4075   fi
4076 fi
4077
4078   fi
4079   ;;
4080 esac
4081
4082 if test -n "$ac_tool_prefix"; then
4083   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4084 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_RANLIB+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   if test -n "$RANLIB"; then
4091   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096   IFS=$as_save_IFS
4097   test -z "$as_dir" && as_dir=.
4098   for ac_exec_ext in '' $ac_executable_extensions; do
4099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102     break 2
4103   fi
4104 done
4105 done
4106
4107 fi
4108 fi
4109 RANLIB=$ac_cv_prog_RANLIB
4110 if test -n "$RANLIB"; then
4111   echo "$as_me:$LINENO: result: $RANLIB" >&5
4112 echo "${ECHO_T}$RANLIB" >&6
4113 else
4114   echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4116 fi
4117
4118 fi
4119 if test -z "$ac_cv_prog_RANLIB"; then
4120   ac_ct_RANLIB=$RANLIB
4121   # Extract the first word of "ranlib", so it can be a program name with args.
4122 set dummy ranlib; ac_word=$2
4123 echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   if test -n "$ac_ct_RANLIB"; then
4129   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136   for ac_exec_ext in '' $ac_executable_extensions; do
4137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138     ac_cv_prog_ac_ct_RANLIB="ranlib"
4139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140     break 2
4141   fi
4142 done
4143 done
4144
4145   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4146 fi
4147 fi
4148 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4149 if test -n "$ac_ct_RANLIB"; then
4150   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4151 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4152 else
4153   echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6
4155 fi
4156
4157   RANLIB=$ac_ct_RANLIB
4158 else
4159   RANLIB="$ac_cv_prog_RANLIB"
4160 fi
4161
4162 if test -n "$ac_tool_prefix"; then
4163   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4164 set dummy ${ac_tool_prefix}strip; ac_word=$2
4165 echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167 if test "${ac_cv_prog_STRIP+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   if test -n "$STRIP"; then
4171   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176   IFS=$as_save_IFS
4177   test -z "$as_dir" && as_dir=.
4178   for ac_exec_ext in '' $ac_executable_extensions; do
4179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182     break 2
4183   fi
4184 done
4185 done
4186
4187 fi
4188 fi
4189 STRIP=$ac_cv_prog_STRIP
4190 if test -n "$STRIP"; then
4191   echo "$as_me:$LINENO: result: $STRIP" >&5
4192 echo "${ECHO_T}$STRIP" >&6
4193 else
4194   echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4196 fi
4197
4198 fi
4199 if test -z "$ac_cv_prog_STRIP"; then
4200   ac_ct_STRIP=$STRIP
4201   # Extract the first word of "strip", so it can be a program name with args.
4202 set dummy strip; ac_word=$2
4203 echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4205 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4206   echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208   if test -n "$ac_ct_STRIP"; then
4209   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4213 do
4214   IFS=$as_save_IFS
4215   test -z "$as_dir" && as_dir=.
4216   for ac_exec_ext in '' $ac_executable_extensions; do
4217   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4218     ac_cv_prog_ac_ct_STRIP="strip"
4219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220     break 2
4221   fi
4222 done
4223 done
4224
4225   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4226 fi
4227 fi
4228 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4229 if test -n "$ac_ct_STRIP"; then
4230   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4231 echo "${ECHO_T}$ac_ct_STRIP" >&6
4232 else
4233   echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6
4235 fi
4236
4237   STRIP=$ac_ct_STRIP
4238 else
4239   STRIP="$ac_cv_prog_STRIP"
4240 fi
4241
4242
4243 # Check for any special flags to pass to ltconfig.
4244 libtool_flags="--cache-file=$cache_file"
4245 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4246 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4247 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4248 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4249 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4250
4251
4252 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4253 if test "${enable_libtool_lock+set}" = set; then
4254   enableval="$enable_libtool_lock"
4255
4256 fi;
4257 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4258 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4259
4260
4261 # Check whether --with-pic or --without-pic was given.
4262 if test "${with_pic+set}" = set; then
4263   withval="$with_pic"
4264   pic_mode="$withval"
4265 else
4266   pic_mode=default
4267 fi;
4268 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4269 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4270
4271 # Some flags need to be propagated to the compiler or linker for good
4272 # libtool support.
4273 case $host in
4274 *-*-irix6*)
4275   # Find out which ABI we are using.
4276   echo '#line 4276 "configure"' > conftest.$ac_ext
4277   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4278   (eval $ac_compile) 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }; then
4282    if test "$lt_cv_prog_gnu_ld" = yes; then
4283     case `/usr/bin/file conftest.$ac_objext` in
4284     *32-bit*)
4285       LD="${LD-ld} -melf32bsmip"
4286       ;;
4287     *N32*)
4288       LD="${LD-ld} -melf32bmipn32"
4289       ;;
4290     *64-bit*)
4291       LD="${LD-ld} -melf64bmip"
4292       ;;
4293     esac
4294    else
4295     case `/usr/bin/file conftest.$ac_objext` in
4296     *32-bit*)
4297       LD="${LD-ld} -32"
4298       ;;
4299     *N32*)
4300       LD="${LD-ld} -n32"
4301       ;;
4302     *64-bit*)
4303       LD="${LD-ld} -64"
4304       ;;
4305     esac
4306    fi
4307   fi
4308   rm -rf conftest*
4309   ;;
4310
4311 ia64-*-hpux*)
4312   # Find out which ABI we are using.
4313   echo 'int i;' > conftest.$ac_ext
4314   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315   (eval $ac_compile) 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; then
4319     case "`/usr/bin/file conftest.o`" in
4320     *ELF-32*)
4321       HPUX_IA64_MODE="32"
4322       ;;
4323     *ELF-64*)
4324       HPUX_IA64_MODE="64"
4325       ;;
4326     esac
4327   fi
4328   rm -rf conftest*
4329   ;;
4330
4331 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4332   # Find out which ABI we are using.
4333   echo 'int i;' > conftest.$ac_ext
4334   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335   (eval $ac_compile) 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); }; then
4339     case "`/usr/bin/file conftest.o`" in
4340     *32-bit*)
4341       case $host in
4342         x86_64-*linux*)
4343           LD="${LD-ld} -m elf_i386"
4344           ;;
4345         ppc64-*linux*)
4346           LD="${LD-ld} -m elf32ppclinux"
4347           ;;
4348         s390x-*linux*)
4349           LD="${LD-ld} -m elf_s390"
4350           ;;
4351         sparc64-*linux*)
4352           LD="${LD-ld} -m elf32_sparc"
4353           ;;
4354       esac
4355       ;;
4356     *64-bit*)
4357       case $host in
4358         x86_64-*linux*)
4359           LD="${LD-ld} -m elf_x86_64"
4360           ;;
4361         ppc*-*linux*|powerpc*-*linux*)
4362           LD="${LD-ld} -m elf64ppc"
4363           ;;
4364         s390*-*linux*)
4365           LD="${LD-ld} -m elf64_s390"
4366           ;;
4367         sparc*-*linux*)
4368           LD="${LD-ld} -m elf64_sparc"
4369           ;;
4370       esac
4371       ;;
4372     esac
4373   fi
4374   rm -rf conftest*
4375   ;;
4376
4377 *-*-sco3.2v5*)
4378   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4379   SAVE_CFLAGS="$CFLAGS"
4380   CFLAGS="$CFLAGS -belf"
4381   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4382 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4383 if test "${lt_cv_cc_needs_belf+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386
4387
4388      ac_ext=c
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393
4394      cat >conftest.$ac_ext <<_ACEOF
4395 #line $LINENO "configure"
4396 /* confdefs.h.  */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h.  */
4401
4402 int
4403 main ()
4404 {
4405
4406   ;
4407   return 0;
4408 }
4409 _ACEOF
4410 rm -f conftest.$ac_objext conftest$ac_exeext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4412   (eval $ac_link) 2>&5
4413   ac_status=$?
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); } &&
4416          { ac_try='test -s conftest$ac_exeext'
4417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418   (eval $ac_try) 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }; }; then
4422   lt_cv_cc_needs_belf=yes
4423 else
4424   echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4426
4427 lt_cv_cc_needs_belf=no
4428 fi
4429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4430      ac_ext=c
4431 ac_cpp='$CPP $CPPFLAGS'
4432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435
4436 fi
4437 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4438 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4439   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4440     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4441     CFLAGS="$SAVE_CFLAGS"
4442   fi
4443   ;;
4444
4445
4446 esac
4447
4448
4449 # Save cache, so that ltconfig can load it
4450 cat >confcache <<\_ACEOF
4451 # This file is a shell script that caches the results of configure
4452 # tests run on this system so they can be shared between configure
4453 # scripts and configure runs, see configure's option --config-cache.
4454 # It is not useful on other systems.  If it contains results you don't
4455 # want to keep, you may remove or edit it.
4456 #
4457 # config.status only pays attention to the cache file if you give it
4458 # the --recheck option to rerun configure.
4459 #
4460 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4461 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4462 # following values.
4463
4464 _ACEOF
4465
4466 # The following way of writing the cache mishandles newlines in values,
4467 # but we know of no workaround that is simple, portable, and efficient.
4468 # So, don't put newlines in cache variables' values.
4469 # Ultrix sh set writes to stderr and can't be redirected directly,
4470 # and sets the high bit in the cache file unless we assign to the vars.
4471 {
4472   (set) 2>&1 |
4473     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4474     *ac_space=\ *)
4475       # `set' does not quote correctly, so add quotes (double-quote
4476       # substitution turns \\\\ into \\, and sed turns \\ into \).
4477       sed -n \
4478         "s/'/'\\\\''/g;
4479           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4480       ;;
4481     *)
4482       # `set' quotes correctly as required by POSIX, so do not add quotes.
4483       sed -n \
4484         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4485       ;;
4486     esac;
4487 } |
4488   sed '
4489      t clear
4490      : clear
4491      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4492      t end
4493      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4494      : end' >>confcache
4495 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4496   if test -w $cache_file; then
4497     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4498     cat confcache >$cache_file
4499   else
4500     echo "not updating unwritable cache $cache_file"
4501   fi
4502 fi
4503 rm -f confcache
4504
4505 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4506 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4507 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4508 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4509 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4510 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4511 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4512 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4513 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4514 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4515 echo "$as_me: error: libtool configure failed" >&2;}
4516    { (exit 1); exit 1; }; }
4517
4518 # Reload cache, that may have been modified by ltconfig
4519 if test -r "$cache_file"; then
4520   # Some versions of bash will fail to source /dev/null (special
4521   # files actually), so we avoid doing that.
4522   if test -f "$cache_file"; then
4523     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4524 echo "$as_me: loading cache $cache_file" >&6;}
4525     case $cache_file in
4526       [\\/]* | ?:[\\/]* ) . $cache_file;;
4527       *)                      . ./$cache_file;;
4528     esac
4529   fi
4530 else
4531   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4532 echo "$as_me: creating cache $cache_file" >&6;}
4533   >$cache_file
4534 fi
4535
4536
4537 # This can be used to rebuild libtool when needed
4538 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4539
4540 # Always use our own libtool.
4541 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4542
4543 # Redirect the config.log output again, so that the ltconfig log is not
4544 # clobbered by the next message.
4545 exec 5>>./config.log
4546
4547 ac_ext=cc
4548 ac_cpp='$CXXCPP $CPPFLAGS'
4549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4552 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4553 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4554 if test -z "$CXXCPP"; then
4555   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558       # Double quotes because CXXCPP needs to be expanded
4559     for CXXCPP in "$CXX -E" "/lib/cpp"
4560     do
4561       ac_preproc_ok=false
4562 for ac_cxx_preproc_warn_flag in '' yes
4563 do
4564   # Use a header file that comes with gcc, so configuring glibc
4565   # with a fresh cross-compiler works.
4566   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4567   # <limits.h> exists even on freestanding compilers.
4568   # On the NeXT, cc -E runs the code through the compiler's parser,
4569   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
4578 # include <limits.h>
4579 #else
4580 # include <assert.h>
4581 #endif
4582                      Syntax error
4583 _ACEOF
4584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4585   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4586   ac_status=$?
4587   grep -v '^ *+' conftest.er1 >conftest.err
4588   rm -f conftest.er1
4589   cat conftest.err >&5
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } >/dev/null; then
4592   if test -s conftest.err; then
4593     ac_cpp_err=$ac_cxx_preproc_warn_flag
4594   else
4595     ac_cpp_err=
4596   fi
4597 else
4598   ac_cpp_err=yes
4599 fi
4600 if test -z "$ac_cpp_err"; then
4601   :
4602 else
4603   echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606   # Broken: fails on valid input.
4607 continue
4608 fi
4609 rm -f conftest.err conftest.$ac_ext
4610
4611   # OK, works on sane cases.  Now check whether non-existent headers
4612   # can be detected and how.
4613   cat >conftest.$ac_ext <<_ACEOF
4614 #line $LINENO "configure"
4615 /* confdefs.h.  */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h.  */
4620 #include <ac_nonexistent.h>
4621 _ACEOF
4622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4623   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4624   ac_status=$?
4625   grep -v '^ *+' conftest.er1 >conftest.err
4626   rm -f conftest.er1
4627   cat conftest.err >&5
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); } >/dev/null; then
4630   if test -s conftest.err; then
4631     ac_cpp_err=$ac_cxx_preproc_warn_flag
4632   else
4633     ac_cpp_err=
4634   fi
4635 else
4636   ac_cpp_err=yes
4637 fi
4638 if test -z "$ac_cpp_err"; then
4639   # Broken: success on invalid input.
4640 continue
4641 else
4642   echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645   # Passes both tests.
4646 ac_preproc_ok=:
4647 break
4648 fi
4649 rm -f conftest.err conftest.$ac_ext
4650
4651 done
4652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4653 rm -f conftest.err conftest.$ac_ext
4654 if $ac_preproc_ok; then
4655   break
4656 fi
4657
4658     done
4659     ac_cv_prog_CXXCPP=$CXXCPP
4660
4661 fi
4662   CXXCPP=$ac_cv_prog_CXXCPP
4663 else
4664   ac_cv_prog_CXXCPP=$CXXCPP
4665 fi
4666 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4667 echo "${ECHO_T}$CXXCPP" >&6
4668 ac_preproc_ok=false
4669 for ac_cxx_preproc_warn_flag in '' yes
4670 do
4671   # Use a header file that comes with gcc, so configuring glibc
4672   # with a fresh cross-compiler works.
4673   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4674   # <limits.h> exists even on freestanding compilers.
4675   # On the NeXT, cc -E runs the code through the compiler's parser,
4676   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
4685 # include <limits.h>
4686 #else
4687 # include <assert.h>
4688 #endif
4689                      Syntax error
4690 _ACEOF
4691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4693   ac_status=$?
4694   grep -v '^ *+' conftest.er1 >conftest.err
4695   rm -f conftest.er1
4696   cat conftest.err >&5
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); } >/dev/null; then
4699   if test -s conftest.err; then
4700     ac_cpp_err=$ac_cxx_preproc_warn_flag
4701   else
4702     ac_cpp_err=
4703   fi
4704 else
4705   ac_cpp_err=yes
4706 fi
4707 if test -z "$ac_cpp_err"; then
4708   :
4709 else
4710   echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4712
4713   # Broken: fails on valid input.
4714 continue
4715 fi
4716 rm -f conftest.err conftest.$ac_ext
4717
4718   # OK, works on sane cases.  Now check whether non-existent headers
4719   # can be detected and how.
4720   cat >conftest.$ac_ext <<_ACEOF
4721 #line $LINENO "configure"
4722 /* confdefs.h.  */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h.  */
4727 #include <ac_nonexistent.h>
4728 _ACEOF
4729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4730   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4731   ac_status=$?
4732   grep -v '^ *+' conftest.er1 >conftest.err
4733   rm -f conftest.er1
4734   cat conftest.err >&5
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); } >/dev/null; then
4737   if test -s conftest.err; then
4738     ac_cpp_err=$ac_cxx_preproc_warn_flag
4739   else
4740     ac_cpp_err=
4741   fi
4742 else
4743   ac_cpp_err=yes
4744 fi
4745 if test -z "$ac_cpp_err"; then
4746   # Broken: success on invalid input.
4747 continue
4748 else
4749   echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4751
4752   # Passes both tests.
4753 ac_preproc_ok=:
4754 break
4755 fi
4756 rm -f conftest.err conftest.$ac_ext
4757
4758 done
4759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4760 rm -f conftest.err conftest.$ac_ext
4761 if $ac_preproc_ok; then
4762   :
4763 else
4764   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4765 See \`config.log' for more details." >&5
4766 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4767 See \`config.log' for more details." >&2;}
4768    { (exit 1); exit 1; }; }
4769 fi
4770
4771 ac_ext=c
4772 ac_cpp='$CPP $CPPFLAGS'
4773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4776
4777
4778
4779 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4780 lt_save_CC="$CC"
4781 lt_save_CFLAGS="$CFLAGS"
4782 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4783 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4784 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4785 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4786 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4787 deplibs_check_method="$deplibs_check_method" \
4788 file_magic_cmd="$file_magic_cmd" \
4789 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4790 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4791 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4792 echo "$as_me: error: libtool tag configuration failed" >&2;}
4793    { (exit 1); exit 1; }; }
4794 CC="$lt_save_CC"
4795 CFLAGS="$lt_save_CFLAGS"
4796
4797 # Redirect the config.log output again, so that the ltconfig log is not
4798 # clobbered by the next message.
4799 exec 5>>./config.log
4800
4801
4802
4803
4804
4805
4806
4807
4808 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4809
4810 # Check for support bits and g++ features that don't require linking.
4811
4812   echo "$as_me:$LINENO: checking for exception model to use" >&5
4813 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
4814
4815
4816   ac_ext=cc
4817 ac_cpp='$CXXCPP $CPPFLAGS'
4818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4821
4822    # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4823 if test "${enable_sjlj_exceptions+set}" = set; then
4824   enableval="$enable_sjlj_exceptions"
4825
4826       case "$enableval" in
4827        yes|no|auto) ;;
4828        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
4829 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
4830    { (exit 1); exit 1; }; } ;;
4831                           esac
4832
4833 else
4834   enable_sjlj_exceptions=auto
4835 fi;
4836
4837
4838   if test $enable_sjlj_exceptions = auto; then
4839     # Botheration.  Now we've got to detect the exception model.  Link tests
4840     # against libgcc.a are problematic since we've not been given proper -L
4841     # bits for single-tree newlib and libgloss.
4842     #
4843     # Fake what AC_TRY_COMPILE does.  XXX Look at redoing this new-style.
4844     cat > conftest.$ac_ext << EOF
4845 #line 4845 "configure"
4846 struct S { ~S(); };
4847 void bar();
4848 void foo()
4849 {
4850   S s;
4851   bar();
4852 }
4853 EOF
4854     old_CXXFLAGS="$CXXFLAGS"
4855     CXXFLAGS=-S
4856     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857   (eval $ac_compile) 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); }; then
4861       if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4862         enable_sjlj_exceptions=yes
4863       elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4864         enable_sjlj_exceptions=no
4865       fi
4866     fi
4867     CXXFLAGS="$old_CXXFLAGS"
4868     rm -f conftest*
4869   fi
4870
4871   # This is a tad weird, for hysterical raisins.  We have to map enable/disable
4872   # to two different models.
4873   case $enable_sjlj_exceptions in
4874     yes)
4875
4876 cat >>confdefs.h <<\_ACEOF
4877 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
4878 _ACEOF
4879
4880       ac_exception_model_name=sjlj
4881       ;;
4882     no)
4883       ac_exception_model_name="call frame"
4884       ;;
4885     *)
4886       { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
4887 echo "$as_me: error: unable to detect exception model" >&2;}
4888    { (exit 1); exit 1; }; }
4889       ;;
4890   esac
4891  ac_ext=c
4892 ac_cpp='$CPP $CPPFLAGS'
4893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4896
4897  echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
4898 echo "${ECHO_T}$ac_exception_model_name" >&6
4899
4900
4901   echo "$as_me:$LINENO: checking for use of libunwind" >&5
4902 echo $ECHO_N "checking for use of libunwind... $ECHO_C" >&6
4903    # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4904 if test "${enable_libunwind_exceptions+set}" = set; then
4905   enableval="$enable_libunwind_exceptions"
4906
4907       case "$enableval" in
4908        yes|no) ;;
4909        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&5
4910 echo "$as_me: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&2;}
4911    { (exit 1); exit 1; }; } ;;
4912       esac
4913
4914 else
4915   enable_libunwind_exceptions=no
4916 fi;
4917
4918   echo "$as_me:$LINENO: result: $use_libunwind_exceptions" >&5
4919 echo "${ECHO_T}$use_libunwind_exceptions" >&6
4920   if test $enable_libunwind_exceptions = yes; then
4921     LIBUNWIND_FLAG="-lunwind"
4922   else
4923     LIBUNWIND_FLAG=""
4924   fi
4925
4926
4927
4928   echo "$as_me:$LINENO: checking for enabled PCH" >&5
4929 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
4930    # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
4931 if test "${enable_libstdcxx_pch+set}" = set; then
4932   enableval="$enable_libstdcxx_pch"
4933
4934       case "$enableval" in
4935        yes|no) ;;
4936        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
4937 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
4938    { (exit 1); exit 1; }; } ;;
4939       esac
4940
4941 else
4942   enable_libstdcxx_pch=yes
4943 fi;
4944
4945   echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
4946 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
4947
4948   if test $enable_libstdcxx_pch = yes; then
4949     echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
4950 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
4951 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
4952   echo $ECHO_N "(cached) $ECHO_C" >&6
4953 else
4954   ac_save_CXXFLAGS="$CXXFLAGS"
4955        CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
4956
4957
4958        ac_ext=cc
4959 ac_cpp='$CXXCPP $CPPFLAGS'
4960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4963
4964        echo '#include <math.h>' > conftest.h
4965        if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
4966                           -o conftest.h.gch 1>&5 2>&1 &&
4967                 echo '#error "pch failed"' > conftest.h &&
4968           echo '#include "conftest.h"' > conftest.cc &&
4969                $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
4970        then
4971          glibcxx_cv_prog_CXX_pch=yes
4972        else
4973          glibcxx_cv_prog_CXX_pch=no
4974        fi
4975        rm -f conftest*
4976        CXXFLAGS=$ac_save_CXXFLAGS
4977        ac_ext=c
4978 ac_cpp='$CPP $CPPFLAGS'
4979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982
4983
4984 fi
4985 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
4986 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
4987     enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
4988   fi
4989
4990
4991
4992 if test $enable_libstdcxx_pch = yes; then
4993   GLIBCXX_BUILD_PCH_TRUE=
4994   GLIBCXX_BUILD_PCH_FALSE='#'
4995 else
4996   GLIBCXX_BUILD_PCH_TRUE='#'
4997   GLIBCXX_BUILD_PCH_FALSE=
4998 fi
4999
5000   if test $enable_libstdcxx_pch = yes; then
5001     glibcxx_PCHFLAGS="-include bits/stdc++.h"
5002   else
5003     glibcxx_PCHFLAGS=""
5004   fi
5005
5006
5007
5008 # Enable all the variable C++ runtime options.
5009 # NB: C_MBCHAR must come early.
5010
5011   echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5012 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5013    # Check whether --enable-cstdio or --disable-cstdio was given.
5014 if test "${enable_cstdio+set}" = set; then
5015   enableval="$enable_cstdio"
5016
5017       case "$enableval" in
5018        stdio) ;;
5019        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5020 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5021    { (exit 1); exit 1; }; } ;;
5022                           esac
5023
5024 else
5025   enable_cstdio=stdio
5026 fi;
5027
5028
5029   # Now that libio has been removed, you can have any color you want as long
5030   # as it's black.  This is one big no-op until other packages are added, but
5031   # showing the framework never hurts.
5032   case ${enable_cstdio} in
5033     stdio)
5034       CSTDIO_H=config/io/c_io_stdio.h
5035       BASIC_FILE_H=config/io/basic_file_stdio.h
5036       BASIC_FILE_CC=config/io/basic_file_stdio.cc
5037       echo "$as_me:$LINENO: result: stdio" >&5
5038 echo "${ECHO_T}stdio" >&6
5039       ;;
5040   esac
5041
5042     FPOS_H=$fpos_include_dir
5043
5044
5045
5046
5047
5048
5049 ac_ext=c
5050 ac_cpp='$CPP $CPPFLAGS'
5051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5054 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5055 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5056 # On Suns, sometimes $CPP names a directory.
5057 if test -n "$CPP" && test -d "$CPP"; then
5058   CPP=
5059 fi
5060 if test -z "$CPP"; then
5061   if test "${ac_cv_prog_CPP+set}" = set; then
5062   echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064       # Double quotes because CPP needs to be expanded
5065     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5066     do
5067       ac_preproc_ok=false
5068 for ac_c_preproc_warn_flag in '' yes
5069 do
5070   # Use a header file that comes with gcc, so configuring glibc
5071   # with a fresh cross-compiler works.
5072   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5073   # <limits.h> exists even on freestanding compilers.
5074   # On the NeXT, cc -E runs the code through the compiler's parser,
5075   # not just through cpp. "Syntax error" is here to catch this case.
5076   cat >conftest.$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5078 /* confdefs.h.  */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h.  */
5083 #ifdef __STDC__
5084 # include <limits.h>
5085 #else
5086 # include <assert.h>
5087 #endif
5088                      Syntax error
5089 _ACEOF
5090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5092   ac_status=$?
5093   grep -v '^ *+' conftest.er1 >conftest.err
5094   rm -f conftest.er1
5095   cat conftest.err >&5
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); } >/dev/null; then
5098   if test -s conftest.err; then
5099     ac_cpp_err=$ac_c_preproc_warn_flag
5100   else
5101     ac_cpp_err=
5102   fi
5103 else
5104   ac_cpp_err=yes
5105 fi
5106 if test -z "$ac_cpp_err"; then
5107   :
5108 else
5109   echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112   # Broken: fails on valid input.
5113 continue
5114 fi
5115 rm -f conftest.err conftest.$ac_ext
5116
5117   # OK, works on sane cases.  Now check whether non-existent headers
5118   # can be detected and how.
5119   cat >conftest.$ac_ext <<_ACEOF
5120 #line $LINENO "configure"
5121 /* confdefs.h.  */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h.  */
5126 #include <ac_nonexistent.h>
5127 _ACEOF
5128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5130   ac_status=$?
5131   grep -v '^ *+' conftest.er1 >conftest.err
5132   rm -f conftest.er1
5133   cat conftest.err >&5
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); } >/dev/null; then
5136   if test -s conftest.err; then
5137     ac_cpp_err=$ac_c_preproc_warn_flag
5138   else
5139     ac_cpp_err=
5140   fi
5141 else
5142   ac_cpp_err=yes
5143 fi
5144 if test -z "$ac_cpp_err"; then
5145   # Broken: success on invalid input.
5146 continue
5147 else
5148   echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5150
5151   # Passes both tests.
5152 ac_preproc_ok=:
5153 break
5154 fi
5155 rm -f conftest.err conftest.$ac_ext
5156
5157 done
5158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5159 rm -f conftest.err conftest.$ac_ext
5160 if $ac_preproc_ok; then
5161   break
5162 fi
5163
5164     done
5165     ac_cv_prog_CPP=$CPP
5166
5167 fi
5168   CPP=$ac_cv_prog_CPP
5169 else
5170   ac_cv_prog_CPP=$CPP
5171 fi
5172 echo "$as_me:$LINENO: result: $CPP" >&5
5173 echo "${ECHO_T}$CPP" >&6
5174 ac_preproc_ok=false
5175 for ac_c_preproc_warn_flag in '' yes
5176 do
5177   # Use a header file that comes with gcc, so configuring glibc
5178   # with a fresh cross-compiler works.
5179   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5180   # <limits.h> exists even on freestanding compilers.
5181   # On the NeXT, cc -E runs the code through the compiler's parser,
5182   # not just through cpp. "Syntax error" is here to catch this case.
5183   cat >conftest.$ac_ext <<_ACEOF
5184 #line $LINENO "configure"
5185 /* confdefs.h.  */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h.  */
5190 #ifdef __STDC__
5191 # include <limits.h>
5192 #else
5193 # include <assert.h>
5194 #endif
5195                      Syntax error
5196 _ACEOF
5197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5198   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5199   ac_status=$?
5200   grep -v '^ *+' conftest.er1 >conftest.err
5201   rm -f conftest.er1
5202   cat conftest.err >&5
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); } >/dev/null; then
5205   if test -s conftest.err; then
5206     ac_cpp_err=$ac_c_preproc_warn_flag
5207   else
5208     ac_cpp_err=
5209   fi
5210 else
5211   ac_cpp_err=yes
5212 fi
5213 if test -z "$ac_cpp_err"; then
5214   :
5215 else
5216   echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5218
5219   # Broken: fails on valid input.
5220 continue
5221 fi
5222 rm -f conftest.err conftest.$ac_ext
5223
5224   # OK, works on sane cases.  Now check whether non-existent headers
5225   # can be detected and how.
5226   cat >conftest.$ac_ext <<_ACEOF
5227 #line $LINENO "configure"
5228 /* confdefs.h.  */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h.  */
5233 #include <ac_nonexistent.h>
5234 _ACEOF
5235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5236   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5237   ac_status=$?
5238   grep -v '^ *+' conftest.er1 >conftest.err
5239   rm -f conftest.er1
5240   cat conftest.err >&5
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); } >/dev/null; then
5243   if test -s conftest.err; then
5244     ac_cpp_err=$ac_c_preproc_warn_flag
5245   else
5246     ac_cpp_err=
5247   fi
5248 else
5249   ac_cpp_err=yes
5250 fi
5251 if test -z "$ac_cpp_err"; then
5252   # Broken: success on invalid input.
5253 continue
5254 else
5255   echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5257
5258   # Passes both tests.
5259 ac_preproc_ok=:
5260 break
5261 fi
5262 rm -f conftest.err conftest.$ac_ext
5263
5264 done
5265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5266 rm -f conftest.err conftest.$ac_ext
5267 if $ac_preproc_ok; then
5268   :
5269 else
5270   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5271 See \`config.log' for more details." >&5
5272 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5273 See \`config.log' for more details." >&2;}
5274    { (exit 1); exit 1; }; }
5275 fi
5276
5277 ac_ext=c
5278 ac_cpp='$CPP $CPPFLAGS'
5279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5282
5283
5284 echo "$as_me:$LINENO: checking for egrep" >&5
5285 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5286 if test "${ac_cv_prog_egrep+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5290     then ac_cv_prog_egrep='grep -E'
5291     else ac_cv_prog_egrep='egrep'
5292     fi
5293 fi
5294 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5295 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5296  EGREP=$ac_cv_prog_egrep
5297
5298
5299 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5300 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5301 if test "${ac_cv_header_stdc+set}" = set; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304   cat >conftest.$ac_ext <<_ACEOF
5305 #line $LINENO "configure"
5306 /* confdefs.h.  */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h.  */
5311 #include <stdlib.h>
5312 #include <stdarg.h>
5313 #include <string.h>
5314 #include <float.h>
5315
5316 int
5317 main ()
5318 {
5319
5320   ;
5321   return 0;
5322 }
5323 _ACEOF
5324 rm -f conftest.$ac_objext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5326   (eval $ac_compile) 2>&5
5327   ac_status=$?
5328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329   (exit $ac_status); } &&
5330          { ac_try='test -s conftest.$ac_objext'
5331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332   (eval $ac_try) 2>&5
5333   ac_status=$?
5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335   (exit $ac_status); }; }; then
5336   ac_cv_header_stdc=yes
5337 else
5338   echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5340
5341 ac_cv_header_stdc=no
5342 fi
5343 rm -f conftest.$ac_objext conftest.$ac_ext
5344
5345 if test $ac_cv_header_stdc = yes; then
5346   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5347   cat >conftest.$ac_ext <<_ACEOF
5348 #line $LINENO "configure"
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354 #include <string.h>
5355
5356 _ACEOF
5357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5358   $EGREP "memchr" >/dev/null 2>&1; then
5359   :
5360 else
5361   ac_cv_header_stdc=no
5362 fi
5363 rm -f conftest*
5364
5365 fi
5366
5367 if test $ac_cv_header_stdc = yes; then
5368   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5369   cat >conftest.$ac_ext <<_ACEOF
5370 #line $LINENO "configure"
5371 /* confdefs.h.  */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h.  */
5376 #include <stdlib.h>
5377
5378 _ACEOF
5379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5380   $EGREP "free" >/dev/null 2>&1; then
5381   :
5382 else
5383   ac_cv_header_stdc=no
5384 fi
5385 rm -f conftest*
5386
5387 fi
5388
5389 if test $ac_cv_header_stdc = yes; then
5390   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5391   if test "$cross_compiling" = yes; then
5392   :
5393 else
5394   cat >conftest.$ac_ext <<_ACEOF
5395 #line $LINENO "configure"
5396 /* confdefs.h.  */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h.  */
5401 #include <ctype.h>
5402 #if ((' ' & 0x0FF) == 0x020)
5403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5405 #else
5406 # define ISLOWER(c) \
5407                    (('a' <= (c) && (c) <= 'i') \
5408                      || ('j' <= (c) && (c) <= 'r') \
5409                      || ('s' <= (c) && (c) <= 'z'))
5410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5411 #endif
5412
5413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5414 int
5415 main ()
5416 {
5417   int i;
5418   for (i = 0; i < 256; i++)
5419     if (XOR (islower (i), ISLOWER (i))
5420         || toupper (i) != TOUPPER (i))
5421       exit(2);
5422   exit (0);
5423 }
5424 _ACEOF
5425 rm -f conftest$ac_exeext
5426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5427   (eval $ac_link) 2>&5
5428   ac_status=$?
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432   (eval $ac_try) 2>&5
5433   ac_status=$?
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); }; }; then
5436   :
5437 else
5438   echo "$as_me: program exited with status $ac_status" >&5
5439 echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5441
5442 ( exit $ac_status )
5443 ac_cv_header_stdc=no
5444 fi
5445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5446 fi
5447 fi
5448 fi
5449 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5450 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5451 if test $ac_cv_header_stdc = yes; then
5452
5453 cat >>confdefs.h <<\_ACEOF
5454 #define STDC_HEADERS 1
5455 _ACEOF
5456
5457 fi
5458
5459 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5470                   inttypes.h stdint.h unistd.h
5471 do
5472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5473 echo "$as_me:$LINENO: checking for $ac_header" >&5
5474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5476   echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478   cat >conftest.$ac_ext <<_ACEOF
5479 #line $LINENO "configure"
5480 /* confdefs.h.  */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h.  */
5485 $ac_includes_default
5486
5487 #include <$ac_header>
5488 _ACEOF
5489 rm -f conftest.$ac_objext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5491   (eval $ac_compile) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); } &&
5495          { ac_try='test -s conftest.$ac_objext'
5496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497   (eval $ac_try) 2>&5
5498   ac_status=$?
5499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); }; }; then
5501   eval "$as_ac_Header=yes"
5502 else
5503   echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506 eval "$as_ac_Header=no"
5507 fi
5508 rm -f conftest.$ac_objext conftest.$ac_ext
5509 fi
5510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5513   cat >>confdefs.h <<_ACEOF
5514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5515 _ACEOF
5516
5517 fi
5518
5519 done
5520
5521
5522
5523   echo "$as_me:$LINENO: checking for C locale to use" >&5
5524 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5525    # Check whether --enable-clocale or --disable-clocale was given.
5526 if test "${enable_clocale+set}" = set; then
5527   enableval="$enable_clocale"
5528
5529       case "$enableval" in
5530        generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5531        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5532 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5533    { (exit 1); exit 1; }; } ;;
5534                           esac
5535
5536 else
5537   enable_clocale=auto
5538 fi;
5539
5540
5541   # If they didn't use this option switch, or if they specified --enable
5542   # with no specific model, we'll have to look for one.  If they
5543   # specified --disable (???), do likewise.
5544   if test $enable_clocale = no || test $enable_clocale = yes; then
5545      enable_clocale=auto
5546   fi
5547
5548   # Either a known package, or "auto"
5549   enable_clocale_flag=$enable_clocale
5550
5551   # Probe for locale support if no specific model is specified.
5552   # Default to "generic".
5553   if test $enable_clocale_flag = auto; then
5554     case x${target_os} in
5555       xlinux* | xgnu*)
5556         cat >conftest.$ac_ext <<_ACEOF
5557 #line $LINENO "configure"
5558 /* confdefs.h.  */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h.  */
5563
5564         #include <features.h>
5565         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5566           _GLIBCXX_ok
5567         #endif
5568
5569 _ACEOF
5570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5571   $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5572   enable_clocale_flag=gnu
5573 else
5574   enable_clocale_flag=generic
5575 fi
5576 rm -f conftest*
5577
5578
5579         # Test for bugs early in glibc-2.2.x series
5580           if test x$enable_clocale_flag = xgnu; then
5581           if test "$cross_compiling" = yes; then
5582   enable_clocale_flag=generic
5583 else
5584   cat >conftest.$ac_ext <<_ACEOF
5585 #line $LINENO "configure"
5586 /* confdefs.h.  */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h.  */
5591
5592           #define _GNU_SOURCE 1
5593           #include <locale.h>
5594           #include <string.h>
5595           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5596           extern __typeof(newlocale) __newlocale;
5597           extern __typeof(duplocale) __duplocale;
5598           extern __typeof(strcoll_l) __strcoll_l;
5599           #endif
5600           int main()
5601           {
5602               const char __one[] = "Äuglein Augmen";
5603               const char __two[] = "Äuglein";
5604               int i;
5605               int j;
5606               __locale_t        loc;
5607                __locale_t        loc_dup;
5608               loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5609               loc_dup = __duplocale(loc);
5610               i = __strcoll_l(__one, __two, loc);
5611               j = __strcoll_l(__one, __two, loc_dup);
5612               return 0;
5613           }
5614
5615 _ACEOF
5616 rm -f conftest$ac_exeext
5617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618   (eval $ac_link) 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623   (eval $ac_try) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }; }; then
5627   enable_clocale_flag=gnu
5628 else
5629   echo "$as_me: program exited with status $ac_status" >&5
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5632
5633 ( exit $ac_status )
5634 enable_clocale_flag=generic
5635 fi
5636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5637 fi
5638           fi
5639
5640         # ... at some point put __strxfrm_l tests in as well.
5641         ;;
5642       *)
5643         enable_clocale_flag=generic
5644         ;;
5645     esac
5646   fi
5647
5648   # Deal with gettext issues.  Default to not using it (=no) until we detect
5649   # support for it later.  Let the user turn it off via --e/d, but let that
5650   # default to on for easier handling.
5651   USE_NLS=no
5652   # Check whether --enable-nls or --disable-nls was given.
5653 if test "${enable_nls+set}" = set; then
5654   enableval="$enable_nls"
5655
5656 else
5657   enable_nls=yes
5658 fi;
5659
5660   # Set configure bits for specified locale package
5661   case ${enable_clocale_flag} in
5662     generic)
5663       echo "$as_me:$LINENO: result: generic" >&5
5664 echo "${ECHO_T}generic" >&6
5665
5666       CLOCALE_H=config/locale/generic/c_locale.h
5667       CLOCALE_CC=config/locale/generic/c_locale.cc
5668       CCODECVT_H=config/locale/generic/codecvt_specializations.h
5669       CCODECVT_CC=config/locale/generic/codecvt_members.cc
5670       CCOLLATE_CC=config/locale/generic/collate_members.cc
5671       CCTYPE_CC=config/locale/generic/ctype_members.cc
5672       CMESSAGES_H=config/locale/generic/messages_members.h
5673       CMESSAGES_CC=config/locale/generic/messages_members.cc
5674       CMONEY_CC=config/locale/generic/monetary_members.cc
5675       CNUMERIC_CC=config/locale/generic/numeric_members.cc
5676       CTIME_H=config/locale/generic/time_members.h
5677       CTIME_CC=config/locale/generic/time_members.cc
5678       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5679       ;;
5680     gnu)
5681       echo "$as_me:$LINENO: result: gnu" >&5
5682 echo "${ECHO_T}gnu" >&6
5683
5684       # Declare intention to use gettext, and add support for specific
5685       # languages.
5686       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5687       ALL_LINGUAS="de fr"
5688
5689       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5690       # Extract the first word of "msgfmt", so it can be a program name with args.
5691 set dummy msgfmt; ac_word=$2
5692 echo "$as_me:$LINENO: checking for $ac_word" >&5
5693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5694 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   if test -n "$check_msgfmt"; then
5698   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5699 else
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5702 do
5703   IFS=$as_save_IFS
5704   test -z "$as_dir" && as_dir=.
5705   for ac_exec_ext in '' $ac_executable_extensions; do
5706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5707     ac_cv_prog_check_msgfmt="yes"
5708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709     break 2
5710   fi
5711 done
5712 done
5713
5714   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5715 fi
5716 fi
5717 check_msgfmt=$ac_cv_prog_check_msgfmt
5718 if test -n "$check_msgfmt"; then
5719   echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5720 echo "${ECHO_T}$check_msgfmt" >&6
5721 else
5722   echo "$as_me:$LINENO: result: no" >&5
5723 echo "${ECHO_T}no" >&6
5724 fi
5725
5726       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5727         USE_NLS=yes
5728       fi
5729       # Export the build objects.
5730       for ling in $ALL_LINGUAS; do \
5731         glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5732         glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5733       done
5734
5735
5736
5737       CLOCALE_H=config/locale/gnu/c_locale.h
5738       CLOCALE_CC=config/locale/gnu/c_locale.cc
5739       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5740       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5741       CCOLLATE_CC=config/locale/gnu/collate_members.cc
5742       CCTYPE_CC=config/locale/gnu/ctype_members.cc
5743       CMESSAGES_H=config/locale/gnu/messages_members.h
5744       CMESSAGES_CC=config/locale/gnu/messages_members.cc
5745       CMONEY_CC=config/locale/gnu/monetary_members.cc
5746       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5747       CTIME_H=config/locale/gnu/time_members.h
5748       CTIME_CC=config/locale/gnu/time_members.cc
5749       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5750       ;;
5751     ieee_1003.1-2001)
5752       echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5753 echo "${ECHO_T}IEEE 1003.1" >&6
5754
5755       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5756       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5757       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5758       CCODECVT_CC=config/locale/generic/codecvt_members.cc
5759       CCOLLATE_CC=config/locale/generic/collate_members.cc
5760       CCTYPE_CC=config/locale/generic/ctype_members.cc
5761       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5762       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5763       CMONEY_CC=config/locale/generic/monetary_members.cc
5764       CNUMERIC_CC=config/locale/generic/numeric_members.cc
5765       CTIME_H=config/locale/generic/time_members.h
5766       CTIME_CC=config/locale/generic/time_members.cc
5767       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5768       ;;
5769   esac
5770
5771   # This is where the testsuite looks for locale catalogs, using the
5772   # -DLOCALEDIR define during testsuite compilation.
5773   glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5774
5775
5776   # A standalone libintl (e.g., GNU libintl) may be in use.
5777   if test $USE_NLS = yes; then
5778
5779 for ac_header in libintl.h
5780 do
5781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5783   echo "$as_me:$LINENO: checking for $ac_header" >&5
5784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5786   echo $ECHO_N "(cached) $ECHO_C" >&6
5787 fi
5788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5790 else
5791   # Is the header compilable?
5792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5794 cat >conftest.$ac_ext <<_ACEOF
5795 #line $LINENO "configure"
5796 /* confdefs.h.  */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h.  */
5801 $ac_includes_default
5802 #include <$ac_header>
5803 _ACEOF
5804 rm -f conftest.$ac_objext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806   (eval $ac_compile) 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); } &&
5810          { ac_try='test -s conftest.$ac_objext'
5811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812   (eval $ac_try) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; }; then
5816   ac_header_compiler=yes
5817 else
5818   echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5820
5821 ac_header_compiler=no
5822 fi
5823 rm -f conftest.$ac_objext conftest.$ac_ext
5824 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5825 echo "${ECHO_T}$ac_header_compiler" >&6
5826
5827 # Is the header present?
5828 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5830 cat >conftest.$ac_ext <<_ACEOF
5831 #line $LINENO "configure"
5832 /* confdefs.h.  */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h.  */
5837 #include <$ac_header>
5838 _ACEOF
5839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5841   ac_status=$?
5842   grep -v '^ *+' conftest.er1 >conftest.err
5843   rm -f conftest.er1
5844   cat conftest.err >&5
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); } >/dev/null; then
5847   if test -s conftest.err; then
5848     ac_cpp_err=$ac_c_preproc_warn_flag
5849   else
5850     ac_cpp_err=
5851   fi
5852 else
5853   ac_cpp_err=yes
5854 fi
5855 if test -z "$ac_cpp_err"; then
5856   ac_header_preproc=yes
5857 else
5858   echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861   ac_header_preproc=no
5862 fi
5863 rm -f conftest.err conftest.$ac_ext
5864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5865 echo "${ECHO_T}$ac_header_preproc" >&6
5866
5867 # So?  What about this header?
5868 case $ac_header_compiler:$ac_header_preproc in
5869   yes:no )
5870     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5874     (
5875       cat <<\_ASBOX
5876 ## ------------------------------------ ##
5877 ## Report this to bug-autoconf@gnu.org. ##
5878 ## ------------------------------------ ##
5879 _ASBOX
5880     ) |
5881       sed "s/^/$as_me: WARNING:     /" >&2
5882     ;;
5883   no:yes )
5884     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5886     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5890     (
5891       cat <<\_ASBOX
5892 ## ------------------------------------ ##
5893 ## Report this to bug-autoconf@gnu.org. ##
5894 ## ------------------------------------ ##
5895 _ASBOX
5896     ) |
5897       sed "s/^/$as_me: WARNING:     /" >&2
5898     ;;
5899 esac
5900 echo "$as_me:$LINENO: checking for $ac_header" >&5
5901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   eval "$as_ac_Header=$ac_header_preproc"
5906 fi
5907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5909
5910 fi
5911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5912   cat >>confdefs.h <<_ACEOF
5913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5914 _ACEOF
5915
5916 else
5917   USE_NLS=no
5918 fi
5919
5920 done
5921
5922     echo "$as_me:$LINENO: checking for library containing gettext" >&5
5923 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
5924 if test "${ac_cv_search_gettext+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   ac_func_search_save_LIBS=$LIBS
5928 ac_cv_search_gettext=no
5929 cat >conftest.$ac_ext <<_ACEOF
5930 #line $LINENO "configure"
5931 /* confdefs.h.  */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h.  */
5936
5937 /* Override any gcc2 internal prototype to avoid an error.  */
5938 #ifdef __cplusplus
5939 extern "C"
5940 #endif
5941 /* We use char because int might match the return type of a gcc2
5942    builtin and then its argument prototype would still apply.  */
5943 char gettext ();
5944 int
5945 main ()
5946 {
5947 gettext ();
5948   ;
5949   return 0;
5950 }
5951 _ACEOF
5952 rm -f conftest.$ac_objext conftest$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954   (eval $ac_link) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); } &&
5958          { ac_try='test -s conftest$ac_exeext'
5959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960   (eval $ac_try) 2>&5
5961   ac_status=$?
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); }; }; then
5964   ac_cv_search_gettext="none required"
5965 else
5966   echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969 fi
5970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5971 if test "$ac_cv_search_gettext" = no; then
5972   for ac_lib in intl; do
5973     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5974     cat >conftest.$ac_ext <<_ACEOF
5975 #line $LINENO "configure"
5976 /* confdefs.h.  */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h.  */
5981
5982 /* Override any gcc2 internal prototype to avoid an error.  */
5983 #ifdef __cplusplus
5984 extern "C"
5985 #endif
5986 /* We use char because int might match the return type of a gcc2
5987    builtin and then its argument prototype would still apply.  */
5988 char gettext ();
5989 int
5990 main ()
5991 {
5992 gettext ();
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999   (eval $ac_link) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); } &&
6003          { ac_try='test -s conftest$ac_exeext'
6004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005   (eval $ac_try) 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; }; then
6009   ac_cv_search_gettext="-l$ac_lib"
6010 break
6011 else
6012   echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015 fi
6016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6017   done
6018 fi
6019 LIBS=$ac_func_search_save_LIBS
6020 fi
6021 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6022 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6023 if test "$ac_cv_search_gettext" != no; then
6024   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6025
6026 else
6027   USE_NLS=no
6028 fi
6029
6030   fi
6031   if test $USE_NLS = yes; then
6032     cat >>confdefs.h <<\_ACEOF
6033 #define _GLIBCXX_USE_NLS 1
6034 _ACEOF
6035
6036   fi
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054    # Check whether --enable-cheaders or --disable-cheaders was given.
6055 if test "${enable_cheaders+set}" = set; then
6056   enableval="$enable_cheaders"
6057
6058       case "$enableval" in
6059        c|c_std) ;;
6060        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6061 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6062    { (exit 1); exit 1; }; } ;;
6063                           esac
6064
6065 else
6066   enable_cheaders=$c_model
6067 fi;
6068
6069   { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6070 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6071
6072   C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6073
6074
6075
6076
6077 if test $enable_cheaders = c; then
6078   GLIBCXX_C_HEADERS_C_TRUE=
6079   GLIBCXX_C_HEADERS_C_FALSE='#'
6080 else
6081   GLIBCXX_C_HEADERS_C_TRUE='#'
6082   GLIBCXX_C_HEADERS_C_FALSE=
6083 fi
6084
6085
6086
6087 if test $enable_cheaders = c_std; then
6088   GLIBCXX_C_HEADERS_C_STD_TRUE=
6089   GLIBCXX_C_HEADERS_C_STD_FALSE='#'
6090 else
6091   GLIBCXX_C_HEADERS_C_STD_TRUE='#'
6092   GLIBCXX_C_HEADERS_C_STD_FALSE=
6093 fi
6094
6095
6096
6097 if test $c_compatibility = yes; then
6098   GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
6099   GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
6100 else
6101   GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
6102   GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
6103 fi
6104
6105
6106    # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6107 if test "${enable_c_mbchar+set}" = set; then
6108   enableval="$enable_c_mbchar"
6109
6110       case "$enableval" in
6111        yes|no) ;;
6112        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6113 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6114    { (exit 1); exit 1; }; } ;;
6115       esac
6116
6117 else
6118   enable_c_mbchar=yes
6119 fi;
6120
6121   # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6122
6123
6124
6125    # Check whether --enable-c99 or --disable-c99 was given.
6126 if test "${enable_c99+set}" = set; then
6127   enableval="$enable_c99"
6128
6129       case "$enableval" in
6130        yes|no) ;;
6131        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6132 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6133    { (exit 1); exit 1; }; } ;;
6134       esac
6135
6136 else
6137   enable_c99=yes
6138 fi;
6139
6140
6141
6142
6143   ac_ext=cc
6144 ac_cpp='$CXXCPP $CPPFLAGS'
6145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6148
6149
6150   # Check for the existence of <math.h> functions used if C99 is enabled.
6151   ac_c99_math=yes;
6152   echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6153 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6154   cat >conftest.$ac_ext <<_ACEOF
6155 #line $LINENO "configure"
6156 /* confdefs.h.  */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h.  */
6161 #include <math.h>
6162 int
6163 main ()
6164 {
6165 fpclassify(0.0);
6166   ;
6167   return 0;
6168 }
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172   (eval $ac_compile) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); } &&
6176          { ac_try='test -s conftest.$ac_objext'
6177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178   (eval $ac_try) 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }; }; then
6182   :
6183 else
6184   echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6186
6187 ac_c99_math=no
6188 fi
6189 rm -f conftest.$ac_objext conftest.$ac_ext
6190   cat >conftest.$ac_ext <<_ACEOF
6191 #line $LINENO "configure"
6192 /* confdefs.h.  */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h.  */
6197 #include <math.h>
6198 int
6199 main ()
6200 {
6201 isfinite(0.0);
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208   (eval $ac_compile) 2>&5
6209   ac_status=$?
6210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211   (exit $ac_status); } &&
6212          { ac_try='test -s conftest.$ac_objext'
6213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214   (eval $ac_try) 2>&5
6215   ac_status=$?
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); }; }; then
6218   :
6219 else
6220   echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223 ac_c99_math=no
6224 fi
6225 rm -f conftest.$ac_objext conftest.$ac_ext
6226   cat >conftest.$ac_ext <<_ACEOF
6227 #line $LINENO "configure"
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233 #include <math.h>
6234 int
6235 main ()
6236 {
6237 isinf(0.0);
6238   ;
6239   return 0;
6240 }
6241 _ACEOF
6242 rm -f conftest.$ac_objext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244   (eval $ac_compile) 2>&5
6245   ac_status=$?
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); } &&
6248          { ac_try='test -s conftest.$ac_objext'
6249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250   (eval $ac_try) 2>&5
6251   ac_status=$?
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); }; }; then
6254   :
6255 else
6256   echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259 ac_c99_math=no
6260 fi
6261 rm -f conftest.$ac_objext conftest.$ac_ext
6262   cat >conftest.$ac_ext <<_ACEOF
6263 #line $LINENO "configure"
6264 /* confdefs.h.  */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h.  */
6269 #include <math.h>
6270 int
6271 main ()
6272 {
6273 isnan(0.0);
6274   ;
6275   return 0;
6276 }
6277 _ACEOF
6278 rm -f conftest.$ac_objext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280   (eval $ac_compile) 2>&5
6281   ac_status=$?
6282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283   (exit $ac_status); } &&
6284          { ac_try='test -s conftest.$ac_objext'
6285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286   (eval $ac_try) 2>&5
6287   ac_status=$?
6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); }; }; then
6290   :
6291 else
6292   echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6294
6295 ac_c99_math=no
6296 fi
6297 rm -f conftest.$ac_objext conftest.$ac_ext
6298   cat >conftest.$ac_ext <<_ACEOF
6299 #line $LINENO "configure"
6300 /* confdefs.h.  */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h.  */
6305 #include <math.h>
6306 int
6307 main ()
6308 {
6309 isnormal(0.0);
6310   ;
6311   return 0;
6312 }
6313 _ACEOF
6314 rm -f conftest.$ac_objext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6316   (eval $ac_compile) 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); } &&
6320          { ac_try='test -s conftest.$ac_objext'
6321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322   (eval $ac_try) 2>&5
6323   ac_status=$?
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); }; }; then
6326   :
6327 else
6328   echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6330
6331 ac_c99_math=no
6332 fi
6333 rm -f conftest.$ac_objext conftest.$ac_ext
6334   cat >conftest.$ac_ext <<_ACEOF
6335 #line $LINENO "configure"
6336 /* confdefs.h.  */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h.  */
6341 #include <math.h>
6342 int
6343 main ()
6344 {
6345 signbit(0.0);
6346   ;
6347   return 0;
6348 }
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352   (eval $ac_compile) 2>&5
6353   ac_status=$?
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); } &&
6356          { ac_try='test -s conftest.$ac_objext'
6357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358   (eval $ac_try) 2>&5
6359   ac_status=$?
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); }; }; then
6362   :
6363 else
6364   echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6366
6367 ac_c99_math=no
6368 fi
6369 rm -f conftest.$ac_objext conftest.$ac_ext
6370   cat >conftest.$ac_ext <<_ACEOF
6371 #line $LINENO "configure"
6372 /* confdefs.h.  */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h.  */
6377 #include <math.h>
6378 int
6379 main ()
6380 {
6381 isgreater(0.0,0.0);
6382   ;
6383   return 0;
6384 }
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388   (eval $ac_compile) 2>&5
6389   ac_status=$?
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); } &&
6392          { ac_try='test -s conftest.$ac_objext'
6393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394   (eval $ac_try) 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); }; }; then
6398   :
6399 else
6400   echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403 ac_c99_math=no
6404 fi
6405 rm -f conftest.$ac_objext conftest.$ac_ext
6406   cat >conftest.$ac_ext <<_ACEOF
6407 #line $LINENO "configure"
6408 /* confdefs.h.  */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h.  */
6413 #include <math.h>
6414 int
6415 main ()
6416 {
6417 isgreaterequal(0.0,0.0);
6418   ;
6419   return 0;
6420 }
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424   (eval $ac_compile) 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); } &&
6428          { ac_try='test -s conftest.$ac_objext'
6429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430   (eval $ac_try) 2>&5
6431   ac_status=$?
6432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); }; }; then
6434   :
6435 else
6436   echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6438
6439 ac_c99_math=no
6440 fi
6441 rm -f conftest.$ac_objext conftest.$ac_ext
6442   cat >conftest.$ac_ext <<_ACEOF
6443 #line $LINENO "configure"
6444 /* confdefs.h.  */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h.  */
6449 #include <math.h>
6450 int
6451 main ()
6452 {
6453 isless(0.0,0.0);
6454   ;
6455   return 0;
6456 }
6457 _ACEOF
6458 rm -f conftest.$ac_objext
6459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6460   (eval $ac_compile) 2>&5
6461   ac_status=$?
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); } &&
6464          { ac_try='test -s conftest.$ac_objext'
6465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466   (eval $ac_try) 2>&5
6467   ac_status=$?
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); }; }; then
6470   :
6471 else
6472   echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6474
6475 ac_c99_math=no
6476 fi
6477 rm -f conftest.$ac_objext conftest.$ac_ext
6478   cat >conftest.$ac_ext <<_ACEOF
6479 #line $LINENO "configure"
6480 /* confdefs.h.  */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h.  */
6485 #include <math.h>
6486 int
6487 main ()
6488 {
6489 islessequal(0.0,0.0);
6490   ;
6491   return 0;
6492 }
6493 _ACEOF
6494 rm -f conftest.$ac_objext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6496   (eval $ac_compile) 2>&5
6497   ac_status=$?
6498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499   (exit $ac_status); } &&
6500          { ac_try='test -s conftest.$ac_objext'
6501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502   (eval $ac_try) 2>&5
6503   ac_status=$?
6504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505   (exit $ac_status); }; }; then
6506   :
6507 else
6508   echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6510
6511 ac_c99_math=no
6512 fi
6513 rm -f conftest.$ac_objext conftest.$ac_ext
6514   cat >conftest.$ac_ext <<_ACEOF
6515 #line $LINENO "configure"
6516 /* confdefs.h.  */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h.  */
6521 #include <math.h>
6522 int
6523 main ()
6524 {
6525 islessgreater(0.0,0.0);
6526   ;
6527   return 0;
6528 }
6529 _ACEOF
6530 rm -f conftest.$ac_objext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6532   (eval $ac_compile) 2>&5
6533   ac_status=$?
6534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535   (exit $ac_status); } &&
6536          { ac_try='test -s conftest.$ac_objext'
6537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538   (eval $ac_try) 2>&5
6539   ac_status=$?
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); }; }; then
6542   :
6543 else
6544   echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6546
6547 ac_c99_math=no
6548 fi
6549 rm -f conftest.$ac_objext conftest.$ac_ext
6550   cat >conftest.$ac_ext <<_ACEOF
6551 #line $LINENO "configure"
6552 /* confdefs.h.  */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h.  */
6557 #include <math.h>
6558 int
6559 main ()
6560 {
6561 isunordered(0.0,0.0);
6562   ;
6563   return 0;
6564 }
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568   (eval $ac_compile) 2>&5
6569   ac_status=$?
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); } &&
6572          { ac_try='test -s conftest.$ac_objext'
6573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574   (eval $ac_try) 2>&5
6575   ac_status=$?
6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577   (exit $ac_status); }; }; then
6578   :
6579 else
6580   echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6582
6583 ac_c99_math=no
6584 fi
6585 rm -f conftest.$ac_objext conftest.$ac_ext
6586   echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6587 echo "${ECHO_T}$ac_c99_math" >&6
6588
6589   # Check for the existence in <stdio.h> of vscanf, et. al.
6590   ac_c99_stdio=yes;
6591   echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6592 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6593   cat >conftest.$ac_ext <<_ACEOF
6594 #line $LINENO "configure"
6595 /* confdefs.h.  */
6596 _ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h.  */
6600 #include <stdio.h>
6601 int
6602 main ()
6603 {
6604 snprintf("12", 0, "%i");
6605   ;
6606   return 0;
6607 }
6608 _ACEOF
6609 rm -f conftest.$ac_objext
6610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6611   (eval $ac_compile) 2>&5
6612   ac_status=$?
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); } &&
6615          { ac_try='test -s conftest.$ac_objext'
6616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617   (eval $ac_try) 2>&5
6618   ac_status=$?
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); }; }; then
6621   :
6622 else
6623   echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6625
6626 ac_c99_stdio=no
6627 fi
6628 rm -f conftest.$ac_objext conftest.$ac_ext
6629   cat >conftest.$ac_ext <<_ACEOF
6630 #line $LINENO "configure"
6631 /* confdefs.h.  */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h.  */
6636 #include <stdio.h>
6637                   #include <stdarg.h>
6638                   void foo(char* fmt, ...)
6639                   {va_list args; va_start(args, fmt);
6640                   vfscanf(stderr, "%i", args);}
6641 int
6642 main ()
6643 {
6644
6645   ;
6646   return 0;
6647 }
6648 _ACEOF
6649 rm -f conftest.$ac_objext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651   (eval $ac_compile) 2>&5
6652   ac_status=$?
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); } &&
6655          { ac_try='test -s conftest.$ac_objext'
6656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657   (eval $ac_try) 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); }; }; then
6661   :
6662 else
6663   echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666 ac_c99_stdio=no
6667 fi
6668 rm -f conftest.$ac_objext conftest.$ac_ext
6669   cat >conftest.$ac_ext <<_ACEOF
6670 #line $LINENO "configure"
6671 /* confdefs.h.  */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h.  */
6676 #include <stdio.h>
6677                   #include <stdarg.h>
6678                   void foo(char* fmt, ...)
6679                   {va_list args; va_start(args, fmt);
6680                   vscanf("%i", args);}
6681 int
6682 main ()
6683 {
6684
6685   ;
6686   return 0;
6687 }
6688 _ACEOF
6689 rm -f conftest.$ac_objext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691   (eval $ac_compile) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); } &&
6695          { ac_try='test -s conftest.$ac_objext'
6696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697   (eval $ac_try) 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; }; then
6701   :
6702 else
6703   echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 ac_c99_stdio=no
6707 fi
6708 rm -f conftest.$ac_objext conftest.$ac_ext
6709   cat >conftest.$ac_ext <<_ACEOF
6710 #line $LINENO "configure"
6711 /* confdefs.h.  */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h.  */
6716 #include <stdio.h>
6717                   #include <stdarg.h>
6718                   void foo(char* fmt, ...)
6719                   {va_list args; va_start(args, fmt);
6720                   vsnprintf(fmt, 0, "%i", args);}
6721 int
6722 main ()
6723 {
6724
6725   ;
6726   return 0;
6727 }
6728 _ACEOF
6729 rm -f conftest.$ac_objext
6730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6731   (eval $ac_compile) 2>&5
6732   ac_status=$?
6733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734   (exit $ac_status); } &&
6735          { ac_try='test -s conftest.$ac_objext'
6736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737   (eval $ac_try) 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); }; }; then
6741   :
6742 else
6743   echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6745
6746 ac_c99_stdio=no
6747 fi
6748 rm -f conftest.$ac_objext conftest.$ac_ext
6749   cat >conftest.$ac_ext <<_ACEOF
6750 #line $LINENO "configure"
6751 /* confdefs.h.  */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h.  */
6756 #include <stdio.h>
6757                   #include <stdarg.h>
6758                   void foo(char* fmt, ...)
6759                   {va_list args; va_start(args, fmt);
6760                   vsscanf(fmt, "%i", args);}
6761 int
6762 main ()
6763 {
6764
6765   ;
6766   return 0;
6767 }
6768 _ACEOF
6769 rm -f conftest.$ac_objext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771   (eval $ac_compile) 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); } &&
6775          { ac_try='test -s conftest.$ac_objext'
6776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777   (eval $ac_try) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); }; }; then
6781   :
6782 else
6783   echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6785
6786 ac_c99_stdio=no
6787 fi
6788 rm -f conftest.$ac_objext conftest.$ac_ext
6789   echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
6790 echo "${ECHO_T}$ac_c99_stdio" >&6
6791
6792   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
6793   ac_c99_stdlib=yes;
6794   echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
6795 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
6796   if test "${ac_c99_lldiv_t+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799
6800   cat >conftest.$ac_ext <<_ACEOF
6801 #line $LINENO "configure"
6802 /* confdefs.h.  */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h.  */
6807 #include <stdlib.h>
6808 int
6809 main ()
6810 {
6811  lldiv_t mydivt;
6812   ;
6813   return 0;
6814 }
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818   (eval $ac_compile) 2>&5
6819   ac_status=$?
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); } &&
6822          { ac_try='test -s conftest.$ac_objext'
6823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824   (eval $ac_try) 2>&5
6825   ac_status=$?
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); }; }; then
6828   ac_c99_lldiv_t=yes
6829 else
6830   echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6832
6833 ac_c99_lldiv_t=no
6834 fi
6835 rm -f conftest.$ac_objext conftest.$ac_ext
6836
6837 fi
6838
6839   echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
6840 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
6841
6842   echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
6843 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
6844   cat >conftest.$ac_ext <<_ACEOF
6845 #line $LINENO "configure"
6846 /* confdefs.h.  */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h.  */
6851 #include <stdlib.h>
6852 int
6853 main ()
6854 {
6855 char* tmp; strtof("gnu", &tmp);
6856   ;
6857   return 0;
6858 }
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862   (eval $ac_compile) 2>&5
6863   ac_status=$?
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); } &&
6866          { ac_try='test -s conftest.$ac_objext'
6867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868   (eval $ac_try) 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); }; }; then
6872   :
6873 else
6874   echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6876
6877 ac_c99_stdlib=no
6878 fi
6879 rm -f conftest.$ac_objext conftest.$ac_ext
6880   cat >conftest.$ac_ext <<_ACEOF
6881 #line $LINENO "configure"
6882 /* confdefs.h.  */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h.  */
6887 #include <stdlib.h>
6888 int
6889 main ()
6890 {
6891 char* tmp; strtold("gnu", &tmp);
6892   ;
6893   return 0;
6894 }
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6898   (eval $ac_compile) 2>&5
6899   ac_status=$?
6900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901   (exit $ac_status); } &&
6902          { ac_try='test -s conftest.$ac_objext'
6903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904   (eval $ac_try) 2>&5
6905   ac_status=$?
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); }; }; then
6908   :
6909 else
6910   echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6912
6913 ac_c99_stdlib=no
6914 fi
6915 rm -f conftest.$ac_objext conftest.$ac_ext
6916   cat >conftest.$ac_ext <<_ACEOF
6917 #line $LINENO "configure"
6918 /* confdefs.h.  */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h.  */
6923 #include <stdlib.h>
6924 int
6925 main ()
6926 {
6927 llabs(10);
6928   ;
6929   return 0;
6930 }
6931 _ACEOF
6932 rm -f conftest.$ac_objext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6934   (eval $ac_compile) 2>&5
6935   ac_status=$?
6936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937   (exit $ac_status); } &&
6938          { ac_try='test -s conftest.$ac_objext'
6939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940   (eval $ac_try) 2>&5
6941   ac_status=$?
6942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943   (exit $ac_status); }; }; then
6944   :
6945 else
6946   echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6948
6949 ac_c99_stdlib=no
6950 fi
6951 rm -f conftest.$ac_objext conftest.$ac_ext
6952   cat >conftest.$ac_ext <<_ACEOF
6953 #line $LINENO "configure"
6954 /* confdefs.h.  */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h.  */
6959 #include <stdlib.h>
6960 int
6961 main ()
6962 {
6963 lldiv(10,1);
6964   ;
6965   return 0;
6966 }
6967 _ACEOF
6968 rm -f conftest.$ac_objext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970   (eval $ac_compile) 2>&5
6971   ac_status=$?
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); } &&
6974          { ac_try='test -s conftest.$ac_objext'
6975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976   (eval $ac_try) 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); }; }; then
6980   :
6981 else
6982   echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6984
6985 ac_c99_stdlib=no
6986 fi
6987 rm -f conftest.$ac_objext conftest.$ac_ext
6988   cat >conftest.$ac_ext <<_ACEOF
6989 #line $LINENO "configure"
6990 /* confdefs.h.  */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h.  */
6995 #include <stdlib.h>
6996 int
6997 main ()
6998 {
6999 atoll("10");
7000   ;
7001   return 0;
7002 }
7003 _ACEOF
7004 rm -f conftest.$ac_objext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006   (eval $ac_compile) 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); } &&
7010          { ac_try='test -s conftest.$ac_objext'
7011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012   (eval $ac_try) 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); }; }; then
7016   :
7017 else
7018   echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7020
7021 ac_c99_stdlib=no
7022 fi
7023 rm -f conftest.$ac_objext conftest.$ac_ext
7024   cat >conftest.$ac_ext <<_ACEOF
7025 #line $LINENO "configure"
7026 /* confdefs.h.  */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h.  */
7031 #include <stdlib.h>
7032 int
7033 main ()
7034 {
7035 _Exit(0);
7036   ;
7037   return 0;
7038 }
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042   (eval $ac_compile) 2>&5
7043   ac_status=$?
7044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045   (exit $ac_status); } &&
7046          { ac_try='test -s conftest.$ac_objext'
7047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048   (eval $ac_try) 2>&5
7049   ac_status=$?
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); }; }; then
7052   :
7053 else
7054   echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.$ac_ext >&5
7056
7057 ac_c99_stdlib=no
7058 fi
7059 rm -f conftest.$ac_objext conftest.$ac_ext
7060   if test x"$ac_c99_lldiv_t" = x"no"; then
7061     ac_c99_stdlib=no;
7062   fi;
7063   echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7064 echo "${ECHO_T}$ac_c99_stdlib" >&6
7065
7066   # Check for the existence of <wchar.h> functions used if C99 is enabled.
7067   # XXX the wchar.h checks should be rolled into the general C99 bits.
7068   ac_c99_wchar=yes;
7069   echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7070 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7071   cat >conftest.$ac_ext <<_ACEOF
7072 #line $LINENO "configure"
7073 /* confdefs.h.  */
7074 _ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h.  */
7078 #include <wchar.h>
7079 int
7080 main ()
7081 {
7082 wcstold(L"10.0", NULL);
7083   ;
7084   return 0;
7085 }
7086 _ACEOF
7087 rm -f conftest.$ac_objext
7088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7089   (eval $ac_compile) 2>&5
7090   ac_status=$?
7091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092   (exit $ac_status); } &&
7093          { ac_try='test -s conftest.$ac_objext'
7094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095   (eval $ac_try) 2>&5
7096   ac_status=$?
7097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098   (exit $ac_status); }; }; then
7099   :
7100 else
7101   echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7103
7104 ac_c99_wchar=no
7105 fi
7106 rm -f conftest.$ac_objext conftest.$ac_ext
7107   cat >conftest.$ac_ext <<_ACEOF
7108 #line $LINENO "configure"
7109 /* confdefs.h.  */
7110 _ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h.  */
7114 #include <wchar.h>
7115 int
7116 main ()
7117 {
7118 wcstoll(L"10", NULL, 10);
7119   ;
7120   return 0;
7121 }
7122 _ACEOF
7123 rm -f conftest.$ac_objext
7124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7125   (eval $ac_compile) 2>&5
7126   ac_status=$?
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); } &&
7129          { ac_try='test -s conftest.$ac_objext'
7130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131   (eval $ac_try) 2>&5
7132   ac_status=$?
7133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134   (exit $ac_status); }; }; then
7135   :
7136 else
7137   echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7139
7140 ac_c99_wchar=no
7141 fi
7142 rm -f conftest.$ac_objext conftest.$ac_ext
7143   cat >conftest.$ac_ext <<_ACEOF
7144 #line $LINENO "configure"
7145 /* confdefs.h.  */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h.  */
7150 #include <wchar.h>
7151 int
7152 main ()
7153 {
7154 wcstoull(L"10", NULL, 10);
7155   ;
7156   return 0;
7157 }
7158 _ACEOF
7159 rm -f conftest.$ac_objext
7160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7161   (eval $ac_compile) 2>&5
7162   ac_status=$?
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); } &&
7165          { ac_try='test -s conftest.$ac_objext'
7166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167   (eval $ac_try) 2>&5
7168   ac_status=$?
7169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); }; }; then
7171   :
7172 else
7173   echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7175
7176 ac_c99_wchar=no
7177 fi
7178 rm -f conftest.$ac_objext conftest.$ac_ext
7179   echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7180 echo "${ECHO_T}$ac_c99_wchar" >&6
7181
7182   echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7183 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7184   if test x"$ac_c99_math" = x"no" ||
7185      test x"$ac_c99_stdio" = x"no" ||
7186      test x"$ac_c99_stdlib" = x"no" ||
7187      test x"$ac_c99_wchar" = x"no"; then
7188     enable_c99=no;
7189   fi;
7190   echo "$as_me:$LINENO: result: $enable_c99" >&5
7191 echo "${ECHO_T}$enable_c99" >&6
7192
7193   # Option parsed, now set things appropriately
7194   if test x"$enable_c99" = x"yes"; then
7195     cat >>confdefs.h <<\_ACEOF
7196 #define _GLIBCXX_USE_C99 1
7197 _ACEOF
7198
7199   fi
7200
7201   ac_ext=c
7202 ac_cpp='$CPP $CPPFLAGS'
7203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7206
7207
7208
7209    # Check whether --enable-long-long or --disable-long-long was given.
7210 if test "${enable_long_long+set}" = set; then
7211   enableval="$enable_long_long"
7212
7213       case "$enableval" in
7214        yes|no) ;;
7215        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7216 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7217    { (exit 1); exit 1; }; } ;;
7218       esac
7219
7220 else
7221   enable_long_long=yes
7222 fi;
7223
7224
7225
7226
7227   ac_ext=cc
7228 ac_cpp='$CXXCPP $CPPFLAGS'
7229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7232
7233
7234   echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7235 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7236   # iostreams require strtoll, strtoull to compile
7237   cat >conftest.$ac_ext <<_ACEOF
7238 #line $LINENO "configure"
7239 /* confdefs.h.  */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h.  */
7244 #include <stdlib.h>
7245 int
7246 main ()
7247 {
7248 char* tmp; strtoll("gnu", &tmp, 10);
7249   ;
7250   return 0;
7251 }
7252 _ACEOF
7253 rm -f conftest.$ac_objext
7254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7255   (eval $ac_compile) 2>&5
7256   ac_status=$?
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); } &&
7259          { ac_try='test -s conftest.$ac_objext'
7260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261   (eval $ac_try) 2>&5
7262   ac_status=$?
7263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); }; }; then
7265   :
7266 else
7267   echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7269
7270 enable_long_long=no
7271 fi
7272 rm -f conftest.$ac_objext conftest.$ac_ext
7273   cat >conftest.$ac_ext <<_ACEOF
7274 #line $LINENO "configure"
7275 /* confdefs.h.  */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h.  */
7280 #include <stdlib.h>
7281 int
7282 main ()
7283 {
7284 char* tmp; strtoull("gnu", &tmp, 10);
7285   ;
7286   return 0;
7287 }
7288 _ACEOF
7289 rm -f conftest.$ac_objext
7290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7291   (eval $ac_compile) 2>&5
7292   ac_status=$?
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); } &&
7295          { ac_try='test -s conftest.$ac_objext'
7296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297   (eval $ac_try) 2>&5
7298   ac_status=$?
7299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300   (exit $ac_status); }; }; then
7301   :
7302 else
7303   echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7305
7306 enable_long_long=no
7307 fi
7308 rm -f conftest.$ac_objext conftest.$ac_ext
7309
7310   # Option parsed, now set things appropriately
7311   if test $enable_long_long = yes; then
7312     cat >>confdefs.h <<\_ACEOF
7313 #define _GLIBCXX_USE_LONG_LONG 1
7314 _ACEOF
7315
7316   fi
7317   echo "$as_me:$LINENO: result: $enable_long_long" >&5
7318 echo "${ECHO_T}$enable_long_long" >&6
7319
7320   ac_ext=c
7321 ac_cpp='$CPP $CPPFLAGS'
7322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7325
7326
7327
7328   echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7329 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7330   target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7331   echo "$as_me:$LINENO: result: $target_thread_file" >&5
7332 echo "${ECHO_T}$target_thread_file" >&6
7333
7334   if test $target_thread_file != single; then
7335     cat >>confdefs.h <<\_ACEOF
7336 #define HAVE_GTHR_DEFAULT 1
7337 _ACEOF
7338
7339     cat >>confdefs.h <<\_ACEOF
7340 #define _GLIBCXX_SUPPORTS_WEAK __GXX_WEAK__
7341 _ACEOF
7342
7343   fi
7344
7345   glibcxx_thread_h=gthr-$target_thread_file.h
7346
7347
7348
7349    # Check whether --enable-concept-checks or --disable-concept-checks was given.
7350 if test "${enable_concept_checks+set}" = set; then
7351   enableval="$enable_concept_checks"
7352
7353       case "$enableval" in
7354        yes|no) ;;
7355        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7356 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7357    { (exit 1); exit 1; }; } ;;
7358       esac
7359
7360 else
7361   enable_concept_checks=no
7362 fi;
7363
7364   if test $enable_concept_checks = yes; then
7365     cat >>confdefs.h <<\_ACEOF
7366 #define _GLIBCXX_CONCEPT_CHECKS 1
7367 _ACEOF
7368
7369   fi
7370
7371
7372    # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7373 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7374   enableval="$enable_libstdcxx_debug_flags"
7375   case "x$enable_libstdcxx_debug_flags" in
7376       xno | x)    enable_libstdcxx_debug_flags= ;;
7377       x-*)        ;;
7378       *)          { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7379 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7380    { (exit 1); exit 1; }; } ;;
7381      esac
7382 else
7383   enable_libstdcxx_debug_flags="-g3 -O0"
7384 fi;
7385
7386
7387   # Option parsed, now set things appropriately
7388   DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7389
7390
7391   { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7392 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7393
7394
7395   echo "$as_me:$LINENO: checking for additional debug build" >&5
7396 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7397    # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7398 if test "${enable_libstdcxx_debug+set}" = set; then
7399   enableval="$enable_libstdcxx_debug"
7400
7401       case "$enableval" in
7402        yes|no) ;;
7403        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7404 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7405    { (exit 1); exit 1; }; } ;;
7406       esac
7407
7408 else
7409   enable_libstdcxx_debug=no
7410 fi;
7411
7412   echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7413 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7414
7415
7416 if test $enable_libstdcxx_debug = yes; then
7417   GLIBCXX_BUILD_DEBUG_TRUE=
7418   GLIBCXX_BUILD_DEBUG_FALSE='#'
7419 else
7420   GLIBCXX_BUILD_DEBUG_TRUE='#'
7421   GLIBCXX_BUILD_DEBUG_FALSE=
7422 fi
7423
7424
7425   echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7426 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7427    # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7428 if test "${enable_cxx_flags+set}" = set; then
7429   enableval="$enable_cxx_flags"
7430   case "x$enable_cxx_flags" in
7431       xno | x)   enable_cxx_flags= ;;
7432       x-*)       ;;
7433       *)         { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7434 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7435    { (exit 1); exit 1; }; } ;;
7436      esac
7437 else
7438   enable_cxx_flags=
7439 fi;
7440
7441
7442   # Run through flags (either default or command-line) and set anything
7443   # extra (e.g., #defines) that must accompany particular g++ options.
7444   if test -n "$enable_cxx_flags"; then
7445     for f in $enable_cxx_flags; do
7446       case "$f" in
7447         -fhonor-std)  ;;
7448         -*)  ;;
7449         *)   # and we're trying to pass /what/ exactly?
7450              { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7451 echo "$as_me: error: compiler flags start with a -" >&2;}
7452    { (exit 1); exit 1; }; } ;;
7453       esac
7454     done
7455   fi
7456
7457   EXTRA_CXX_FLAGS="$enable_cxx_flags"
7458   echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7459 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7460
7461
7462
7463 # No surprises, no surprises...
7464 if test $atomicity_include_dir = cpu/generic ; then
7465   { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7466 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7467   if test $target_thread_file = single; then
7468     { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7469 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7470     { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7471 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7472   else
7473     { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7474 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7475     { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7476 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7477   fi
7478 fi
7479
7480
7481 if test "$build" != "$host"; then
7482
7483   # We are being configured with some form of cross compiler.
7484   GLIBCXX_IS_NATIVE=false
7485
7486   # This lets us hard-code the functionality we know we'll have in the cross
7487   # target environment.  "Let" is a sugar-coated word placed on an especially
7488   # dull and tedious hack, actually.
7489   #
7490   # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
7491   # that involve linking, can't be used:
7492   #    "cannot open sim-crt0.o"
7493   #    "cannot open crt0.o"
7494   # etc.  All this is because there currently exists no unified, consistent
7495   # way for top level CC information to be passed down to target directories:
7496   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
7497   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
7498   # crosses can be removed.
7499
7500   # If Canadian cross, then don't pick up tools from the build directory.
7501   # Used in GLIBCXX_EXPORT_INCLUDES (and nowhere else?).
7502   if test -n "$with_cross_host" &&
7503      test x"$build" != x"$with_cross_host" &&
7504      test x"$build" != x"$target";
7505   then
7506     CANADIAN=yes
7507   else
7508     CANADIAN=no
7509   fi
7510
7511   # Construct crosses by hand, eliminating bits that need ld...
7512   # GLIBCXX_CHECK_COMPILER_FEATURES
7513   # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
7514   # GLIBCXX_CHECK_MATH_SUPPORT
7515
7516   # First, test for "known" system libraries.  We may be using newlib even
7517   # on a hosted environment.
7518   if test "x${with_newlib}" = "xyes"; then
7519     os_include_dir="os/newlib"
7520     cat >>confdefs.h <<\_ACEOF
7521 #define HAVE_HYPOT 1
7522 _ACEOF
7523
7524
7525     # GLIBCXX_CHECK_STDLIB_SUPPORT
7526     cat >>confdefs.h <<\_ACEOF
7527 #define HAVE_STRTOF 1
7528 _ACEOF
7529
7530     cat >>confdefs.h <<\_ACEOF
7531 #define HAVE_STRTOLD 1
7532 _ACEOF
7533
7534     # AC_FUNC_MMAP
7535     cat >>confdefs.h <<\_ACEOF
7536 #define HAVE_MMAP 1
7537 _ACEOF
7538
7539
7540     cat >>confdefs.h <<\_ACEOF
7541 #define HAVE_ACOSF 1
7542 _ACEOF
7543
7544     cat >>confdefs.h <<\_ACEOF
7545 #define HAVE_ASINF 1
7546 _ACEOF
7547
7548     cat >>confdefs.h <<\_ACEOF
7549 #define HAVE_ATAN2F 1
7550 _ACEOF
7551
7552     cat >>confdefs.h <<\_ACEOF
7553 #define HAVE_ATANF 1
7554 _ACEOF
7555
7556     cat >>confdefs.h <<\_ACEOF
7557 #define HAVE_CEILF 1
7558 _ACEOF
7559
7560     cat >>confdefs.h <<\_ACEOF
7561 #define HAVE_COPYSIGN 1
7562 _ACEOF
7563
7564     cat >>confdefs.h <<\_ACEOF
7565 #define HAVE_COPYSIGNF 1
7566 _ACEOF
7567
7568     cat >>confdefs.h <<\_ACEOF
7569 #define HAVE_COSF 1
7570 _ACEOF
7571
7572     cat >>confdefs.h <<\_ACEOF
7573 #define HAVE_COSHF 1
7574 _ACEOF
7575
7576     cat >>confdefs.h <<\_ACEOF
7577 #define HAVE_EXPF 1
7578 _ACEOF
7579
7580     cat >>confdefs.h <<\_ACEOF
7581 #define HAVE_FABSF 1
7582 _ACEOF
7583
7584     cat >>confdefs.h <<\_ACEOF
7585 #define HAVE_FLOORF 1
7586 _ACEOF
7587
7588     cat >>confdefs.h <<\_ACEOF
7589 #define HAVE_FMODF 1
7590 _ACEOF
7591
7592     cat >>confdefs.h <<\_ACEOF
7593 #define HAVE_FREXPF 1
7594 _ACEOF
7595
7596     cat >>confdefs.h <<\_ACEOF
7597 #define HAVE_LDEXPF 1
7598 _ACEOF
7599
7600     cat >>confdefs.h <<\_ACEOF
7601 #define HAVE_LOG10F 1
7602 _ACEOF
7603
7604     cat >>confdefs.h <<\_ACEOF
7605 #define HAVE_LOGF 1
7606 _ACEOF
7607
7608     cat >>confdefs.h <<\_ACEOF
7609 #define HAVE_MODFF 1
7610 _ACEOF
7611
7612     cat >>confdefs.h <<\_ACEOF
7613 #define HAVE_POWF 1
7614 _ACEOF
7615
7616     cat >>confdefs.h <<\_ACEOF
7617 #define HAVE_SINF 1
7618 _ACEOF
7619
7620     cat >>confdefs.h <<\_ACEOF
7621 #define HAVE_SINHF 1
7622 _ACEOF
7623
7624     cat >>confdefs.h <<\_ACEOF
7625 #define HAVE_SQRTF 1
7626 _ACEOF
7627
7628     cat >>confdefs.h <<\_ACEOF
7629 #define HAVE_TANF 1
7630 _ACEOF
7631
7632     cat >>confdefs.h <<\_ACEOF
7633 #define HAVE_TANHF 1
7634 _ACEOF
7635
7636   else
7637
7638 # Base decisions on target environment.
7639 case "${host}" in
7640   *-freebsd*)
7641     #os_include_dir="os/bsd/freebsd"
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
7659       machine/endian.h machine/param.h sys/machine.h sys/types.h \
7660       fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7661       sys/time.h unistd.h
7662 do
7663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7665   echo "$as_me:$LINENO: checking for $ac_header" >&5
7666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 fi
7670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7672 else
7673   # Is the header compilable?
7674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7676 cat >conftest.$ac_ext <<_ACEOF
7677 #line $LINENO "configure"
7678 /* confdefs.h.  */
7679 _ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h.  */
7683 $ac_includes_default
7684 #include <$ac_header>
7685 _ACEOF
7686 rm -f conftest.$ac_objext
7687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7688   (eval $ac_compile) 2>&5
7689   ac_status=$?
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); } &&
7692          { ac_try='test -s conftest.$ac_objext'
7693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694   (eval $ac_try) 2>&5
7695   ac_status=$?
7696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697   (exit $ac_status); }; }; then
7698   ac_header_compiler=yes
7699 else
7700   echo "$as_me: failed program was:" >&5
7701 sed 's/^/| /' conftest.$ac_ext >&5
7702
7703 ac_header_compiler=no
7704 fi
7705 rm -f conftest.$ac_objext conftest.$ac_ext
7706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7707 echo "${ECHO_T}$ac_header_compiler" >&6
7708
7709 # Is the header present?
7710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7712 cat >conftest.$ac_ext <<_ACEOF
7713 #line $LINENO "configure"
7714 /* confdefs.h.  */
7715 _ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h.  */
7719 #include <$ac_header>
7720 _ACEOF
7721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7722   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7723   ac_status=$?
7724   grep -v '^ *+' conftest.er1 >conftest.err
7725   rm -f conftest.er1
7726   cat conftest.err >&5
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); } >/dev/null; then
7729   if test -s conftest.err; then
7730     ac_cpp_err=$ac_c_preproc_warn_flag
7731   else
7732     ac_cpp_err=
7733   fi
7734 else
7735   ac_cpp_err=yes
7736 fi
7737 if test -z "$ac_cpp_err"; then
7738   ac_header_preproc=yes
7739 else
7740   echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7742
7743   ac_header_preproc=no
7744 fi
7745 rm -f conftest.err conftest.$ac_ext
7746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7747 echo "${ECHO_T}$ac_header_preproc" >&6
7748
7749 # So?  What about this header?
7750 case $ac_header_compiler:$ac_header_preproc in
7751   yes:no )
7752     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7754     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7756     (
7757       cat <<\_ASBOX
7758 ## ------------------------------------ ##
7759 ## Report this to bug-autoconf@gnu.org. ##
7760 ## ------------------------------------ ##
7761 _ASBOX
7762     ) |
7763       sed "s/^/$as_me: WARNING:     /" >&2
7764     ;;
7765   no:yes )
7766     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7768     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7772     (
7773       cat <<\_ASBOX
7774 ## ------------------------------------ ##
7775 ## Report this to bug-autoconf@gnu.org. ##
7776 ## ------------------------------------ ##
7777 _ASBOX
7778     ) |
7779       sed "s/^/$as_me: WARNING:     /" >&2
7780     ;;
7781 esac
7782 echo "$as_me:$LINENO: checking for $ac_header" >&5
7783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7785   echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787   eval "$as_ac_Header=$ac_header_preproc"
7788 fi
7789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7791
7792 fi
7793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7794   cat >>confdefs.h <<_ACEOF
7795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7796 _ACEOF
7797
7798 fi
7799
7800 done
7801
7802     SECTION_FLAGS='-ffunction-sections -fdata-sections'
7803
7804
7805   # If we're not using GNU ld, then there's no point in even trying these
7806   # tests.  Check for that first.  We should have already tested for gld
7807   # by now (in libtool), but require it now just to be safe...
7808   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7809   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7810
7811
7812
7813   # The name set by libtool depends on the version of libtool.  Shame on us
7814   # for depending on an impl detail, but c'est la vie.  Older versions used
7815   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7816   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7817   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7818   # set (hence we're using an older libtool), then set it.
7819   if test x${with_gnu_ld+set} != xset; then
7820     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7821       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7822       with_gnu_ld=no
7823     else
7824       with_gnu_ld=$ac_cv_prog_gnu_ld
7825     fi
7826   fi
7827
7828   # Start by getting the version number.  I think the libtool test already
7829   # does some of this, but throws away the result.
7830
7831   ldver=`$LD --version 2>/dev/null | head -1 | \
7832          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7833
7834   glibcxx_gnu_ld_version=`echo $ldver | \
7835          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7836
7837   # Set --gc-sections.
7838   if test "$with_gnu_ld" = "notbroken"; then
7839     # GNU ld it is!  Joy and bunny rabbits!
7840
7841     # All these tests are for C++; save the language and the compiler flags.
7842     # Need to do this so that g++ won't try to link in libstdc++
7843     ac_test_CFLAGS="${CFLAGS+set}"
7844     ac_save_CFLAGS="$CFLAGS"
7845     CFLAGS='-x c++  -Wl,--gc-sections'
7846
7847     # Check for -Wl,--gc-sections
7848     # XXX This test is broken at the moment, as symbols required for linking
7849     # are now in libsupc++ (not built yet).  In addition, this test has
7850     # cored on solaris in the past.  In addition, --gc-sections doesn't
7851     # really work at the moment (keeps on discarding used sections, first
7852     # .eh_frame and now some of the glibc sections for iconv).
7853     # Bzzzzt.  Thanks for playing, maybe next time.
7854     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
7855 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
7856     if test "$cross_compiling" = yes; then
7857   ac_sectionLDflags=yes
7858 else
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
7867      int main(void)
7868      {
7869        try { throw 1; }
7870        catch (...) { };
7871        return 0;
7872      }
7873
7874 _ACEOF
7875 rm -f conftest$ac_exeext
7876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7877   (eval $ac_link) 2>&5
7878   ac_status=$?
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882   (eval $ac_try) 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; }; then
7886   ac_sectionLDflags=yes
7887 else
7888   echo "$as_me: program exited with status $ac_status" >&5
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7891
7892 ( exit $ac_status )
7893 ac_sectionLDflags=no
7894 fi
7895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7896 fi
7897     if test "$ac_test_CFLAGS" = set; then
7898       CFLAGS="$ac_save_CFLAGS"
7899     else
7900       # this is the suspicious part
7901       CFLAGS=''
7902     fi
7903     if test "$ac_sectionLDflags" = "yes"; then
7904       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7905     fi
7906     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
7907 echo "${ECHO_T}$ac_sectionLDflags" >&6
7908   fi
7909
7910   # Set linker optimization flags.
7911   if test x"$with_gnu_ld" = x"yes"; then
7912     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7913   fi
7914
7915
7916
7917
7918
7919
7920 echo "$as_me:$LINENO: checking for main in -lm" >&5
7921 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7922 if test "${ac_cv_lib_m_main+set}" = set; then
7923   echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925   ac_check_lib_save_LIBS=$LIBS
7926 LIBS="-lm  $LIBS"
7927 cat >conftest.$ac_ext <<_ACEOF
7928 #line $LINENO "configure"
7929 /* confdefs.h.  */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h.  */
7934
7935
7936 int
7937 main ()
7938 {
7939 main ();
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946   (eval $ac_link) 2>&5
7947   ac_status=$?
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); } &&
7950          { ac_try='test -s conftest$ac_exeext'
7951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952   (eval $ac_try) 2>&5
7953   ac_status=$?
7954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); }; }; then
7956   ac_cv_lib_m_main=yes
7957 else
7958   echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7960
7961 ac_cv_lib_m_main=no
7962 fi
7963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7964 LIBS=$ac_check_lib_save_LIBS
7965 fi
7966 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7967 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7968 if test $ac_cv_lib_m_main = yes; then
7969   cat >>confdefs.h <<_ACEOF
7970 #define HAVE_LIBM 1
7971 _ACEOF
7972
7973   LIBS="-lm $LIBS"
7974
7975 fi
7976
7977
7978
7979 for ac_func in nan copysignf
7980 do
7981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7982 echo "$as_me:$LINENO: checking for $ac_func" >&5
7983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7984 if eval "test \"\${$as_ac_var+set}\" = set"; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987   cat >conftest.$ac_ext <<_ACEOF
7988 #line $LINENO "configure"
7989 /* confdefs.h.  */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h.  */
7994 /* System header to define __stub macros and hopefully few prototypes,
7995     which can conflict with char $ac_func (); below.
7996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7997     <limits.h> exists even on freestanding compilers.  */
7998 #ifdef __STDC__
7999 # include <limits.h>
8000 #else
8001 # include <assert.h>
8002 #endif
8003 /* Override any gcc2 internal prototype to avoid an error.  */
8004 #ifdef __cplusplus
8005 extern "C"
8006 {
8007 #endif
8008 /* We use char because int might match the return type of a gcc2
8009    builtin and then its argument prototype would still apply.  */
8010 char $ac_func ();
8011 /* The GNU C library defines this for functions which it implements
8012     to always fail with ENOSYS.  Some functions are actually named
8013     something starting with __ and the normal name is an alias.  */
8014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8015 choke me
8016 #else
8017 char (*f) () = $ac_func;
8018 #endif
8019 #ifdef __cplusplus
8020 }
8021 #endif
8022
8023 int
8024 main ()
8025 {
8026 return f != $ac_func;
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8033   (eval $ac_link) 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); } &&
8037          { ac_try='test -s conftest$ac_exeext'
8038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039   (eval $ac_try) 2>&5
8040   ac_status=$?
8041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042   (exit $ac_status); }; }; then
8043   eval "$as_ac_var=yes"
8044 else
8045   echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8047
8048 eval "$as_ac_var=no"
8049 fi
8050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8051 fi
8052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8054 if test `eval echo '${'$as_ac_var'}'` = yes; then
8055   cat >>confdefs.h <<_ACEOF
8056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8057 _ACEOF
8058
8059 else
8060   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8061 fi
8062 done
8063
8064
8065
8066 for ac_func in __signbit
8067 do
8068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8069 echo "$as_me:$LINENO: checking for $ac_func" >&5
8070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8071 if eval "test \"\${$as_ac_var+set}\" = set"; then
8072   echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074   cat >conftest.$ac_ext <<_ACEOF
8075 #line $LINENO "configure"
8076 /* confdefs.h.  */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h.  */
8081 /* System header to define __stub macros and hopefully few prototypes,
8082     which can conflict with char $ac_func (); below.
8083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8084     <limits.h> exists even on freestanding compilers.  */
8085 #ifdef __STDC__
8086 # include <limits.h>
8087 #else
8088 # include <assert.h>
8089 #endif
8090 /* Override any gcc2 internal prototype to avoid an error.  */
8091 #ifdef __cplusplus
8092 extern "C"
8093 {
8094 #endif
8095 /* We use char because int might match the return type of a gcc2
8096    builtin and then its argument prototype would still apply.  */
8097 char $ac_func ();
8098 /* The GNU C library defines this for functions which it implements
8099     to always fail with ENOSYS.  Some functions are actually named
8100     something starting with __ and the normal name is an alias.  */
8101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8102 choke me
8103 #else
8104 char (*f) () = $ac_func;
8105 #endif
8106 #ifdef __cplusplus
8107 }
8108 #endif
8109
8110 int
8111 main ()
8112 {
8113 return f != $ac_func;
8114   ;
8115   return 0;
8116 }
8117 _ACEOF
8118 rm -f conftest.$ac_objext conftest$ac_exeext
8119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8120   (eval $ac_link) 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); } &&
8124          { ac_try='test -s conftest$ac_exeext'
8125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126   (eval $ac_try) 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; }; then
8130   eval "$as_ac_var=yes"
8131 else
8132   echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135 eval "$as_ac_var=no"
8136 fi
8137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8138 fi
8139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8141 if test `eval echo '${'$as_ac_var'}'` = yes; then
8142   cat >>confdefs.h <<_ACEOF
8143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8144 _ACEOF
8145
8146 else
8147   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8148 fi
8149 done
8150
8151
8152 for ac_func in __signbitf
8153 do
8154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8155 echo "$as_me:$LINENO: checking for $ac_func" >&5
8156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8157 if eval "test \"\${$as_ac_var+set}\" = set"; then
8158   echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160   cat >conftest.$ac_ext <<_ACEOF
8161 #line $LINENO "configure"
8162 /* confdefs.h.  */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h.  */
8167 /* System header to define __stub macros and hopefully few prototypes,
8168     which can conflict with char $ac_func (); below.
8169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8170     <limits.h> exists even on freestanding compilers.  */
8171 #ifdef __STDC__
8172 # include <limits.h>
8173 #else
8174 # include <assert.h>
8175 #endif
8176 /* Override any gcc2 internal prototype to avoid an error.  */
8177 #ifdef __cplusplus
8178 extern "C"
8179 {
8180 #endif
8181 /* We use char because int might match the return type of a gcc2
8182    builtin and then its argument prototype would still apply.  */
8183 char $ac_func ();
8184 /* The GNU C library defines this for functions which it implements
8185     to always fail with ENOSYS.  Some functions are actually named
8186     something starting with __ and the normal name is an alias.  */
8187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8188 choke me
8189 #else
8190 char (*f) () = $ac_func;
8191 #endif
8192 #ifdef __cplusplus
8193 }
8194 #endif
8195
8196 int
8197 main ()
8198 {
8199 return f != $ac_func;
8200   ;
8201   return 0;
8202 }
8203 _ACEOF
8204 rm -f conftest.$ac_objext conftest$ac_exeext
8205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8206   (eval $ac_link) 2>&5
8207   ac_status=$?
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } &&
8210          { ac_try='test -s conftest$ac_exeext'
8211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212   (eval $ac_try) 2>&5
8213   ac_status=$?
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); }; }; then
8216   eval "$as_ac_var=yes"
8217 else
8218   echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8220
8221 eval "$as_ac_var=no"
8222 fi
8223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8224 fi
8225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8227 if test `eval echo '${'$as_ac_var'}'` = yes; then
8228   cat >>confdefs.h <<_ACEOF
8229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8230 _ACEOF
8231
8232 else
8233   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8234 fi
8235 done
8236
8237
8238           if test x$ac_cv_func_copysignl = x"yes"; then
8239
8240 for ac_func in __signbitl
8241 do
8242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8243 echo "$as_me:$LINENO: checking for $ac_func" >&5
8244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8245 if eval "test \"\${$as_ac_var+set}\" = set"; then
8246   echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248   cat >conftest.$ac_ext <<_ACEOF
8249 #line $LINENO "configure"
8250 /* confdefs.h.  */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h.  */
8255 /* System header to define __stub macros and hopefully few prototypes,
8256     which can conflict with char $ac_func (); below.
8257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8258     <limits.h> exists even on freestanding compilers.  */
8259 #ifdef __STDC__
8260 # include <limits.h>
8261 #else
8262 # include <assert.h>
8263 #endif
8264 /* Override any gcc2 internal prototype to avoid an error.  */
8265 #ifdef __cplusplus
8266 extern "C"
8267 {
8268 #endif
8269 /* We use char because int might match the return type of a gcc2
8270    builtin and then its argument prototype would still apply.  */
8271 char $ac_func ();
8272 /* The GNU C library defines this for functions which it implements
8273     to always fail with ENOSYS.  Some functions are actually named
8274     something starting with __ and the normal name is an alias.  */
8275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8276 choke me
8277 #else
8278 char (*f) () = $ac_func;
8279 #endif
8280 #ifdef __cplusplus
8281 }
8282 #endif
8283
8284 int
8285 main ()
8286 {
8287 return f != $ac_func;
8288   ;
8289   return 0;
8290 }
8291 _ACEOF
8292 rm -f conftest.$ac_objext conftest$ac_exeext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8294   (eval $ac_link) 2>&5
8295   ac_status=$?
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); } &&
8298          { ac_try='test -s conftest$ac_exeext'
8299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300   (eval $ac_try) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; }; then
8304   eval "$as_ac_var=yes"
8305 else
8306   echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309 eval "$as_ac_var=no"
8310 fi
8311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8312 fi
8313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8315 if test `eval echo '${'$as_ac_var'}'` = yes; then
8316   cat >>confdefs.h <<_ACEOF
8317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8318 _ACEOF
8319
8320 else
8321   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8322 fi
8323 done
8324
8325   fi
8326
8327   if test -n "$LIBMATHOBJS"; then
8328     need_libmath=yes
8329   fi
8330
8331
8332
8333   # Test wchar.h for mbstate_t, which is needed for char_traits and
8334   # others even if wchar_t support is not on.
8335   echo "$as_me:$LINENO: checking for mbstate_t" >&5
8336 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
8337   cat >conftest.$ac_ext <<_ACEOF
8338 #line $LINENO "configure"
8339 /* confdefs.h.  */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h.  */
8344 #include <wchar.h>
8345 int
8346 main ()
8347 {
8348 mbstate_t teststate;
8349   ;
8350   return 0;
8351 }
8352 _ACEOF
8353 rm -f conftest.$ac_objext
8354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8355   (eval $ac_compile) 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); } &&
8359          { ac_try='test -s conftest.$ac_objext'
8360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361   (eval $ac_try) 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; }; then
8365   have_mbstate_t=yes
8366 else
8367   echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370 have_mbstate_t=no
8371 fi
8372 rm -f conftest.$ac_objext conftest.$ac_ext
8373   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
8374 echo "${ECHO_T}$have_mbstate_t" >&6
8375   if test x"$have_mbstate_t" = xyes; then
8376     cat >>confdefs.h <<\_ACEOF
8377 #define HAVE_MBSTATE_T 1
8378 _ACEOF
8379
8380   fi
8381
8382   # Sanity check for existence of ISO C99 headers for extended encoding.
8383
8384 for ac_header in wchar.h
8385 do
8386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388   echo "$as_me:$LINENO: checking for $ac_header" >&5
8389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8391   echo $ECHO_N "(cached) $ECHO_C" >&6
8392 fi
8393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8395 else
8396   # Is the header compilable?
8397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8399 cat >conftest.$ac_ext <<_ACEOF
8400 #line $LINENO "configure"
8401 /* confdefs.h.  */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h.  */
8406 $ac_includes_default
8407 #include <$ac_header>
8408 _ACEOF
8409 rm -f conftest.$ac_objext
8410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8411   (eval $ac_compile) 2>&5
8412   ac_status=$?
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); } &&
8415          { ac_try='test -s conftest.$ac_objext'
8416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417   (eval $ac_try) 2>&5
8418   ac_status=$?
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); }; }; then
8421   ac_header_compiler=yes
8422 else
8423   echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8425
8426 ac_header_compiler=no
8427 fi
8428 rm -f conftest.$ac_objext conftest.$ac_ext
8429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8430 echo "${ECHO_T}$ac_header_compiler" >&6
8431
8432 # Is the header present?
8433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8435 cat >conftest.$ac_ext <<_ACEOF
8436 #line $LINENO "configure"
8437 /* confdefs.h.  */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h.  */
8442 #include <$ac_header>
8443 _ACEOF
8444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8446   ac_status=$?
8447   grep -v '^ *+' conftest.er1 >conftest.err
8448   rm -f conftest.er1
8449   cat conftest.err >&5
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } >/dev/null; then
8452   if test -s conftest.err; then
8453     ac_cpp_err=$ac_c_preproc_warn_flag
8454   else
8455     ac_cpp_err=
8456   fi
8457 else
8458   ac_cpp_err=yes
8459 fi
8460 if test -z "$ac_cpp_err"; then
8461   ac_header_preproc=yes
8462 else
8463   echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8465
8466   ac_header_preproc=no
8467 fi
8468 rm -f conftest.err conftest.$ac_ext
8469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8470 echo "${ECHO_T}$ac_header_preproc" >&6
8471
8472 # So?  What about this header?
8473 case $ac_header_compiler:$ac_header_preproc in
8474   yes:no )
8475     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8479     (
8480       cat <<\_ASBOX
8481 ## ------------------------------------ ##
8482 ## Report this to bug-autoconf@gnu.org. ##
8483 ## ------------------------------------ ##
8484 _ASBOX
8485     ) |
8486       sed "s/^/$as_me: WARNING:     /" >&2
8487     ;;
8488   no:yes )
8489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8491     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8495     (
8496       cat <<\_ASBOX
8497 ## ------------------------------------ ##
8498 ## Report this to bug-autoconf@gnu.org. ##
8499 ## ------------------------------------ ##
8500 _ASBOX
8501     ) |
8502       sed "s/^/$as_me: WARNING:     /" >&2
8503     ;;
8504 esac
8505 echo "$as_me:$LINENO: checking for $ac_header" >&5
8506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510   eval "$as_ac_Header=$ac_header_preproc"
8511 fi
8512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8514
8515 fi
8516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8517   cat >>confdefs.h <<_ACEOF
8518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8519 _ACEOF
8520  ac_has_wchar_h=yes
8521 else
8522   ac_has_wchar_h=no
8523 fi
8524
8525 done
8526
8527
8528 for ac_header in wctype.h
8529 do
8530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8532   echo "$as_me:$LINENO: checking for $ac_header" >&5
8533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8535   echo $ECHO_N "(cached) $ECHO_C" >&6
8536 fi
8537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8539 else
8540   # Is the header compilable?
8541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8543 cat >conftest.$ac_ext <<_ACEOF
8544 #line $LINENO "configure"
8545 /* confdefs.h.  */
8546 _ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h.  */
8550 $ac_includes_default
8551 #include <$ac_header>
8552 _ACEOF
8553 rm -f conftest.$ac_objext
8554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8555   (eval $ac_compile) 2>&5
8556   ac_status=$?
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); } &&
8559          { ac_try='test -s conftest.$ac_objext'
8560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561   (eval $ac_try) 2>&5
8562   ac_status=$?
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); }; }; then
8565   ac_header_compiler=yes
8566 else
8567   echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8569
8570 ac_header_compiler=no
8571 fi
8572 rm -f conftest.$ac_objext conftest.$ac_ext
8573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8574 echo "${ECHO_T}$ac_header_compiler" >&6
8575
8576 # Is the header present?
8577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8579 cat >conftest.$ac_ext <<_ACEOF
8580 #line $LINENO "configure"
8581 /* confdefs.h.  */
8582 _ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h.  */
8586 #include <$ac_header>
8587 _ACEOF
8588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8589   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8590   ac_status=$?
8591   grep -v '^ *+' conftest.er1 >conftest.err
8592   rm -f conftest.er1
8593   cat conftest.err >&5
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); } >/dev/null; then
8596   if test -s conftest.err; then
8597     ac_cpp_err=$ac_c_preproc_warn_flag
8598   else
8599     ac_cpp_err=
8600   fi
8601 else
8602   ac_cpp_err=yes
8603 fi
8604 if test -z "$ac_cpp_err"; then
8605   ac_header_preproc=yes
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610   ac_header_preproc=no
8611 fi
8612 rm -f conftest.err conftest.$ac_ext
8613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8614 echo "${ECHO_T}$ac_header_preproc" >&6
8615
8616 # So?  What about this header?
8617 case $ac_header_compiler:$ac_header_preproc in
8618   yes:no )
8619     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8623     (
8624       cat <<\_ASBOX
8625 ## ------------------------------------ ##
8626 ## Report this to bug-autoconf@gnu.org. ##
8627 ## ------------------------------------ ##
8628 _ASBOX
8629     ) |
8630       sed "s/^/$as_me: WARNING:     /" >&2
8631     ;;
8632   no:yes )
8633     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8635     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8639     (
8640       cat <<\_ASBOX
8641 ## ------------------------------------ ##
8642 ## Report this to bug-autoconf@gnu.org. ##
8643 ## ------------------------------------ ##
8644 _ASBOX
8645     ) |
8646       sed "s/^/$as_me: WARNING:     /" >&2
8647     ;;
8648 esac
8649 echo "$as_me:$LINENO: checking for $ac_header" >&5
8650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654   eval "$as_ac_Header=$ac_header_preproc"
8655 fi
8656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8658
8659 fi
8660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8661   cat >>confdefs.h <<_ACEOF
8662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8663 _ACEOF
8664  ac_has_wctype_h=yes
8665 else
8666   ac_has_wctype_h=no
8667 fi
8668
8669 done
8670
8671
8672   # Only continue checking if the ISO C99 headers exist and support is on.
8673   if test x"$ac_has_wchar_h" = xyes &&
8674      test x"$ac_has_wctype_h" = xyes &&
8675      test x"$enable_c_mbchar" != xno; then
8676
8677     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
8678     # numeric_limits can instantiate type_traits<wchar_t>
8679     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
8680 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
8681     cat >conftest.$ac_ext <<_ACEOF
8682 #line $LINENO "configure"
8683 /* confdefs.h.  */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h.  */
8688 #include <wchar.h>
8689 int
8690 main ()
8691 {
8692 int i = WCHAR_MIN; int j = WCHAR_MAX;
8693   ;
8694   return 0;
8695 }
8696 _ACEOF
8697 rm -f conftest.$ac_objext
8698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8699   (eval $ac_compile) 2>&5
8700   ac_status=$?
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); } &&
8703          { ac_try='test -s conftest.$ac_objext'
8704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705   (eval $ac_try) 2>&5
8706   ac_status=$?
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); }; }; then
8709   has_wchar_minmax=yes
8710 else
8711   echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8713
8714 has_wchar_minmax=no
8715 fi
8716 rm -f conftest.$ac_objext conftest.$ac_ext
8717     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
8718 echo "${ECHO_T}$has_wchar_minmax" >&6
8719
8720     # Test wchar.h for WEOF, which is what we use to determine whether
8721     # to specialize for char_traits<wchar_t> or not.
8722     echo "$as_me:$LINENO: checking for WEOF" >&5
8723 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
8724     cat >conftest.$ac_ext <<_ACEOF
8725 #line $LINENO "configure"
8726 /* confdefs.h.  */
8727 _ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h.  */
8731
8732       #include <wchar.h>
8733       #include <stddef.h>
8734 int
8735 main ()
8736 {
8737 wint_t i = WEOF;
8738   ;
8739   return 0;
8740 }
8741 _ACEOF
8742 rm -f conftest.$ac_objext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8744   (eval $ac_compile) 2>&5
8745   ac_status=$?
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); } &&
8748          { ac_try='test -s conftest.$ac_objext'
8749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750   (eval $ac_try) 2>&5
8751   ac_status=$?
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); }; }; then
8754   has_weof=yes
8755 else
8756   echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8758
8759 has_weof=no
8760 fi
8761 rm -f conftest.$ac_objext conftest.$ac_ext
8762     echo "$as_me:$LINENO: result: $has_weof" >&5
8763 echo "${ECHO_T}$has_weof" >&6
8764
8765     # Tests for wide character functions used in char_traits<wchar_t>.
8766     ac_wfuncs=yes
8767
8768
8769
8770
8771
8772
8773 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8774 do
8775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8776 echo "$as_me:$LINENO: checking for $ac_func" >&5
8777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8778 if eval "test \"\${$as_ac_var+set}\" = set"; then
8779   echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781   cat >conftest.$ac_ext <<_ACEOF
8782 #line $LINENO "configure"
8783 /* confdefs.h.  */
8784 _ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h.  */
8788 /* System header to define __stub macros and hopefully few prototypes,
8789     which can conflict with char $ac_func (); below.
8790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8791     <limits.h> exists even on freestanding compilers.  */
8792 #ifdef __STDC__
8793 # include <limits.h>
8794 #else
8795 # include <assert.h>
8796 #endif
8797 /* Override any gcc2 internal prototype to avoid an error.  */
8798 #ifdef __cplusplus
8799 extern "C"
8800 {
8801 #endif
8802 /* We use char because int might match the return type of a gcc2
8803    builtin and then its argument prototype would still apply.  */
8804 char $ac_func ();
8805 /* The GNU C library defines this for functions which it implements
8806     to always fail with ENOSYS.  Some functions are actually named
8807     something starting with __ and the normal name is an alias.  */
8808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8809 choke me
8810 #else
8811 char (*f) () = $ac_func;
8812 #endif
8813 #ifdef __cplusplus
8814 }
8815 #endif
8816
8817 int
8818 main ()
8819 {
8820 return f != $ac_func;
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827   (eval $ac_link) 2>&5
8828   ac_status=$?
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); } &&
8831          { ac_try='test -s conftest$ac_exeext'
8832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833   (eval $ac_try) 2>&5
8834   ac_status=$?
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); }; }; then
8837   eval "$as_ac_var=yes"
8838 else
8839   echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8841
8842 eval "$as_ac_var=no"
8843 fi
8844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8845 fi
8846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8848 if test `eval echo '${'$as_ac_var'}'` = yes; then
8849   cat >>confdefs.h <<_ACEOF
8850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8851 _ACEOF
8852
8853 else
8854   ac_wfuncs=no
8855 fi
8856 done
8857
8858
8859     # Checks for names injected into std:: by the c_std headers.
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8911     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8912     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8913     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8914     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8915     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8916 do
8917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8918 echo "$as_me:$LINENO: checking for $ac_func" >&5
8919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8920 if eval "test \"\${$as_ac_var+set}\" = set"; then
8921   echo $ECHO_N "(cached) $ECHO_C" >&6
8922 else
8923   cat >conftest.$ac_ext <<_ACEOF
8924 #line $LINENO "configure"
8925 /* confdefs.h.  */
8926 _ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h.  */
8930 /* System header to define __stub macros and hopefully few prototypes,
8931     which can conflict with char $ac_func (); below.
8932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8933     <limits.h> exists even on freestanding compilers.  */
8934 #ifdef __STDC__
8935 # include <limits.h>
8936 #else
8937 # include <assert.h>
8938 #endif
8939 /* Override any gcc2 internal prototype to avoid an error.  */
8940 #ifdef __cplusplus
8941 extern "C"
8942 {
8943 #endif
8944 /* We use char because int might match the return type of a gcc2
8945    builtin and then its argument prototype would still apply.  */
8946 char $ac_func ();
8947 /* The GNU C library defines this for functions which it implements
8948     to always fail with ENOSYS.  Some functions are actually named
8949     something starting with __ and the normal name is an alias.  */
8950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8951 choke me
8952 #else
8953 char (*f) () = $ac_func;
8954 #endif
8955 #ifdef __cplusplus
8956 }
8957 #endif
8958
8959 int
8960 main ()
8961 {
8962 return f != $ac_func;
8963   ;
8964   return 0;
8965 }
8966 _ACEOF
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8969   (eval $ac_link) 2>&5
8970   ac_status=$?
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); } &&
8973          { ac_try='test -s conftest$ac_exeext'
8974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975   (eval $ac_try) 2>&5
8976   ac_status=$?
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); }; }; then
8979   eval "$as_ac_var=yes"
8980 else
8981   echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8983
8984 eval "$as_ac_var=no"
8985 fi
8986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8987 fi
8988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8990 if test `eval echo '${'$as_ac_var'}'` = yes; then
8991   cat >>confdefs.h <<_ACEOF
8992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8993 _ACEOF
8994
8995 else
8996   ac_wfuncs=no
8997 fi
8998 done
8999
9000
9001     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
9002 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
9003     if test x"$has_weof" = xyes &&
9004        test x"$has_wchar_minmax" = xyes &&
9005        test x"$ac_wfuncs" = xyes;
9006     then
9007       ac_isoC99_wchar_t=yes
9008     else
9009       ac_isoC99_wchar_t=no
9010     fi
9011     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
9012 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
9013
9014     # Use iconv for wchar_t to char conversions. As such, check for
9015     # X/Open Portability Guide, version 2 features (XPG2).
9016     if test "${ac_cv_header_iconv_h+set}" = set; then
9017   echo "$as_me:$LINENO: checking for iconv.h" >&5
9018 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
9019 if test "${ac_cv_header_iconv_h+set}" = set; then
9020   echo $ECHO_N "(cached) $ECHO_C" >&6
9021 fi
9022 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
9023 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
9024 else
9025   # Is the header compilable?
9026 echo "$as_me:$LINENO: checking iconv.h usability" >&5
9027 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9029 #line $LINENO "configure"
9030 /* confdefs.h.  */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h.  */
9035 $ac_includes_default
9036 #include <iconv.h>
9037 _ACEOF
9038 rm -f conftest.$ac_objext
9039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9040   (eval $ac_compile) 2>&5
9041   ac_status=$?
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); } &&
9044          { ac_try='test -s conftest.$ac_objext'
9045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046   (eval $ac_try) 2>&5
9047   ac_status=$?
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); }; }; then
9050   ac_header_compiler=yes
9051 else
9052   echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9054
9055 ac_header_compiler=no
9056 fi
9057 rm -f conftest.$ac_objext conftest.$ac_ext
9058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9059 echo "${ECHO_T}$ac_header_compiler" >&6
9060
9061 # Is the header present?
9062 echo "$as_me:$LINENO: checking iconv.h presence" >&5
9063 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
9064 cat >conftest.$ac_ext <<_ACEOF
9065 #line $LINENO "configure"
9066 /* confdefs.h.  */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h.  */
9071 #include <iconv.h>
9072 _ACEOF
9073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9074   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9075   ac_status=$?
9076   grep -v '^ *+' conftest.er1 >conftest.err
9077   rm -f conftest.er1
9078   cat conftest.err >&5
9079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080   (exit $ac_status); } >/dev/null; then
9081   if test -s conftest.err; then
9082     ac_cpp_err=$ac_c_preproc_warn_flag
9083   else
9084     ac_cpp_err=
9085   fi
9086 else
9087   ac_cpp_err=yes
9088 fi
9089 if test -z "$ac_cpp_err"; then
9090   ac_header_preproc=yes
9091 else
9092   echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.$ac_ext >&5
9094
9095   ac_header_preproc=no
9096 fi
9097 rm -f conftest.err conftest.$ac_ext
9098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9099 echo "${ECHO_T}$ac_header_preproc" >&6
9100
9101 # So?  What about this header?
9102 case $ac_header_compiler:$ac_header_preproc in
9103   yes:no )
9104     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
9105 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9106     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
9107 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
9108     (
9109       cat <<\_ASBOX
9110 ## ------------------------------------ ##
9111 ## Report this to bug-autoconf@gnu.org. ##
9112 ## ------------------------------------ ##
9113 _ASBOX
9114     ) |
9115       sed "s/^/$as_me: WARNING:     /" >&2
9116     ;;
9117   no:yes )
9118     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
9119 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
9120     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
9121 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
9122     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
9123 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
9124     (
9125       cat <<\_ASBOX
9126 ## ------------------------------------ ##
9127 ## Report this to bug-autoconf@gnu.org. ##
9128 ## ------------------------------------ ##
9129 _ASBOX
9130     ) |
9131       sed "s/^/$as_me: WARNING:     /" >&2
9132     ;;
9133 esac
9134 echo "$as_me:$LINENO: checking for iconv.h" >&5
9135 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
9136 if test "${ac_cv_header_iconv_h+set}" = set; then
9137   echo $ECHO_N "(cached) $ECHO_C" >&6
9138 else
9139   ac_cv_header_iconv_h=$ac_header_preproc
9140 fi
9141 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
9142 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
9143
9144 fi
9145 if test $ac_cv_header_iconv_h = yes; then
9146   ac_has_iconv_h=yes
9147 else
9148   ac_has_iconv_h=no
9149 fi
9150
9151
9152     if test "${ac_cv_header_langinfo_h+set}" = set; then
9153   echo "$as_me:$LINENO: checking for langinfo.h" >&5
9154 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
9155 if test "${ac_cv_header_langinfo_h+set}" = set; then
9156   echo $ECHO_N "(cached) $ECHO_C" >&6
9157 fi
9158 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
9159 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
9160 else
9161   # Is the header compilable?
9162 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
9163 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
9164 cat >conftest.$ac_ext <<_ACEOF
9165 #line $LINENO "configure"
9166 /* confdefs.h.  */
9167 _ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h.  */
9171 $ac_includes_default
9172 #include <langinfo.h>
9173 _ACEOF
9174 rm -f conftest.$ac_objext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9176   (eval $ac_compile) 2>&5
9177   ac_status=$?
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   (exit $ac_status); } &&
9180          { ac_try='test -s conftest.$ac_objext'
9181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182   (eval $ac_try) 2>&5
9183   ac_status=$?
9184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185   (exit $ac_status); }; }; then
9186   ac_header_compiler=yes
9187 else
9188   echo "$as_me: failed program was:" >&5
9189 sed 's/^/| /' conftest.$ac_ext >&5
9190
9191 ac_header_compiler=no
9192 fi
9193 rm -f conftest.$ac_objext conftest.$ac_ext
9194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9195 echo "${ECHO_T}$ac_header_compiler" >&6
9196
9197 # Is the header present?
9198 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
9199 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
9200 cat >conftest.$ac_ext <<_ACEOF
9201 #line $LINENO "configure"
9202 /* confdefs.h.  */
9203 _ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h.  */
9207 #include <langinfo.h>
9208 _ACEOF
9209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9210   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9211   ac_status=$?
9212   grep -v '^ *+' conftest.er1 >conftest.err
9213   rm -f conftest.er1
9214   cat conftest.err >&5
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); } >/dev/null; then
9217   if test -s conftest.err; then
9218     ac_cpp_err=$ac_c_preproc_warn_flag
9219   else
9220     ac_cpp_err=
9221   fi
9222 else
9223   ac_cpp_err=yes
9224 fi
9225 if test -z "$ac_cpp_err"; then
9226   ac_header_preproc=yes
9227 else
9228   echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9230
9231   ac_header_preproc=no
9232 fi
9233 rm -f conftest.err conftest.$ac_ext
9234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9235 echo "${ECHO_T}$ac_header_preproc" >&6
9236
9237 # So?  What about this header?
9238 case $ac_header_compiler:$ac_header_preproc in
9239   yes:no )
9240     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
9241 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9242     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
9243 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
9244     (
9245       cat <<\_ASBOX
9246 ## ------------------------------------ ##
9247 ## Report this to bug-autoconf@gnu.org. ##
9248 ## ------------------------------------ ##
9249 _ASBOX
9250     ) |
9251       sed "s/^/$as_me: WARNING:     /" >&2
9252     ;;
9253   no:yes )
9254     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
9255 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
9256     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
9257 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
9258     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
9259 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
9260     (
9261       cat <<\_ASBOX
9262 ## ------------------------------------ ##
9263 ## Report this to bug-autoconf@gnu.org. ##
9264 ## ------------------------------------ ##
9265 _ASBOX
9266     ) |
9267       sed "s/^/$as_me: WARNING:     /" >&2
9268     ;;
9269 esac
9270 echo "$as_me:$LINENO: checking for langinfo.h" >&5
9271 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
9272 if test "${ac_cv_header_langinfo_h+set}" = set; then
9273   echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275   ac_cv_header_langinfo_h=$ac_header_preproc
9276 fi
9277 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
9278 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
9279
9280 fi
9281 if test $ac_cv_header_langinfo_h = yes; then
9282   ac_has_langinfo_h=yes
9283 else
9284   ac_has_langinfo_h=no
9285 fi
9286
9287
9288
9289     # Check for existence of libiconv.a providing XPG2 wchar_t support.
9290     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
9291 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
9292 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
9293   echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295   ac_check_lib_save_LIBS=$LIBS
9296 LIBS="-liconv  $LIBS"
9297 cat >conftest.$ac_ext <<_ACEOF
9298 #line $LINENO "configure"
9299 /* confdefs.h.  */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h.  */
9304
9305 /* Override any gcc2 internal prototype to avoid an error.  */
9306 #ifdef __cplusplus
9307 extern "C"
9308 #endif
9309 /* We use char because int might match the return type of a gcc2
9310    builtin and then its argument prototype would still apply.  */
9311 char iconv ();
9312 int
9313 main ()
9314 {
9315 iconv ();
9316   ;
9317   return 0;
9318 }
9319 _ACEOF
9320 rm -f conftest.$ac_objext conftest$ac_exeext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9322   (eval $ac_link) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); } &&
9326          { ac_try='test -s conftest$ac_exeext'
9327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328   (eval $ac_try) 2>&5
9329   ac_status=$?
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); }; }; then
9332   ac_cv_lib_iconv_iconv=yes
9333 else
9334   echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9336
9337 ac_cv_lib_iconv_iconv=no
9338 fi
9339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9340 LIBS=$ac_check_lib_save_LIBS
9341 fi
9342 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
9343 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
9344 if test $ac_cv_lib_iconv_iconv = yes; then
9345   libiconv="-liconv"
9346 fi
9347
9348     ac_save_LIBS="$LIBS"
9349     LIBS="$LIBS $libiconv"
9350
9351
9352
9353
9354
9355 for ac_func in iconv_open iconv_close iconv nl_langinfo
9356 do
9357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9358 echo "$as_me:$LINENO: checking for $ac_func" >&5
9359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9360 if eval "test \"\${$as_ac_var+set}\" = set"; then
9361   echo $ECHO_N "(cached) $ECHO_C" >&6
9362 else
9363   cat >conftest.$ac_ext <<_ACEOF
9364 #line $LINENO "configure"
9365 /* confdefs.h.  */
9366 _ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h.  */
9370 /* System header to define __stub macros and hopefully few prototypes,
9371     which can conflict with char $ac_func (); below.
9372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9373     <limits.h> exists even on freestanding compilers.  */
9374 #ifdef __STDC__
9375 # include <limits.h>
9376 #else
9377 # include <assert.h>
9378 #endif
9379 /* Override any gcc2 internal prototype to avoid an error.  */
9380 #ifdef __cplusplus
9381 extern "C"
9382 {
9383 #endif
9384 /* We use char because int might match the return type of a gcc2
9385    builtin and then its argument prototype would still apply.  */
9386 char $ac_func ();
9387 /* The GNU C library defines this for functions which it implements
9388     to always fail with ENOSYS.  Some functions are actually named
9389     something starting with __ and the normal name is an alias.  */
9390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9391 choke me
9392 #else
9393 char (*f) () = $ac_func;
9394 #endif
9395 #ifdef __cplusplus
9396 }
9397 #endif
9398
9399 int
9400 main ()
9401 {
9402 return f != $ac_func;
9403   ;
9404   return 0;
9405 }
9406 _ACEOF
9407 rm -f conftest.$ac_objext conftest$ac_exeext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409   (eval $ac_link) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); } &&
9413          { ac_try='test -s conftest$ac_exeext'
9414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415   (eval $ac_try) 2>&5
9416   ac_status=$?
9417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418   (exit $ac_status); }; }; then
9419   eval "$as_ac_var=yes"
9420 else
9421   echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9423
9424 eval "$as_ac_var=no"
9425 fi
9426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9427 fi
9428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9430 if test `eval echo '${'$as_ac_var'}'` = yes; then
9431   cat >>confdefs.h <<_ACEOF
9432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9433 _ACEOF
9434  ac_XPG2funcs=yes
9435 else
9436   ac_XPG2funcs=no
9437 fi
9438 done
9439
9440
9441     LIBS="$ac_save_LIBS"
9442
9443     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
9444 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
9445     if test x"$ac_has_iconv_h" = xyes &&
9446        test x"$ac_has_langinfo_h" = xyes &&
9447        test x"$ac_XPG2funcs" = xyes;
9448     then
9449       ac_XPG2_wchar_t=yes
9450     else
9451       ac_XPG2_wchar_t=no
9452     fi
9453     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
9454 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
9455
9456     # At the moment, only enable wchar_t specializations if all the
9457     # above support is present.
9458     if test x"$ac_isoC99_wchar_t" = xyes &&
9459        test x"$ac_XPG2_wchar_t" = xyes;
9460     then
9461       cat >>confdefs.h <<\_ACEOF
9462 #define _GLIBCXX_USE_WCHAR_T 1
9463 _ACEOF
9464
9465       enable_wchar_t=yes
9466     fi
9467   fi
9468   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
9469 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
9470   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
9471 echo "${ECHO_T}$enable_wchar_t" >&6
9472
9473     cat >>confdefs.h <<\_ACEOF
9474 #define HAVE_LC_MESSAGES 1
9475 _ACEOF
9476
9477     cat >>confdefs.h <<\_ACEOF
9478 #define HAVE_DRAND48 1
9479 _ACEOF
9480
9481     cat >>confdefs.h <<\_ACEOF
9482 #define HAVE_GETPAGESIZE 1
9483 _ACEOF
9484
9485     cat >>confdefs.h <<\_ACEOF
9486 #define HAVE_SETENV 1
9487 _ACEOF
9488
9489     cat >>confdefs.h <<\_ACEOF
9490 #define HAVE_SIGSETJMP 1
9491 _ACEOF
9492
9493     cat >>confdefs.h <<\_ACEOF
9494 #define HAVE_COPYSIGN 1
9495 _ACEOF
9496
9497     cat >>confdefs.h <<\_ACEOF
9498 #define HAVE_COPYSIGNF 1
9499 _ACEOF
9500
9501     cat >>confdefs.h <<\_ACEOF
9502 #define HAVE_FINITEF 1
9503 _ACEOF
9504
9505     cat >>confdefs.h <<\_ACEOF
9506 #define HAVE_FINITE 1
9507 _ACEOF
9508
9509     cat >>confdefs.h <<\_ACEOF
9510 #define HAVE_FREXPF 1
9511 _ACEOF
9512
9513     cat >>confdefs.h <<\_ACEOF
9514 #define HAVE_HYPOT 1
9515 _ACEOF
9516
9517     cat >>confdefs.h <<\_ACEOF
9518 #define HAVE_HYPOTF 1
9519 _ACEOF
9520
9521     cat >>confdefs.h <<\_ACEOF
9522 #define HAVE_ISINF 1
9523 _ACEOF
9524
9525     cat >>confdefs.h <<\_ACEOF
9526 #define HAVE_ISNAN 1
9527 _ACEOF
9528
9529     cat >>confdefs.h <<\_ACEOF
9530 #define HAVE_ISNANF 1
9531 _ACEOF
9532
9533
9534     cat >>confdefs.h <<\_ACEOF
9535 #define HAVE_MMAP 1
9536 _ACEOF
9537
9538     cat >>confdefs.h <<\_ACEOF
9539 #define HAVE_ACOSF 1
9540 _ACEOF
9541
9542     cat >>confdefs.h <<\_ACEOF
9543 #define HAVE_ASINF 1
9544 _ACEOF
9545
9546     cat >>confdefs.h <<\_ACEOF
9547 #define HAVE_ATAN2F 1
9548 _ACEOF
9549
9550     cat >>confdefs.h <<\_ACEOF
9551 #define HAVE_ATANF 1
9552 _ACEOF
9553
9554     cat >>confdefs.h <<\_ACEOF
9555 #define HAVE_CEILF 1
9556 _ACEOF
9557
9558     cat >>confdefs.h <<\_ACEOF
9559 #define HAVE_COPYSIGN 1
9560 _ACEOF
9561
9562     cat >>confdefs.h <<\_ACEOF
9563 #define HAVE_COPYSIGNF 1
9564 _ACEOF
9565
9566     cat >>confdefs.h <<\_ACEOF
9567 #define HAVE_COSF 1
9568 _ACEOF
9569
9570     cat >>confdefs.h <<\_ACEOF
9571 #define HAVE_COSHF 1
9572 _ACEOF
9573
9574     cat >>confdefs.h <<\_ACEOF
9575 #define HAVE_EXPF 1
9576 _ACEOF
9577
9578     cat >>confdefs.h <<\_ACEOF
9579 #define HAVE_FABSF 1
9580 _ACEOF
9581
9582     cat >>confdefs.h <<\_ACEOF
9583 #define HAVE_FLOORF 1
9584 _ACEOF
9585
9586     cat >>confdefs.h <<\_ACEOF
9587 #define HAVE_FMODF 1
9588 _ACEOF
9589
9590     cat >>confdefs.h <<\_ACEOF
9591 #define HAVE_FREXPF 1
9592 _ACEOF
9593
9594     cat >>confdefs.h <<\_ACEOF
9595 #define HAVE_LDEXPF 1
9596 _ACEOF
9597
9598     cat >>confdefs.h <<\_ACEOF
9599 #define HAVE_LOG10F 1
9600 _ACEOF
9601
9602     cat >>confdefs.h <<\_ACEOF
9603 #define HAVE_LOGF 1
9604 _ACEOF
9605
9606     cat >>confdefs.h <<\_ACEOF
9607 #define HAVE_MODFF 1
9608 _ACEOF
9609
9610     cat >>confdefs.h <<\_ACEOF
9611 #define HAVE_POWF 1
9612 _ACEOF
9613
9614     cat >>confdefs.h <<\_ACEOF
9615 #define HAVE_SINF 1
9616 _ACEOF
9617
9618     cat >>confdefs.h <<\_ACEOF
9619 #define HAVE_SINHF 1
9620 _ACEOF
9621
9622     cat >>confdefs.h <<\_ACEOF
9623 #define HAVE_SQRTF 1
9624 _ACEOF
9625
9626     cat >>confdefs.h <<\_ACEOF
9627 #define HAVE_TANF 1
9628 _ACEOF
9629
9630     cat >>confdefs.h <<\_ACEOF
9631 #define HAVE_TANHF 1
9632 _ACEOF
9633
9634     if test x"long_double_math_on_this_cpu" = x"yes"; then
9635       cat >>confdefs.h <<\_ACEOF
9636 #define HAVE_FINITEL 1
9637 _ACEOF
9638
9639       cat >>confdefs.h <<\_ACEOF
9640 #define HAVE_ISINFL 1
9641 _ACEOF
9642
9643       cat >>confdefs.h <<\_ACEOF
9644 #define HAVE_ISNANL 1
9645 _ACEOF
9646
9647     fi
9648     ;;
9649   *-hpux*)
9650     #os_include_dir="os/hpux"
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
9664       machine/endian.h machine/param.h sys/machine.h sys/types.h \
9665       fp.h locale.h float.h inttypes.h
9666 do
9667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9669   echo "$as_me:$LINENO: checking for $ac_header" >&5
9670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9672   echo $ECHO_N "(cached) $ECHO_C" >&6
9673 fi
9674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9676 else
9677   # Is the header compilable?
9678 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9680 cat >conftest.$ac_ext <<_ACEOF
9681 #line $LINENO "configure"
9682 /* confdefs.h.  */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h.  */
9687 $ac_includes_default
9688 #include <$ac_header>
9689 _ACEOF
9690 rm -f conftest.$ac_objext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9692   (eval $ac_compile) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); } &&
9696          { ac_try='test -s conftest.$ac_objext'
9697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698   (eval $ac_try) 2>&5
9699   ac_status=$?
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); }; }; then
9702   ac_header_compiler=yes
9703 else
9704   echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9706
9707 ac_header_compiler=no
9708 fi
9709 rm -f conftest.$ac_objext conftest.$ac_ext
9710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9711 echo "${ECHO_T}$ac_header_compiler" >&6
9712
9713 # Is the header present?
9714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9716 cat >conftest.$ac_ext <<_ACEOF
9717 #line $LINENO "configure"
9718 /* confdefs.h.  */
9719 _ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h.  */
9723 #include <$ac_header>
9724 _ACEOF
9725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9727   ac_status=$?
9728   grep -v '^ *+' conftest.er1 >conftest.err
9729   rm -f conftest.er1
9730   cat conftest.err >&5
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); } >/dev/null; then
9733   if test -s conftest.err; then
9734     ac_cpp_err=$ac_c_preproc_warn_flag
9735   else
9736     ac_cpp_err=
9737   fi
9738 else
9739   ac_cpp_err=yes
9740 fi
9741 if test -z "$ac_cpp_err"; then
9742   ac_header_preproc=yes
9743 else
9744   echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9746
9747   ac_header_preproc=no
9748 fi
9749 rm -f conftest.err conftest.$ac_ext
9750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9751 echo "${ECHO_T}$ac_header_preproc" >&6
9752
9753 # So?  What about this header?
9754 case $ac_header_compiler:$ac_header_preproc in
9755   yes:no )
9756     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9760     (
9761       cat <<\_ASBOX
9762 ## ------------------------------------ ##
9763 ## Report this to bug-autoconf@gnu.org. ##
9764 ## ------------------------------------ ##
9765 _ASBOX
9766     ) |
9767       sed "s/^/$as_me: WARNING:     /" >&2
9768     ;;
9769   no:yes )
9770     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9772     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9776     (
9777       cat <<\_ASBOX
9778 ## ------------------------------------ ##
9779 ## Report this to bug-autoconf@gnu.org. ##
9780 ## ------------------------------------ ##
9781 _ASBOX
9782     ) |
9783       sed "s/^/$as_me: WARNING:     /" >&2
9784     ;;
9785 esac
9786 echo "$as_me:$LINENO: checking for $ac_header" >&5
9787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9789   echo $ECHO_N "(cached) $ECHO_C" >&6
9790 else
9791   eval "$as_ac_Header=$ac_header_preproc"
9792 fi
9793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9795
9796 fi
9797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9798   cat >>confdefs.h <<_ACEOF
9799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9800 _ACEOF
9801
9802 fi
9803
9804 done
9805
9806     SECTION_FLAGS='-ffunction-sections -fdata-sections'
9807
9808
9809   # If we're not using GNU ld, then there's no point in even trying these
9810   # tests.  Check for that first.  We should have already tested for gld
9811   # by now (in libtool), but require it now just to be safe...
9812   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9813   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9814
9815
9816
9817   # The name set by libtool depends on the version of libtool.  Shame on us
9818   # for depending on an impl detail, but c'est la vie.  Older versions used
9819   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9820   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9821   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9822   # set (hence we're using an older libtool), then set it.
9823   if test x${with_gnu_ld+set} != xset; then
9824     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9825       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9826       with_gnu_ld=no
9827     else
9828       with_gnu_ld=$ac_cv_prog_gnu_ld
9829     fi
9830   fi
9831
9832   # Start by getting the version number.  I think the libtool test already
9833   # does some of this, but throws away the result.
9834
9835   ldver=`$LD --version 2>/dev/null | head -1 | \
9836          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9837
9838   glibcxx_gnu_ld_version=`echo $ldver | \
9839          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9840
9841   # Set --gc-sections.
9842   if test "$with_gnu_ld" = "notbroken"; then
9843     # GNU ld it is!  Joy and bunny rabbits!
9844
9845     # All these tests are for C++; save the language and the compiler flags.
9846     # Need to do this so that g++ won't try to link in libstdc++
9847     ac_test_CFLAGS="${CFLAGS+set}"
9848     ac_save_CFLAGS="$CFLAGS"
9849     CFLAGS='-x c++  -Wl,--gc-sections'
9850
9851     # Check for -Wl,--gc-sections
9852     # XXX This test is broken at the moment, as symbols required for linking
9853     # are now in libsupc++ (not built yet).  In addition, this test has
9854     # cored on solaris in the past.  In addition, --gc-sections doesn't
9855     # really work at the moment (keeps on discarding used sections, first
9856     # .eh_frame and now some of the glibc sections for iconv).
9857     # Bzzzzt.  Thanks for playing, maybe next time.
9858     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
9859 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
9860     if test "$cross_compiling" = yes; then
9861   ac_sectionLDflags=yes
9862 else
9863   cat >conftest.$ac_ext <<_ACEOF
9864 #line $LINENO "configure"
9865 /* confdefs.h.  */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h.  */
9870
9871      int main(void)
9872      {
9873        try { throw 1; }
9874        catch (...) { };
9875        return 0;
9876      }
9877
9878 _ACEOF
9879 rm -f conftest$ac_exeext
9880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9881   (eval $ac_link) 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886   (eval $ac_try) 2>&5
9887   ac_status=$?
9888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889   (exit $ac_status); }; }; then
9890   ac_sectionLDflags=yes
9891 else
9892   echo "$as_me: program exited with status $ac_status" >&5
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9895
9896 ( exit $ac_status )
9897 ac_sectionLDflags=no
9898 fi
9899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9900 fi
9901     if test "$ac_test_CFLAGS" = set; then
9902       CFLAGS="$ac_save_CFLAGS"
9903     else
9904       # this is the suspicious part
9905       CFLAGS=''
9906     fi
9907     if test "$ac_sectionLDflags" = "yes"; then
9908       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9909     fi
9910     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
9911 echo "${ECHO_T}$ac_sectionLDflags" >&6
9912   fi
9913
9914   # Set linker optimization flags.
9915   if test x"$with_gnu_ld" = x"yes"; then
9916     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9917   fi
9918
9919
9920
9921
9922
9923
9924 echo "$as_me:$LINENO: checking for main in -lm" >&5
9925 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9926 if test "${ac_cv_lib_m_main+set}" = set; then
9927   echo $ECHO_N "(cached) $ECHO_C" >&6
9928 else
9929   ac_check_lib_save_LIBS=$LIBS
9930 LIBS="-lm  $LIBS"
9931 cat >conftest.$ac_ext <<_ACEOF
9932 #line $LINENO "configure"
9933 /* confdefs.h.  */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h.  */
9938
9939
9940 int
9941 main ()
9942 {
9943 main ();
9944   ;
9945   return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950   (eval $ac_link) 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } &&
9954          { ac_try='test -s conftest$ac_exeext'
9955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956   (eval $ac_try) 2>&5
9957   ac_status=$?
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); }; }; then
9960   ac_cv_lib_m_main=yes
9961 else
9962   echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9964
9965 ac_cv_lib_m_main=no
9966 fi
9967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9968 LIBS=$ac_check_lib_save_LIBS
9969 fi
9970 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9971 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9972 if test $ac_cv_lib_m_main = yes; then
9973   cat >>confdefs.h <<_ACEOF
9974 #define HAVE_LIBM 1
9975 _ACEOF
9976
9977   LIBS="-lm $LIBS"
9978
9979 fi
9980
9981
9982
9983 for ac_func in nan copysignf
9984 do
9985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9986 echo "$as_me:$LINENO: checking for $ac_func" >&5
9987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9988 if eval "test \"\${$as_ac_var+set}\" = set"; then
9989   echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991   cat >conftest.$ac_ext <<_ACEOF
9992 #line $LINENO "configure"
9993 /* confdefs.h.  */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h.  */
9998 /* System header to define __stub macros and hopefully few prototypes,
9999     which can conflict with char $ac_func (); below.
10000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10001     <limits.h> exists even on freestanding compilers.  */
10002 #ifdef __STDC__
10003 # include <limits.h>
10004 #else
10005 # include <assert.h>
10006 #endif
10007 /* Override any gcc2 internal prototype to avoid an error.  */
10008 #ifdef __cplusplus
10009 extern "C"
10010 {
10011 #endif
10012 /* We use char because int might match the return type of a gcc2
10013    builtin and then its argument prototype would still apply.  */
10014 char $ac_func ();
10015 /* The GNU C library defines this for functions which it implements
10016     to always fail with ENOSYS.  Some functions are actually named
10017     something starting with __ and the normal name is an alias.  */
10018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10019 choke me
10020 #else
10021 char (*f) () = $ac_func;
10022 #endif
10023 #ifdef __cplusplus
10024 }
10025 #endif
10026
10027 int
10028 main ()
10029 {
10030 return f != $ac_func;
10031   ;
10032   return 0;
10033 }
10034 _ACEOF
10035 rm -f conftest.$ac_objext conftest$ac_exeext
10036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10037   (eval $ac_link) 2>&5
10038   ac_status=$?
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); } &&
10041          { ac_try='test -s conftest$ac_exeext'
10042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043   (eval $ac_try) 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); }; }; then
10047   eval "$as_ac_var=yes"
10048 else
10049   echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10051
10052 eval "$as_ac_var=no"
10053 fi
10054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10055 fi
10056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10058 if test `eval echo '${'$as_ac_var'}'` = yes; then
10059   cat >>confdefs.h <<_ACEOF
10060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10061 _ACEOF
10062
10063 else
10064   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
10065 fi
10066 done
10067
10068
10069
10070 for ac_func in __signbit
10071 do
10072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10073 echo "$as_me:$LINENO: checking for $ac_func" >&5
10074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10075 if eval "test \"\${$as_ac_var+set}\" = set"; then
10076   echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078   cat >conftest.$ac_ext <<_ACEOF
10079 #line $LINENO "configure"
10080 /* confdefs.h.  */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h.  */
10085 /* System header to define __stub macros and hopefully few prototypes,
10086     which can conflict with char $ac_func (); below.
10087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10088     <limits.h> exists even on freestanding compilers.  */
10089 #ifdef __STDC__
10090 # include <limits.h>
10091 #else
10092 # include <assert.h>
10093 #endif
10094 /* Override any gcc2 internal prototype to avoid an error.  */
10095 #ifdef __cplusplus
10096 extern "C"
10097 {
10098 #endif
10099 /* We use char because int might match the return type of a gcc2
10100    builtin and then its argument prototype would still apply.  */
10101 char $ac_func ();
10102 /* The GNU C library defines this for functions which it implements
10103     to always fail with ENOSYS.  Some functions are actually named
10104     something starting with __ and the normal name is an alias.  */
10105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10106 choke me
10107 #else
10108 char (*f) () = $ac_func;
10109 #endif
10110 #ifdef __cplusplus
10111 }
10112 #endif
10113
10114 int
10115 main ()
10116 {
10117 return f != $ac_func;
10118   ;
10119   return 0;
10120 }
10121 _ACEOF
10122 rm -f conftest.$ac_objext conftest$ac_exeext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10124   (eval $ac_link) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); } &&
10128          { ac_try='test -s conftest$ac_exeext'
10129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130   (eval $ac_try) 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; }; then
10134   eval "$as_ac_var=yes"
10135 else
10136   echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10138
10139 eval "$as_ac_var=no"
10140 fi
10141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10142 fi
10143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10145 if test `eval echo '${'$as_ac_var'}'` = yes; then
10146   cat >>confdefs.h <<_ACEOF
10147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10148 _ACEOF
10149
10150 else
10151   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
10152 fi
10153 done
10154
10155
10156 for ac_func in __signbitf
10157 do
10158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10159 echo "$as_me:$LINENO: checking for $ac_func" >&5
10160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10161 if eval "test \"\${$as_ac_var+set}\" = set"; then
10162   echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164   cat >conftest.$ac_ext <<_ACEOF
10165 #line $LINENO "configure"
10166 /* confdefs.h.  */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h.  */
10171 /* System header to define __stub macros and hopefully few prototypes,
10172     which can conflict with char $ac_func (); below.
10173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10174     <limits.h> exists even on freestanding compilers.  */
10175 #ifdef __STDC__
10176 # include <limits.h>
10177 #else
10178 # include <assert.h>
10179 #endif
10180 /* Override any gcc2 internal prototype to avoid an error.  */
10181 #ifdef __cplusplus
10182 extern "C"
10183 {
10184 #endif
10185 /* We use char because int might match the return type of a gcc2
10186    builtin and then its argument prototype would still apply.  */
10187 char $ac_func ();
10188 /* The GNU C library defines this for functions which it implements
10189     to always fail with ENOSYS.  Some functions are actually named
10190     something starting with __ and the normal name is an alias.  */
10191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10192 choke me
10193 #else
10194 char (*f) () = $ac_func;
10195 #endif
10196 #ifdef __cplusplus
10197 }
10198 #endif
10199
10200 int
10201 main ()
10202 {
10203 return f != $ac_func;
10204   ;
10205   return 0;
10206 }
10207 _ACEOF
10208 rm -f conftest.$ac_objext conftest$ac_exeext
10209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210   (eval $ac_link) 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); } &&
10214          { ac_try='test -s conftest$ac_exeext'
10215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216   (eval $ac_try) 2>&5
10217   ac_status=$?
10218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219   (exit $ac_status); }; }; then
10220   eval "$as_ac_var=yes"
10221 else
10222   echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10224
10225 eval "$as_ac_var=no"
10226 fi
10227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10228 fi
10229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10231 if test `eval echo '${'$as_ac_var'}'` = yes; then
10232   cat >>confdefs.h <<_ACEOF
10233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10234 _ACEOF
10235
10236 else
10237   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
10238 fi
10239 done
10240
10241
10242           if test x$ac_cv_func_copysignl = x"yes"; then
10243
10244 for ac_func in __signbitl
10245 do
10246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10247 echo "$as_me:$LINENO: checking for $ac_func" >&5
10248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10249 if eval "test \"\${$as_ac_var+set}\" = set"; then
10250   echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252   cat >conftest.$ac_ext <<_ACEOF
10253 #line $LINENO "configure"
10254 /* confdefs.h.  */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h.  */
10259 /* System header to define __stub macros and hopefully few prototypes,
10260     which can conflict with char $ac_func (); below.
10261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10262     <limits.h> exists even on freestanding compilers.  */
10263 #ifdef __STDC__
10264 # include <limits.h>
10265 #else
10266 # include <assert.h>
10267 #endif
10268 /* Override any gcc2 internal prototype to avoid an error.  */
10269 #ifdef __cplusplus
10270 extern "C"
10271 {
10272 #endif
10273 /* We use char because int might match the return type of a gcc2
10274    builtin and then its argument prototype would still apply.  */
10275 char $ac_func ();
10276 /* The GNU C library defines this for functions which it implements
10277     to always fail with ENOSYS.  Some functions are actually named
10278     something starting with __ and the normal name is an alias.  */
10279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10280 choke me
10281 #else
10282 char (*f) () = $ac_func;
10283 #endif
10284 #ifdef __cplusplus
10285 }
10286 #endif
10287
10288 int
10289 main ()
10290 {
10291 return f != $ac_func;
10292   ;
10293   return 0;
10294 }
10295 _ACEOF
10296 rm -f conftest.$ac_objext conftest$ac_exeext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298   (eval $ac_link) 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); } &&
10302          { ac_try='test -s conftest$ac_exeext'
10303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304   (eval $ac_try) 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); }; }; then
10308   eval "$as_ac_var=yes"
10309 else
10310   echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10312
10313 eval "$as_ac_var=no"
10314 fi
10315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10316 fi
10317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10319 if test `eval echo '${'$as_ac_var'}'` = yes; then
10320   cat >>confdefs.h <<_ACEOF
10321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10322 _ACEOF
10323
10324 else
10325   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
10326 fi
10327 done
10328
10329   fi
10330
10331   if test -n "$LIBMATHOBJS"; then
10332     need_libmath=yes
10333   fi
10334
10335
10336
10337   # Test wchar.h for mbstate_t, which is needed for char_traits and
10338   # others even if wchar_t support is not on.
10339   echo "$as_me:$LINENO: checking for mbstate_t" >&5
10340 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
10341   cat >conftest.$ac_ext <<_ACEOF
10342 #line $LINENO "configure"
10343 /* confdefs.h.  */
10344 _ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h.  */
10348 #include <wchar.h>
10349 int
10350 main ()
10351 {
10352 mbstate_t teststate;
10353   ;
10354   return 0;
10355 }
10356 _ACEOF
10357 rm -f conftest.$ac_objext
10358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10359   (eval $ac_compile) 2>&5
10360   ac_status=$?
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); } &&
10363          { ac_try='test -s conftest.$ac_objext'
10364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365   (eval $ac_try) 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); }; }; then
10369   have_mbstate_t=yes
10370 else
10371   echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10373
10374 have_mbstate_t=no
10375 fi
10376 rm -f conftest.$ac_objext conftest.$ac_ext
10377   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
10378 echo "${ECHO_T}$have_mbstate_t" >&6
10379   if test x"$have_mbstate_t" = xyes; then
10380     cat >>confdefs.h <<\_ACEOF
10381 #define HAVE_MBSTATE_T 1
10382 _ACEOF
10383
10384   fi
10385
10386   # Sanity check for existence of ISO C99 headers for extended encoding.
10387
10388 for ac_header in wchar.h
10389 do
10390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10392   echo "$as_me:$LINENO: checking for $ac_header" >&5
10393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10395   echo $ECHO_N "(cached) $ECHO_C" >&6
10396 fi
10397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10399 else
10400   # Is the header compilable?
10401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10403 cat >conftest.$ac_ext <<_ACEOF
10404 #line $LINENO "configure"
10405 /* confdefs.h.  */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h.  */
10410 $ac_includes_default
10411 #include <$ac_header>
10412 _ACEOF
10413 rm -f conftest.$ac_objext
10414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10415   (eval $ac_compile) 2>&5
10416   ac_status=$?
10417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418   (exit $ac_status); } &&
10419          { ac_try='test -s conftest.$ac_objext'
10420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421   (eval $ac_try) 2>&5
10422   ac_status=$?
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); }; }; then
10425   ac_header_compiler=yes
10426 else
10427   echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10429
10430 ac_header_compiler=no
10431 fi
10432 rm -f conftest.$ac_objext conftest.$ac_ext
10433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10434 echo "${ECHO_T}$ac_header_compiler" >&6
10435
10436 # Is the header present?
10437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10439 cat >conftest.$ac_ext <<_ACEOF
10440 #line $LINENO "configure"
10441 /* confdefs.h.  */
10442 _ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h.  */
10446 #include <$ac_header>
10447 _ACEOF
10448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10450   ac_status=$?
10451   grep -v '^ *+' conftest.er1 >conftest.err
10452   rm -f conftest.er1
10453   cat conftest.err >&5
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); } >/dev/null; then
10456   if test -s conftest.err; then
10457     ac_cpp_err=$ac_c_preproc_warn_flag
10458   else
10459     ac_cpp_err=
10460   fi
10461 else
10462   ac_cpp_err=yes
10463 fi
10464 if test -z "$ac_cpp_err"; then
10465   ac_header_preproc=yes
10466 else
10467   echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10469
10470   ac_header_preproc=no
10471 fi
10472 rm -f conftest.err conftest.$ac_ext
10473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10474 echo "${ECHO_T}$ac_header_preproc" >&6
10475
10476 # So?  What about this header?
10477 case $ac_header_compiler:$ac_header_preproc in
10478   yes:no )
10479     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10483     (
10484       cat <<\_ASBOX
10485 ## ------------------------------------ ##
10486 ## Report this to bug-autoconf@gnu.org. ##
10487 ## ------------------------------------ ##
10488 _ASBOX
10489     ) |
10490       sed "s/^/$as_me: WARNING:     /" >&2
10491     ;;
10492   no:yes )
10493     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10495     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10499     (
10500       cat <<\_ASBOX
10501 ## ------------------------------------ ##
10502 ## Report this to bug-autoconf@gnu.org. ##
10503 ## ------------------------------------ ##
10504 _ASBOX
10505     ) |
10506       sed "s/^/$as_me: WARNING:     /" >&2
10507     ;;
10508 esac
10509 echo "$as_me:$LINENO: checking for $ac_header" >&5
10510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10512   echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514   eval "$as_ac_Header=$ac_header_preproc"
10515 fi
10516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10518
10519 fi
10520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10521   cat >>confdefs.h <<_ACEOF
10522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10523 _ACEOF
10524  ac_has_wchar_h=yes
10525 else
10526   ac_has_wchar_h=no
10527 fi
10528
10529 done
10530
10531
10532 for ac_header in wctype.h
10533 do
10534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10536   echo "$as_me:$LINENO: checking for $ac_header" >&5
10537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10539   echo $ECHO_N "(cached) $ECHO_C" >&6
10540 fi
10541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10543 else
10544   # Is the header compilable?
10545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10547 cat >conftest.$ac_ext <<_ACEOF
10548 #line $LINENO "configure"
10549 /* confdefs.h.  */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h.  */
10554 $ac_includes_default
10555 #include <$ac_header>
10556 _ACEOF
10557 rm -f conftest.$ac_objext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10559   (eval $ac_compile) 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); } &&
10563          { ac_try='test -s conftest.$ac_objext'
10564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565   (eval $ac_try) 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); }; }; then
10569   ac_header_compiler=yes
10570 else
10571   echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10573
10574 ac_header_compiler=no
10575 fi
10576 rm -f conftest.$ac_objext conftest.$ac_ext
10577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10578 echo "${ECHO_T}$ac_header_compiler" >&6
10579
10580 # Is the header present?
10581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10583 cat >conftest.$ac_ext <<_ACEOF
10584 #line $LINENO "configure"
10585 /* confdefs.h.  */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h.  */
10590 #include <$ac_header>
10591 _ACEOF
10592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10593   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10594   ac_status=$?
10595   grep -v '^ *+' conftest.er1 >conftest.err
10596   rm -f conftest.er1
10597   cat conftest.err >&5
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); } >/dev/null; then
10600   if test -s conftest.err; then
10601     ac_cpp_err=$ac_c_preproc_warn_flag
10602   else
10603     ac_cpp_err=
10604   fi
10605 else
10606   ac_cpp_err=yes
10607 fi
10608 if test -z "$ac_cpp_err"; then
10609   ac_header_preproc=yes
10610 else
10611   echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10613
10614   ac_header_preproc=no
10615 fi
10616 rm -f conftest.err conftest.$ac_ext
10617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10618 echo "${ECHO_T}$ac_header_preproc" >&6
10619
10620 # So?  What about this header?
10621 case $ac_header_compiler:$ac_header_preproc in
10622   yes:no )
10623     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10627     (
10628       cat <<\_ASBOX
10629 ## ------------------------------------ ##
10630 ## Report this to bug-autoconf@gnu.org. ##
10631 ## ------------------------------------ ##
10632 _ASBOX
10633     ) |
10634       sed "s/^/$as_me: WARNING:     /" >&2
10635     ;;
10636   no:yes )
10637     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10639     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10643     (
10644       cat <<\_ASBOX
10645 ## ------------------------------------ ##
10646 ## Report this to bug-autoconf@gnu.org. ##
10647 ## ------------------------------------ ##
10648 _ASBOX
10649     ) |
10650       sed "s/^/$as_me: WARNING:     /" >&2
10651     ;;
10652 esac
10653 echo "$as_me:$LINENO: checking for $ac_header" >&5
10654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10656   echo $ECHO_N "(cached) $ECHO_C" >&6
10657 else
10658   eval "$as_ac_Header=$ac_header_preproc"
10659 fi
10660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10662
10663 fi
10664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10665   cat >>confdefs.h <<_ACEOF
10666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10667 _ACEOF
10668  ac_has_wctype_h=yes
10669 else
10670   ac_has_wctype_h=no
10671 fi
10672
10673 done
10674
10675
10676   # Only continue checking if the ISO C99 headers exist and support is on.
10677   if test x"$ac_has_wchar_h" = xyes &&
10678      test x"$ac_has_wctype_h" = xyes &&
10679      test x"$enable_c_mbchar" != xno; then
10680
10681     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
10682     # numeric_limits can instantiate type_traits<wchar_t>
10683     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
10684 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
10685     cat >conftest.$ac_ext <<_ACEOF
10686 #line $LINENO "configure"
10687 /* confdefs.h.  */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h.  */
10692 #include <wchar.h>
10693 int
10694 main ()
10695 {
10696 int i = WCHAR_MIN; int j = WCHAR_MAX;
10697   ;
10698   return 0;
10699 }
10700 _ACEOF
10701 rm -f conftest.$ac_objext
10702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10703   (eval $ac_compile) 2>&5
10704   ac_status=$?
10705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706   (exit $ac_status); } &&
10707          { ac_try='test -s conftest.$ac_objext'
10708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709   (eval $ac_try) 2>&5
10710   ac_status=$?
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); }; }; then
10713   has_wchar_minmax=yes
10714 else
10715   echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10717
10718 has_wchar_minmax=no
10719 fi
10720 rm -f conftest.$ac_objext conftest.$ac_ext
10721     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
10722 echo "${ECHO_T}$has_wchar_minmax" >&6
10723
10724     # Test wchar.h for WEOF, which is what we use to determine whether
10725     # to specialize for char_traits<wchar_t> or not.
10726     echo "$as_me:$LINENO: checking for WEOF" >&5
10727 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
10728     cat >conftest.$ac_ext <<_ACEOF
10729 #line $LINENO "configure"
10730 /* confdefs.h.  */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h.  */
10735
10736       #include <wchar.h>
10737       #include <stddef.h>
10738 int
10739 main ()
10740 {
10741 wint_t i = WEOF;
10742   ;
10743   return 0;
10744 }
10745 _ACEOF
10746 rm -f conftest.$ac_objext
10747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10748   (eval $ac_compile) 2>&5
10749   ac_status=$?
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); } &&
10752          { ac_try='test -s conftest.$ac_objext'
10753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754   (eval $ac_try) 2>&5
10755   ac_status=$?
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); }; }; then
10758   has_weof=yes
10759 else
10760   echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10762
10763 has_weof=no
10764 fi
10765 rm -f conftest.$ac_objext conftest.$ac_ext
10766     echo "$as_me:$LINENO: result: $has_weof" >&5
10767 echo "${ECHO_T}$has_weof" >&6
10768
10769     # Tests for wide character functions used in char_traits<wchar_t>.
10770     ac_wfuncs=yes
10771
10772
10773
10774
10775
10776
10777 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
10778 do
10779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10780 echo "$as_me:$LINENO: checking for $ac_func" >&5
10781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10782 if eval "test \"\${$as_ac_var+set}\" = set"; then
10783   echo $ECHO_N "(cached) $ECHO_C" >&6
10784 else
10785   cat >conftest.$ac_ext <<_ACEOF
10786 #line $LINENO "configure"
10787 /* confdefs.h.  */
10788 _ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h.  */
10792 /* System header to define __stub macros and hopefully few prototypes,
10793     which can conflict with char $ac_func (); below.
10794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10795     <limits.h> exists even on freestanding compilers.  */
10796 #ifdef __STDC__
10797 # include <limits.h>
10798 #else
10799 # include <assert.h>
10800 #endif
10801 /* Override any gcc2 internal prototype to avoid an error.  */
10802 #ifdef __cplusplus
10803 extern "C"
10804 {
10805 #endif
10806 /* We use char because int might match the return type of a gcc2
10807    builtin and then its argument prototype would still apply.  */
10808 char $ac_func ();
10809 /* The GNU C library defines this for functions which it implements
10810     to always fail with ENOSYS.  Some functions are actually named
10811     something starting with __ and the normal name is an alias.  */
10812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10813 choke me
10814 #else
10815 char (*f) () = $ac_func;
10816 #endif
10817 #ifdef __cplusplus
10818 }
10819 #endif
10820
10821 int
10822 main ()
10823 {
10824 return f != $ac_func;
10825   ;
10826   return 0;
10827 }
10828 _ACEOF
10829 rm -f conftest.$ac_objext conftest$ac_exeext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831   (eval $ac_link) 2>&5
10832   ac_status=$?
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); } &&
10835          { ac_try='test -s conftest$ac_exeext'
10836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837   (eval $ac_try) 2>&5
10838   ac_status=$?
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); }; }; then
10841   eval "$as_ac_var=yes"
10842 else
10843   echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10845
10846 eval "$as_ac_var=no"
10847 fi
10848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10849 fi
10850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10851 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10852 if test `eval echo '${'$as_ac_var'}'` = yes; then
10853   cat >>confdefs.h <<_ACEOF
10854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10855 _ACEOF
10856
10857 else
10858   ac_wfuncs=no
10859 fi
10860 done
10861
10862
10863     # Checks for names injected into std:: by the c_std headers.
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
10915     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
10916     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
10917     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
10918     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
10919     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
10920 do
10921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10922 echo "$as_me:$LINENO: checking for $ac_func" >&5
10923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10924 if eval "test \"\${$as_ac_var+set}\" = set"; then
10925   echo $ECHO_N "(cached) $ECHO_C" >&6
10926 else
10927   cat >conftest.$ac_ext <<_ACEOF
10928 #line $LINENO "configure"
10929 /* confdefs.h.  */
10930 _ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h.  */
10934 /* System header to define __stub macros and hopefully few prototypes,
10935     which can conflict with char $ac_func (); below.
10936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10937     <limits.h> exists even on freestanding compilers.  */
10938 #ifdef __STDC__
10939 # include <limits.h>
10940 #else
10941 # include <assert.h>
10942 #endif
10943 /* Override any gcc2 internal prototype to avoid an error.  */
10944 #ifdef __cplusplus
10945 extern "C"
10946 {
10947 #endif
10948 /* We use char because int might match the return type of a gcc2
10949    builtin and then its argument prototype would still apply.  */
10950 char $ac_func ();
10951 /* The GNU C library defines this for functions which it implements
10952     to always fail with ENOSYS.  Some functions are actually named
10953     something starting with __ and the normal name is an alias.  */
10954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10955 choke me
10956 #else
10957 char (*f) () = $ac_func;
10958 #endif
10959 #ifdef __cplusplus
10960 }
10961 #endif
10962
10963 int
10964 main ()
10965 {
10966 return f != $ac_func;
10967   ;
10968   return 0;
10969 }
10970 _ACEOF
10971 rm -f conftest.$ac_objext conftest$ac_exeext
10972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10973   (eval $ac_link) 2>&5
10974   ac_status=$?
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); } &&
10977          { ac_try='test -s conftest$ac_exeext'
10978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979   (eval $ac_try) 2>&5
10980   ac_status=$?
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); }; }; then
10983   eval "$as_ac_var=yes"
10984 else
10985   echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10987
10988 eval "$as_ac_var=no"
10989 fi
10990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10991 fi
10992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10994 if test `eval echo '${'$as_ac_var'}'` = yes; then
10995   cat >>confdefs.h <<_ACEOF
10996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10997 _ACEOF
10998
10999 else
11000   ac_wfuncs=no
11001 fi
11002 done
11003
11004
11005     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
11006 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
11007     if test x"$has_weof" = xyes &&
11008        test x"$has_wchar_minmax" = xyes &&
11009        test x"$ac_wfuncs" = xyes;
11010     then
11011       ac_isoC99_wchar_t=yes
11012     else
11013       ac_isoC99_wchar_t=no
11014     fi
11015     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
11016 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
11017
11018     # Use iconv for wchar_t to char conversions. As such, check for
11019     # X/Open Portability Guide, version 2 features (XPG2).
11020     if test "${ac_cv_header_iconv_h+set}" = set; then
11021   echo "$as_me:$LINENO: checking for iconv.h" >&5
11022 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
11023 if test "${ac_cv_header_iconv_h+set}" = set; then
11024   echo $ECHO_N "(cached) $ECHO_C" >&6
11025 fi
11026 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
11027 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
11028 else
11029   # Is the header compilable?
11030 echo "$as_me:$LINENO: checking iconv.h usability" >&5
11031 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
11032 cat >conftest.$ac_ext <<_ACEOF
11033 #line $LINENO "configure"
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039 $ac_includes_default
11040 #include <iconv.h>
11041 _ACEOF
11042 rm -f conftest.$ac_objext
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044   (eval $ac_compile) 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); } &&
11048          { ac_try='test -s conftest.$ac_objext'
11049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050   (eval $ac_try) 2>&5
11051   ac_status=$?
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); }; }; then
11054   ac_header_compiler=yes
11055 else
11056   echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059 ac_header_compiler=no
11060 fi
11061 rm -f conftest.$ac_objext conftest.$ac_ext
11062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11063 echo "${ECHO_T}$ac_header_compiler" >&6
11064
11065 # Is the header present?
11066 echo "$as_me:$LINENO: checking iconv.h presence" >&5
11067 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
11068 cat >conftest.$ac_ext <<_ACEOF
11069 #line $LINENO "configure"
11070 /* confdefs.h.  */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h.  */
11075 #include <iconv.h>
11076 _ACEOF
11077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11078   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11079   ac_status=$?
11080   grep -v '^ *+' conftest.er1 >conftest.err
11081   rm -f conftest.er1
11082   cat conftest.err >&5
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); } >/dev/null; then
11085   if test -s conftest.err; then
11086     ac_cpp_err=$ac_c_preproc_warn_flag
11087   else
11088     ac_cpp_err=
11089   fi
11090 else
11091   ac_cpp_err=yes
11092 fi
11093 if test -z "$ac_cpp_err"; then
11094   ac_header_preproc=yes
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099   ac_header_preproc=no
11100 fi
11101 rm -f conftest.err conftest.$ac_ext
11102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11103 echo "${ECHO_T}$ac_header_preproc" >&6
11104
11105 # So?  What about this header?
11106 case $ac_header_compiler:$ac_header_preproc in
11107   yes:no )
11108     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
11109 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11110     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
11111 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
11112     (
11113       cat <<\_ASBOX
11114 ## ------------------------------------ ##
11115 ## Report this to bug-autoconf@gnu.org. ##
11116 ## ------------------------------------ ##
11117 _ASBOX
11118     ) |
11119       sed "s/^/$as_me: WARNING:     /" >&2
11120     ;;
11121   no:yes )
11122     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
11123 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
11124     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
11125 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
11126     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
11127 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
11128     (
11129       cat <<\_ASBOX
11130 ## ------------------------------------ ##
11131 ## Report this to bug-autoconf@gnu.org. ##
11132 ## ------------------------------------ ##
11133 _ASBOX
11134     ) |
11135       sed "s/^/$as_me: WARNING:     /" >&2
11136     ;;
11137 esac
11138 echo "$as_me:$LINENO: checking for iconv.h" >&5
11139 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
11140 if test "${ac_cv_header_iconv_h+set}" = set; then
11141   echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143   ac_cv_header_iconv_h=$ac_header_preproc
11144 fi
11145 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
11146 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
11147
11148 fi
11149 if test $ac_cv_header_iconv_h = yes; then
11150   ac_has_iconv_h=yes
11151 else
11152   ac_has_iconv_h=no
11153 fi
11154
11155
11156     if test "${ac_cv_header_langinfo_h+set}" = set; then
11157   echo "$as_me:$LINENO: checking for langinfo.h" >&5
11158 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
11159 if test "${ac_cv_header_langinfo_h+set}" = set; then
11160   echo $ECHO_N "(cached) $ECHO_C" >&6
11161 fi
11162 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
11163 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
11164 else
11165   # Is the header compilable?
11166 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
11167 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
11168 cat >conftest.$ac_ext <<_ACEOF
11169 #line $LINENO "configure"
11170 /* confdefs.h.  */
11171 _ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h.  */
11175 $ac_includes_default
11176 #include <langinfo.h>
11177 _ACEOF
11178 rm -f conftest.$ac_objext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11180   (eval $ac_compile) 2>&5
11181   ac_status=$?
11182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183   (exit $ac_status); } &&
11184          { ac_try='test -s conftest.$ac_objext'
11185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186   (eval $ac_try) 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); }; }; then
11190   ac_header_compiler=yes
11191 else
11192   echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11194
11195 ac_header_compiler=no
11196 fi
11197 rm -f conftest.$ac_objext conftest.$ac_ext
11198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11199 echo "${ECHO_T}$ac_header_compiler" >&6
11200
11201 # Is the header present?
11202 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
11203 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
11204 cat >conftest.$ac_ext <<_ACEOF
11205 #line $LINENO "configure"
11206 /* confdefs.h.  */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h.  */
11211 #include <langinfo.h>
11212 _ACEOF
11213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11214   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11215   ac_status=$?
11216   grep -v '^ *+' conftest.er1 >conftest.err
11217   rm -f conftest.er1
11218   cat conftest.err >&5
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); } >/dev/null; then
11221   if test -s conftest.err; then
11222     ac_cpp_err=$ac_c_preproc_warn_flag
11223   else
11224     ac_cpp_err=
11225   fi
11226 else
11227   ac_cpp_err=yes
11228 fi
11229 if test -z "$ac_cpp_err"; then
11230   ac_header_preproc=yes
11231 else
11232   echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235   ac_header_preproc=no
11236 fi
11237 rm -f conftest.err conftest.$ac_ext
11238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11239 echo "${ECHO_T}$ac_header_preproc" >&6
11240
11241 # So?  What about this header?
11242 case $ac_header_compiler:$ac_header_preproc in
11243   yes:no )
11244     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
11245 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11246     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
11247 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
11248     (
11249       cat <<\_ASBOX
11250 ## ------------------------------------ ##
11251 ## Report this to bug-autoconf@gnu.org. ##
11252 ## ------------------------------------ ##
11253 _ASBOX
11254     ) |
11255       sed "s/^/$as_me: WARNING:     /" >&2
11256     ;;
11257   no:yes )
11258     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
11259 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
11260     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
11261 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
11262     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
11263 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
11264     (
11265       cat <<\_ASBOX
11266 ## ------------------------------------ ##
11267 ## Report this to bug-autoconf@gnu.org. ##
11268 ## ------------------------------------ ##
11269 _ASBOX
11270     ) |
11271       sed "s/^/$as_me: WARNING:     /" >&2
11272     ;;
11273 esac
11274 echo "$as_me:$LINENO: checking for langinfo.h" >&5
11275 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
11276 if test "${ac_cv_header_langinfo_h+set}" = set; then
11277   echo $ECHO_N "(cached) $ECHO_C" >&6
11278 else
11279   ac_cv_header_langinfo_h=$ac_header_preproc
11280 fi
11281 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
11282 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
11283
11284 fi
11285 if test $ac_cv_header_langinfo_h = yes; then
11286   ac_has_langinfo_h=yes
11287 else
11288   ac_has_langinfo_h=no
11289 fi
11290
11291
11292
11293     # Check for existence of libiconv.a providing XPG2 wchar_t support.
11294     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
11295 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
11296 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
11297   echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299   ac_check_lib_save_LIBS=$LIBS
11300 LIBS="-liconv  $LIBS"
11301 cat >conftest.$ac_ext <<_ACEOF
11302 #line $LINENO "configure"
11303 /* confdefs.h.  */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h.  */
11308
11309 /* Override any gcc2 internal prototype to avoid an error.  */
11310 #ifdef __cplusplus
11311 extern "C"
11312 #endif
11313 /* We use char because int might match the return type of a gcc2
11314    builtin and then its argument prototype would still apply.  */
11315 char iconv ();
11316 int
11317 main ()
11318 {
11319 iconv ();
11320   ;
11321   return 0;
11322 }
11323 _ACEOF
11324 rm -f conftest.$ac_objext conftest$ac_exeext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11326   (eval $ac_link) 2>&5
11327   ac_status=$?
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); } &&
11330          { ac_try='test -s conftest$ac_exeext'
11331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332   (eval $ac_try) 2>&5
11333   ac_status=$?
11334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335   (exit $ac_status); }; }; then
11336   ac_cv_lib_iconv_iconv=yes
11337 else
11338   echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11340
11341 ac_cv_lib_iconv_iconv=no
11342 fi
11343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11344 LIBS=$ac_check_lib_save_LIBS
11345 fi
11346 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
11347 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
11348 if test $ac_cv_lib_iconv_iconv = yes; then
11349   libiconv="-liconv"
11350 fi
11351
11352     ac_save_LIBS="$LIBS"
11353     LIBS="$LIBS $libiconv"
11354
11355
11356
11357
11358
11359 for ac_func in iconv_open iconv_close iconv nl_langinfo
11360 do
11361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11362 echo "$as_me:$LINENO: checking for $ac_func" >&5
11363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11364 if eval "test \"\${$as_ac_var+set}\" = set"; then
11365   echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11367   cat >conftest.$ac_ext <<_ACEOF
11368 #line $LINENO "configure"
11369 /* confdefs.h.  */
11370 _ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h.  */
11374 /* System header to define __stub macros and hopefully few prototypes,
11375     which can conflict with char $ac_func (); below.
11376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11377     <limits.h> exists even on freestanding compilers.  */
11378 #ifdef __STDC__
11379 # include <limits.h>
11380 #else
11381 # include <assert.h>
11382 #endif
11383 /* Override any gcc2 internal prototype to avoid an error.  */
11384 #ifdef __cplusplus
11385 extern "C"
11386 {
11387 #endif
11388 /* We use char because int might match the return type of a gcc2
11389    builtin and then its argument prototype would still apply.  */
11390 char $ac_func ();
11391 /* The GNU C library defines this for functions which it implements
11392     to always fail with ENOSYS.  Some functions are actually named
11393     something starting with __ and the normal name is an alias.  */
11394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11395 choke me
11396 #else
11397 char (*f) () = $ac_func;
11398 #endif
11399 #ifdef __cplusplus
11400 }
11401 #endif
11402
11403 int
11404 main ()
11405 {
11406 return f != $ac_func;
11407   ;
11408   return 0;
11409 }
11410 _ACEOF
11411 rm -f conftest.$ac_objext conftest$ac_exeext
11412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11413   (eval $ac_link) 2>&5
11414   ac_status=$?
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); } &&
11417          { ac_try='test -s conftest$ac_exeext'
11418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419   (eval $ac_try) 2>&5
11420   ac_status=$?
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); }; }; then
11423   eval "$as_ac_var=yes"
11424 else
11425   echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11427
11428 eval "$as_ac_var=no"
11429 fi
11430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11431 fi
11432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11434 if test `eval echo '${'$as_ac_var'}'` = yes; then
11435   cat >>confdefs.h <<_ACEOF
11436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11437 _ACEOF
11438  ac_XPG2funcs=yes
11439 else
11440   ac_XPG2funcs=no
11441 fi
11442 done
11443
11444
11445     LIBS="$ac_save_LIBS"
11446
11447     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
11448 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
11449     if test x"$ac_has_iconv_h" = xyes &&
11450        test x"$ac_has_langinfo_h" = xyes &&
11451        test x"$ac_XPG2funcs" = xyes;
11452     then
11453       ac_XPG2_wchar_t=yes
11454     else
11455       ac_XPG2_wchar_t=no
11456     fi
11457     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
11458 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
11459
11460     # At the moment, only enable wchar_t specializations if all the
11461     # above support is present.
11462     if test x"$ac_isoC99_wchar_t" = xyes &&
11463        test x"$ac_XPG2_wchar_t" = xyes;
11464     then
11465       cat >>confdefs.h <<\_ACEOF
11466 #define _GLIBCXX_USE_WCHAR_T 1
11467 _ACEOF
11468
11469       enable_wchar_t=yes
11470     fi
11471   fi
11472   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
11473 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
11474   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
11475 echo "${ECHO_T}$enable_wchar_t" >&6
11476
11477     cat >>confdefs.h <<\_ACEOF
11478 #define HAVE_COPYSIGN 1
11479 _ACEOF
11480
11481     cat >>confdefs.h <<\_ACEOF
11482 #define HAVE_COPYSIGNF 1
11483 _ACEOF
11484
11485     cat >>confdefs.h <<\_ACEOF
11486 #define HAVE_FREXPF 1
11487 _ACEOF
11488
11489     cat >>confdefs.h <<\_ACEOF
11490 #define HAVE_HYPOT 1
11491 _ACEOF
11492
11493     case "$target" in
11494       *-hpux10*)
11495         cat >>confdefs.h <<\_ACEOF
11496 #define HAVE_FINITE 1
11497 _ACEOF
11498
11499         cat >>confdefs.h <<\_ACEOF
11500 #define HAVE_FINITEF 1
11501 _ACEOF
11502
11503         cat >>confdefs.h <<\_ACEOF
11504 #define HAVE_ISINF 1
11505 _ACEOF
11506
11507         cat >>confdefs.h <<\_ACEOF
11508 #define HAVE_ISINFF 1
11509 _ACEOF
11510
11511         cat >>confdefs.h <<\_ACEOF
11512 #define HAVE_ISNAN 1
11513 _ACEOF
11514
11515         cat >>confdefs.h <<\_ACEOF
11516 #define HAVE_ISNANF 1
11517 _ACEOF
11518
11519         ;;
11520     esac
11521     ;;
11522   *-linux*)
11523     #os_include_dir="os/gnu-linux"
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
11537       machine/endian.h machine/param.h sys/machine.h sys/types.h \
11538       fp.h locale.h float.h inttypes.h
11539 do
11540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11542   echo "$as_me:$LINENO: checking for $ac_header" >&5
11543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11545   echo $ECHO_N "(cached) $ECHO_C" >&6
11546 fi
11547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11549 else
11550   # Is the header compilable?
11551 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11553 cat >conftest.$ac_ext <<_ACEOF
11554 #line $LINENO "configure"
11555 /* confdefs.h.  */
11556 _ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h.  */
11560 $ac_includes_default
11561 #include <$ac_header>
11562 _ACEOF
11563 rm -f conftest.$ac_objext
11564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11565   (eval $ac_compile) 2>&5
11566   ac_status=$?
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); } &&
11569          { ac_try='test -s conftest.$ac_objext'
11570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571   (eval $ac_try) 2>&5
11572   ac_status=$?
11573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); }; }; then
11575   ac_header_compiler=yes
11576 else
11577   echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11579
11580 ac_header_compiler=no
11581 fi
11582 rm -f conftest.$ac_objext conftest.$ac_ext
11583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11584 echo "${ECHO_T}$ac_header_compiler" >&6
11585
11586 # Is the header present?
11587 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11589 cat >conftest.$ac_ext <<_ACEOF
11590 #line $LINENO "configure"
11591 /* confdefs.h.  */
11592 _ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h.  */
11596 #include <$ac_header>
11597 _ACEOF
11598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11599   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11600   ac_status=$?
11601   grep -v '^ *+' conftest.er1 >conftest.err
11602   rm -f conftest.er1
11603   cat conftest.err >&5
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); } >/dev/null; then
11606   if test -s conftest.err; then
11607     ac_cpp_err=$ac_c_preproc_warn_flag
11608   else
11609     ac_cpp_err=
11610   fi
11611 else
11612   ac_cpp_err=yes
11613 fi
11614 if test -z "$ac_cpp_err"; then
11615   ac_header_preproc=yes
11616 else
11617   echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11619
11620   ac_header_preproc=no
11621 fi
11622 rm -f conftest.err conftest.$ac_ext
11623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11624 echo "${ECHO_T}$ac_header_preproc" >&6
11625
11626 # So?  What about this header?
11627 case $ac_header_compiler:$ac_header_preproc in
11628   yes:no )
11629     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11633     (
11634       cat <<\_ASBOX
11635 ## ------------------------------------ ##
11636 ## Report this to bug-autoconf@gnu.org. ##
11637 ## ------------------------------------ ##
11638 _ASBOX
11639     ) |
11640       sed "s/^/$as_me: WARNING:     /" >&2
11641     ;;
11642   no:yes )
11643     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11645     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11649     (
11650       cat <<\_ASBOX
11651 ## ------------------------------------ ##
11652 ## Report this to bug-autoconf@gnu.org. ##
11653 ## ------------------------------------ ##
11654 _ASBOX
11655     ) |
11656       sed "s/^/$as_me: WARNING:     /" >&2
11657     ;;
11658 esac
11659 echo "$as_me:$LINENO: checking for $ac_header" >&5
11660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11662   echo $ECHO_N "(cached) $ECHO_C" >&6
11663 else
11664   eval "$as_ac_Header=$ac_header_preproc"
11665 fi
11666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11668
11669 fi
11670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11671   cat >>confdefs.h <<_ACEOF
11672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11673 _ACEOF
11674
11675 fi
11676
11677 done
11678
11679     SECTION_FLAGS='-ffunction-sections -fdata-sections'
11680
11681
11682   # If we're not using GNU ld, then there's no point in even trying these
11683   # tests.  Check for that first.  We should have already tested for gld
11684   # by now (in libtool), but require it now just to be safe...
11685   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
11686   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
11687
11688
11689
11690   # The name set by libtool depends on the version of libtool.  Shame on us
11691   # for depending on an impl detail, but c'est la vie.  Older versions used
11692   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
11693   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
11694   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
11695   # set (hence we're using an older libtool), then set it.
11696   if test x${with_gnu_ld+set} != xset; then
11697     if test x${ac_cv_prog_gnu_ld+set} != xset; then
11698       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
11699       with_gnu_ld=no
11700     else
11701       with_gnu_ld=$ac_cv_prog_gnu_ld
11702     fi
11703   fi
11704
11705   # Start by getting the version number.  I think the libtool test already
11706   # does some of this, but throws away the result.
11707
11708   ldver=`$LD --version 2>/dev/null | head -1 | \
11709          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
11710
11711   glibcxx_gnu_ld_version=`echo $ldver | \
11712          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
11713
11714   # Set --gc-sections.
11715   if test "$with_gnu_ld" = "notbroken"; then
11716     # GNU ld it is!  Joy and bunny rabbits!
11717
11718     # All these tests are for C++; save the language and the compiler flags.
11719     # Need to do this so that g++ won't try to link in libstdc++
11720     ac_test_CFLAGS="${CFLAGS+set}"
11721     ac_save_CFLAGS="$CFLAGS"
11722     CFLAGS='-x c++  -Wl,--gc-sections'
11723
11724     # Check for -Wl,--gc-sections
11725     # XXX This test is broken at the moment, as symbols required for linking
11726     # are now in libsupc++ (not built yet).  In addition, this test has
11727     # cored on solaris in the past.  In addition, --gc-sections doesn't
11728     # really work at the moment (keeps on discarding used sections, first
11729     # .eh_frame and now some of the glibc sections for iconv).
11730     # Bzzzzt.  Thanks for playing, maybe next time.
11731     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
11732 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
11733     if test "$cross_compiling" = yes; then
11734   ac_sectionLDflags=yes
11735 else
11736   cat >conftest.$ac_ext <<_ACEOF
11737 #line $LINENO "configure"
11738 /* confdefs.h.  */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h.  */
11743
11744      int main(void)
11745      {
11746        try { throw 1; }
11747        catch (...) { };
11748        return 0;
11749      }
11750
11751 _ACEOF
11752 rm -f conftest$ac_exeext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754   (eval $ac_link) 2>&5
11755   ac_status=$?
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759   (eval $ac_try) 2>&5
11760   ac_status=$?
11761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); }; }; then
11763   ac_sectionLDflags=yes
11764 else
11765   echo "$as_me: program exited with status $ac_status" >&5
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11768
11769 ( exit $ac_status )
11770 ac_sectionLDflags=no
11771 fi
11772 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11773 fi
11774     if test "$ac_test_CFLAGS" = set; then
11775       CFLAGS="$ac_save_CFLAGS"
11776     else
11777       # this is the suspicious part
11778       CFLAGS=''
11779     fi
11780     if test "$ac_sectionLDflags" = "yes"; then
11781       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
11782     fi
11783     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
11784 echo "${ECHO_T}$ac_sectionLDflags" >&6
11785   fi
11786
11787   # Set linker optimization flags.
11788   if test x"$with_gnu_ld" = x"yes"; then
11789     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
11790   fi
11791
11792
11793
11794
11795
11796
11797 echo "$as_me:$LINENO: checking for main in -lm" >&5
11798 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
11799 if test "${ac_cv_lib_m_main+set}" = set; then
11800   echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802   ac_check_lib_save_LIBS=$LIBS
11803 LIBS="-lm  $LIBS"
11804 cat >conftest.$ac_ext <<_ACEOF
11805 #line $LINENO "configure"
11806 /* confdefs.h.  */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h.  */
11811
11812
11813 int
11814 main ()
11815 {
11816 main ();
11817   ;
11818   return 0;
11819 }
11820 _ACEOF
11821 rm -f conftest.$ac_objext conftest$ac_exeext
11822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11823   (eval $ac_link) 2>&5
11824   ac_status=$?
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); } &&
11827          { ac_try='test -s conftest$ac_exeext'
11828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829   (eval $ac_try) 2>&5
11830   ac_status=$?
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); }; }; then
11833   ac_cv_lib_m_main=yes
11834 else
11835   echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838 ac_cv_lib_m_main=no
11839 fi
11840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11841 LIBS=$ac_check_lib_save_LIBS
11842 fi
11843 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
11844 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
11845 if test $ac_cv_lib_m_main = yes; then
11846   cat >>confdefs.h <<_ACEOF
11847 #define HAVE_LIBM 1
11848 _ACEOF
11849
11850   LIBS="-lm $LIBS"
11851
11852 fi
11853
11854
11855
11856 for ac_func in nan copysignf
11857 do
11858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11859 echo "$as_me:$LINENO: checking for $ac_func" >&5
11860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11861 if eval "test \"\${$as_ac_var+set}\" = set"; then
11862   echo $ECHO_N "(cached) $ECHO_C" >&6
11863 else
11864   cat >conftest.$ac_ext <<_ACEOF
11865 #line $LINENO "configure"
11866 /* confdefs.h.  */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h.  */
11871 /* System header to define __stub macros and hopefully few prototypes,
11872     which can conflict with char $ac_func (); below.
11873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11874     <limits.h> exists even on freestanding compilers.  */
11875 #ifdef __STDC__
11876 # include <limits.h>
11877 #else
11878 # include <assert.h>
11879 #endif
11880 /* Override any gcc2 internal prototype to avoid an error.  */
11881 #ifdef __cplusplus
11882 extern "C"
11883 {
11884 #endif
11885 /* We use char because int might match the return type of a gcc2
11886    builtin and then its argument prototype would still apply.  */
11887 char $ac_func ();
11888 /* The GNU C library defines this for functions which it implements
11889     to always fail with ENOSYS.  Some functions are actually named
11890     something starting with __ and the normal name is an alias.  */
11891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11892 choke me
11893 #else
11894 char (*f) () = $ac_func;
11895 #endif
11896 #ifdef __cplusplus
11897 }
11898 #endif
11899
11900 int
11901 main ()
11902 {
11903 return f != $ac_func;
11904   ;
11905   return 0;
11906 }
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11910   (eval $ac_link) 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); } &&
11914          { ac_try='test -s conftest$ac_exeext'
11915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916   (eval $ac_try) 2>&5
11917   ac_status=$?
11918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919   (exit $ac_status); }; }; then
11920   eval "$as_ac_var=yes"
11921 else
11922   echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11924
11925 eval "$as_ac_var=no"
11926 fi
11927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11928 fi
11929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11931 if test `eval echo '${'$as_ac_var'}'` = yes; then
11932   cat >>confdefs.h <<_ACEOF
11933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11934 _ACEOF
11935
11936 else
11937   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
11938 fi
11939 done
11940
11941
11942
11943 for ac_func in __signbit
11944 do
11945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11946 echo "$as_me:$LINENO: checking for $ac_func" >&5
11947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11948 if eval "test \"\${$as_ac_var+set}\" = set"; then
11949   echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11951   cat >conftest.$ac_ext <<_ACEOF
11952 #line $LINENO "configure"
11953 /* confdefs.h.  */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h.  */
11958 /* System header to define __stub macros and hopefully few prototypes,
11959     which can conflict with char $ac_func (); below.
11960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11961     <limits.h> exists even on freestanding compilers.  */
11962 #ifdef __STDC__
11963 # include <limits.h>
11964 #else
11965 # include <assert.h>
11966 #endif
11967 /* Override any gcc2 internal prototype to avoid an error.  */
11968 #ifdef __cplusplus
11969 extern "C"
11970 {
11971 #endif
11972 /* We use char because int might match the return type of a gcc2
11973    builtin and then its argument prototype would still apply.  */
11974 char $ac_func ();
11975 /* The GNU C library defines this for functions which it implements
11976     to always fail with ENOSYS.  Some functions are actually named
11977     something starting with __ and the normal name is an alias.  */
11978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11979 choke me
11980 #else
11981 char (*f) () = $ac_func;
11982 #endif
11983 #ifdef __cplusplus
11984 }
11985 #endif
11986
11987 int
11988 main ()
11989 {
11990 return f != $ac_func;
11991   ;
11992   return 0;
11993 }
11994 _ACEOF
11995 rm -f conftest.$ac_objext conftest$ac_exeext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997   (eval $ac_link) 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } &&
12001          { ac_try='test -s conftest$ac_exeext'
12002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003   (eval $ac_try) 2>&5
12004   ac_status=$?
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); }; }; then
12007   eval "$as_ac_var=yes"
12008 else
12009   echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12011
12012 eval "$as_ac_var=no"
12013 fi
12014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12015 fi
12016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12018 if test `eval echo '${'$as_ac_var'}'` = yes; then
12019   cat >>confdefs.h <<_ACEOF
12020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12021 _ACEOF
12022
12023 else
12024   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
12025 fi
12026 done
12027
12028
12029 for ac_func in __signbitf
12030 do
12031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12032 echo "$as_me:$LINENO: checking for $ac_func" >&5
12033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12034 if eval "test \"\${$as_ac_var+set}\" = set"; then
12035   echo $ECHO_N "(cached) $ECHO_C" >&6
12036 else
12037   cat >conftest.$ac_ext <<_ACEOF
12038 #line $LINENO "configure"
12039 /* confdefs.h.  */
12040 _ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h.  */
12044 /* System header to define __stub macros and hopefully few prototypes,
12045     which can conflict with char $ac_func (); below.
12046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12047     <limits.h> exists even on freestanding compilers.  */
12048 #ifdef __STDC__
12049 # include <limits.h>
12050 #else
12051 # include <assert.h>
12052 #endif
12053 /* Override any gcc2 internal prototype to avoid an error.  */
12054 #ifdef __cplusplus
12055 extern "C"
12056 {
12057 #endif
12058 /* We use char because int might match the return type of a gcc2
12059    builtin and then its argument prototype would still apply.  */
12060 char $ac_func ();
12061 /* The GNU C library defines this for functions which it implements
12062     to always fail with ENOSYS.  Some functions are actually named
12063     something starting with __ and the normal name is an alias.  */
12064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12065 choke me
12066 #else
12067 char (*f) () = $ac_func;
12068 #endif
12069 #ifdef __cplusplus
12070 }
12071 #endif
12072
12073 int
12074 main ()
12075 {
12076 return f != $ac_func;
12077   ;
12078   return 0;
12079 }
12080 _ACEOF
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12083   (eval $ac_link) 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); } &&
12087          { ac_try='test -s conftest$ac_exeext'
12088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089   (eval $ac_try) 2>&5
12090   ac_status=$?
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); }; }; then
12093   eval "$as_ac_var=yes"
12094 else
12095   echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12097
12098 eval "$as_ac_var=no"
12099 fi
12100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12101 fi
12102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12104 if test `eval echo '${'$as_ac_var'}'` = yes; then
12105   cat >>confdefs.h <<_ACEOF
12106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12107 _ACEOF
12108
12109 else
12110   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
12111 fi
12112 done
12113
12114
12115           if test x$ac_cv_func_copysignl = x"yes"; then
12116
12117 for ac_func in __signbitl
12118 do
12119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12120 echo "$as_me:$LINENO: checking for $ac_func" >&5
12121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12122 if eval "test \"\${$as_ac_var+set}\" = set"; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125   cat >conftest.$ac_ext <<_ACEOF
12126 #line $LINENO "configure"
12127 /* confdefs.h.  */
12128 _ACEOF
12129 cat confdefs.h >>conftest.$ac_ext
12130 cat >>conftest.$ac_ext <<_ACEOF
12131 /* end confdefs.h.  */
12132 /* System header to define __stub macros and hopefully few prototypes,
12133     which can conflict with char $ac_func (); below.
12134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12135     <limits.h> exists even on freestanding compilers.  */
12136 #ifdef __STDC__
12137 # include <limits.h>
12138 #else
12139 # include <assert.h>
12140 #endif
12141 /* Override any gcc2 internal prototype to avoid an error.  */
12142 #ifdef __cplusplus
12143 extern "C"
12144 {
12145 #endif
12146 /* We use char because int might match the return type of a gcc2
12147    builtin and then its argument prototype would still apply.  */
12148 char $ac_func ();
12149 /* The GNU C library defines this for functions which it implements
12150     to always fail with ENOSYS.  Some functions are actually named
12151     something starting with __ and the normal name is an alias.  */
12152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12153 choke me
12154 #else
12155 char (*f) () = $ac_func;
12156 #endif
12157 #ifdef __cplusplus
12158 }
12159 #endif
12160
12161 int
12162 main ()
12163 {
12164 return f != $ac_func;
12165   ;
12166   return 0;
12167 }
12168 _ACEOF
12169 rm -f conftest.$ac_objext conftest$ac_exeext
12170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12171   (eval $ac_link) 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); } &&
12175          { ac_try='test -s conftest$ac_exeext'
12176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177   (eval $ac_try) 2>&5
12178   ac_status=$?
12179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180   (exit $ac_status); }; }; then
12181   eval "$as_ac_var=yes"
12182 else
12183   echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12185
12186 eval "$as_ac_var=no"
12187 fi
12188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12189 fi
12190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12192 if test `eval echo '${'$as_ac_var'}'` = yes; then
12193   cat >>confdefs.h <<_ACEOF
12194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12195 _ACEOF
12196
12197 else
12198   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
12199 fi
12200 done
12201
12202   fi
12203
12204   if test -n "$LIBMATHOBJS"; then
12205     need_libmath=yes
12206   fi
12207
12208
12209
12210   # Test wchar.h for mbstate_t, which is needed for char_traits and
12211   # others even if wchar_t support is not on.
12212   echo "$as_me:$LINENO: checking for mbstate_t" >&5
12213 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
12214   cat >conftest.$ac_ext <<_ACEOF
12215 #line $LINENO "configure"
12216 /* confdefs.h.  */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h.  */
12221 #include <wchar.h>
12222 int
12223 main ()
12224 {
12225 mbstate_t teststate;
12226   ;
12227   return 0;
12228 }
12229 _ACEOF
12230 rm -f conftest.$ac_objext
12231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12232   (eval $ac_compile) 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); } &&
12236          { ac_try='test -s conftest.$ac_objext'
12237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238   (eval $ac_try) 2>&5
12239   ac_status=$?
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); }; }; then
12242   have_mbstate_t=yes
12243 else
12244   echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12246
12247 have_mbstate_t=no
12248 fi
12249 rm -f conftest.$ac_objext conftest.$ac_ext
12250   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
12251 echo "${ECHO_T}$have_mbstate_t" >&6
12252   if test x"$have_mbstate_t" = xyes; then
12253     cat >>confdefs.h <<\_ACEOF
12254 #define HAVE_MBSTATE_T 1
12255 _ACEOF
12256
12257   fi
12258
12259   # Sanity check for existence of ISO C99 headers for extended encoding.
12260
12261 for ac_header in wchar.h
12262 do
12263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12265   echo "$as_me:$LINENO: checking for $ac_header" >&5
12266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12268   echo $ECHO_N "(cached) $ECHO_C" >&6
12269 fi
12270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12272 else
12273   # Is the header compilable?
12274 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12276 cat >conftest.$ac_ext <<_ACEOF
12277 #line $LINENO "configure"
12278 /* confdefs.h.  */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h.  */
12283 $ac_includes_default
12284 #include <$ac_header>
12285 _ACEOF
12286 rm -f conftest.$ac_objext
12287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12288   (eval $ac_compile) 2>&5
12289   ac_status=$?
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); } &&
12292          { ac_try='test -s conftest.$ac_objext'
12293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294   (eval $ac_try) 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); }; }; then
12298   ac_header_compiler=yes
12299 else
12300   echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12302
12303 ac_header_compiler=no
12304 fi
12305 rm -f conftest.$ac_objext conftest.$ac_ext
12306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12307 echo "${ECHO_T}$ac_header_compiler" >&6
12308
12309 # Is the header present?
12310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12312 cat >conftest.$ac_ext <<_ACEOF
12313 #line $LINENO "configure"
12314 /* confdefs.h.  */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h.  */
12319 #include <$ac_header>
12320 _ACEOF
12321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12323   ac_status=$?
12324   grep -v '^ *+' conftest.er1 >conftest.err
12325   rm -f conftest.er1
12326   cat conftest.err >&5
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); } >/dev/null; then
12329   if test -s conftest.err; then
12330     ac_cpp_err=$ac_c_preproc_warn_flag
12331   else
12332     ac_cpp_err=
12333   fi
12334 else
12335   ac_cpp_err=yes
12336 fi
12337 if test -z "$ac_cpp_err"; then
12338   ac_header_preproc=yes
12339 else
12340   echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12342
12343   ac_header_preproc=no
12344 fi
12345 rm -f conftest.err conftest.$ac_ext
12346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12347 echo "${ECHO_T}$ac_header_preproc" >&6
12348
12349 # So?  What about this header?
12350 case $ac_header_compiler:$ac_header_preproc in
12351   yes:no )
12352     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12356     (
12357       cat <<\_ASBOX
12358 ## ------------------------------------ ##
12359 ## Report this to bug-autoconf@gnu.org. ##
12360 ## ------------------------------------ ##
12361 _ASBOX
12362     ) |
12363       sed "s/^/$as_me: WARNING:     /" >&2
12364     ;;
12365   no:yes )
12366     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12368     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12372     (
12373       cat <<\_ASBOX
12374 ## ------------------------------------ ##
12375 ## Report this to bug-autoconf@gnu.org. ##
12376 ## ------------------------------------ ##
12377 _ASBOX
12378     ) |
12379       sed "s/^/$as_me: WARNING:     /" >&2
12380     ;;
12381 esac
12382 echo "$as_me:$LINENO: checking for $ac_header" >&5
12383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12385   echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387   eval "$as_ac_Header=$ac_header_preproc"
12388 fi
12389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12391
12392 fi
12393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12394   cat >>confdefs.h <<_ACEOF
12395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12396 _ACEOF
12397  ac_has_wchar_h=yes
12398 else
12399   ac_has_wchar_h=no
12400 fi
12401
12402 done
12403
12404
12405 for ac_header in wctype.h
12406 do
12407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12409   echo "$as_me:$LINENO: checking for $ac_header" >&5
12410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12412   echo $ECHO_N "(cached) $ECHO_C" >&6
12413 fi
12414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12416 else
12417   # Is the header compilable?
12418 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12420 cat >conftest.$ac_ext <<_ACEOF
12421 #line $LINENO "configure"
12422 /* confdefs.h.  */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h.  */
12427 $ac_includes_default
12428 #include <$ac_header>
12429 _ACEOF
12430 rm -f conftest.$ac_objext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12432   (eval $ac_compile) 2>&5
12433   ac_status=$?
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); } &&
12436          { ac_try='test -s conftest.$ac_objext'
12437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438   (eval $ac_try) 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; }; then
12442   ac_header_compiler=yes
12443 else
12444   echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12446
12447 ac_header_compiler=no
12448 fi
12449 rm -f conftest.$ac_objext conftest.$ac_ext
12450 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12451 echo "${ECHO_T}$ac_header_compiler" >&6
12452
12453 # Is the header present?
12454 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12456 cat >conftest.$ac_ext <<_ACEOF
12457 #line $LINENO "configure"
12458 /* confdefs.h.  */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h.  */
12463 #include <$ac_header>
12464 _ACEOF
12465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12466   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12467   ac_status=$?
12468   grep -v '^ *+' conftest.er1 >conftest.err
12469   rm -f conftest.er1
12470   cat conftest.err >&5
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); } >/dev/null; then
12473   if test -s conftest.err; then
12474     ac_cpp_err=$ac_c_preproc_warn_flag
12475   else
12476     ac_cpp_err=
12477   fi
12478 else
12479   ac_cpp_err=yes
12480 fi
12481 if test -z "$ac_cpp_err"; then
12482   ac_header_preproc=yes
12483 else
12484   echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487   ac_header_preproc=no
12488 fi
12489 rm -f conftest.err conftest.$ac_ext
12490 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12491 echo "${ECHO_T}$ac_header_preproc" >&6
12492
12493 # So?  What about this header?
12494 case $ac_header_compiler:$ac_header_preproc in
12495   yes:no )
12496     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12500     (
12501       cat <<\_ASBOX
12502 ## ------------------------------------ ##
12503 ## Report this to bug-autoconf@gnu.org. ##
12504 ## ------------------------------------ ##
12505 _ASBOX
12506     ) |
12507       sed "s/^/$as_me: WARNING:     /" >&2
12508     ;;
12509   no:yes )
12510     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12512     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12516     (
12517       cat <<\_ASBOX
12518 ## ------------------------------------ ##
12519 ## Report this to bug-autoconf@gnu.org. ##
12520 ## ------------------------------------ ##
12521 _ASBOX
12522     ) |
12523       sed "s/^/$as_me: WARNING:     /" >&2
12524     ;;
12525 esac
12526 echo "$as_me:$LINENO: checking for $ac_header" >&5
12527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12529   echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531   eval "$as_ac_Header=$ac_header_preproc"
12532 fi
12533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12535
12536 fi
12537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12538   cat >>confdefs.h <<_ACEOF
12539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12540 _ACEOF
12541  ac_has_wctype_h=yes
12542 else
12543   ac_has_wctype_h=no
12544 fi
12545
12546 done
12547
12548
12549   # Only continue checking if the ISO C99 headers exist and support is on.
12550   if test x"$ac_has_wchar_h" = xyes &&
12551      test x"$ac_has_wctype_h" = xyes &&
12552      test x"$enable_c_mbchar" != xno; then
12553
12554     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
12555     # numeric_limits can instantiate type_traits<wchar_t>
12556     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
12557 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
12558     cat >conftest.$ac_ext <<_ACEOF
12559 #line $LINENO "configure"
12560 /* confdefs.h.  */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h.  */
12565 #include <wchar.h>
12566 int
12567 main ()
12568 {
12569 int i = WCHAR_MIN; int j = WCHAR_MAX;
12570   ;
12571   return 0;
12572 }
12573 _ACEOF
12574 rm -f conftest.$ac_objext
12575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12576   (eval $ac_compile) 2>&5
12577   ac_status=$?
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); } &&
12580          { ac_try='test -s conftest.$ac_objext'
12581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582   (eval $ac_try) 2>&5
12583   ac_status=$?
12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); }; }; then
12586   has_wchar_minmax=yes
12587 else
12588   echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12590
12591 has_wchar_minmax=no
12592 fi
12593 rm -f conftest.$ac_objext conftest.$ac_ext
12594     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
12595 echo "${ECHO_T}$has_wchar_minmax" >&6
12596
12597     # Test wchar.h for WEOF, which is what we use to determine whether
12598     # to specialize for char_traits<wchar_t> or not.
12599     echo "$as_me:$LINENO: checking for WEOF" >&5
12600 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
12601     cat >conftest.$ac_ext <<_ACEOF
12602 #line $LINENO "configure"
12603 /* confdefs.h.  */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h.  */
12608
12609       #include <wchar.h>
12610       #include <stddef.h>
12611 int
12612 main ()
12613 {
12614 wint_t i = WEOF;
12615   ;
12616   return 0;
12617 }
12618 _ACEOF
12619 rm -f conftest.$ac_objext
12620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12621   (eval $ac_compile) 2>&5
12622   ac_status=$?
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); } &&
12625          { ac_try='test -s conftest.$ac_objext'
12626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627   (eval $ac_try) 2>&5
12628   ac_status=$?
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); }; }; then
12631   has_weof=yes
12632 else
12633   echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12635
12636 has_weof=no
12637 fi
12638 rm -f conftest.$ac_objext conftest.$ac_ext
12639     echo "$as_me:$LINENO: result: $has_weof" >&5
12640 echo "${ECHO_T}$has_weof" >&6
12641
12642     # Tests for wide character functions used in char_traits<wchar_t>.
12643     ac_wfuncs=yes
12644
12645
12646
12647
12648
12649
12650 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
12651 do
12652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12653 echo "$as_me:$LINENO: checking for $ac_func" >&5
12654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12655 if eval "test \"\${$as_ac_var+set}\" = set"; then
12656   echo $ECHO_N "(cached) $ECHO_C" >&6
12657 else
12658   cat >conftest.$ac_ext <<_ACEOF
12659 #line $LINENO "configure"
12660 /* confdefs.h.  */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h.  */
12665 /* System header to define __stub macros and hopefully few prototypes,
12666     which can conflict with char $ac_func (); below.
12667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12668     <limits.h> exists even on freestanding compilers.  */
12669 #ifdef __STDC__
12670 # include <limits.h>
12671 #else
12672 # include <assert.h>
12673 #endif
12674 /* Override any gcc2 internal prototype to avoid an error.  */
12675 #ifdef __cplusplus
12676 extern "C"
12677 {
12678 #endif
12679 /* We use char because int might match the return type of a gcc2
12680    builtin and then its argument prototype would still apply.  */
12681 char $ac_func ();
12682 /* The GNU C library defines this for functions which it implements
12683     to always fail with ENOSYS.  Some functions are actually named
12684     something starting with __ and the normal name is an alias.  */
12685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12686 choke me
12687 #else
12688 char (*f) () = $ac_func;
12689 #endif
12690 #ifdef __cplusplus
12691 }
12692 #endif
12693
12694 int
12695 main ()
12696 {
12697 return f != $ac_func;
12698   ;
12699   return 0;
12700 }
12701 _ACEOF
12702 rm -f conftest.$ac_objext conftest$ac_exeext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12704   (eval $ac_link) 2>&5
12705   ac_status=$?
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); } &&
12708          { ac_try='test -s conftest$ac_exeext'
12709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710   (eval $ac_try) 2>&5
12711   ac_status=$?
12712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713   (exit $ac_status); }; }; then
12714   eval "$as_ac_var=yes"
12715 else
12716   echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12718
12719 eval "$as_ac_var=no"
12720 fi
12721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12722 fi
12723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12725 if test `eval echo '${'$as_ac_var'}'` = yes; then
12726   cat >>confdefs.h <<_ACEOF
12727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12728 _ACEOF
12729
12730 else
12731   ac_wfuncs=no
12732 fi
12733 done
12734
12735
12736     # Checks for names injected into std:: by the c_std headers.
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
12788     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
12789     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
12790     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
12791     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
12792     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
12793 do
12794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12795 echo "$as_me:$LINENO: checking for $ac_func" >&5
12796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12797 if eval "test \"\${$as_ac_var+set}\" = set"; then
12798   echo $ECHO_N "(cached) $ECHO_C" >&6
12799 else
12800   cat >conftest.$ac_ext <<_ACEOF
12801 #line $LINENO "configure"
12802 /* confdefs.h.  */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h.  */
12807 /* System header to define __stub macros and hopefully few prototypes,
12808     which can conflict with char $ac_func (); below.
12809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12810     <limits.h> exists even on freestanding compilers.  */
12811 #ifdef __STDC__
12812 # include <limits.h>
12813 #else
12814 # include <assert.h>
12815 #endif
12816 /* Override any gcc2 internal prototype to avoid an error.  */
12817 #ifdef __cplusplus
12818 extern "C"
12819 {
12820 #endif
12821 /* We use char because int might match the return type of a gcc2
12822    builtin and then its argument prototype would still apply.  */
12823 char $ac_func ();
12824 /* The GNU C library defines this for functions which it implements
12825     to always fail with ENOSYS.  Some functions are actually named
12826     something starting with __ and the normal name is an alias.  */
12827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12828 choke me
12829 #else
12830 char (*f) () = $ac_func;
12831 #endif
12832 #ifdef __cplusplus
12833 }
12834 #endif
12835
12836 int
12837 main ()
12838 {
12839 return f != $ac_func;
12840   ;
12841   return 0;
12842 }
12843 _ACEOF
12844 rm -f conftest.$ac_objext conftest$ac_exeext
12845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12846   (eval $ac_link) 2>&5
12847   ac_status=$?
12848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849   (exit $ac_status); } &&
12850          { ac_try='test -s conftest$ac_exeext'
12851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852   (eval $ac_try) 2>&5
12853   ac_status=$?
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); }; }; then
12856   eval "$as_ac_var=yes"
12857 else
12858   echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12860
12861 eval "$as_ac_var=no"
12862 fi
12863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12864 fi
12865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12867 if test `eval echo '${'$as_ac_var'}'` = yes; then
12868   cat >>confdefs.h <<_ACEOF
12869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12870 _ACEOF
12871
12872 else
12873   ac_wfuncs=no
12874 fi
12875 done
12876
12877
12878     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
12879 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
12880     if test x"$has_weof" = xyes &&
12881        test x"$has_wchar_minmax" = xyes &&
12882        test x"$ac_wfuncs" = xyes;
12883     then
12884       ac_isoC99_wchar_t=yes
12885     else
12886       ac_isoC99_wchar_t=no
12887     fi
12888     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
12889 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
12890
12891     # Use iconv for wchar_t to char conversions. As such, check for
12892     # X/Open Portability Guide, version 2 features (XPG2).
12893     if test "${ac_cv_header_iconv_h+set}" = set; then
12894   echo "$as_me:$LINENO: checking for iconv.h" >&5
12895 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
12896 if test "${ac_cv_header_iconv_h+set}" = set; then
12897   echo $ECHO_N "(cached) $ECHO_C" >&6
12898 fi
12899 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
12900 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
12901 else
12902   # Is the header compilable?
12903 echo "$as_me:$LINENO: checking iconv.h usability" >&5
12904 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
12905 cat >conftest.$ac_ext <<_ACEOF
12906 #line $LINENO "configure"
12907 /* confdefs.h.  */
12908 _ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h.  */
12912 $ac_includes_default
12913 #include <iconv.h>
12914 _ACEOF
12915 rm -f conftest.$ac_objext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12917   (eval $ac_compile) 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); } &&
12921          { ac_try='test -s conftest.$ac_objext'
12922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923   (eval $ac_try) 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); }; }; then
12927   ac_header_compiler=yes
12928 else
12929   echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12931
12932 ac_header_compiler=no
12933 fi
12934 rm -f conftest.$ac_objext conftest.$ac_ext
12935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12936 echo "${ECHO_T}$ac_header_compiler" >&6
12937
12938 # Is the header present?
12939 echo "$as_me:$LINENO: checking iconv.h presence" >&5
12940 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
12941 cat >conftest.$ac_ext <<_ACEOF
12942 #line $LINENO "configure"
12943 /* confdefs.h.  */
12944 _ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h.  */
12948 #include <iconv.h>
12949 _ACEOF
12950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12952   ac_status=$?
12953   grep -v '^ *+' conftest.er1 >conftest.err
12954   rm -f conftest.er1
12955   cat conftest.err >&5
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); } >/dev/null; then
12958   if test -s conftest.err; then
12959     ac_cpp_err=$ac_c_preproc_warn_flag
12960   else
12961     ac_cpp_err=
12962   fi
12963 else
12964   ac_cpp_err=yes
12965 fi
12966 if test -z "$ac_cpp_err"; then
12967   ac_header_preproc=yes
12968 else
12969   echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12971
12972   ac_header_preproc=no
12973 fi
12974 rm -f conftest.err conftest.$ac_ext
12975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12976 echo "${ECHO_T}$ac_header_preproc" >&6
12977
12978 # So?  What about this header?
12979 case $ac_header_compiler:$ac_header_preproc in
12980   yes:no )
12981     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
12982 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12983     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
12984 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
12985     (
12986       cat <<\_ASBOX
12987 ## ------------------------------------ ##
12988 ## Report this to bug-autoconf@gnu.org. ##
12989 ## ------------------------------------ ##
12990 _ASBOX
12991     ) |
12992       sed "s/^/$as_me: WARNING:     /" >&2
12993     ;;
12994   no:yes )
12995     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
12996 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
12997     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
12998 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
12999     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
13000 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
13001     (
13002       cat <<\_ASBOX
13003 ## ------------------------------------ ##
13004 ## Report this to bug-autoconf@gnu.org. ##
13005 ## ------------------------------------ ##
13006 _ASBOX
13007     ) |
13008       sed "s/^/$as_me: WARNING:     /" >&2
13009     ;;
13010 esac
13011 echo "$as_me:$LINENO: checking for iconv.h" >&5
13012 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13013 if test "${ac_cv_header_iconv_h+set}" = set; then
13014   echo $ECHO_N "(cached) $ECHO_C" >&6
13015 else
13016   ac_cv_header_iconv_h=$ac_header_preproc
13017 fi
13018 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13019 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13020
13021 fi
13022 if test $ac_cv_header_iconv_h = yes; then
13023   ac_has_iconv_h=yes
13024 else
13025   ac_has_iconv_h=no
13026 fi
13027
13028
13029     if test "${ac_cv_header_langinfo_h+set}" = set; then
13030   echo "$as_me:$LINENO: checking for langinfo.h" >&5
13031 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
13032 if test "${ac_cv_header_langinfo_h+set}" = set; then
13033   echo $ECHO_N "(cached) $ECHO_C" >&6
13034 fi
13035 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
13036 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
13037 else
13038   # Is the header compilable?
13039 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
13040 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
13041 cat >conftest.$ac_ext <<_ACEOF
13042 #line $LINENO "configure"
13043 /* confdefs.h.  */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h.  */
13048 $ac_includes_default
13049 #include <langinfo.h>
13050 _ACEOF
13051 rm -f conftest.$ac_objext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13053   (eval $ac_compile) 2>&5
13054   ac_status=$?
13055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056   (exit $ac_status); } &&
13057          { ac_try='test -s conftest.$ac_objext'
13058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059   (eval $ac_try) 2>&5
13060   ac_status=$?
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); }; }; then
13063   ac_header_compiler=yes
13064 else
13065   echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13067
13068 ac_header_compiler=no
13069 fi
13070 rm -f conftest.$ac_objext conftest.$ac_ext
13071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13072 echo "${ECHO_T}$ac_header_compiler" >&6
13073
13074 # Is the header present?
13075 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
13076 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
13077 cat >conftest.$ac_ext <<_ACEOF
13078 #line $LINENO "configure"
13079 /* confdefs.h.  */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h.  */
13084 #include <langinfo.h>
13085 _ACEOF
13086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13088   ac_status=$?
13089   grep -v '^ *+' conftest.er1 >conftest.err
13090   rm -f conftest.er1
13091   cat conftest.err >&5
13092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); } >/dev/null; then
13094   if test -s conftest.err; then
13095     ac_cpp_err=$ac_c_preproc_warn_flag
13096   else
13097     ac_cpp_err=
13098   fi
13099 else
13100   ac_cpp_err=yes
13101 fi
13102 if test -z "$ac_cpp_err"; then
13103   ac_header_preproc=yes
13104 else
13105   echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13107
13108   ac_header_preproc=no
13109 fi
13110 rm -f conftest.err conftest.$ac_ext
13111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13112 echo "${ECHO_T}$ac_header_preproc" >&6
13113
13114 # So?  What about this header?
13115 case $ac_header_compiler:$ac_header_preproc in
13116   yes:no )
13117     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
13118 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13119     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
13120 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
13121     (
13122       cat <<\_ASBOX
13123 ## ------------------------------------ ##
13124 ## Report this to bug-autoconf@gnu.org. ##
13125 ## ------------------------------------ ##
13126 _ASBOX
13127     ) |
13128       sed "s/^/$as_me: WARNING:     /" >&2
13129     ;;
13130   no:yes )
13131     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
13132 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
13133     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
13134 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
13135     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
13136 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
13137     (
13138       cat <<\_ASBOX
13139 ## ------------------------------------ ##
13140 ## Report this to bug-autoconf@gnu.org. ##
13141 ## ------------------------------------ ##
13142 _ASBOX
13143     ) |
13144       sed "s/^/$as_me: WARNING:     /" >&2
13145     ;;
13146 esac
13147 echo "$as_me:$LINENO: checking for langinfo.h" >&5
13148 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
13149 if test "${ac_cv_header_langinfo_h+set}" = set; then
13150   echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152   ac_cv_header_langinfo_h=$ac_header_preproc
13153 fi
13154 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
13155 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
13156
13157 fi
13158 if test $ac_cv_header_langinfo_h = yes; then
13159   ac_has_langinfo_h=yes
13160 else
13161   ac_has_langinfo_h=no
13162 fi
13163
13164
13165
13166     # Check for existence of libiconv.a providing XPG2 wchar_t support.
13167     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
13168 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
13169 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
13170   echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172   ac_check_lib_save_LIBS=$LIBS
13173 LIBS="-liconv  $LIBS"
13174 cat >conftest.$ac_ext <<_ACEOF
13175 #line $LINENO "configure"
13176 /* confdefs.h.  */
13177 _ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h.  */
13181
13182 /* Override any gcc2 internal prototype to avoid an error.  */
13183 #ifdef __cplusplus
13184 extern "C"
13185 #endif
13186 /* We use char because int might match the return type of a gcc2
13187    builtin and then its argument prototype would still apply.  */
13188 char iconv ();
13189 int
13190 main ()
13191 {
13192 iconv ();
13193   ;
13194   return 0;
13195 }
13196 _ACEOF
13197 rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13199   (eval $ac_link) 2>&5
13200   ac_status=$?
13201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202   (exit $ac_status); } &&
13203          { ac_try='test -s conftest$ac_exeext'
13204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205   (eval $ac_try) 2>&5
13206   ac_status=$?
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); }; }; then
13209   ac_cv_lib_iconv_iconv=yes
13210 else
13211   echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13213
13214 ac_cv_lib_iconv_iconv=no
13215 fi
13216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13217 LIBS=$ac_check_lib_save_LIBS
13218 fi
13219 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
13220 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
13221 if test $ac_cv_lib_iconv_iconv = yes; then
13222   libiconv="-liconv"
13223 fi
13224
13225     ac_save_LIBS="$LIBS"
13226     LIBS="$LIBS $libiconv"
13227
13228
13229
13230
13231
13232 for ac_func in iconv_open iconv_close iconv nl_langinfo
13233 do
13234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13235 echo "$as_me:$LINENO: checking for $ac_func" >&5
13236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13237 if eval "test \"\${$as_ac_var+set}\" = set"; then
13238   echo $ECHO_N "(cached) $ECHO_C" >&6
13239 else
13240   cat >conftest.$ac_ext <<_ACEOF
13241 #line $LINENO "configure"
13242 /* confdefs.h.  */
13243 _ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h.  */
13247 /* System header to define __stub macros and hopefully few prototypes,
13248     which can conflict with char $ac_func (); below.
13249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13250     <limits.h> exists even on freestanding compilers.  */
13251 #ifdef __STDC__
13252 # include <limits.h>
13253 #else
13254 # include <assert.h>
13255 #endif
13256 /* Override any gcc2 internal prototype to avoid an error.  */
13257 #ifdef __cplusplus
13258 extern "C"
13259 {
13260 #endif
13261 /* We use char because int might match the return type of a gcc2
13262    builtin and then its argument prototype would still apply.  */
13263 char $ac_func ();
13264 /* The GNU C library defines this for functions which it implements
13265     to always fail with ENOSYS.  Some functions are actually named
13266     something starting with __ and the normal name is an alias.  */
13267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13268 choke me
13269 #else
13270 char (*f) () = $ac_func;
13271 #endif
13272 #ifdef __cplusplus
13273 }
13274 #endif
13275
13276 int
13277 main ()
13278 {
13279 return f != $ac_func;
13280   ;
13281   return 0;
13282 }
13283 _ACEOF
13284 rm -f conftest.$ac_objext conftest$ac_exeext
13285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13286   (eval $ac_link) 2>&5
13287   ac_status=$?
13288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289   (exit $ac_status); } &&
13290          { ac_try='test -s conftest$ac_exeext'
13291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292   (eval $ac_try) 2>&5
13293   ac_status=$?
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); }; }; then
13296   eval "$as_ac_var=yes"
13297 else
13298   echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13300
13301 eval "$as_ac_var=no"
13302 fi
13303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13304 fi
13305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13307 if test `eval echo '${'$as_ac_var'}'` = yes; then
13308   cat >>confdefs.h <<_ACEOF
13309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13310 _ACEOF
13311  ac_XPG2funcs=yes
13312 else
13313   ac_XPG2funcs=no
13314 fi
13315 done
13316
13317
13318     LIBS="$ac_save_LIBS"
13319
13320     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
13321 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
13322     if test x"$ac_has_iconv_h" = xyes &&
13323        test x"$ac_has_langinfo_h" = xyes &&
13324        test x"$ac_XPG2funcs" = xyes;
13325     then
13326       ac_XPG2_wchar_t=yes
13327     else
13328       ac_XPG2_wchar_t=no
13329     fi
13330     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
13331 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
13332
13333     # At the moment, only enable wchar_t specializations if all the
13334     # above support is present.
13335     if test x"$ac_isoC99_wchar_t" = xyes &&
13336        test x"$ac_XPG2_wchar_t" = xyes;
13337     then
13338       cat >>confdefs.h <<\_ACEOF
13339 #define _GLIBCXX_USE_WCHAR_T 1
13340 _ACEOF
13341
13342       enable_wchar_t=yes
13343     fi
13344   fi
13345   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
13346 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
13347   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
13348 echo "${ECHO_T}$enable_wchar_t" >&6
13349
13350     cat >>confdefs.h <<\_ACEOF
13351 #define HAVE_COPYSIGN 1
13352 _ACEOF
13353
13354     cat >>confdefs.h <<\_ACEOF
13355 #define HAVE_COPYSIGNF 1
13356 _ACEOF
13357
13358     cat >>confdefs.h <<\_ACEOF
13359 #define HAVE_FINITE 1
13360 _ACEOF
13361
13362     cat >>confdefs.h <<\_ACEOF
13363 #define HAVE_FINITEF 1
13364 _ACEOF
13365
13366     cat >>confdefs.h <<\_ACEOF
13367 #define HAVE_FREXPF 1
13368 _ACEOF
13369
13370     cat >>confdefs.h <<\_ACEOF
13371 #define HAVE_HYPOTF 1
13372 _ACEOF
13373
13374     cat >>confdefs.h <<\_ACEOF
13375 #define HAVE_ISINF 1
13376 _ACEOF
13377
13378     cat >>confdefs.h <<\_ACEOF
13379 #define HAVE_ISINFF 1
13380 _ACEOF
13381
13382     cat >>confdefs.h <<\_ACEOF
13383 #define HAVE_ISNAN 1
13384 _ACEOF
13385
13386     cat >>confdefs.h <<\_ACEOF
13387 #define HAVE_ISNANF 1
13388 _ACEOF
13389
13390     cat >>confdefs.h <<\_ACEOF
13391 #define HAVE_SINCOS 1
13392 _ACEOF
13393
13394     cat >>confdefs.h <<\_ACEOF
13395 #define HAVE_SINCOSF 1
13396 _ACEOF
13397
13398     if test x"long_double_math_on_this_cpu" = x"yes"; then
13399       cat >>confdefs.h <<\_ACEOF
13400 #define HAVE_FINITEL 1
13401 _ACEOF
13402
13403       cat >>confdefs.h <<\_ACEOF
13404 #define HAVE_HYPOTL 1
13405 _ACEOF
13406
13407       cat >>confdefs.h <<\_ACEOF
13408 #define HAVE_ISINFL 1
13409 _ACEOF
13410
13411       cat >>confdefs.h <<\_ACEOF
13412 #define HAVE_ISNANL 1
13413 _ACEOF
13414
13415     fi
13416     ;;
13417   *-mingw32*)
13418     #os_include_dir="os/mingw32"
13419
13420
13421
13422 for ac_header in sys/types.h locale.h float.h
13423 do
13424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13426   echo "$as_me:$LINENO: checking for $ac_header" >&5
13427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13429   echo $ECHO_N "(cached) $ECHO_C" >&6
13430 fi
13431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13433 else
13434   # Is the header compilable?
13435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13437 cat >conftest.$ac_ext <<_ACEOF
13438 #line $LINENO "configure"
13439 /* confdefs.h.  */
13440 _ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h.  */
13444 $ac_includes_default
13445 #include <$ac_header>
13446 _ACEOF
13447 rm -f conftest.$ac_objext
13448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13449   (eval $ac_compile) 2>&5
13450   ac_status=$?
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); } &&
13453          { ac_try='test -s conftest.$ac_objext'
13454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455   (eval $ac_try) 2>&5
13456   ac_status=$?
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); }; }; then
13459   ac_header_compiler=yes
13460 else
13461   echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13463
13464 ac_header_compiler=no
13465 fi
13466 rm -f conftest.$ac_objext conftest.$ac_ext
13467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13468 echo "${ECHO_T}$ac_header_compiler" >&6
13469
13470 # Is the header present?
13471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13473 cat >conftest.$ac_ext <<_ACEOF
13474 #line $LINENO "configure"
13475 /* confdefs.h.  */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h.  */
13480 #include <$ac_header>
13481 _ACEOF
13482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13484   ac_status=$?
13485   grep -v '^ *+' conftest.er1 >conftest.err
13486   rm -f conftest.er1
13487   cat conftest.err >&5
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); } >/dev/null; then
13490   if test -s conftest.err; then
13491     ac_cpp_err=$ac_c_preproc_warn_flag
13492   else
13493     ac_cpp_err=
13494   fi
13495 else
13496   ac_cpp_err=yes
13497 fi
13498 if test -z "$ac_cpp_err"; then
13499   ac_header_preproc=yes
13500 else
13501   echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13503
13504   ac_header_preproc=no
13505 fi
13506 rm -f conftest.err conftest.$ac_ext
13507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13508 echo "${ECHO_T}$ac_header_preproc" >&6
13509
13510 # So?  What about this header?
13511 case $ac_header_compiler:$ac_header_preproc in
13512   yes:no )
13513     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13517     (
13518       cat <<\_ASBOX
13519 ## ------------------------------------ ##
13520 ## Report this to bug-autoconf@gnu.org. ##
13521 ## ------------------------------------ ##
13522 _ASBOX
13523     ) |
13524       sed "s/^/$as_me: WARNING:     /" >&2
13525     ;;
13526   no:yes )
13527     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13529     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13533     (
13534       cat <<\_ASBOX
13535 ## ------------------------------------ ##
13536 ## Report this to bug-autoconf@gnu.org. ##
13537 ## ------------------------------------ ##
13538 _ASBOX
13539     ) |
13540       sed "s/^/$as_me: WARNING:     /" >&2
13541     ;;
13542 esac
13543 echo "$as_me:$LINENO: checking for $ac_header" >&5
13544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13546   echo $ECHO_N "(cached) $ECHO_C" >&6
13547 else
13548   eval "$as_ac_Header=$ac_header_preproc"
13549 fi
13550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13552
13553 fi
13554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13555   cat >>confdefs.h <<_ACEOF
13556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13557 _ACEOF
13558
13559 fi
13560
13561 done
13562
13563
13564   # If we're not using GNU ld, then there's no point in even trying these
13565   # tests.  Check for that first.  We should have already tested for gld
13566   # by now (in libtool), but require it now just to be safe...
13567   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
13568   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
13569
13570
13571
13572   # The name set by libtool depends on the version of libtool.  Shame on us
13573   # for depending on an impl detail, but c'est la vie.  Older versions used
13574   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
13575   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
13576   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
13577   # set (hence we're using an older libtool), then set it.
13578   if test x${with_gnu_ld+set} != xset; then
13579     if test x${ac_cv_prog_gnu_ld+set} != xset; then
13580       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
13581       with_gnu_ld=no
13582     else
13583       with_gnu_ld=$ac_cv_prog_gnu_ld
13584     fi
13585   fi
13586
13587   # Start by getting the version number.  I think the libtool test already
13588   # does some of this, but throws away the result.
13589
13590   ldver=`$LD --version 2>/dev/null | head -1 | \
13591          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
13592
13593   glibcxx_gnu_ld_version=`echo $ldver | \
13594          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
13595
13596   # Set --gc-sections.
13597   if test "$with_gnu_ld" = "notbroken"; then
13598     # GNU ld it is!  Joy and bunny rabbits!
13599
13600     # All these tests are for C++; save the language and the compiler flags.
13601     # Need to do this so that g++ won't try to link in libstdc++
13602     ac_test_CFLAGS="${CFLAGS+set}"
13603     ac_save_CFLAGS="$CFLAGS"
13604     CFLAGS='-x c++  -Wl,--gc-sections'
13605
13606     # Check for -Wl,--gc-sections
13607     # XXX This test is broken at the moment, as symbols required for linking
13608     # are now in libsupc++ (not built yet).  In addition, this test has
13609     # cored on solaris in the past.  In addition, --gc-sections doesn't
13610     # really work at the moment (keeps on discarding used sections, first
13611     # .eh_frame and now some of the glibc sections for iconv).
13612     # Bzzzzt.  Thanks for playing, maybe next time.
13613     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
13614 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
13615     if test "$cross_compiling" = yes; then
13616   ac_sectionLDflags=yes
13617 else
13618   cat >conftest.$ac_ext <<_ACEOF
13619 #line $LINENO "configure"
13620 /* confdefs.h.  */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h.  */
13625
13626      int main(void)
13627      {
13628        try { throw 1; }
13629        catch (...) { };
13630        return 0;
13631      }
13632
13633 _ACEOF
13634 rm -f conftest$ac_exeext
13635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13636   (eval $ac_link) 2>&5
13637   ac_status=$?
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641   (eval $ac_try) 2>&5
13642   ac_status=$?
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); }; }; then
13645   ac_sectionLDflags=yes
13646 else
13647   echo "$as_me: program exited with status $ac_status" >&5
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13650
13651 ( exit $ac_status )
13652 ac_sectionLDflags=no
13653 fi
13654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13655 fi
13656     if test "$ac_test_CFLAGS" = set; then
13657       CFLAGS="$ac_save_CFLAGS"
13658     else
13659       # this is the suspicious part
13660       CFLAGS=''
13661     fi
13662     if test "$ac_sectionLDflags" = "yes"; then
13663       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
13664     fi
13665     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
13666 echo "${ECHO_T}$ac_sectionLDflags" >&6
13667   fi
13668
13669   # Set linker optimization flags.
13670   if test x"$with_gnu_ld" = x"yes"; then
13671     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
13672   fi
13673
13674
13675
13676
13677
13678
13679 echo "$as_me:$LINENO: checking for main in -lm" >&5
13680 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
13681 if test "${ac_cv_lib_m_main+set}" = set; then
13682   echo $ECHO_N "(cached) $ECHO_C" >&6
13683 else
13684   ac_check_lib_save_LIBS=$LIBS
13685 LIBS="-lm  $LIBS"
13686 cat >conftest.$ac_ext <<_ACEOF
13687 #line $LINENO "configure"
13688 /* confdefs.h.  */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h.  */
13693
13694
13695 int
13696 main ()
13697 {
13698 main ();
13699   ;
13700   return 0;
13701 }
13702 _ACEOF
13703 rm -f conftest.$ac_objext conftest$ac_exeext
13704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13705   (eval $ac_link) 2>&5
13706   ac_status=$?
13707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); } &&
13709          { ac_try='test -s conftest$ac_exeext'
13710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711   (eval $ac_try) 2>&5
13712   ac_status=$?
13713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714   (exit $ac_status); }; }; then
13715   ac_cv_lib_m_main=yes
13716 else
13717   echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13719
13720 ac_cv_lib_m_main=no
13721 fi
13722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13723 LIBS=$ac_check_lib_save_LIBS
13724 fi
13725 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
13726 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
13727 if test $ac_cv_lib_m_main = yes; then
13728   cat >>confdefs.h <<_ACEOF
13729 #define HAVE_LIBM 1
13730 _ACEOF
13731
13732   LIBS="-lm $LIBS"
13733
13734 fi
13735
13736
13737
13738 for ac_func in nan copysignf
13739 do
13740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13741 echo "$as_me:$LINENO: checking for $ac_func" >&5
13742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13743 if eval "test \"\${$as_ac_var+set}\" = set"; then
13744   echo $ECHO_N "(cached) $ECHO_C" >&6
13745 else
13746   cat >conftest.$ac_ext <<_ACEOF
13747 #line $LINENO "configure"
13748 /* confdefs.h.  */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h.  */
13753 /* System header to define __stub macros and hopefully few prototypes,
13754     which can conflict with char $ac_func (); below.
13755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13756     <limits.h> exists even on freestanding compilers.  */
13757 #ifdef __STDC__
13758 # include <limits.h>
13759 #else
13760 # include <assert.h>
13761 #endif
13762 /* Override any gcc2 internal prototype to avoid an error.  */
13763 #ifdef __cplusplus
13764 extern "C"
13765 {
13766 #endif
13767 /* We use char because int might match the return type of a gcc2
13768    builtin and then its argument prototype would still apply.  */
13769 char $ac_func ();
13770 /* The GNU C library defines this for functions which it implements
13771     to always fail with ENOSYS.  Some functions are actually named
13772     something starting with __ and the normal name is an alias.  */
13773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13774 choke me
13775 #else
13776 char (*f) () = $ac_func;
13777 #endif
13778 #ifdef __cplusplus
13779 }
13780 #endif
13781
13782 int
13783 main ()
13784 {
13785 return f != $ac_func;
13786   ;
13787   return 0;
13788 }
13789 _ACEOF
13790 rm -f conftest.$ac_objext conftest$ac_exeext
13791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13792   (eval $ac_link) 2>&5
13793   ac_status=$?
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); } &&
13796          { ac_try='test -s conftest$ac_exeext'
13797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798   (eval $ac_try) 2>&5
13799   ac_status=$?
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); }; }; then
13802   eval "$as_ac_var=yes"
13803 else
13804   echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13806
13807 eval "$as_ac_var=no"
13808 fi
13809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13810 fi
13811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13813 if test `eval echo '${'$as_ac_var'}'` = yes; then
13814   cat >>confdefs.h <<_ACEOF
13815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13816 _ACEOF
13817
13818 else
13819   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
13820 fi
13821 done
13822
13823
13824
13825 for ac_func in __signbit
13826 do
13827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13828 echo "$as_me:$LINENO: checking for $ac_func" >&5
13829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13830 if eval "test \"\${$as_ac_var+set}\" = set"; then
13831   echo $ECHO_N "(cached) $ECHO_C" >&6
13832 else
13833   cat >conftest.$ac_ext <<_ACEOF
13834 #line $LINENO "configure"
13835 /* confdefs.h.  */
13836 _ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h.  */
13840 /* System header to define __stub macros and hopefully few prototypes,
13841     which can conflict with char $ac_func (); below.
13842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13843     <limits.h> exists even on freestanding compilers.  */
13844 #ifdef __STDC__
13845 # include <limits.h>
13846 #else
13847 # include <assert.h>
13848 #endif
13849 /* Override any gcc2 internal prototype to avoid an error.  */
13850 #ifdef __cplusplus
13851 extern "C"
13852 {
13853 #endif
13854 /* We use char because int might match the return type of a gcc2
13855    builtin and then its argument prototype would still apply.  */
13856 char $ac_func ();
13857 /* The GNU C library defines this for functions which it implements
13858     to always fail with ENOSYS.  Some functions are actually named
13859     something starting with __ and the normal name is an alias.  */
13860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13861 choke me
13862 #else
13863 char (*f) () = $ac_func;
13864 #endif
13865 #ifdef __cplusplus
13866 }
13867 #endif
13868
13869 int
13870 main ()
13871 {
13872 return f != $ac_func;
13873   ;
13874   return 0;
13875 }
13876 _ACEOF
13877 rm -f conftest.$ac_objext conftest$ac_exeext
13878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13879   (eval $ac_link) 2>&5
13880   ac_status=$?
13881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882   (exit $ac_status); } &&
13883          { ac_try='test -s conftest$ac_exeext'
13884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885   (eval $ac_try) 2>&5
13886   ac_status=$?
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); }; }; then
13889   eval "$as_ac_var=yes"
13890 else
13891   echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.$ac_ext >&5
13893
13894 eval "$as_ac_var=no"
13895 fi
13896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13897 fi
13898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13900 if test `eval echo '${'$as_ac_var'}'` = yes; then
13901   cat >>confdefs.h <<_ACEOF
13902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13903 _ACEOF
13904
13905 else
13906   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
13907 fi
13908 done
13909
13910
13911 for ac_func in __signbitf
13912 do
13913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13914 echo "$as_me:$LINENO: checking for $ac_func" >&5
13915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13916 if eval "test \"\${$as_ac_var+set}\" = set"; then
13917   echo $ECHO_N "(cached) $ECHO_C" >&6
13918 else
13919   cat >conftest.$ac_ext <<_ACEOF
13920 #line $LINENO "configure"
13921 /* confdefs.h.  */
13922 _ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h.  */
13926 /* System header to define __stub macros and hopefully few prototypes,
13927     which can conflict with char $ac_func (); below.
13928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13929     <limits.h> exists even on freestanding compilers.  */
13930 #ifdef __STDC__
13931 # include <limits.h>
13932 #else
13933 # include <assert.h>
13934 #endif
13935 /* Override any gcc2 internal prototype to avoid an error.  */
13936 #ifdef __cplusplus
13937 extern "C"
13938 {
13939 #endif
13940 /* We use char because int might match the return type of a gcc2
13941    builtin and then its argument prototype would still apply.  */
13942 char $ac_func ();
13943 /* The GNU C library defines this for functions which it implements
13944     to always fail with ENOSYS.  Some functions are actually named
13945     something starting with __ and the normal name is an alias.  */
13946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13947 choke me
13948 #else
13949 char (*f) () = $ac_func;
13950 #endif
13951 #ifdef __cplusplus
13952 }
13953 #endif
13954
13955 int
13956 main ()
13957 {
13958 return f != $ac_func;
13959   ;
13960   return 0;
13961 }
13962 _ACEOF
13963 rm -f conftest.$ac_objext conftest$ac_exeext
13964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13965   (eval $ac_link) 2>&5
13966   ac_status=$?
13967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968   (exit $ac_status); } &&
13969          { ac_try='test -s conftest$ac_exeext'
13970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971   (eval $ac_try) 2>&5
13972   ac_status=$?
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); }; }; then
13975   eval "$as_ac_var=yes"
13976 else
13977   echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980 eval "$as_ac_var=no"
13981 fi
13982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13983 fi
13984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13986 if test `eval echo '${'$as_ac_var'}'` = yes; then
13987   cat >>confdefs.h <<_ACEOF
13988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13989 _ACEOF
13990
13991 else
13992   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
13993 fi
13994 done
13995
13996
13997           if test x$ac_cv_func_copysignl = x"yes"; then
13998
13999 for ac_func in __signbitl
14000 do
14001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14002 echo "$as_me:$LINENO: checking for $ac_func" >&5
14003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14004 if eval "test \"\${$as_ac_var+set}\" = set"; then
14005   echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007   cat >conftest.$ac_ext <<_ACEOF
14008 #line $LINENO "configure"
14009 /* confdefs.h.  */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h.  */
14014 /* System header to define __stub macros and hopefully few prototypes,
14015     which can conflict with char $ac_func (); below.
14016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14017     <limits.h> exists even on freestanding compilers.  */
14018 #ifdef __STDC__
14019 # include <limits.h>
14020 #else
14021 # include <assert.h>
14022 #endif
14023 /* Override any gcc2 internal prototype to avoid an error.  */
14024 #ifdef __cplusplus
14025 extern "C"
14026 {
14027 #endif
14028 /* We use char because int might match the return type of a gcc2
14029    builtin and then its argument prototype would still apply.  */
14030 char $ac_func ();
14031 /* The GNU C library defines this for functions which it implements
14032     to always fail with ENOSYS.  Some functions are actually named
14033     something starting with __ and the normal name is an alias.  */
14034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14035 choke me
14036 #else
14037 char (*f) () = $ac_func;
14038 #endif
14039 #ifdef __cplusplus
14040 }
14041 #endif
14042
14043 int
14044 main ()
14045 {
14046 return f != $ac_func;
14047   ;
14048   return 0;
14049 }
14050 _ACEOF
14051 rm -f conftest.$ac_objext conftest$ac_exeext
14052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14053   (eval $ac_link) 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); } &&
14057          { ac_try='test -s conftest$ac_exeext'
14058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059   (eval $ac_try) 2>&5
14060   ac_status=$?
14061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); }; }; then
14063   eval "$as_ac_var=yes"
14064 else
14065   echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14067
14068 eval "$as_ac_var=no"
14069 fi
14070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14071 fi
14072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14074 if test `eval echo '${'$as_ac_var'}'` = yes; then
14075   cat >>confdefs.h <<_ACEOF
14076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14077 _ACEOF
14078
14079 else
14080   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
14081 fi
14082 done
14083
14084   fi
14085
14086   if test -n "$LIBMATHOBJS"; then
14087     need_libmath=yes
14088   fi
14089
14090
14091
14092   # Test wchar.h for mbstate_t, which is needed for char_traits and
14093   # others even if wchar_t support is not on.
14094   echo "$as_me:$LINENO: checking for mbstate_t" >&5
14095 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14096   cat >conftest.$ac_ext <<_ACEOF
14097 #line $LINENO "configure"
14098 /* confdefs.h.  */
14099 _ACEOF
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h.  */
14103 #include <wchar.h>
14104 int
14105 main ()
14106 {
14107 mbstate_t teststate;
14108   ;
14109   return 0;
14110 }
14111 _ACEOF
14112 rm -f conftest.$ac_objext
14113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14114   (eval $ac_compile) 2>&5
14115   ac_status=$?
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); } &&
14118          { ac_try='test -s conftest.$ac_objext'
14119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120   (eval $ac_try) 2>&5
14121   ac_status=$?
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); }; }; then
14124   have_mbstate_t=yes
14125 else
14126   echo "$as_me: failed program was:" >&5
14127 sed 's/^/| /' conftest.$ac_ext >&5
14128
14129 have_mbstate_t=no
14130 fi
14131 rm -f conftest.$ac_objext conftest.$ac_ext
14132   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
14133 echo "${ECHO_T}$have_mbstate_t" >&6
14134   if test x"$have_mbstate_t" = xyes; then
14135     cat >>confdefs.h <<\_ACEOF
14136 #define HAVE_MBSTATE_T 1
14137 _ACEOF
14138
14139   fi
14140
14141   # Sanity check for existence of ISO C99 headers for extended encoding.
14142
14143 for ac_header in wchar.h
14144 do
14145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14147   echo "$as_me:$LINENO: checking for $ac_header" >&5
14148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14150   echo $ECHO_N "(cached) $ECHO_C" >&6
14151 fi
14152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14154 else
14155   # Is the header compilable?
14156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14158 cat >conftest.$ac_ext <<_ACEOF
14159 #line $LINENO "configure"
14160 /* confdefs.h.  */
14161 _ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h.  */
14165 $ac_includes_default
14166 #include <$ac_header>
14167 _ACEOF
14168 rm -f conftest.$ac_objext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170   (eval $ac_compile) 2>&5
14171   ac_status=$?
14172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); } &&
14174          { ac_try='test -s conftest.$ac_objext'
14175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176   (eval $ac_try) 2>&5
14177   ac_status=$?
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); }; }; then
14180   ac_header_compiler=yes
14181 else
14182   echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185 ac_header_compiler=no
14186 fi
14187 rm -f conftest.$ac_objext conftest.$ac_ext
14188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14189 echo "${ECHO_T}$ac_header_compiler" >&6
14190
14191 # Is the header present?
14192 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14194 cat >conftest.$ac_ext <<_ACEOF
14195 #line $LINENO "configure"
14196 /* confdefs.h.  */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h.  */
14201 #include <$ac_header>
14202 _ACEOF
14203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14204   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14205   ac_status=$?
14206   grep -v '^ *+' conftest.er1 >conftest.err
14207   rm -f conftest.er1
14208   cat conftest.err >&5
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); } >/dev/null; then
14211   if test -s conftest.err; then
14212     ac_cpp_err=$ac_c_preproc_warn_flag
14213   else
14214     ac_cpp_err=
14215   fi
14216 else
14217   ac_cpp_err=yes
14218 fi
14219 if test -z "$ac_cpp_err"; then
14220   ac_header_preproc=yes
14221 else
14222   echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.$ac_ext >&5
14224
14225   ac_header_preproc=no
14226 fi
14227 rm -f conftest.err conftest.$ac_ext
14228 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229 echo "${ECHO_T}$ac_header_preproc" >&6
14230
14231 # So?  What about this header?
14232 case $ac_header_compiler:$ac_header_preproc in
14233   yes:no )
14234     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14238     (
14239       cat <<\_ASBOX
14240 ## ------------------------------------ ##
14241 ## Report this to bug-autoconf@gnu.org. ##
14242 ## ------------------------------------ ##
14243 _ASBOX
14244     ) |
14245       sed "s/^/$as_me: WARNING:     /" >&2
14246     ;;
14247   no:yes )
14248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14250     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14254     (
14255       cat <<\_ASBOX
14256 ## ------------------------------------ ##
14257 ## Report this to bug-autoconf@gnu.org. ##
14258 ## ------------------------------------ ##
14259 _ASBOX
14260     ) |
14261       sed "s/^/$as_me: WARNING:     /" >&2
14262     ;;
14263 esac
14264 echo "$as_me:$LINENO: checking for $ac_header" >&5
14265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14267   echo $ECHO_N "(cached) $ECHO_C" >&6
14268 else
14269   eval "$as_ac_Header=$ac_header_preproc"
14270 fi
14271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14273
14274 fi
14275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14276   cat >>confdefs.h <<_ACEOF
14277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14278 _ACEOF
14279  ac_has_wchar_h=yes
14280 else
14281   ac_has_wchar_h=no
14282 fi
14283
14284 done
14285
14286
14287 for ac_header in wctype.h
14288 do
14289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14291   echo "$as_me:$LINENO: checking for $ac_header" >&5
14292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14294   echo $ECHO_N "(cached) $ECHO_C" >&6
14295 fi
14296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14298 else
14299   # Is the header compilable?
14300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14302 cat >conftest.$ac_ext <<_ACEOF
14303 #line $LINENO "configure"
14304 /* confdefs.h.  */
14305 _ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h.  */
14309 $ac_includes_default
14310 #include <$ac_header>
14311 _ACEOF
14312 rm -f conftest.$ac_objext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314   (eval $ac_compile) 2>&5
14315   ac_status=$?
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); } &&
14318          { ac_try='test -s conftest.$ac_objext'
14319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320   (eval $ac_try) 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; }; then
14324   ac_header_compiler=yes
14325 else
14326   echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14328
14329 ac_header_compiler=no
14330 fi
14331 rm -f conftest.$ac_objext conftest.$ac_ext
14332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14333 echo "${ECHO_T}$ac_header_compiler" >&6
14334
14335 # Is the header present?
14336 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14338 cat >conftest.$ac_ext <<_ACEOF
14339 #line $LINENO "configure"
14340 /* confdefs.h.  */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h.  */
14345 #include <$ac_header>
14346 _ACEOF
14347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14348   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14349   ac_status=$?
14350   grep -v '^ *+' conftest.er1 >conftest.err
14351   rm -f conftest.er1
14352   cat conftest.err >&5
14353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354   (exit $ac_status); } >/dev/null; then
14355   if test -s conftest.err; then
14356     ac_cpp_err=$ac_c_preproc_warn_flag
14357   else
14358     ac_cpp_err=
14359   fi
14360 else
14361   ac_cpp_err=yes
14362 fi
14363 if test -z "$ac_cpp_err"; then
14364   ac_header_preproc=yes
14365 else
14366   echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369   ac_header_preproc=no
14370 fi
14371 rm -f conftest.err conftest.$ac_ext
14372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14373 echo "${ECHO_T}$ac_header_preproc" >&6
14374
14375 # So?  What about this header?
14376 case $ac_header_compiler:$ac_header_preproc in
14377   yes:no )
14378     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14382     (
14383       cat <<\_ASBOX
14384 ## ------------------------------------ ##
14385 ## Report this to bug-autoconf@gnu.org. ##
14386 ## ------------------------------------ ##
14387 _ASBOX
14388     ) |
14389       sed "s/^/$as_me: WARNING:     /" >&2
14390     ;;
14391   no:yes )
14392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14394     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14398     (
14399       cat <<\_ASBOX
14400 ## ------------------------------------ ##
14401 ## Report this to bug-autoconf@gnu.org. ##
14402 ## ------------------------------------ ##
14403 _ASBOX
14404     ) |
14405       sed "s/^/$as_me: WARNING:     /" >&2
14406     ;;
14407 esac
14408 echo "$as_me:$LINENO: checking for $ac_header" >&5
14409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14411   echo $ECHO_N "(cached) $ECHO_C" >&6
14412 else
14413   eval "$as_ac_Header=$ac_header_preproc"
14414 fi
14415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14417
14418 fi
14419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14420   cat >>confdefs.h <<_ACEOF
14421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14422 _ACEOF
14423  ac_has_wctype_h=yes
14424 else
14425   ac_has_wctype_h=no
14426 fi
14427
14428 done
14429
14430
14431   # Only continue checking if the ISO C99 headers exist and support is on.
14432   if test x"$ac_has_wchar_h" = xyes &&
14433      test x"$ac_has_wctype_h" = xyes &&
14434      test x"$enable_c_mbchar" != xno; then
14435
14436     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
14437     # numeric_limits can instantiate type_traits<wchar_t>
14438     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
14439 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
14440     cat >conftest.$ac_ext <<_ACEOF
14441 #line $LINENO "configure"
14442 /* confdefs.h.  */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h.  */
14447 #include <wchar.h>
14448 int
14449 main ()
14450 {
14451 int i = WCHAR_MIN; int j = WCHAR_MAX;
14452   ;
14453   return 0;
14454 }
14455 _ACEOF
14456 rm -f conftest.$ac_objext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14458   (eval $ac_compile) 2>&5
14459   ac_status=$?
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); } &&
14462          { ac_try='test -s conftest.$ac_objext'
14463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464   (eval $ac_try) 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; }; then
14468   has_wchar_minmax=yes
14469 else
14470   echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 has_wchar_minmax=no
14474 fi
14475 rm -f conftest.$ac_objext conftest.$ac_ext
14476     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
14477 echo "${ECHO_T}$has_wchar_minmax" >&6
14478
14479     # Test wchar.h for WEOF, which is what we use to determine whether
14480     # to specialize for char_traits<wchar_t> or not.
14481     echo "$as_me:$LINENO: checking for WEOF" >&5
14482 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
14483     cat >conftest.$ac_ext <<_ACEOF
14484 #line $LINENO "configure"
14485 /* confdefs.h.  */
14486 _ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h.  */
14490
14491       #include <wchar.h>
14492       #include <stddef.h>
14493 int
14494 main ()
14495 {
14496 wint_t i = WEOF;
14497   ;
14498   return 0;
14499 }
14500 _ACEOF
14501 rm -f conftest.$ac_objext
14502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14503   (eval $ac_compile) 2>&5
14504   ac_status=$?
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); } &&
14507          { ac_try='test -s conftest.$ac_objext'
14508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509   (eval $ac_try) 2>&5
14510   ac_status=$?
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); }; }; then
14513   has_weof=yes
14514 else
14515   echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14517
14518 has_weof=no
14519 fi
14520 rm -f conftest.$ac_objext conftest.$ac_ext
14521     echo "$as_me:$LINENO: result: $has_weof" >&5
14522 echo "${ECHO_T}$has_weof" >&6
14523
14524     # Tests for wide character functions used in char_traits<wchar_t>.
14525     ac_wfuncs=yes
14526
14527
14528
14529
14530
14531
14532 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
14533 do
14534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14535 echo "$as_me:$LINENO: checking for $ac_func" >&5
14536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14537 if eval "test \"\${$as_ac_var+set}\" = set"; then
14538   echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540   cat >conftest.$ac_ext <<_ACEOF
14541 #line $LINENO "configure"
14542 /* confdefs.h.  */
14543 _ACEOF
14544 cat confdefs.h >>conftest.$ac_ext
14545 cat >>conftest.$ac_ext <<_ACEOF
14546 /* end confdefs.h.  */
14547 /* System header to define __stub macros and hopefully few prototypes,
14548     which can conflict with char $ac_func (); below.
14549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14550     <limits.h> exists even on freestanding compilers.  */
14551 #ifdef __STDC__
14552 # include <limits.h>
14553 #else
14554 # include <assert.h>
14555 #endif
14556 /* Override any gcc2 internal prototype to avoid an error.  */
14557 #ifdef __cplusplus
14558 extern "C"
14559 {
14560 #endif
14561 /* We use char because int might match the return type of a gcc2
14562    builtin and then its argument prototype would still apply.  */
14563 char $ac_func ();
14564 /* The GNU C library defines this for functions which it implements
14565     to always fail with ENOSYS.  Some functions are actually named
14566     something starting with __ and the normal name is an alias.  */
14567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14568 choke me
14569 #else
14570 char (*f) () = $ac_func;
14571 #endif
14572 #ifdef __cplusplus
14573 }
14574 #endif
14575
14576 int
14577 main ()
14578 {
14579 return f != $ac_func;
14580   ;
14581   return 0;
14582 }
14583 _ACEOF
14584 rm -f conftest.$ac_objext conftest$ac_exeext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14586   (eval $ac_link) 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); } &&
14590          { ac_try='test -s conftest$ac_exeext'
14591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592   (eval $ac_try) 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); }; }; then
14596   eval "$as_ac_var=yes"
14597 else
14598   echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14600
14601 eval "$as_ac_var=no"
14602 fi
14603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14604 fi
14605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14607 if test `eval echo '${'$as_ac_var'}'` = yes; then
14608   cat >>confdefs.h <<_ACEOF
14609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14610 _ACEOF
14611
14612 else
14613   ac_wfuncs=no
14614 fi
14615 done
14616
14617
14618     # Checks for names injected into std:: by the c_std headers.
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
14670     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
14671     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
14672     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
14673     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
14674     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
14675 do
14676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14677 echo "$as_me:$LINENO: checking for $ac_func" >&5
14678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14679 if eval "test \"\${$as_ac_var+set}\" = set"; then
14680   echo $ECHO_N "(cached) $ECHO_C" >&6
14681 else
14682   cat >conftest.$ac_ext <<_ACEOF
14683 #line $LINENO "configure"
14684 /* confdefs.h.  */
14685 _ACEOF
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h.  */
14689 /* System header to define __stub macros and hopefully few prototypes,
14690     which can conflict with char $ac_func (); below.
14691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14692     <limits.h> exists even on freestanding compilers.  */
14693 #ifdef __STDC__
14694 # include <limits.h>
14695 #else
14696 # include <assert.h>
14697 #endif
14698 /* Override any gcc2 internal prototype to avoid an error.  */
14699 #ifdef __cplusplus
14700 extern "C"
14701 {
14702 #endif
14703 /* We use char because int might match the return type of a gcc2
14704    builtin and then its argument prototype would still apply.  */
14705 char $ac_func ();
14706 /* The GNU C library defines this for functions which it implements
14707     to always fail with ENOSYS.  Some functions are actually named
14708     something starting with __ and the normal name is an alias.  */
14709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14710 choke me
14711 #else
14712 char (*f) () = $ac_func;
14713 #endif
14714 #ifdef __cplusplus
14715 }
14716 #endif
14717
14718 int
14719 main ()
14720 {
14721 return f != $ac_func;
14722   ;
14723   return 0;
14724 }
14725 _ACEOF
14726 rm -f conftest.$ac_objext conftest$ac_exeext
14727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14728   (eval $ac_link) 2>&5
14729   ac_status=$?
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); } &&
14732          { ac_try='test -s conftest$ac_exeext'
14733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734   (eval $ac_try) 2>&5
14735   ac_status=$?
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); }; }; then
14738   eval "$as_ac_var=yes"
14739 else
14740   echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14742
14743 eval "$as_ac_var=no"
14744 fi
14745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14746 fi
14747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14749 if test `eval echo '${'$as_ac_var'}'` = yes; then
14750   cat >>confdefs.h <<_ACEOF
14751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14752 _ACEOF
14753
14754 else
14755   ac_wfuncs=no
14756 fi
14757 done
14758
14759
14760     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
14761 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
14762     if test x"$has_weof" = xyes &&
14763        test x"$has_wchar_minmax" = xyes &&
14764        test x"$ac_wfuncs" = xyes;
14765     then
14766       ac_isoC99_wchar_t=yes
14767     else
14768       ac_isoC99_wchar_t=no
14769     fi
14770     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
14771 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
14772
14773     # Use iconv for wchar_t to char conversions. As such, check for
14774     # X/Open Portability Guide, version 2 features (XPG2).
14775     if test "${ac_cv_header_iconv_h+set}" = set; then
14776   echo "$as_me:$LINENO: checking for iconv.h" >&5
14777 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
14778 if test "${ac_cv_header_iconv_h+set}" = set; then
14779   echo $ECHO_N "(cached) $ECHO_C" >&6
14780 fi
14781 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
14782 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
14783 else
14784   # Is the header compilable?
14785 echo "$as_me:$LINENO: checking iconv.h usability" >&5
14786 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
14787 cat >conftest.$ac_ext <<_ACEOF
14788 #line $LINENO "configure"
14789 /* confdefs.h.  */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h.  */
14794 $ac_includes_default
14795 #include <iconv.h>
14796 _ACEOF
14797 rm -f conftest.$ac_objext
14798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14799   (eval $ac_compile) 2>&5
14800   ac_status=$?
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); } &&
14803          { ac_try='test -s conftest.$ac_objext'
14804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805   (eval $ac_try) 2>&5
14806   ac_status=$?
14807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808   (exit $ac_status); }; }; then
14809   ac_header_compiler=yes
14810 else
14811   echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.$ac_ext >&5
14813
14814 ac_header_compiler=no
14815 fi
14816 rm -f conftest.$ac_objext conftest.$ac_ext
14817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14818 echo "${ECHO_T}$ac_header_compiler" >&6
14819
14820 # Is the header present?
14821 echo "$as_me:$LINENO: checking iconv.h presence" >&5
14822 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
14823 cat >conftest.$ac_ext <<_ACEOF
14824 #line $LINENO "configure"
14825 /* confdefs.h.  */
14826 _ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h.  */
14830 #include <iconv.h>
14831 _ACEOF
14832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14833   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14834   ac_status=$?
14835   grep -v '^ *+' conftest.er1 >conftest.err
14836   rm -f conftest.er1
14837   cat conftest.err >&5
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); } >/dev/null; then
14840   if test -s conftest.err; then
14841     ac_cpp_err=$ac_c_preproc_warn_flag
14842   else
14843     ac_cpp_err=
14844   fi
14845 else
14846   ac_cpp_err=yes
14847 fi
14848 if test -z "$ac_cpp_err"; then
14849   ac_header_preproc=yes
14850 else
14851   echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14853
14854   ac_header_preproc=no
14855 fi
14856 rm -f conftest.err conftest.$ac_ext
14857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14858 echo "${ECHO_T}$ac_header_preproc" >&6
14859
14860 # So?  What about this header?
14861 case $ac_header_compiler:$ac_header_preproc in
14862   yes:no )
14863     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
14864 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14865     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
14866 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
14867     (
14868       cat <<\_ASBOX
14869 ## ------------------------------------ ##
14870 ## Report this to bug-autoconf@gnu.org. ##
14871 ## ------------------------------------ ##
14872 _ASBOX
14873     ) |
14874       sed "s/^/$as_me: WARNING:     /" >&2
14875     ;;
14876   no:yes )
14877     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
14878 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
14879     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
14880 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
14881     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
14882 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
14883     (
14884       cat <<\_ASBOX
14885 ## ------------------------------------ ##
14886 ## Report this to bug-autoconf@gnu.org. ##
14887 ## ------------------------------------ ##
14888 _ASBOX
14889     ) |
14890       sed "s/^/$as_me: WARNING:     /" >&2
14891     ;;
14892 esac
14893 echo "$as_me:$LINENO: checking for iconv.h" >&5
14894 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
14895 if test "${ac_cv_header_iconv_h+set}" = set; then
14896   echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898   ac_cv_header_iconv_h=$ac_header_preproc
14899 fi
14900 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
14901 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
14902
14903 fi
14904 if test $ac_cv_header_iconv_h = yes; then
14905   ac_has_iconv_h=yes
14906 else
14907   ac_has_iconv_h=no
14908 fi
14909
14910
14911     if test "${ac_cv_header_langinfo_h+set}" = set; then
14912   echo "$as_me:$LINENO: checking for langinfo.h" >&5
14913 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
14914 if test "${ac_cv_header_langinfo_h+set}" = set; then
14915   echo $ECHO_N "(cached) $ECHO_C" >&6
14916 fi
14917 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
14918 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
14919 else
14920   # Is the header compilable?
14921 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
14922 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
14923 cat >conftest.$ac_ext <<_ACEOF
14924 #line $LINENO "configure"
14925 /* confdefs.h.  */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h.  */
14930 $ac_includes_default
14931 #include <langinfo.h>
14932 _ACEOF
14933 rm -f conftest.$ac_objext
14934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14935   (eval $ac_compile) 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); } &&
14939          { ac_try='test -s conftest.$ac_objext'
14940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941   (eval $ac_try) 2>&5
14942   ac_status=$?
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); }; }; then
14945   ac_header_compiler=yes
14946 else
14947   echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14949
14950 ac_header_compiler=no
14951 fi
14952 rm -f conftest.$ac_objext conftest.$ac_ext
14953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14954 echo "${ECHO_T}$ac_header_compiler" >&6
14955
14956 # Is the header present?
14957 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
14958 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
14959 cat >conftest.$ac_ext <<_ACEOF
14960 #line $LINENO "configure"
14961 /* confdefs.h.  */
14962 _ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h.  */
14966 #include <langinfo.h>
14967 _ACEOF
14968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14970   ac_status=$?
14971   grep -v '^ *+' conftest.er1 >conftest.err
14972   rm -f conftest.er1
14973   cat conftest.err >&5
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); } >/dev/null; then
14976   if test -s conftest.err; then
14977     ac_cpp_err=$ac_c_preproc_warn_flag
14978   else
14979     ac_cpp_err=
14980   fi
14981 else
14982   ac_cpp_err=yes
14983 fi
14984 if test -z "$ac_cpp_err"; then
14985   ac_header_preproc=yes
14986 else
14987   echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14989
14990   ac_header_preproc=no
14991 fi
14992 rm -f conftest.err conftest.$ac_ext
14993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14994 echo "${ECHO_T}$ac_header_preproc" >&6
14995
14996 # So?  What about this header?
14997 case $ac_header_compiler:$ac_header_preproc in
14998   yes:no )
14999     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
15000 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15001     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
15002 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
15003     (
15004       cat <<\_ASBOX
15005 ## ------------------------------------ ##
15006 ## Report this to bug-autoconf@gnu.org. ##
15007 ## ------------------------------------ ##
15008 _ASBOX
15009     ) |
15010       sed "s/^/$as_me: WARNING:     /" >&2
15011     ;;
15012   no:yes )
15013     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
15014 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
15015     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
15016 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
15017     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
15018 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
15019     (
15020       cat <<\_ASBOX
15021 ## ------------------------------------ ##
15022 ## Report this to bug-autoconf@gnu.org. ##
15023 ## ------------------------------------ ##
15024 _ASBOX
15025     ) |
15026       sed "s/^/$as_me: WARNING:     /" >&2
15027     ;;
15028 esac
15029 echo "$as_me:$LINENO: checking for langinfo.h" >&5
15030 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
15031 if test "${ac_cv_header_langinfo_h+set}" = set; then
15032   echo $ECHO_N "(cached) $ECHO_C" >&6
15033 else
15034   ac_cv_header_langinfo_h=$ac_header_preproc
15035 fi
15036 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
15037 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
15038
15039 fi
15040 if test $ac_cv_header_langinfo_h = yes; then
15041   ac_has_langinfo_h=yes
15042 else
15043   ac_has_langinfo_h=no
15044 fi
15045
15046
15047
15048     # Check for existence of libiconv.a providing XPG2 wchar_t support.
15049     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
15050 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
15051 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
15052   echo $ECHO_N "(cached) $ECHO_C" >&6
15053 else
15054   ac_check_lib_save_LIBS=$LIBS
15055 LIBS="-liconv  $LIBS"
15056 cat >conftest.$ac_ext <<_ACEOF
15057 #line $LINENO "configure"
15058 /* confdefs.h.  */
15059 _ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h.  */
15063
15064 /* Override any gcc2 internal prototype to avoid an error.  */
15065 #ifdef __cplusplus
15066 extern "C"
15067 #endif
15068 /* We use char because int might match the return type of a gcc2
15069    builtin and then its argument prototype would still apply.  */
15070 char iconv ();
15071 int
15072 main ()
15073 {
15074 iconv ();
15075   ;
15076   return 0;
15077 }
15078 _ACEOF
15079 rm -f conftest.$ac_objext conftest$ac_exeext
15080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15081   (eval $ac_link) 2>&5
15082   ac_status=$?
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); } &&
15085          { ac_try='test -s conftest$ac_exeext'
15086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087   (eval $ac_try) 2>&5
15088   ac_status=$?
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); }; }; then
15091   ac_cv_lib_iconv_iconv=yes
15092 else
15093   echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15095
15096 ac_cv_lib_iconv_iconv=no
15097 fi
15098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15099 LIBS=$ac_check_lib_save_LIBS
15100 fi
15101 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
15102 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
15103 if test $ac_cv_lib_iconv_iconv = yes; then
15104   libiconv="-liconv"
15105 fi
15106
15107     ac_save_LIBS="$LIBS"
15108     LIBS="$LIBS $libiconv"
15109
15110
15111
15112
15113
15114 for ac_func in iconv_open iconv_close iconv nl_langinfo
15115 do
15116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15117 echo "$as_me:$LINENO: checking for $ac_func" >&5
15118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15119 if eval "test \"\${$as_ac_var+set}\" = set"; then
15120   echo $ECHO_N "(cached) $ECHO_C" >&6
15121 else
15122   cat >conftest.$ac_ext <<_ACEOF
15123 #line $LINENO "configure"
15124 /* confdefs.h.  */
15125 _ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h.  */
15129 /* System header to define __stub macros and hopefully few prototypes,
15130     which can conflict with char $ac_func (); below.
15131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15132     <limits.h> exists even on freestanding compilers.  */
15133 #ifdef __STDC__
15134 # include <limits.h>
15135 #else
15136 # include <assert.h>
15137 #endif
15138 /* Override any gcc2 internal prototype to avoid an error.  */
15139 #ifdef __cplusplus
15140 extern "C"
15141 {
15142 #endif
15143 /* We use char because int might match the return type of a gcc2
15144    builtin and then its argument prototype would still apply.  */
15145 char $ac_func ();
15146 /* The GNU C library defines this for functions which it implements
15147     to always fail with ENOSYS.  Some functions are actually named
15148     something starting with __ and the normal name is an alias.  */
15149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15150 choke me
15151 #else
15152 char (*f) () = $ac_func;
15153 #endif
15154 #ifdef __cplusplus
15155 }
15156 #endif
15157
15158 int
15159 main ()
15160 {
15161 return f != $ac_func;
15162   ;
15163   return 0;
15164 }
15165 _ACEOF
15166 rm -f conftest.$ac_objext conftest$ac_exeext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15168   (eval $ac_link) 2>&5
15169   ac_status=$?
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); } &&
15172          { ac_try='test -s conftest$ac_exeext'
15173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174   (eval $ac_try) 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); }; }; then
15178   eval "$as_ac_var=yes"
15179 else
15180   echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15182
15183 eval "$as_ac_var=no"
15184 fi
15185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15186 fi
15187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15189 if test `eval echo '${'$as_ac_var'}'` = yes; then
15190   cat >>confdefs.h <<_ACEOF
15191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15192 _ACEOF
15193  ac_XPG2funcs=yes
15194 else
15195   ac_XPG2funcs=no
15196 fi
15197 done
15198
15199
15200     LIBS="$ac_save_LIBS"
15201
15202     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
15203 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
15204     if test x"$ac_has_iconv_h" = xyes &&
15205        test x"$ac_has_langinfo_h" = xyes &&
15206        test x"$ac_XPG2funcs" = xyes;
15207     then
15208       ac_XPG2_wchar_t=yes
15209     else
15210       ac_XPG2_wchar_t=no
15211     fi
15212     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
15213 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
15214
15215     # At the moment, only enable wchar_t specializations if all the
15216     # above support is present.
15217     if test x"$ac_isoC99_wchar_t" = xyes &&
15218        test x"$ac_XPG2_wchar_t" = xyes;
15219     then
15220       cat >>confdefs.h <<\_ACEOF
15221 #define _GLIBCXX_USE_WCHAR_T 1
15222 _ACEOF
15223
15224       enable_wchar_t=yes
15225     fi
15226   fi
15227   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
15228 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
15229   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
15230 echo "${ECHO_T}$enable_wchar_t" >&6
15231
15232     ;;
15233   *-netbsd*)
15234     #os_include_dir="os/bsd/netbsd"
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
15248       machine/endian.h machine/param.h sys/machine.h sys/types.h \
15249       fp.h locale.h float.h inttypes.h
15250 do
15251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15253   echo "$as_me:$LINENO: checking for $ac_header" >&5
15254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15256   echo $ECHO_N "(cached) $ECHO_C" >&6
15257 fi
15258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15260 else
15261   # Is the header compilable?
15262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15264 cat >conftest.$ac_ext <<_ACEOF
15265 #line $LINENO "configure"
15266 /* confdefs.h.  */
15267 _ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h.  */
15271 $ac_includes_default
15272 #include <$ac_header>
15273 _ACEOF
15274 rm -f conftest.$ac_objext
15275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15276   (eval $ac_compile) 2>&5
15277   ac_status=$?
15278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); } &&
15280          { ac_try='test -s conftest.$ac_objext'
15281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282   (eval $ac_try) 2>&5
15283   ac_status=$?
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); }; }; then
15286   ac_header_compiler=yes
15287 else
15288   echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15290
15291 ac_header_compiler=no
15292 fi
15293 rm -f conftest.$ac_objext conftest.$ac_ext
15294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15295 echo "${ECHO_T}$ac_header_compiler" >&6
15296
15297 # Is the header present?
15298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15300 cat >conftest.$ac_ext <<_ACEOF
15301 #line $LINENO "configure"
15302 /* confdefs.h.  */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h.  */
15307 #include <$ac_header>
15308 _ACEOF
15309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15310   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15311   ac_status=$?
15312   grep -v '^ *+' conftest.er1 >conftest.err
15313   rm -f conftest.er1
15314   cat conftest.err >&5
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); } >/dev/null; then
15317   if test -s conftest.err; then
15318     ac_cpp_err=$ac_c_preproc_warn_flag
15319   else
15320     ac_cpp_err=
15321   fi
15322 else
15323   ac_cpp_err=yes
15324 fi
15325 if test -z "$ac_cpp_err"; then
15326   ac_header_preproc=yes
15327 else
15328   echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15330
15331   ac_header_preproc=no
15332 fi
15333 rm -f conftest.err conftest.$ac_ext
15334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15335 echo "${ECHO_T}$ac_header_preproc" >&6
15336
15337 # So?  What about this header?
15338 case $ac_header_compiler:$ac_header_preproc in
15339   yes:no )
15340     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15344     (
15345       cat <<\_ASBOX
15346 ## ------------------------------------ ##
15347 ## Report this to bug-autoconf@gnu.org. ##
15348 ## ------------------------------------ ##
15349 _ASBOX
15350     ) |
15351       sed "s/^/$as_me: WARNING:     /" >&2
15352     ;;
15353   no:yes )
15354     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15356     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15360     (
15361       cat <<\_ASBOX
15362 ## ------------------------------------ ##
15363 ## Report this to bug-autoconf@gnu.org. ##
15364 ## ------------------------------------ ##
15365 _ASBOX
15366     ) |
15367       sed "s/^/$as_me: WARNING:     /" >&2
15368     ;;
15369 esac
15370 echo "$as_me:$LINENO: checking for $ac_header" >&5
15371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15373   echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375   eval "$as_ac_Header=$ac_header_preproc"
15376 fi
15377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15379
15380 fi
15381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15382   cat >>confdefs.h <<_ACEOF
15383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15384 _ACEOF
15385
15386 fi
15387
15388 done
15389
15390     SECTION_FLAGS='-ffunction-sections -fdata-sections'
15391
15392
15393   # If we're not using GNU ld, then there's no point in even trying these
15394   # tests.  Check for that first.  We should have already tested for gld
15395   # by now (in libtool), but require it now just to be safe...
15396   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15397   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15398
15399
15400
15401   # The name set by libtool depends on the version of libtool.  Shame on us
15402   # for depending on an impl detail, but c'est la vie.  Older versions used
15403   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15404   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15405   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
15406   # set (hence we're using an older libtool), then set it.
15407   if test x${with_gnu_ld+set} != xset; then
15408     if test x${ac_cv_prog_gnu_ld+set} != xset; then
15409       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
15410       with_gnu_ld=no
15411     else
15412       with_gnu_ld=$ac_cv_prog_gnu_ld
15413     fi
15414   fi
15415
15416   # Start by getting the version number.  I think the libtool test already
15417   # does some of this, but throws away the result.
15418
15419   ldver=`$LD --version 2>/dev/null | head -1 | \
15420          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
15421
15422   glibcxx_gnu_ld_version=`echo $ldver | \
15423          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15424
15425   # Set --gc-sections.
15426   if test "$with_gnu_ld" = "notbroken"; then
15427     # GNU ld it is!  Joy and bunny rabbits!
15428
15429     # All these tests are for C++; save the language and the compiler flags.
15430     # Need to do this so that g++ won't try to link in libstdc++
15431     ac_test_CFLAGS="${CFLAGS+set}"
15432     ac_save_CFLAGS="$CFLAGS"
15433     CFLAGS='-x c++  -Wl,--gc-sections'
15434
15435     # Check for -Wl,--gc-sections
15436     # XXX This test is broken at the moment, as symbols required for linking
15437     # are now in libsupc++ (not built yet).  In addition, this test has
15438     # cored on solaris in the past.  In addition, --gc-sections doesn't
15439     # really work at the moment (keeps on discarding used sections, first
15440     # .eh_frame and now some of the glibc sections for iconv).
15441     # Bzzzzt.  Thanks for playing, maybe next time.
15442     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
15443 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
15444     if test "$cross_compiling" = yes; then
15445   ac_sectionLDflags=yes
15446 else
15447   cat >conftest.$ac_ext <<_ACEOF
15448 #line $LINENO "configure"
15449 /* confdefs.h.  */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h.  */
15454
15455      int main(void)
15456      {
15457        try { throw 1; }
15458        catch (...) { };
15459        return 0;
15460      }
15461
15462 _ACEOF
15463 rm -f conftest$ac_exeext
15464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15465   (eval $ac_link) 2>&5
15466   ac_status=$?
15467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470   (eval $ac_try) 2>&5
15471   ac_status=$?
15472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473   (exit $ac_status); }; }; then
15474   ac_sectionLDflags=yes
15475 else
15476   echo "$as_me: program exited with status $ac_status" >&5
15477 echo "$as_me: failed program was:" >&5
15478 sed 's/^/| /' conftest.$ac_ext >&5
15479
15480 ( exit $ac_status )
15481 ac_sectionLDflags=no
15482 fi
15483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15484 fi
15485     if test "$ac_test_CFLAGS" = set; then
15486       CFLAGS="$ac_save_CFLAGS"
15487     else
15488       # this is the suspicious part
15489       CFLAGS=''
15490     fi
15491     if test "$ac_sectionLDflags" = "yes"; then
15492       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15493     fi
15494     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
15495 echo "${ECHO_T}$ac_sectionLDflags" >&6
15496   fi
15497
15498   # Set linker optimization flags.
15499   if test x"$with_gnu_ld" = x"yes"; then
15500     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15501   fi
15502
15503
15504
15505
15506
15507
15508 echo "$as_me:$LINENO: checking for main in -lm" >&5
15509 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
15510 if test "${ac_cv_lib_m_main+set}" = set; then
15511   echo $ECHO_N "(cached) $ECHO_C" >&6
15512 else
15513   ac_check_lib_save_LIBS=$LIBS
15514 LIBS="-lm  $LIBS"
15515 cat >conftest.$ac_ext <<_ACEOF
15516 #line $LINENO "configure"
15517 /* confdefs.h.  */
15518 _ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h.  */
15522
15523
15524 int
15525 main ()
15526 {
15527 main ();
15528   ;
15529   return 0;
15530 }
15531 _ACEOF
15532 rm -f conftest.$ac_objext conftest$ac_exeext
15533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15534   (eval $ac_link) 2>&5
15535   ac_status=$?
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); } &&
15538          { ac_try='test -s conftest$ac_exeext'
15539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540   (eval $ac_try) 2>&5
15541   ac_status=$?
15542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); }; }; then
15544   ac_cv_lib_m_main=yes
15545 else
15546   echo "$as_me: failed program was:" >&5
15547 sed 's/^/| /' conftest.$ac_ext >&5
15548
15549 ac_cv_lib_m_main=no
15550 fi
15551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15552 LIBS=$ac_check_lib_save_LIBS
15553 fi
15554 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
15555 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
15556 if test $ac_cv_lib_m_main = yes; then
15557   cat >>confdefs.h <<_ACEOF
15558 #define HAVE_LIBM 1
15559 _ACEOF
15560
15561   LIBS="-lm $LIBS"
15562
15563 fi
15564
15565
15566
15567 for ac_func in nan copysignf
15568 do
15569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15570 echo "$as_me:$LINENO: checking for $ac_func" >&5
15571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15572 if eval "test \"\${$as_ac_var+set}\" = set"; then
15573   echo $ECHO_N "(cached) $ECHO_C" >&6
15574 else
15575   cat >conftest.$ac_ext <<_ACEOF
15576 #line $LINENO "configure"
15577 /* confdefs.h.  */
15578 _ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h.  */
15582 /* System header to define __stub macros and hopefully few prototypes,
15583     which can conflict with char $ac_func (); below.
15584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15585     <limits.h> exists even on freestanding compilers.  */
15586 #ifdef __STDC__
15587 # include <limits.h>
15588 #else
15589 # include <assert.h>
15590 #endif
15591 /* Override any gcc2 internal prototype to avoid an error.  */
15592 #ifdef __cplusplus
15593 extern "C"
15594 {
15595 #endif
15596 /* We use char because int might match the return type of a gcc2
15597    builtin and then its argument prototype would still apply.  */
15598 char $ac_func ();
15599 /* The GNU C library defines this for functions which it implements
15600     to always fail with ENOSYS.  Some functions are actually named
15601     something starting with __ and the normal name is an alias.  */
15602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15603 choke me
15604 #else
15605 char (*f) () = $ac_func;
15606 #endif
15607 #ifdef __cplusplus
15608 }
15609 #endif
15610
15611 int
15612 main ()
15613 {
15614 return f != $ac_func;
15615   ;
15616   return 0;
15617 }
15618 _ACEOF
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15621   (eval $ac_link) 2>&5
15622   ac_status=$?
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } &&
15625          { ac_try='test -s conftest$ac_exeext'
15626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627   (eval $ac_try) 2>&5
15628   ac_status=$?
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); }; }; then
15631   eval "$as_ac_var=yes"
15632 else
15633   echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15635
15636 eval "$as_ac_var=no"
15637 fi
15638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15639 fi
15640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15642 if test `eval echo '${'$as_ac_var'}'` = yes; then
15643   cat >>confdefs.h <<_ACEOF
15644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15645 _ACEOF
15646
15647 else
15648   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15649 fi
15650 done
15651
15652
15653
15654 for ac_func in __signbit
15655 do
15656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15657 echo "$as_me:$LINENO: checking for $ac_func" >&5
15658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15659 if eval "test \"\${$as_ac_var+set}\" = set"; then
15660   echo $ECHO_N "(cached) $ECHO_C" >&6
15661 else
15662   cat >conftest.$ac_ext <<_ACEOF
15663 #line $LINENO "configure"
15664 /* confdefs.h.  */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h.  */
15669 /* System header to define __stub macros and hopefully few prototypes,
15670     which can conflict with char $ac_func (); below.
15671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15672     <limits.h> exists even on freestanding compilers.  */
15673 #ifdef __STDC__
15674 # include <limits.h>
15675 #else
15676 # include <assert.h>
15677 #endif
15678 /* Override any gcc2 internal prototype to avoid an error.  */
15679 #ifdef __cplusplus
15680 extern "C"
15681 {
15682 #endif
15683 /* We use char because int might match the return type of a gcc2
15684    builtin and then its argument prototype would still apply.  */
15685 char $ac_func ();
15686 /* The GNU C library defines this for functions which it implements
15687     to always fail with ENOSYS.  Some functions are actually named
15688     something starting with __ and the normal name is an alias.  */
15689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15690 choke me
15691 #else
15692 char (*f) () = $ac_func;
15693 #endif
15694 #ifdef __cplusplus
15695 }
15696 #endif
15697
15698 int
15699 main ()
15700 {
15701 return f != $ac_func;
15702   ;
15703   return 0;
15704 }
15705 _ACEOF
15706 rm -f conftest.$ac_objext conftest$ac_exeext
15707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15708   (eval $ac_link) 2>&5
15709   ac_status=$?
15710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711   (exit $ac_status); } &&
15712          { ac_try='test -s conftest$ac_exeext'
15713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714   (eval $ac_try) 2>&5
15715   ac_status=$?
15716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717   (exit $ac_status); }; }; then
15718   eval "$as_ac_var=yes"
15719 else
15720   echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15722
15723 eval "$as_ac_var=no"
15724 fi
15725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15726 fi
15727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15729 if test `eval echo '${'$as_ac_var'}'` = yes; then
15730   cat >>confdefs.h <<_ACEOF
15731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15732 _ACEOF
15733
15734 else
15735   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
15736 fi
15737 done
15738
15739
15740 for ac_func in __signbitf
15741 do
15742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15743 echo "$as_me:$LINENO: checking for $ac_func" >&5
15744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15745 if eval "test \"\${$as_ac_var+set}\" = set"; then
15746   echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748   cat >conftest.$ac_ext <<_ACEOF
15749 #line $LINENO "configure"
15750 /* confdefs.h.  */
15751 _ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h.  */
15755 /* System header to define __stub macros and hopefully few prototypes,
15756     which can conflict with char $ac_func (); below.
15757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15758     <limits.h> exists even on freestanding compilers.  */
15759 #ifdef __STDC__
15760 # include <limits.h>
15761 #else
15762 # include <assert.h>
15763 #endif
15764 /* Override any gcc2 internal prototype to avoid an error.  */
15765 #ifdef __cplusplus
15766 extern "C"
15767 {
15768 #endif
15769 /* We use char because int might match the return type of a gcc2
15770    builtin and then its argument prototype would still apply.  */
15771 char $ac_func ();
15772 /* The GNU C library defines this for functions which it implements
15773     to always fail with ENOSYS.  Some functions are actually named
15774     something starting with __ and the normal name is an alias.  */
15775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15776 choke me
15777 #else
15778 char (*f) () = $ac_func;
15779 #endif
15780 #ifdef __cplusplus
15781 }
15782 #endif
15783
15784 int
15785 main ()
15786 {
15787 return f != $ac_func;
15788   ;
15789   return 0;
15790 }
15791 _ACEOF
15792 rm -f conftest.$ac_objext conftest$ac_exeext
15793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15794   (eval $ac_link) 2>&5
15795   ac_status=$?
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); } &&
15798          { ac_try='test -s conftest$ac_exeext'
15799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800   (eval $ac_try) 2>&5
15801   ac_status=$?
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); }; }; then
15804   eval "$as_ac_var=yes"
15805 else
15806   echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809 eval "$as_ac_var=no"
15810 fi
15811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15812 fi
15813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15815 if test `eval echo '${'$as_ac_var'}'` = yes; then
15816   cat >>confdefs.h <<_ACEOF
15817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15818 _ACEOF
15819
15820 else
15821   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
15822 fi
15823 done
15824
15825
15826           if test x$ac_cv_func_copysignl = x"yes"; then
15827
15828 for ac_func in __signbitl
15829 do
15830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15831 echo "$as_me:$LINENO: checking for $ac_func" >&5
15832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15833 if eval "test \"\${$as_ac_var+set}\" = set"; then
15834   echo $ECHO_N "(cached) $ECHO_C" >&6
15835 else
15836   cat >conftest.$ac_ext <<_ACEOF
15837 #line $LINENO "configure"
15838 /* confdefs.h.  */
15839 _ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h.  */
15843 /* System header to define __stub macros and hopefully few prototypes,
15844     which can conflict with char $ac_func (); below.
15845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15846     <limits.h> exists even on freestanding compilers.  */
15847 #ifdef __STDC__
15848 # include <limits.h>
15849 #else
15850 # include <assert.h>
15851 #endif
15852 /* Override any gcc2 internal prototype to avoid an error.  */
15853 #ifdef __cplusplus
15854 extern "C"
15855 {
15856 #endif
15857 /* We use char because int might match the return type of a gcc2
15858    builtin and then its argument prototype would still apply.  */
15859 char $ac_func ();
15860 /* The GNU C library defines this for functions which it implements
15861     to always fail with ENOSYS.  Some functions are actually named
15862     something starting with __ and the normal name is an alias.  */
15863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15864 choke me
15865 #else
15866 char (*f) () = $ac_func;
15867 #endif
15868 #ifdef __cplusplus
15869 }
15870 #endif
15871
15872 int
15873 main ()
15874 {
15875 return f != $ac_func;
15876   ;
15877   return 0;
15878 }
15879 _ACEOF
15880 rm -f conftest.$ac_objext conftest$ac_exeext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15882   (eval $ac_link) 2>&5
15883   ac_status=$?
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); } &&
15886          { ac_try='test -s conftest$ac_exeext'
15887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888   (eval $ac_try) 2>&5
15889   ac_status=$?
15890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891   (exit $ac_status); }; }; then
15892   eval "$as_ac_var=yes"
15893 else
15894   echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15896
15897 eval "$as_ac_var=no"
15898 fi
15899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15900 fi
15901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15903 if test `eval echo '${'$as_ac_var'}'` = yes; then
15904   cat >>confdefs.h <<_ACEOF
15905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15906 _ACEOF
15907
15908 else
15909   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
15910 fi
15911 done
15912
15913   fi
15914
15915   if test -n "$LIBMATHOBJS"; then
15916     need_libmath=yes
15917   fi
15918
15919
15920
15921   # Test wchar.h for mbstate_t, which is needed for char_traits and
15922   # others even if wchar_t support is not on.
15923   echo "$as_me:$LINENO: checking for mbstate_t" >&5
15924 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
15925   cat >conftest.$ac_ext <<_ACEOF
15926 #line $LINENO "configure"
15927 /* confdefs.h.  */
15928 _ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h.  */
15932 #include <wchar.h>
15933 int
15934 main ()
15935 {
15936 mbstate_t teststate;
15937   ;
15938   return 0;
15939 }
15940 _ACEOF
15941 rm -f conftest.$ac_objext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15943   (eval $ac_compile) 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); } &&
15947          { ac_try='test -s conftest.$ac_objext'
15948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949   (eval $ac_try) 2>&5
15950   ac_status=$?
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); }; }; then
15953   have_mbstate_t=yes
15954 else
15955   echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15957
15958 have_mbstate_t=no
15959 fi
15960 rm -f conftest.$ac_objext conftest.$ac_ext
15961   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
15962 echo "${ECHO_T}$have_mbstate_t" >&6
15963   if test x"$have_mbstate_t" = xyes; then
15964     cat >>confdefs.h <<\_ACEOF
15965 #define HAVE_MBSTATE_T 1
15966 _ACEOF
15967
15968   fi
15969
15970   # Sanity check for existence of ISO C99 headers for extended encoding.
15971
15972 for ac_header in wchar.h
15973 do
15974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15976   echo "$as_me:$LINENO: checking for $ac_header" >&5
15977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15979   echo $ECHO_N "(cached) $ECHO_C" >&6
15980 fi
15981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15983 else
15984   # Is the header compilable?
15985 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15987 cat >conftest.$ac_ext <<_ACEOF
15988 #line $LINENO "configure"
15989 /* confdefs.h.  */
15990 _ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h.  */
15994 $ac_includes_default
15995 #include <$ac_header>
15996 _ACEOF
15997 rm -f conftest.$ac_objext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15999   (eval $ac_compile) 2>&5
16000   ac_status=$?
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); } &&
16003          { ac_try='test -s conftest.$ac_objext'
16004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005   (eval $ac_try) 2>&5
16006   ac_status=$?
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); }; }; then
16009   ac_header_compiler=yes
16010 else
16011   echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16013
16014 ac_header_compiler=no
16015 fi
16016 rm -f conftest.$ac_objext conftest.$ac_ext
16017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16018 echo "${ECHO_T}$ac_header_compiler" >&6
16019
16020 # Is the header present?
16021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16023 cat >conftest.$ac_ext <<_ACEOF
16024 #line $LINENO "configure"
16025 /* confdefs.h.  */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h.  */
16030 #include <$ac_header>
16031 _ACEOF
16032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16033   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16034   ac_status=$?
16035   grep -v '^ *+' conftest.er1 >conftest.err
16036   rm -f conftest.er1
16037   cat conftest.err >&5
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); } >/dev/null; then
16040   if test -s conftest.err; then
16041     ac_cpp_err=$ac_c_preproc_warn_flag
16042   else
16043     ac_cpp_err=
16044   fi
16045 else
16046   ac_cpp_err=yes
16047 fi
16048 if test -z "$ac_cpp_err"; then
16049   ac_header_preproc=yes
16050 else
16051   echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16053
16054   ac_header_preproc=no
16055 fi
16056 rm -f conftest.err conftest.$ac_ext
16057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16058 echo "${ECHO_T}$ac_header_preproc" >&6
16059
16060 # So?  What about this header?
16061 case $ac_header_compiler:$ac_header_preproc in
16062   yes:no )
16063     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16067     (
16068       cat <<\_ASBOX
16069 ## ------------------------------------ ##
16070 ## Report this to bug-autoconf@gnu.org. ##
16071 ## ------------------------------------ ##
16072 _ASBOX
16073     ) |
16074       sed "s/^/$as_me: WARNING:     /" >&2
16075     ;;
16076   no:yes )
16077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16079     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16083     (
16084       cat <<\_ASBOX
16085 ## ------------------------------------ ##
16086 ## Report this to bug-autoconf@gnu.org. ##
16087 ## ------------------------------------ ##
16088 _ASBOX
16089     ) |
16090       sed "s/^/$as_me: WARNING:     /" >&2
16091     ;;
16092 esac
16093 echo "$as_me:$LINENO: checking for $ac_header" >&5
16094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16096   echo $ECHO_N "(cached) $ECHO_C" >&6
16097 else
16098   eval "$as_ac_Header=$ac_header_preproc"
16099 fi
16100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16102
16103 fi
16104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16105   cat >>confdefs.h <<_ACEOF
16106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16107 _ACEOF
16108  ac_has_wchar_h=yes
16109 else
16110   ac_has_wchar_h=no
16111 fi
16112
16113 done
16114
16115
16116 for ac_header in wctype.h
16117 do
16118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16120   echo "$as_me:$LINENO: checking for $ac_header" >&5
16121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16123   echo $ECHO_N "(cached) $ECHO_C" >&6
16124 fi
16125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16127 else
16128   # Is the header compilable?
16129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16131 cat >conftest.$ac_ext <<_ACEOF
16132 #line $LINENO "configure"
16133 /* confdefs.h.  */
16134 _ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h.  */
16138 $ac_includes_default
16139 #include <$ac_header>
16140 _ACEOF
16141 rm -f conftest.$ac_objext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16143   (eval $ac_compile) 2>&5
16144   ac_status=$?
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); } &&
16147          { ac_try='test -s conftest.$ac_objext'
16148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149   (eval $ac_try) 2>&5
16150   ac_status=$?
16151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152   (exit $ac_status); }; }; then
16153   ac_header_compiler=yes
16154 else
16155   echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16157
16158 ac_header_compiler=no
16159 fi
16160 rm -f conftest.$ac_objext conftest.$ac_ext
16161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16162 echo "${ECHO_T}$ac_header_compiler" >&6
16163
16164 # Is the header present?
16165 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16167 cat >conftest.$ac_ext <<_ACEOF
16168 #line $LINENO "configure"
16169 /* confdefs.h.  */
16170 _ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h.  */
16174 #include <$ac_header>
16175 _ACEOF
16176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16177   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16178   ac_status=$?
16179   grep -v '^ *+' conftest.er1 >conftest.err
16180   rm -f conftest.er1
16181   cat conftest.err >&5
16182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183   (exit $ac_status); } >/dev/null; then
16184   if test -s conftest.err; then
16185     ac_cpp_err=$ac_c_preproc_warn_flag
16186   else
16187     ac_cpp_err=
16188   fi
16189 else
16190   ac_cpp_err=yes
16191 fi
16192 if test -z "$ac_cpp_err"; then
16193   ac_header_preproc=yes
16194 else
16195   echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16197
16198   ac_header_preproc=no
16199 fi
16200 rm -f conftest.err conftest.$ac_ext
16201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16202 echo "${ECHO_T}$ac_header_preproc" >&6
16203
16204 # So?  What about this header?
16205 case $ac_header_compiler:$ac_header_preproc in
16206   yes:no )
16207     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16211     (
16212       cat <<\_ASBOX
16213 ## ------------------------------------ ##
16214 ## Report this to bug-autoconf@gnu.org. ##
16215 ## ------------------------------------ ##
16216 _ASBOX
16217     ) |
16218       sed "s/^/$as_me: WARNING:     /" >&2
16219     ;;
16220   no:yes )
16221     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16223     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16227     (
16228       cat <<\_ASBOX
16229 ## ------------------------------------ ##
16230 ## Report this to bug-autoconf@gnu.org. ##
16231 ## ------------------------------------ ##
16232 _ASBOX
16233     ) |
16234       sed "s/^/$as_me: WARNING:     /" >&2
16235     ;;
16236 esac
16237 echo "$as_me:$LINENO: checking for $ac_header" >&5
16238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16240   echo $ECHO_N "(cached) $ECHO_C" >&6
16241 else
16242   eval "$as_ac_Header=$ac_header_preproc"
16243 fi
16244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16246
16247 fi
16248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16249   cat >>confdefs.h <<_ACEOF
16250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16251 _ACEOF
16252  ac_has_wctype_h=yes
16253 else
16254   ac_has_wctype_h=no
16255 fi
16256
16257 done
16258
16259
16260   # Only continue checking if the ISO C99 headers exist and support is on.
16261   if test x"$ac_has_wchar_h" = xyes &&
16262      test x"$ac_has_wctype_h" = xyes &&
16263      test x"$enable_c_mbchar" != xno; then
16264
16265     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
16266     # numeric_limits can instantiate type_traits<wchar_t>
16267     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
16268 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
16269     cat >conftest.$ac_ext <<_ACEOF
16270 #line $LINENO "configure"
16271 /* confdefs.h.  */
16272 _ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h.  */
16276 #include <wchar.h>
16277 int
16278 main ()
16279 {
16280 int i = WCHAR_MIN; int j = WCHAR_MAX;
16281   ;
16282   return 0;
16283 }
16284 _ACEOF
16285 rm -f conftest.$ac_objext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16287   (eval $ac_compile) 2>&5
16288   ac_status=$?
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); } &&
16291          { ac_try='test -s conftest.$ac_objext'
16292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293   (eval $ac_try) 2>&5
16294   ac_status=$?
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); }; }; then
16297   has_wchar_minmax=yes
16298 else
16299   echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16301
16302 has_wchar_minmax=no
16303 fi
16304 rm -f conftest.$ac_objext conftest.$ac_ext
16305     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
16306 echo "${ECHO_T}$has_wchar_minmax" >&6
16307
16308     # Test wchar.h for WEOF, which is what we use to determine whether
16309     # to specialize for char_traits<wchar_t> or not.
16310     echo "$as_me:$LINENO: checking for WEOF" >&5
16311 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
16312     cat >conftest.$ac_ext <<_ACEOF
16313 #line $LINENO "configure"
16314 /* confdefs.h.  */
16315 _ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h.  */
16319
16320       #include <wchar.h>
16321       #include <stddef.h>
16322 int
16323 main ()
16324 {
16325 wint_t i = WEOF;
16326   ;
16327   return 0;
16328 }
16329 _ACEOF
16330 rm -f conftest.$ac_objext
16331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16332   (eval $ac_compile) 2>&5
16333   ac_status=$?
16334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335   (exit $ac_status); } &&
16336          { ac_try='test -s conftest.$ac_objext'
16337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338   (eval $ac_try) 2>&5
16339   ac_status=$?
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); }; }; then
16342   has_weof=yes
16343 else
16344   echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16346
16347 has_weof=no
16348 fi
16349 rm -f conftest.$ac_objext conftest.$ac_ext
16350     echo "$as_me:$LINENO: result: $has_weof" >&5
16351 echo "${ECHO_T}$has_weof" >&6
16352
16353     # Tests for wide character functions used in char_traits<wchar_t>.
16354     ac_wfuncs=yes
16355
16356
16357
16358
16359
16360
16361 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
16362 do
16363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16364 echo "$as_me:$LINENO: checking for $ac_func" >&5
16365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16366 if eval "test \"\${$as_ac_var+set}\" = set"; then
16367   echo $ECHO_N "(cached) $ECHO_C" >&6
16368 else
16369   cat >conftest.$ac_ext <<_ACEOF
16370 #line $LINENO "configure"
16371 /* confdefs.h.  */
16372 _ACEOF
16373 cat confdefs.h >>conftest.$ac_ext
16374 cat >>conftest.$ac_ext <<_ACEOF
16375 /* end confdefs.h.  */
16376 /* System header to define __stub macros and hopefully few prototypes,
16377     which can conflict with char $ac_func (); below.
16378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16379     <limits.h> exists even on freestanding compilers.  */
16380 #ifdef __STDC__
16381 # include <limits.h>
16382 #else
16383 # include <assert.h>
16384 #endif
16385 /* Override any gcc2 internal prototype to avoid an error.  */
16386 #ifdef __cplusplus
16387 extern "C"
16388 {
16389 #endif
16390 /* We use char because int might match the return type of a gcc2
16391    builtin and then its argument prototype would still apply.  */
16392 char $ac_func ();
16393 /* The GNU C library defines this for functions which it implements
16394     to always fail with ENOSYS.  Some functions are actually named
16395     something starting with __ and the normal name is an alias.  */
16396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16397 choke me
16398 #else
16399 char (*f) () = $ac_func;
16400 #endif
16401 #ifdef __cplusplus
16402 }
16403 #endif
16404
16405 int
16406 main ()
16407 {
16408 return f != $ac_func;
16409   ;
16410   return 0;
16411 }
16412 _ACEOF
16413 rm -f conftest.$ac_objext conftest$ac_exeext
16414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16415   (eval $ac_link) 2>&5
16416   ac_status=$?
16417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418   (exit $ac_status); } &&
16419          { ac_try='test -s conftest$ac_exeext'
16420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421   (eval $ac_try) 2>&5
16422   ac_status=$?
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); }; }; then
16425   eval "$as_ac_var=yes"
16426 else
16427   echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16429
16430 eval "$as_ac_var=no"
16431 fi
16432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16433 fi
16434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16436 if test `eval echo '${'$as_ac_var'}'` = yes; then
16437   cat >>confdefs.h <<_ACEOF
16438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16439 _ACEOF
16440
16441 else
16442   ac_wfuncs=no
16443 fi
16444 done
16445
16446
16447     # Checks for names injected into std:: by the c_std headers.
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
16499     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
16500     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
16501     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
16502     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
16503     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
16504 do
16505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16506 echo "$as_me:$LINENO: checking for $ac_func" >&5
16507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16508 if eval "test \"\${$as_ac_var+set}\" = set"; then
16509   echo $ECHO_N "(cached) $ECHO_C" >&6
16510 else
16511   cat >conftest.$ac_ext <<_ACEOF
16512 #line $LINENO "configure"
16513 /* confdefs.h.  */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h.  */
16518 /* System header to define __stub macros and hopefully few prototypes,
16519     which can conflict with char $ac_func (); below.
16520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16521     <limits.h> exists even on freestanding compilers.  */
16522 #ifdef __STDC__
16523 # include <limits.h>
16524 #else
16525 # include <assert.h>
16526 #endif
16527 /* Override any gcc2 internal prototype to avoid an error.  */
16528 #ifdef __cplusplus
16529 extern "C"
16530 {
16531 #endif
16532 /* We use char because int might match the return type of a gcc2
16533    builtin and then its argument prototype would still apply.  */
16534 char $ac_func ();
16535 /* The GNU C library defines this for functions which it implements
16536     to always fail with ENOSYS.  Some functions are actually named
16537     something starting with __ and the normal name is an alias.  */
16538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16539 choke me
16540 #else
16541 char (*f) () = $ac_func;
16542 #endif
16543 #ifdef __cplusplus
16544 }
16545 #endif
16546
16547 int
16548 main ()
16549 {
16550 return f != $ac_func;
16551   ;
16552   return 0;
16553 }
16554 _ACEOF
16555 rm -f conftest.$ac_objext conftest$ac_exeext
16556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16557   (eval $ac_link) 2>&5
16558   ac_status=$?
16559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560   (exit $ac_status); } &&
16561          { ac_try='test -s conftest$ac_exeext'
16562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563   (eval $ac_try) 2>&5
16564   ac_status=$?
16565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566   (exit $ac_status); }; }; then
16567   eval "$as_ac_var=yes"
16568 else
16569   echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16571
16572 eval "$as_ac_var=no"
16573 fi
16574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16575 fi
16576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16578 if test `eval echo '${'$as_ac_var'}'` = yes; then
16579   cat >>confdefs.h <<_ACEOF
16580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16581 _ACEOF
16582
16583 else
16584   ac_wfuncs=no
16585 fi
16586 done
16587
16588
16589     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
16590 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
16591     if test x"$has_weof" = xyes &&
16592        test x"$has_wchar_minmax" = xyes &&
16593        test x"$ac_wfuncs" = xyes;
16594     then
16595       ac_isoC99_wchar_t=yes
16596     else
16597       ac_isoC99_wchar_t=no
16598     fi
16599     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
16600 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
16601
16602     # Use iconv for wchar_t to char conversions. As such, check for
16603     # X/Open Portability Guide, version 2 features (XPG2).
16604     if test "${ac_cv_header_iconv_h+set}" = set; then
16605   echo "$as_me:$LINENO: checking for iconv.h" >&5
16606 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
16607 if test "${ac_cv_header_iconv_h+set}" = set; then
16608   echo $ECHO_N "(cached) $ECHO_C" >&6
16609 fi
16610 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
16611 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
16612 else
16613   # Is the header compilable?
16614 echo "$as_me:$LINENO: checking iconv.h usability" >&5
16615 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
16616 cat >conftest.$ac_ext <<_ACEOF
16617 #line $LINENO "configure"
16618 /* confdefs.h.  */
16619 _ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h.  */
16623 $ac_includes_default
16624 #include <iconv.h>
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628   (eval $ac_compile) 2>&5
16629   ac_status=$?
16630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631   (exit $ac_status); } &&
16632          { ac_try='test -s conftest.$ac_objext'
16633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634   (eval $ac_try) 2>&5
16635   ac_status=$?
16636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637   (exit $ac_status); }; }; then
16638   ac_header_compiler=yes
16639 else
16640   echo "$as_me: failed program was:" >&5
16641 sed 's/^/| /' conftest.$ac_ext >&5
16642
16643 ac_header_compiler=no
16644 fi
16645 rm -f conftest.$ac_objext conftest.$ac_ext
16646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16647 echo "${ECHO_T}$ac_header_compiler" >&6
16648
16649 # Is the header present?
16650 echo "$as_me:$LINENO: checking iconv.h presence" >&5
16651 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
16652 cat >conftest.$ac_ext <<_ACEOF
16653 #line $LINENO "configure"
16654 /* confdefs.h.  */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h.  */
16659 #include <iconv.h>
16660 _ACEOF
16661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16662   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16663   ac_status=$?
16664   grep -v '^ *+' conftest.er1 >conftest.err
16665   rm -f conftest.er1
16666   cat conftest.err >&5
16667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668   (exit $ac_status); } >/dev/null; then
16669   if test -s conftest.err; then
16670     ac_cpp_err=$ac_c_preproc_warn_flag
16671   else
16672     ac_cpp_err=
16673   fi
16674 else
16675   ac_cpp_err=yes
16676 fi
16677 if test -z "$ac_cpp_err"; then
16678   ac_header_preproc=yes
16679 else
16680   echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16682
16683   ac_header_preproc=no
16684 fi
16685 rm -f conftest.err conftest.$ac_ext
16686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16687 echo "${ECHO_T}$ac_header_preproc" >&6
16688
16689 # So?  What about this header?
16690 case $ac_header_compiler:$ac_header_preproc in
16691   yes:no )
16692     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
16693 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16694     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
16695 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
16696     (
16697       cat <<\_ASBOX
16698 ## ------------------------------------ ##
16699 ## Report this to bug-autoconf@gnu.org. ##
16700 ## ------------------------------------ ##
16701 _ASBOX
16702     ) |
16703       sed "s/^/$as_me: WARNING:     /" >&2
16704     ;;
16705   no:yes )
16706     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
16707 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
16708     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
16709 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
16710     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
16711 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
16712     (
16713       cat <<\_ASBOX
16714 ## ------------------------------------ ##
16715 ## Report this to bug-autoconf@gnu.org. ##
16716 ## ------------------------------------ ##
16717 _ASBOX
16718     ) |
16719       sed "s/^/$as_me: WARNING:     /" >&2
16720     ;;
16721 esac
16722 echo "$as_me:$LINENO: checking for iconv.h" >&5
16723 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
16724 if test "${ac_cv_header_iconv_h+set}" = set; then
16725   echo $ECHO_N "(cached) $ECHO_C" >&6
16726 else
16727   ac_cv_header_iconv_h=$ac_header_preproc
16728 fi
16729 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
16730 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
16731
16732 fi
16733 if test $ac_cv_header_iconv_h = yes; then
16734   ac_has_iconv_h=yes
16735 else
16736   ac_has_iconv_h=no
16737 fi
16738
16739
16740     if test "${ac_cv_header_langinfo_h+set}" = set; then
16741   echo "$as_me:$LINENO: checking for langinfo.h" >&5
16742 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
16743 if test "${ac_cv_header_langinfo_h+set}" = set; then
16744   echo $ECHO_N "(cached) $ECHO_C" >&6
16745 fi
16746 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
16747 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
16748 else
16749   # Is the header compilable?
16750 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
16751 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
16752 cat >conftest.$ac_ext <<_ACEOF
16753 #line $LINENO "configure"
16754 /* confdefs.h.  */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h.  */
16759 $ac_includes_default
16760 #include <langinfo.h>
16761 _ACEOF
16762 rm -f conftest.$ac_objext
16763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16764   (eval $ac_compile) 2>&5
16765   ac_status=$?
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); } &&
16768          { ac_try='test -s conftest.$ac_objext'
16769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770   (eval $ac_try) 2>&5
16771   ac_status=$?
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); }; }; then
16774   ac_header_compiler=yes
16775 else
16776   echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16778
16779 ac_header_compiler=no
16780 fi
16781 rm -f conftest.$ac_objext conftest.$ac_ext
16782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16783 echo "${ECHO_T}$ac_header_compiler" >&6
16784
16785 # Is the header present?
16786 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
16787 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
16788 cat >conftest.$ac_ext <<_ACEOF
16789 #line $LINENO "configure"
16790 /* confdefs.h.  */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h.  */
16795 #include <langinfo.h>
16796 _ACEOF
16797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16798   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16799   ac_status=$?
16800   grep -v '^ *+' conftest.er1 >conftest.err
16801   rm -f conftest.er1
16802   cat conftest.err >&5
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); } >/dev/null; then
16805   if test -s conftest.err; then
16806     ac_cpp_err=$ac_c_preproc_warn_flag
16807   else
16808     ac_cpp_err=
16809   fi
16810 else
16811   ac_cpp_err=yes
16812 fi
16813 if test -z "$ac_cpp_err"; then
16814   ac_header_preproc=yes
16815 else
16816   echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16818
16819   ac_header_preproc=no
16820 fi
16821 rm -f conftest.err conftest.$ac_ext
16822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16823 echo "${ECHO_T}$ac_header_preproc" >&6
16824
16825 # So?  What about this header?
16826 case $ac_header_compiler:$ac_header_preproc in
16827   yes:no )
16828     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
16829 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16830     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
16831 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
16832     (
16833       cat <<\_ASBOX
16834 ## ------------------------------------ ##
16835 ## Report this to bug-autoconf@gnu.org. ##
16836 ## ------------------------------------ ##
16837 _ASBOX
16838     ) |
16839       sed "s/^/$as_me: WARNING:     /" >&2
16840     ;;
16841   no:yes )
16842     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
16843 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
16844     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
16845 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
16846     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
16847 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
16848     (
16849       cat <<\_ASBOX
16850 ## ------------------------------------ ##
16851 ## Report this to bug-autoconf@gnu.org. ##
16852 ## ------------------------------------ ##
16853 _ASBOX
16854     ) |
16855       sed "s/^/$as_me: WARNING:     /" >&2
16856     ;;
16857 esac
16858 echo "$as_me:$LINENO: checking for langinfo.h" >&5
16859 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
16860 if test "${ac_cv_header_langinfo_h+set}" = set; then
16861   echo $ECHO_N "(cached) $ECHO_C" >&6
16862 else
16863   ac_cv_header_langinfo_h=$ac_header_preproc
16864 fi
16865 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
16866 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
16867
16868 fi
16869 if test $ac_cv_header_langinfo_h = yes; then
16870   ac_has_langinfo_h=yes
16871 else
16872   ac_has_langinfo_h=no
16873 fi
16874
16875
16876
16877     # Check for existence of libiconv.a providing XPG2 wchar_t support.
16878     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
16879 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
16880 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
16881   echo $ECHO_N "(cached) $ECHO_C" >&6
16882 else
16883   ac_check_lib_save_LIBS=$LIBS
16884 LIBS="-liconv  $LIBS"
16885 cat >conftest.$ac_ext <<_ACEOF
16886 #line $LINENO "configure"
16887 /* confdefs.h.  */
16888 _ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h.  */
16892
16893 /* Override any gcc2 internal prototype to avoid an error.  */
16894 #ifdef __cplusplus
16895 extern "C"
16896 #endif
16897 /* We use char because int might match the return type of a gcc2
16898    builtin and then its argument prototype would still apply.  */
16899 char iconv ();
16900 int
16901 main ()
16902 {
16903 iconv ();
16904   ;
16905   return 0;
16906 }
16907 _ACEOF
16908 rm -f conftest.$ac_objext conftest$ac_exeext
16909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16910   (eval $ac_link) 2>&5
16911   ac_status=$?
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); } &&
16914          { ac_try='test -s conftest$ac_exeext'
16915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916   (eval $ac_try) 2>&5
16917   ac_status=$?
16918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919   (exit $ac_status); }; }; then
16920   ac_cv_lib_iconv_iconv=yes
16921 else
16922   echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16924
16925 ac_cv_lib_iconv_iconv=no
16926 fi
16927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16928 LIBS=$ac_check_lib_save_LIBS
16929 fi
16930 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
16931 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
16932 if test $ac_cv_lib_iconv_iconv = yes; then
16933   libiconv="-liconv"
16934 fi
16935
16936     ac_save_LIBS="$LIBS"
16937     LIBS="$LIBS $libiconv"
16938
16939
16940
16941
16942
16943 for ac_func in iconv_open iconv_close iconv nl_langinfo
16944 do
16945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16946 echo "$as_me:$LINENO: checking for $ac_func" >&5
16947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16948 if eval "test \"\${$as_ac_var+set}\" = set"; then
16949   echo $ECHO_N "(cached) $ECHO_C" >&6
16950 else
16951   cat >conftest.$ac_ext <<_ACEOF
16952 #line $LINENO "configure"
16953 /* confdefs.h.  */
16954 _ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h.  */
16958 /* System header to define __stub macros and hopefully few prototypes,
16959     which can conflict with char $ac_func (); below.
16960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961     <limits.h> exists even on freestanding compilers.  */
16962 #ifdef __STDC__
16963 # include <limits.h>
16964 #else
16965 # include <assert.h>
16966 #endif
16967 /* Override any gcc2 internal prototype to avoid an error.  */
16968 #ifdef __cplusplus
16969 extern "C"
16970 {
16971 #endif
16972 /* We use char because int might match the return type of a gcc2
16973    builtin and then its argument prototype would still apply.  */
16974 char $ac_func ();
16975 /* The GNU C library defines this for functions which it implements
16976     to always fail with ENOSYS.  Some functions are actually named
16977     something starting with __ and the normal name is an alias.  */
16978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16979 choke me
16980 #else
16981 char (*f) () = $ac_func;
16982 #endif
16983 #ifdef __cplusplus
16984 }
16985 #endif
16986
16987 int
16988 main ()
16989 {
16990 return f != $ac_func;
16991   ;
16992   return 0;
16993 }
16994 _ACEOF
16995 rm -f conftest.$ac_objext conftest$ac_exeext
16996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16997   (eval $ac_link) 2>&5
16998   ac_status=$?
16999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000   (exit $ac_status); } &&
17001          { ac_try='test -s conftest$ac_exeext'
17002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003   (eval $ac_try) 2>&5
17004   ac_status=$?
17005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006   (exit $ac_status); }; }; then
17007   eval "$as_ac_var=yes"
17008 else
17009   echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17011
17012 eval "$as_ac_var=no"
17013 fi
17014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17015 fi
17016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17018 if test `eval echo '${'$as_ac_var'}'` = yes; then
17019   cat >>confdefs.h <<_ACEOF
17020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17021 _ACEOF
17022  ac_XPG2funcs=yes
17023 else
17024   ac_XPG2funcs=no
17025 fi
17026 done
17027
17028
17029     LIBS="$ac_save_LIBS"
17030
17031     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
17032 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
17033     if test x"$ac_has_iconv_h" = xyes &&
17034        test x"$ac_has_langinfo_h" = xyes &&
17035        test x"$ac_XPG2funcs" = xyes;
17036     then
17037       ac_XPG2_wchar_t=yes
17038     else
17039       ac_XPG2_wchar_t=no
17040     fi
17041     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
17042 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
17043
17044     # At the moment, only enable wchar_t specializations if all the
17045     # above support is present.
17046     if test x"$ac_isoC99_wchar_t" = xyes &&
17047        test x"$ac_XPG2_wchar_t" = xyes;
17048     then
17049       cat >>confdefs.h <<\_ACEOF
17050 #define _GLIBCXX_USE_WCHAR_T 1
17051 _ACEOF
17052
17053       enable_wchar_t=yes
17054     fi
17055   fi
17056   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
17057 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
17058   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
17059 echo "${ECHO_T}$enable_wchar_t" >&6
17060
17061     cat >>confdefs.h <<\_ACEOF
17062 #define HAVE_COPYSIGN 1
17063 _ACEOF
17064
17065     cat >>confdefs.h <<\_ACEOF
17066 #define HAVE_COPYSIGNF 1
17067 _ACEOF
17068
17069     cat >>confdefs.h <<\_ACEOF
17070 #define HAVE_FINITEF 1
17071 _ACEOF
17072
17073     cat >>confdefs.h <<\_ACEOF
17074 #define HAVE_FINITE 1
17075 _ACEOF
17076
17077     cat >>confdefs.h <<\_ACEOF
17078 #define HAVE_FREXPF 1
17079 _ACEOF
17080
17081     cat >>confdefs.h <<\_ACEOF
17082 #define HAVE_HYPOTF 1
17083 _ACEOF
17084
17085     cat >>confdefs.h <<\_ACEOF
17086 #define HAVE_ISINF 1
17087 _ACEOF
17088
17089     cat >>confdefs.h <<\_ACEOF
17090 #define HAVE_ISINFF 1
17091 _ACEOF
17092
17093     cat >>confdefs.h <<\_ACEOF
17094 #define HAVE_ISNAN 1
17095 _ACEOF
17096
17097     cat >>confdefs.h <<\_ACEOF
17098 #define HAVE_ISNANF 1
17099 _ACEOF
17100
17101     if test x"long_double_math_on_this_cpu" = x"yes"; then
17102       cat >>confdefs.h <<\_ACEOF
17103 #define HAVE_FINITEL 1
17104 _ACEOF
17105
17106       cat >>confdefs.h <<\_ACEOF
17107 #define HAVE_ISINFL 1
17108 _ACEOF
17109
17110       cat >>confdefs.h <<\_ACEOF
17111 #define HAVE_ISNANL 1
17112 _ACEOF
17113
17114     fi
17115     ;;
17116   *-qnx6.1* | *-qnx6.2*)
17117     #os_include_dir="os/qnx/qnx6.1"
17118     SECTION_FLAGS='-ffunction-sections -fdata-sections'
17119
17120
17121   # If we're not using GNU ld, then there's no point in even trying these
17122   # tests.  Check for that first.  We should have already tested for gld
17123   # by now (in libtool), but require it now just to be safe...
17124   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17125   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17126
17127
17128
17129   # The name set by libtool depends on the version of libtool.  Shame on us
17130   # for depending on an impl detail, but c'est la vie.  Older versions used
17131   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17132   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17133   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
17134   # set (hence we're using an older libtool), then set it.
17135   if test x${with_gnu_ld+set} != xset; then
17136     if test x${ac_cv_prog_gnu_ld+set} != xset; then
17137       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
17138       with_gnu_ld=no
17139     else
17140       with_gnu_ld=$ac_cv_prog_gnu_ld
17141     fi
17142   fi
17143
17144   # Start by getting the version number.  I think the libtool test already
17145   # does some of this, but throws away the result.
17146
17147   ldver=`$LD --version 2>/dev/null | head -1 | \
17148          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
17149
17150   glibcxx_gnu_ld_version=`echo $ldver | \
17151          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17152
17153   # Set --gc-sections.
17154   if test "$with_gnu_ld" = "notbroken"; then
17155     # GNU ld it is!  Joy and bunny rabbits!
17156
17157     # All these tests are for C++; save the language and the compiler flags.
17158     # Need to do this so that g++ won't try to link in libstdc++
17159     ac_test_CFLAGS="${CFLAGS+set}"
17160     ac_save_CFLAGS="$CFLAGS"
17161     CFLAGS='-x c++  -Wl,--gc-sections'
17162
17163     # Check for -Wl,--gc-sections
17164     # XXX This test is broken at the moment, as symbols required for linking
17165     # are now in libsupc++ (not built yet).  In addition, this test has
17166     # cored on solaris in the past.  In addition, --gc-sections doesn't
17167     # really work at the moment (keeps on discarding used sections, first
17168     # .eh_frame and now some of the glibc sections for iconv).
17169     # Bzzzzt.  Thanks for playing, maybe next time.
17170     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17171 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17172     if test "$cross_compiling" = yes; then
17173   ac_sectionLDflags=yes
17174 else
17175   cat >conftest.$ac_ext <<_ACEOF
17176 #line $LINENO "configure"
17177 /* confdefs.h.  */
17178 _ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h.  */
17182
17183      int main(void)
17184      {
17185        try { throw 1; }
17186        catch (...) { };
17187        return 0;
17188      }
17189
17190 _ACEOF
17191 rm -f conftest$ac_exeext
17192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17193   (eval $ac_link) 2>&5
17194   ac_status=$?
17195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198   (eval $ac_try) 2>&5
17199   ac_status=$?
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); }; }; then
17202   ac_sectionLDflags=yes
17203 else
17204   echo "$as_me: program exited with status $ac_status" >&5
17205 echo "$as_me: failed program was:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17207
17208 ( exit $ac_status )
17209 ac_sectionLDflags=no
17210 fi
17211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17212 fi
17213     if test "$ac_test_CFLAGS" = set; then
17214       CFLAGS="$ac_save_CFLAGS"
17215     else
17216       # this is the suspicious part
17217       CFLAGS=''
17218     fi
17219     if test "$ac_sectionLDflags" = "yes"; then
17220       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17221     fi
17222     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17223 echo "${ECHO_T}$ac_sectionLDflags" >&6
17224   fi
17225
17226   # Set linker optimization flags.
17227   if test x"$with_gnu_ld" = x"yes"; then
17228     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17229   fi
17230
17231
17232
17233
17234
17235
17236 echo "$as_me:$LINENO: checking for main in -lm" >&5
17237 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
17238 if test "${ac_cv_lib_m_main+set}" = set; then
17239   echo $ECHO_N "(cached) $ECHO_C" >&6
17240 else
17241   ac_check_lib_save_LIBS=$LIBS
17242 LIBS="-lm  $LIBS"
17243 cat >conftest.$ac_ext <<_ACEOF
17244 #line $LINENO "configure"
17245 /* confdefs.h.  */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h.  */
17250
17251
17252 int
17253 main ()
17254 {
17255 main ();
17256   ;
17257   return 0;
17258 }
17259 _ACEOF
17260 rm -f conftest.$ac_objext conftest$ac_exeext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17262   (eval $ac_link) 2>&5
17263   ac_status=$?
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); } &&
17266          { ac_try='test -s conftest$ac_exeext'
17267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268   (eval $ac_try) 2>&5
17269   ac_status=$?
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); }; }; then
17272   ac_cv_lib_m_main=yes
17273 else
17274   echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17276
17277 ac_cv_lib_m_main=no
17278 fi
17279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17280 LIBS=$ac_check_lib_save_LIBS
17281 fi
17282 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
17283 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
17284 if test $ac_cv_lib_m_main = yes; then
17285   cat >>confdefs.h <<_ACEOF
17286 #define HAVE_LIBM 1
17287 _ACEOF
17288
17289   LIBS="-lm $LIBS"
17290
17291 fi
17292
17293
17294
17295 for ac_func in nan copysignf
17296 do
17297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17298 echo "$as_me:$LINENO: checking for $ac_func" >&5
17299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17300 if eval "test \"\${$as_ac_var+set}\" = set"; then
17301   echo $ECHO_N "(cached) $ECHO_C" >&6
17302 else
17303   cat >conftest.$ac_ext <<_ACEOF
17304 #line $LINENO "configure"
17305 /* confdefs.h.  */
17306 _ACEOF
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h.  */
17310 /* System header to define __stub macros and hopefully few prototypes,
17311     which can conflict with char $ac_func (); below.
17312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17313     <limits.h> exists even on freestanding compilers.  */
17314 #ifdef __STDC__
17315 # include <limits.h>
17316 #else
17317 # include <assert.h>
17318 #endif
17319 /* Override any gcc2 internal prototype to avoid an error.  */
17320 #ifdef __cplusplus
17321 extern "C"
17322 {
17323 #endif
17324 /* We use char because int might match the return type of a gcc2
17325    builtin and then its argument prototype would still apply.  */
17326 char $ac_func ();
17327 /* The GNU C library defines this for functions which it implements
17328     to always fail with ENOSYS.  Some functions are actually named
17329     something starting with __ and the normal name is an alias.  */
17330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17331 choke me
17332 #else
17333 char (*f) () = $ac_func;
17334 #endif
17335 #ifdef __cplusplus
17336 }
17337 #endif
17338
17339 int
17340 main ()
17341 {
17342 return f != $ac_func;
17343   ;
17344   return 0;
17345 }
17346 _ACEOF
17347 rm -f conftest.$ac_objext conftest$ac_exeext
17348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17349   (eval $ac_link) 2>&5
17350   ac_status=$?
17351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352   (exit $ac_status); } &&
17353          { ac_try='test -s conftest$ac_exeext'
17354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355   (eval $ac_try) 2>&5
17356   ac_status=$?
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); }; }; then
17359   eval "$as_ac_var=yes"
17360 else
17361   echo "$as_me: failed program was:" >&5
17362 sed 's/^/| /' conftest.$ac_ext >&5
17363
17364 eval "$as_ac_var=no"
17365 fi
17366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17367 fi
17368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17370 if test `eval echo '${'$as_ac_var'}'` = yes; then
17371   cat >>confdefs.h <<_ACEOF
17372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17373 _ACEOF
17374
17375 else
17376   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
17377 fi
17378 done
17379
17380
17381
17382 for ac_func in __signbit
17383 do
17384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17385 echo "$as_me:$LINENO: checking for $ac_func" >&5
17386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17387 if eval "test \"\${$as_ac_var+set}\" = set"; then
17388   echo $ECHO_N "(cached) $ECHO_C" >&6
17389 else
17390   cat >conftest.$ac_ext <<_ACEOF
17391 #line $LINENO "configure"
17392 /* confdefs.h.  */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h.  */
17397 /* System header to define __stub macros and hopefully few prototypes,
17398     which can conflict with char $ac_func (); below.
17399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17400     <limits.h> exists even on freestanding compilers.  */
17401 #ifdef __STDC__
17402 # include <limits.h>
17403 #else
17404 # include <assert.h>
17405 #endif
17406 /* Override any gcc2 internal prototype to avoid an error.  */
17407 #ifdef __cplusplus
17408 extern "C"
17409 {
17410 #endif
17411 /* We use char because int might match the return type of a gcc2
17412    builtin and then its argument prototype would still apply.  */
17413 char $ac_func ();
17414 /* The GNU C library defines this for functions which it implements
17415     to always fail with ENOSYS.  Some functions are actually named
17416     something starting with __ and the normal name is an alias.  */
17417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17418 choke me
17419 #else
17420 char (*f) () = $ac_func;
17421 #endif
17422 #ifdef __cplusplus
17423 }
17424 #endif
17425
17426 int
17427 main ()
17428 {
17429 return f != $ac_func;
17430   ;
17431   return 0;
17432 }
17433 _ACEOF
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17436   (eval $ac_link) 2>&5
17437   ac_status=$?
17438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439   (exit $ac_status); } &&
17440          { ac_try='test -s conftest$ac_exeext'
17441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442   (eval $ac_try) 2>&5
17443   ac_status=$?
17444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445   (exit $ac_status); }; }; then
17446   eval "$as_ac_var=yes"
17447 else
17448   echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451 eval "$as_ac_var=no"
17452 fi
17453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17454 fi
17455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17457 if test `eval echo '${'$as_ac_var'}'` = yes; then
17458   cat >>confdefs.h <<_ACEOF
17459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17460 _ACEOF
17461
17462 else
17463   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
17464 fi
17465 done
17466
17467
17468 for ac_func in __signbitf
17469 do
17470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17471 echo "$as_me:$LINENO: checking for $ac_func" >&5
17472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17473 if eval "test \"\${$as_ac_var+set}\" = set"; then
17474   echo $ECHO_N "(cached) $ECHO_C" >&6
17475 else
17476   cat >conftest.$ac_ext <<_ACEOF
17477 #line $LINENO "configure"
17478 /* confdefs.h.  */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h.  */
17483 /* System header to define __stub macros and hopefully few prototypes,
17484     which can conflict with char $ac_func (); below.
17485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17486     <limits.h> exists even on freestanding compilers.  */
17487 #ifdef __STDC__
17488 # include <limits.h>
17489 #else
17490 # include <assert.h>
17491 #endif
17492 /* Override any gcc2 internal prototype to avoid an error.  */
17493 #ifdef __cplusplus
17494 extern "C"
17495 {
17496 #endif
17497 /* We use char because int might match the return type of a gcc2
17498    builtin and then its argument prototype would still apply.  */
17499 char $ac_func ();
17500 /* The GNU C library defines this for functions which it implements
17501     to always fail with ENOSYS.  Some functions are actually named
17502     something starting with __ and the normal name is an alias.  */
17503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17504 choke me
17505 #else
17506 char (*f) () = $ac_func;
17507 #endif
17508 #ifdef __cplusplus
17509 }
17510 #endif
17511
17512 int
17513 main ()
17514 {
17515 return f != $ac_func;
17516   ;
17517   return 0;
17518 }
17519 _ACEOF
17520 rm -f conftest.$ac_objext conftest$ac_exeext
17521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17522   (eval $ac_link) 2>&5
17523   ac_status=$?
17524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525   (exit $ac_status); } &&
17526          { ac_try='test -s conftest$ac_exeext'
17527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528   (eval $ac_try) 2>&5
17529   ac_status=$?
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); }; }; then
17532   eval "$as_ac_var=yes"
17533 else
17534   echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17536
17537 eval "$as_ac_var=no"
17538 fi
17539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17540 fi
17541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17543 if test `eval echo '${'$as_ac_var'}'` = yes; then
17544   cat >>confdefs.h <<_ACEOF
17545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17546 _ACEOF
17547
17548 else
17549   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
17550 fi
17551 done
17552
17553
17554           if test x$ac_cv_func_copysignl = x"yes"; then
17555
17556 for ac_func in __signbitl
17557 do
17558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17559 echo "$as_me:$LINENO: checking for $ac_func" >&5
17560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17561 if eval "test \"\${$as_ac_var+set}\" = set"; then
17562   echo $ECHO_N "(cached) $ECHO_C" >&6
17563 else
17564   cat >conftest.$ac_ext <<_ACEOF
17565 #line $LINENO "configure"
17566 /* confdefs.h.  */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h.  */
17571 /* System header to define __stub macros and hopefully few prototypes,
17572     which can conflict with char $ac_func (); below.
17573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17574     <limits.h> exists even on freestanding compilers.  */
17575 #ifdef __STDC__
17576 # include <limits.h>
17577 #else
17578 # include <assert.h>
17579 #endif
17580 /* Override any gcc2 internal prototype to avoid an error.  */
17581 #ifdef __cplusplus
17582 extern "C"
17583 {
17584 #endif
17585 /* We use char because int might match the return type of a gcc2
17586    builtin and then its argument prototype would still apply.  */
17587 char $ac_func ();
17588 /* The GNU C library defines this for functions which it implements
17589     to always fail with ENOSYS.  Some functions are actually named
17590     something starting with __ and the normal name is an alias.  */
17591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17592 choke me
17593 #else
17594 char (*f) () = $ac_func;
17595 #endif
17596 #ifdef __cplusplus
17597 }
17598 #endif
17599
17600 int
17601 main ()
17602 {
17603 return f != $ac_func;
17604   ;
17605   return 0;
17606 }
17607 _ACEOF
17608 rm -f conftest.$ac_objext conftest$ac_exeext
17609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17610   (eval $ac_link) 2>&5
17611   ac_status=$?
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); } &&
17614          { ac_try='test -s conftest$ac_exeext'
17615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616   (eval $ac_try) 2>&5
17617   ac_status=$?
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); }; }; then
17620   eval "$as_ac_var=yes"
17621 else
17622   echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17624
17625 eval "$as_ac_var=no"
17626 fi
17627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17628 fi
17629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17631 if test `eval echo '${'$as_ac_var'}'` = yes; then
17632   cat >>confdefs.h <<_ACEOF
17633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17634 _ACEOF
17635
17636 else
17637   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
17638 fi
17639 done
17640
17641   fi
17642
17643   if test -n "$LIBMATHOBJS"; then
17644     need_libmath=yes
17645   fi
17646
17647
17648
17649   # Test wchar.h for mbstate_t, which is needed for char_traits and
17650   # others even if wchar_t support is not on.
17651   echo "$as_me:$LINENO: checking for mbstate_t" >&5
17652 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
17653   cat >conftest.$ac_ext <<_ACEOF
17654 #line $LINENO "configure"
17655 /* confdefs.h.  */
17656 _ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h.  */
17660 #include <wchar.h>
17661 int
17662 main ()
17663 {
17664 mbstate_t teststate;
17665   ;
17666   return 0;
17667 }
17668 _ACEOF
17669 rm -f conftest.$ac_objext
17670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17671   (eval $ac_compile) 2>&5
17672   ac_status=$?
17673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674   (exit $ac_status); } &&
17675          { ac_try='test -s conftest.$ac_objext'
17676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677   (eval $ac_try) 2>&5
17678   ac_status=$?
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); }; }; then
17681   have_mbstate_t=yes
17682 else
17683   echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17685
17686 have_mbstate_t=no
17687 fi
17688 rm -f conftest.$ac_objext conftest.$ac_ext
17689   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
17690 echo "${ECHO_T}$have_mbstate_t" >&6
17691   if test x"$have_mbstate_t" = xyes; then
17692     cat >>confdefs.h <<\_ACEOF
17693 #define HAVE_MBSTATE_T 1
17694 _ACEOF
17695
17696   fi
17697
17698   # Sanity check for existence of ISO C99 headers for extended encoding.
17699
17700 for ac_header in wchar.h
17701 do
17702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17704   echo "$as_me:$LINENO: checking for $ac_header" >&5
17705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17707   echo $ECHO_N "(cached) $ECHO_C" >&6
17708 fi
17709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17711 else
17712   # Is the header compilable?
17713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17715 cat >conftest.$ac_ext <<_ACEOF
17716 #line $LINENO "configure"
17717 /* confdefs.h.  */
17718 _ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h.  */
17722 $ac_includes_default
17723 #include <$ac_header>
17724 _ACEOF
17725 rm -f conftest.$ac_objext
17726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17727   (eval $ac_compile) 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); } &&
17731          { ac_try='test -s conftest.$ac_objext'
17732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733   (eval $ac_try) 2>&5
17734   ac_status=$?
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); }; }; then
17737   ac_header_compiler=yes
17738 else
17739   echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17741
17742 ac_header_compiler=no
17743 fi
17744 rm -f conftest.$ac_objext conftest.$ac_ext
17745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17746 echo "${ECHO_T}$ac_header_compiler" >&6
17747
17748 # Is the header present?
17749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17751 cat >conftest.$ac_ext <<_ACEOF
17752 #line $LINENO "configure"
17753 /* confdefs.h.  */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h.  */
17758 #include <$ac_header>
17759 _ACEOF
17760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17761   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17762   ac_status=$?
17763   grep -v '^ *+' conftest.er1 >conftest.err
17764   rm -f conftest.er1
17765   cat conftest.err >&5
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); } >/dev/null; then
17768   if test -s conftest.err; then
17769     ac_cpp_err=$ac_c_preproc_warn_flag
17770   else
17771     ac_cpp_err=
17772   fi
17773 else
17774   ac_cpp_err=yes
17775 fi
17776 if test -z "$ac_cpp_err"; then
17777   ac_header_preproc=yes
17778 else
17779   echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17781
17782   ac_header_preproc=no
17783 fi
17784 rm -f conftest.err conftest.$ac_ext
17785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17786 echo "${ECHO_T}$ac_header_preproc" >&6
17787
17788 # So?  What about this header?
17789 case $ac_header_compiler:$ac_header_preproc in
17790   yes:no )
17791     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17795     (
17796       cat <<\_ASBOX
17797 ## ------------------------------------ ##
17798 ## Report this to bug-autoconf@gnu.org. ##
17799 ## ------------------------------------ ##
17800 _ASBOX
17801     ) |
17802       sed "s/^/$as_me: WARNING:     /" >&2
17803     ;;
17804   no:yes )
17805     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17807     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17811     (
17812       cat <<\_ASBOX
17813 ## ------------------------------------ ##
17814 ## Report this to bug-autoconf@gnu.org. ##
17815 ## ------------------------------------ ##
17816 _ASBOX
17817     ) |
17818       sed "s/^/$as_me: WARNING:     /" >&2
17819     ;;
17820 esac
17821 echo "$as_me:$LINENO: checking for $ac_header" >&5
17822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17824   echo $ECHO_N "(cached) $ECHO_C" >&6
17825 else
17826   eval "$as_ac_Header=$ac_header_preproc"
17827 fi
17828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17830
17831 fi
17832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17833   cat >>confdefs.h <<_ACEOF
17834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17835 _ACEOF
17836  ac_has_wchar_h=yes
17837 else
17838   ac_has_wchar_h=no
17839 fi
17840
17841 done
17842
17843
17844 for ac_header in wctype.h
17845 do
17846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17848   echo "$as_me:$LINENO: checking for $ac_header" >&5
17849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17851   echo $ECHO_N "(cached) $ECHO_C" >&6
17852 fi
17853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17855 else
17856   # Is the header compilable?
17857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17859 cat >conftest.$ac_ext <<_ACEOF
17860 #line $LINENO "configure"
17861 /* confdefs.h.  */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h.  */
17866 $ac_includes_default
17867 #include <$ac_header>
17868 _ACEOF
17869 rm -f conftest.$ac_objext
17870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17871   (eval $ac_compile) 2>&5
17872   ac_status=$?
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); } &&
17875          { ac_try='test -s conftest.$ac_objext'
17876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877   (eval $ac_try) 2>&5
17878   ac_status=$?
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); }; }; then
17881   ac_header_compiler=yes
17882 else
17883   echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886 ac_header_compiler=no
17887 fi
17888 rm -f conftest.$ac_objext conftest.$ac_ext
17889 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17890 echo "${ECHO_T}$ac_header_compiler" >&6
17891
17892 # Is the header present?
17893 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17894 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17895 cat >conftest.$ac_ext <<_ACEOF
17896 #line $LINENO "configure"
17897 /* confdefs.h.  */
17898 _ACEOF
17899 cat confdefs.h >>conftest.$ac_ext
17900 cat >>conftest.$ac_ext <<_ACEOF
17901 /* end confdefs.h.  */
17902 #include <$ac_header>
17903 _ACEOF
17904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17905   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17906   ac_status=$?
17907   grep -v '^ *+' conftest.er1 >conftest.err
17908   rm -f conftest.er1
17909   cat conftest.err >&5
17910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); } >/dev/null; then
17912   if test -s conftest.err; then
17913     ac_cpp_err=$ac_c_preproc_warn_flag
17914   else
17915     ac_cpp_err=
17916   fi
17917 else
17918   ac_cpp_err=yes
17919 fi
17920 if test -z "$ac_cpp_err"; then
17921   ac_header_preproc=yes
17922 else
17923   echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17925
17926   ac_header_preproc=no
17927 fi
17928 rm -f conftest.err conftest.$ac_ext
17929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17930 echo "${ECHO_T}$ac_header_preproc" >&6
17931
17932 # So?  What about this header?
17933 case $ac_header_compiler:$ac_header_preproc in
17934   yes:no )
17935     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17939     (
17940       cat <<\_ASBOX
17941 ## ------------------------------------ ##
17942 ## Report this to bug-autoconf@gnu.org. ##
17943 ## ------------------------------------ ##
17944 _ASBOX
17945     ) |
17946       sed "s/^/$as_me: WARNING:     /" >&2
17947     ;;
17948   no:yes )
17949     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17951     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17955     (
17956       cat <<\_ASBOX
17957 ## ------------------------------------ ##
17958 ## Report this to bug-autoconf@gnu.org. ##
17959 ## ------------------------------------ ##
17960 _ASBOX
17961     ) |
17962       sed "s/^/$as_me: WARNING:     /" >&2
17963     ;;
17964 esac
17965 echo "$as_me:$LINENO: checking for $ac_header" >&5
17966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17968   echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970   eval "$as_ac_Header=$ac_header_preproc"
17971 fi
17972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17974
17975 fi
17976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17977   cat >>confdefs.h <<_ACEOF
17978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17979 _ACEOF
17980  ac_has_wctype_h=yes
17981 else
17982   ac_has_wctype_h=no
17983 fi
17984
17985 done
17986
17987
17988   # Only continue checking if the ISO C99 headers exist and support is on.
17989   if test x"$ac_has_wchar_h" = xyes &&
17990      test x"$ac_has_wctype_h" = xyes &&
17991      test x"$enable_c_mbchar" != xno; then
17992
17993     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
17994     # numeric_limits can instantiate type_traits<wchar_t>
17995     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
17996 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
17997     cat >conftest.$ac_ext <<_ACEOF
17998 #line $LINENO "configure"
17999 /* confdefs.h.  */
18000 _ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h.  */
18004 #include <wchar.h>
18005 int
18006 main ()
18007 {
18008 int i = WCHAR_MIN; int j = WCHAR_MAX;
18009   ;
18010   return 0;
18011 }
18012 _ACEOF
18013 rm -f conftest.$ac_objext
18014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18015   (eval $ac_compile) 2>&5
18016   ac_status=$?
18017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); } &&
18019          { ac_try='test -s conftest.$ac_objext'
18020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021   (eval $ac_try) 2>&5
18022   ac_status=$?
18023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); }; }; then
18025   has_wchar_minmax=yes
18026 else
18027   echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18029
18030 has_wchar_minmax=no
18031 fi
18032 rm -f conftest.$ac_objext conftest.$ac_ext
18033     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
18034 echo "${ECHO_T}$has_wchar_minmax" >&6
18035
18036     # Test wchar.h for WEOF, which is what we use to determine whether
18037     # to specialize for char_traits<wchar_t> or not.
18038     echo "$as_me:$LINENO: checking for WEOF" >&5
18039 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
18040     cat >conftest.$ac_ext <<_ACEOF
18041 #line $LINENO "configure"
18042 /* confdefs.h.  */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h.  */
18047
18048       #include <wchar.h>
18049       #include <stddef.h>
18050 int
18051 main ()
18052 {
18053 wint_t i = WEOF;
18054   ;
18055   return 0;
18056 }
18057 _ACEOF
18058 rm -f conftest.$ac_objext
18059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18060   (eval $ac_compile) 2>&5
18061   ac_status=$?
18062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063   (exit $ac_status); } &&
18064          { ac_try='test -s conftest.$ac_objext'
18065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066   (eval $ac_try) 2>&5
18067   ac_status=$?
18068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); }; }; then
18070   has_weof=yes
18071 else
18072   echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18074
18075 has_weof=no
18076 fi
18077 rm -f conftest.$ac_objext conftest.$ac_ext
18078     echo "$as_me:$LINENO: result: $has_weof" >&5
18079 echo "${ECHO_T}$has_weof" >&6
18080
18081     # Tests for wide character functions used in char_traits<wchar_t>.
18082     ac_wfuncs=yes
18083
18084
18085
18086
18087
18088
18089 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
18090 do
18091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18092 echo "$as_me:$LINENO: checking for $ac_func" >&5
18093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18094 if eval "test \"\${$as_ac_var+set}\" = set"; then
18095   echo $ECHO_N "(cached) $ECHO_C" >&6
18096 else
18097   cat >conftest.$ac_ext <<_ACEOF
18098 #line $LINENO "configure"
18099 /* confdefs.h.  */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h.  */
18104 /* System header to define __stub macros and hopefully few prototypes,
18105     which can conflict with char $ac_func (); below.
18106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18107     <limits.h> exists even on freestanding compilers.  */
18108 #ifdef __STDC__
18109 # include <limits.h>
18110 #else
18111 # include <assert.h>
18112 #endif
18113 /* Override any gcc2 internal prototype to avoid an error.  */
18114 #ifdef __cplusplus
18115 extern "C"
18116 {
18117 #endif
18118 /* We use char because int might match the return type of a gcc2
18119    builtin and then its argument prototype would still apply.  */
18120 char $ac_func ();
18121 /* The GNU C library defines this for functions which it implements
18122     to always fail with ENOSYS.  Some functions are actually named
18123     something starting with __ and the normal name is an alias.  */
18124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18125 choke me
18126 #else
18127 char (*f) () = $ac_func;
18128 #endif
18129 #ifdef __cplusplus
18130 }
18131 #endif
18132
18133 int
18134 main ()
18135 {
18136 return f != $ac_func;
18137   ;
18138   return 0;
18139 }
18140 _ACEOF
18141 rm -f conftest.$ac_objext conftest$ac_exeext
18142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18143   (eval $ac_link) 2>&5
18144   ac_status=$?
18145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146   (exit $ac_status); } &&
18147          { ac_try='test -s conftest$ac_exeext'
18148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18149   (eval $ac_try) 2>&5
18150   ac_status=$?
18151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152   (exit $ac_status); }; }; then
18153   eval "$as_ac_var=yes"
18154 else
18155   echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18157
18158 eval "$as_ac_var=no"
18159 fi
18160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18161 fi
18162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18164 if test `eval echo '${'$as_ac_var'}'` = yes; then
18165   cat >>confdefs.h <<_ACEOF
18166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18167 _ACEOF
18168
18169 else
18170   ac_wfuncs=no
18171 fi
18172 done
18173
18174
18175     # Checks for names injected into std:: by the c_std headers.
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
18227     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
18228     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
18229     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
18230     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
18231     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
18232 do
18233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18234 echo "$as_me:$LINENO: checking for $ac_func" >&5
18235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18236 if eval "test \"\${$as_ac_var+set}\" = set"; then
18237   echo $ECHO_N "(cached) $ECHO_C" >&6
18238 else
18239   cat >conftest.$ac_ext <<_ACEOF
18240 #line $LINENO "configure"
18241 /* confdefs.h.  */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h.  */
18246 /* System header to define __stub macros and hopefully few prototypes,
18247     which can conflict with char $ac_func (); below.
18248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18249     <limits.h> exists even on freestanding compilers.  */
18250 #ifdef __STDC__
18251 # include <limits.h>
18252 #else
18253 # include <assert.h>
18254 #endif
18255 /* Override any gcc2 internal prototype to avoid an error.  */
18256 #ifdef __cplusplus
18257 extern "C"
18258 {
18259 #endif
18260 /* We use char because int might match the return type of a gcc2
18261    builtin and then its argument prototype would still apply.  */
18262 char $ac_func ();
18263 /* The GNU C library defines this for functions which it implements
18264     to always fail with ENOSYS.  Some functions are actually named
18265     something starting with __ and the normal name is an alias.  */
18266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18267 choke me
18268 #else
18269 char (*f) () = $ac_func;
18270 #endif
18271 #ifdef __cplusplus
18272 }
18273 #endif
18274
18275 int
18276 main ()
18277 {
18278 return f != $ac_func;
18279   ;
18280   return 0;
18281 }
18282 _ACEOF
18283 rm -f conftest.$ac_objext conftest$ac_exeext
18284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18285   (eval $ac_link) 2>&5
18286   ac_status=$?
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); } &&
18289          { ac_try='test -s conftest$ac_exeext'
18290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291   (eval $ac_try) 2>&5
18292   ac_status=$?
18293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294   (exit $ac_status); }; }; then
18295   eval "$as_ac_var=yes"
18296 else
18297   echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18299
18300 eval "$as_ac_var=no"
18301 fi
18302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18303 fi
18304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18306 if test `eval echo '${'$as_ac_var'}'` = yes; then
18307   cat >>confdefs.h <<_ACEOF
18308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18309 _ACEOF
18310
18311 else
18312   ac_wfuncs=no
18313 fi
18314 done
18315
18316
18317     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
18318 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
18319     if test x"$has_weof" = xyes &&
18320        test x"$has_wchar_minmax" = xyes &&
18321        test x"$ac_wfuncs" = xyes;
18322     then
18323       ac_isoC99_wchar_t=yes
18324     else
18325       ac_isoC99_wchar_t=no
18326     fi
18327     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
18328 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
18329
18330     # Use iconv for wchar_t to char conversions. As such, check for
18331     # X/Open Portability Guide, version 2 features (XPG2).
18332     if test "${ac_cv_header_iconv_h+set}" = set; then
18333   echo "$as_me:$LINENO: checking for iconv.h" >&5
18334 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
18335 if test "${ac_cv_header_iconv_h+set}" = set; then
18336   echo $ECHO_N "(cached) $ECHO_C" >&6
18337 fi
18338 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
18339 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
18340 else
18341   # Is the header compilable?
18342 echo "$as_me:$LINENO: checking iconv.h usability" >&5
18343 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
18344 cat >conftest.$ac_ext <<_ACEOF
18345 #line $LINENO "configure"
18346 /* confdefs.h.  */
18347 _ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h.  */
18351 $ac_includes_default
18352 #include <iconv.h>
18353 _ACEOF
18354 rm -f conftest.$ac_objext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18356   (eval $ac_compile) 2>&5
18357   ac_status=$?
18358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359   (exit $ac_status); } &&
18360          { ac_try='test -s conftest.$ac_objext'
18361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362   (eval $ac_try) 2>&5
18363   ac_status=$?
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); }; }; then
18366   ac_header_compiler=yes
18367 else
18368   echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18370
18371 ac_header_compiler=no
18372 fi
18373 rm -f conftest.$ac_objext conftest.$ac_ext
18374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18375 echo "${ECHO_T}$ac_header_compiler" >&6
18376
18377 # Is the header present?
18378 echo "$as_me:$LINENO: checking iconv.h presence" >&5
18379 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
18380 cat >conftest.$ac_ext <<_ACEOF
18381 #line $LINENO "configure"
18382 /* confdefs.h.  */
18383 _ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h.  */
18387 #include <iconv.h>
18388 _ACEOF
18389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18390   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18391   ac_status=$?
18392   grep -v '^ *+' conftest.er1 >conftest.err
18393   rm -f conftest.er1
18394   cat conftest.err >&5
18395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396   (exit $ac_status); } >/dev/null; then
18397   if test -s conftest.err; then
18398     ac_cpp_err=$ac_c_preproc_warn_flag
18399   else
18400     ac_cpp_err=
18401   fi
18402 else
18403   ac_cpp_err=yes
18404 fi
18405 if test -z "$ac_cpp_err"; then
18406   ac_header_preproc=yes
18407 else
18408   echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18410
18411   ac_header_preproc=no
18412 fi
18413 rm -f conftest.err conftest.$ac_ext
18414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18415 echo "${ECHO_T}$ac_header_preproc" >&6
18416
18417 # So?  What about this header?
18418 case $ac_header_compiler:$ac_header_preproc in
18419   yes:no )
18420     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
18421 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18422     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
18423 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
18424     (
18425       cat <<\_ASBOX
18426 ## ------------------------------------ ##
18427 ## Report this to bug-autoconf@gnu.org. ##
18428 ## ------------------------------------ ##
18429 _ASBOX
18430     ) |
18431       sed "s/^/$as_me: WARNING:     /" >&2
18432     ;;
18433   no:yes )
18434     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
18435 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
18436     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
18437 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
18438     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
18439 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
18440     (
18441       cat <<\_ASBOX
18442 ## ------------------------------------ ##
18443 ## Report this to bug-autoconf@gnu.org. ##
18444 ## ------------------------------------ ##
18445 _ASBOX
18446     ) |
18447       sed "s/^/$as_me: WARNING:     /" >&2
18448     ;;
18449 esac
18450 echo "$as_me:$LINENO: checking for iconv.h" >&5
18451 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
18452 if test "${ac_cv_header_iconv_h+set}" = set; then
18453   echo $ECHO_N "(cached) $ECHO_C" >&6
18454 else
18455   ac_cv_header_iconv_h=$ac_header_preproc
18456 fi
18457 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
18458 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
18459
18460 fi
18461 if test $ac_cv_header_iconv_h = yes; then
18462   ac_has_iconv_h=yes
18463 else
18464   ac_has_iconv_h=no
18465 fi
18466
18467
18468     if test "${ac_cv_header_langinfo_h+set}" = set; then
18469   echo "$as_me:$LINENO: checking for langinfo.h" >&5
18470 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
18471 if test "${ac_cv_header_langinfo_h+set}" = set; then
18472   echo $ECHO_N "(cached) $ECHO_C" >&6
18473 fi
18474 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
18475 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
18476 else
18477   # Is the header compilable?
18478 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
18479 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
18480 cat >conftest.$ac_ext <<_ACEOF
18481 #line $LINENO "configure"
18482 /* confdefs.h.  */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h.  */
18487 $ac_includes_default
18488 #include <langinfo.h>
18489 _ACEOF
18490 rm -f conftest.$ac_objext
18491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18492   (eval $ac_compile) 2>&5
18493   ac_status=$?
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); } &&
18496          { ac_try='test -s conftest.$ac_objext'
18497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498   (eval $ac_try) 2>&5
18499   ac_status=$?
18500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501   (exit $ac_status); }; }; then
18502   ac_header_compiler=yes
18503 else
18504   echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18506
18507 ac_header_compiler=no
18508 fi
18509 rm -f conftest.$ac_objext conftest.$ac_ext
18510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18511 echo "${ECHO_T}$ac_header_compiler" >&6
18512
18513 # Is the header present?
18514 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
18515 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
18516 cat >conftest.$ac_ext <<_ACEOF
18517 #line $LINENO "configure"
18518 /* confdefs.h.  */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h.  */
18523 #include <langinfo.h>
18524 _ACEOF
18525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18527   ac_status=$?
18528   grep -v '^ *+' conftest.er1 >conftest.err
18529   rm -f conftest.er1
18530   cat conftest.err >&5
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); } >/dev/null; then
18533   if test -s conftest.err; then
18534     ac_cpp_err=$ac_c_preproc_warn_flag
18535   else
18536     ac_cpp_err=
18537   fi
18538 else
18539   ac_cpp_err=yes
18540 fi
18541 if test -z "$ac_cpp_err"; then
18542   ac_header_preproc=yes
18543 else
18544   echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18546
18547   ac_header_preproc=no
18548 fi
18549 rm -f conftest.err conftest.$ac_ext
18550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18551 echo "${ECHO_T}$ac_header_preproc" >&6
18552
18553 # So?  What about this header?
18554 case $ac_header_compiler:$ac_header_preproc in
18555   yes:no )
18556     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
18557 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18558     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
18559 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
18560     (
18561       cat <<\_ASBOX
18562 ## ------------------------------------ ##
18563 ## Report this to bug-autoconf@gnu.org. ##
18564 ## ------------------------------------ ##
18565 _ASBOX
18566     ) |
18567       sed "s/^/$as_me: WARNING:     /" >&2
18568     ;;
18569   no:yes )
18570     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
18571 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
18572     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
18573 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
18574     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
18575 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
18576     (
18577       cat <<\_ASBOX
18578 ## ------------------------------------ ##
18579 ## Report this to bug-autoconf@gnu.org. ##
18580 ## ------------------------------------ ##
18581 _ASBOX
18582     ) |
18583       sed "s/^/$as_me: WARNING:     /" >&2
18584     ;;
18585 esac
18586 echo "$as_me:$LINENO: checking for langinfo.h" >&5
18587 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
18588 if test "${ac_cv_header_langinfo_h+set}" = set; then
18589   echo $ECHO_N "(cached) $ECHO_C" >&6
18590 else
18591   ac_cv_header_langinfo_h=$ac_header_preproc
18592 fi
18593 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
18594 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
18595
18596 fi
18597 if test $ac_cv_header_langinfo_h = yes; then
18598   ac_has_langinfo_h=yes
18599 else
18600   ac_has_langinfo_h=no
18601 fi
18602
18603
18604
18605     # Check for existence of libiconv.a providing XPG2 wchar_t support.
18606     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
18607 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
18608 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
18609   echo $ECHO_N "(cached) $ECHO_C" >&6
18610 else
18611   ac_check_lib_save_LIBS=$LIBS
18612 LIBS="-liconv  $LIBS"
18613 cat >conftest.$ac_ext <<_ACEOF
18614 #line $LINENO "configure"
18615 /* confdefs.h.  */
18616 _ACEOF
18617 cat confdefs.h >>conftest.$ac_ext
18618 cat >>conftest.$ac_ext <<_ACEOF
18619 /* end confdefs.h.  */
18620
18621 /* Override any gcc2 internal prototype to avoid an error.  */
18622 #ifdef __cplusplus
18623 extern "C"
18624 #endif
18625 /* We use char because int might match the return type of a gcc2
18626    builtin and then its argument prototype would still apply.  */
18627 char iconv ();
18628 int
18629 main ()
18630 {
18631 iconv ();
18632   ;
18633   return 0;
18634 }
18635 _ACEOF
18636 rm -f conftest.$ac_objext conftest$ac_exeext
18637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18638   (eval $ac_link) 2>&5
18639   ac_status=$?
18640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641   (exit $ac_status); } &&
18642          { ac_try='test -s conftest$ac_exeext'
18643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644   (eval $ac_try) 2>&5
18645   ac_status=$?
18646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647   (exit $ac_status); }; }; then
18648   ac_cv_lib_iconv_iconv=yes
18649 else
18650   echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18652
18653 ac_cv_lib_iconv_iconv=no
18654 fi
18655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18656 LIBS=$ac_check_lib_save_LIBS
18657 fi
18658 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
18659 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
18660 if test $ac_cv_lib_iconv_iconv = yes; then
18661   libiconv="-liconv"
18662 fi
18663
18664     ac_save_LIBS="$LIBS"
18665     LIBS="$LIBS $libiconv"
18666
18667
18668
18669
18670
18671 for ac_func in iconv_open iconv_close iconv nl_langinfo
18672 do
18673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18674 echo "$as_me:$LINENO: checking for $ac_func" >&5
18675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18676 if eval "test \"\${$as_ac_var+set}\" = set"; then
18677   echo $ECHO_N "(cached) $ECHO_C" >&6
18678 else
18679   cat >conftest.$ac_ext <<_ACEOF
18680 #line $LINENO "configure"
18681 /* confdefs.h.  */
18682 _ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h.  */
18686 /* System header to define __stub macros and hopefully few prototypes,
18687     which can conflict with char $ac_func (); below.
18688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18689     <limits.h> exists even on freestanding compilers.  */
18690 #ifdef __STDC__
18691 # include <limits.h>
18692 #else
18693 # include <assert.h>
18694 #endif
18695 /* Override any gcc2 internal prototype to avoid an error.  */
18696 #ifdef __cplusplus
18697 extern "C"
18698 {
18699 #endif
18700 /* We use char because int might match the return type of a gcc2
18701    builtin and then its argument prototype would still apply.  */
18702 char $ac_func ();
18703 /* The GNU C library defines this for functions which it implements
18704     to always fail with ENOSYS.  Some functions are actually named
18705     something starting with __ and the normal name is an alias.  */
18706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18707 choke me
18708 #else
18709 char (*f) () = $ac_func;
18710 #endif
18711 #ifdef __cplusplus
18712 }
18713 #endif
18714
18715 int
18716 main ()
18717 {
18718 return f != $ac_func;
18719   ;
18720   return 0;
18721 }
18722 _ACEOF
18723 rm -f conftest.$ac_objext conftest$ac_exeext
18724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725   (eval $ac_link) 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); } &&
18729          { ac_try='test -s conftest$ac_exeext'
18730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731   (eval $ac_try) 2>&5
18732   ac_status=$?
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); }; }; then
18735   eval "$as_ac_var=yes"
18736 else
18737   echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740 eval "$as_ac_var=no"
18741 fi
18742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18743 fi
18744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18746 if test `eval echo '${'$as_ac_var'}'` = yes; then
18747   cat >>confdefs.h <<_ACEOF
18748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18749 _ACEOF
18750  ac_XPG2funcs=yes
18751 else
18752   ac_XPG2funcs=no
18753 fi
18754 done
18755
18756
18757     LIBS="$ac_save_LIBS"
18758
18759     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
18760 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
18761     if test x"$ac_has_iconv_h" = xyes &&
18762        test x"$ac_has_langinfo_h" = xyes &&
18763        test x"$ac_XPG2funcs" = xyes;
18764     then
18765       ac_XPG2_wchar_t=yes
18766     else
18767       ac_XPG2_wchar_t=no
18768     fi
18769     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
18770 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
18771
18772     # At the moment, only enable wchar_t specializations if all the
18773     # above support is present.
18774     if test x"$ac_isoC99_wchar_t" = xyes &&
18775        test x"$ac_XPG2_wchar_t" = xyes;
18776     then
18777       cat >>confdefs.h <<\_ACEOF
18778 #define _GLIBCXX_USE_WCHAR_T 1
18779 _ACEOF
18780
18781       enable_wchar_t=yes
18782     fi
18783   fi
18784   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
18785 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
18786   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
18787 echo "${ECHO_T}$enable_wchar_t" >&6
18788
18789     cat >>confdefs.h <<\_ACEOF
18790 #define HAVE_COSF 1
18791 _ACEOF
18792
18793     cat >>confdefs.h <<\_ACEOF
18794 #define HAVE_COSL 1
18795 _ACEOF
18796
18797     cat >>confdefs.h <<\_ACEOF
18798 #define HAVE_COSHF 1
18799 _ACEOF
18800
18801     cat >>confdefs.h <<\_ACEOF
18802 #define HAVE_COSHL 1
18803 _ACEOF
18804
18805     cat >>confdefs.h <<\_ACEOF
18806 #define HAVE_LOGF 1
18807 _ACEOF
18808
18809     cat >>confdefs.h <<\_ACEOF
18810 #define HAVE_LOGL 1
18811 _ACEOF
18812
18813     cat >>confdefs.h <<\_ACEOF
18814 #define HAVE_LOG10F 1
18815 _ACEOF
18816
18817     cat >>confdefs.h <<\_ACEOF
18818 #define HAVE_LOG10L 1
18819 _ACEOF
18820
18821     cat >>confdefs.h <<\_ACEOF
18822 #define HAVE_SINF 1
18823 _ACEOF
18824
18825     cat >>confdefs.h <<\_ACEOF
18826 #define HAVE_SINL 1
18827 _ACEOF
18828
18829     cat >>confdefs.h <<\_ACEOF
18830 #define HAVE_SINHF 1
18831 _ACEOF
18832
18833     cat >>confdefs.h <<\_ACEOF
18834 #define HAVE_SINHL 1
18835 _ACEOF
18836
18837     ;;
18838   *-solaris*)
18839     #case "$target" in
18840     #  *-solaris2.5)
18841     #    os_include_dir="os/solaris/solaris2.5"
18842     #    ;;
18843     #  *-solaris2.6)
18844     #    os_include_dir="os/solaris/solaris2.6"
18845     #    ;;
18846     #  *-solaris2.7 | *-solaris2.8 | *-solaris2.9)
18847     #    os_include_dir="os/solaris/solaris2.7"
18848     #    ;;
18849     #esac
18850     cat >>confdefs.h <<\_ACEOF
18851 #define HAVE_STRTOF 1
18852 _ACEOF
18853
18854     cat >>confdefs.h <<\_ACEOF
18855 #define HAVE_STRTOLD 1
18856 _ACEOF
18857
18858     cat >>confdefs.h <<\_ACEOF
18859 #define HAVE_MMAP 1
18860 _ACEOF
18861
18862     cat >>confdefs.h <<\_ACEOF
18863 #define HAVE_COPYSIGN 1
18864 _ACEOF
18865
18866     cat >>confdefs.h <<\_ACEOF
18867 #define HAVE_ISNAN 1
18868 _ACEOF
18869
18870     cat >>confdefs.h <<\_ACEOF
18871 #define HAVE_ISNANF 1
18872 _ACEOF
18873
18874     cat >>confdefs.h <<\_ACEOF
18875 #define HAVE_MODFF 1
18876 _ACEOF
18877
18878     cat >>confdefs.h <<\_ACEOF
18879 #define HAVE_HYPOT 1
18880 _ACEOF
18881
18882     ;;
18883   *-windiss*)
18884     #os_include_dir="os/windiss"
18885     cat >>confdefs.h <<\_ACEOF
18886 #define HAVE_ACOSF 1
18887 _ACEOF
18888
18889     cat >>confdefs.h <<\_ACEOF
18890 #define HAVE_ASINF 1
18891 _ACEOF
18892
18893     cat >>confdefs.h <<\_ACEOF
18894 #define HAVE_ATAN2F 1
18895 _ACEOF
18896
18897     cat >>confdefs.h <<\_ACEOF
18898 #define HAVE_ATANF 1
18899 _ACEOF
18900
18901     cat >>confdefs.h <<\_ACEOF
18902 #define HAVE_CEILF 1
18903 _ACEOF
18904
18905     cat >>confdefs.h <<\_ACEOF
18906 #define HAVE_COPYSIGN 1
18907 _ACEOF
18908
18909     cat >>confdefs.h <<\_ACEOF
18910 #define HAVE_COPYSIGNF 1
18911 _ACEOF
18912
18913     cat >>confdefs.h <<\_ACEOF
18914 #define HAVE_COSF 1
18915 _ACEOF
18916
18917     cat >>confdefs.h <<\_ACEOF
18918 #define HAVE_COSHF 1
18919 _ACEOF
18920
18921     cat >>confdefs.h <<\_ACEOF
18922 #define HAVE_EXPF 1
18923 _ACEOF
18924
18925     cat >>confdefs.h <<\_ACEOF
18926 #define HAVE_FABSF 1
18927 _ACEOF
18928
18929     cat >>confdefs.h <<\_ACEOF
18930 #define HAVE_FLOORF 1
18931 _ACEOF
18932
18933     cat >>confdefs.h <<\_ACEOF
18934 #define HAVE_FMODF 1
18935 _ACEOF
18936
18937     cat >>confdefs.h <<\_ACEOF
18938 #define HAVE_FREXPF 1
18939 _ACEOF
18940
18941     cat >>confdefs.h <<\_ACEOF
18942 #define HAVE_LDEXPF 1
18943 _ACEOF
18944
18945     cat >>confdefs.h <<\_ACEOF
18946 #define HAVE_LOG10F 1
18947 _ACEOF
18948
18949     cat >>confdefs.h <<\_ACEOF
18950 #define HAVE_LOGF 1
18951 _ACEOF
18952
18953     cat >>confdefs.h <<\_ACEOF
18954 #define HAVE_MODFF 1
18955 _ACEOF
18956
18957     cat >>confdefs.h <<\_ACEOF
18958 #define HAVE_POWF 1
18959 _ACEOF
18960
18961     cat >>confdefs.h <<\_ACEOF
18962 #define HAVE_SINF 1
18963 _ACEOF
18964
18965     cat >>confdefs.h <<\_ACEOF
18966 #define HAVE_SINHF 1
18967 _ACEOF
18968
18969     cat >>confdefs.h <<\_ACEOF
18970 #define HAVE_SQRTF 1
18971 _ACEOF
18972
18973     cat >>confdefs.h <<\_ACEOF
18974 #define HAVE_TANF 1
18975 _ACEOF
18976
18977     cat >>confdefs.h <<\_ACEOF
18978 #define HAVE_TANHF 1
18979 _ACEOF
18980
18981     ;;
18982   *)
18983     { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
18984 echo "$as_me: error: No support for this host/target combination." >&2;}
18985    { (exit 1); exit 1; }; }
18986    ;;
18987 esac
18988
18989
18990   fi
18991
18992   # At some point, we should differentiate between architectures
18993   # like x86, which have long double versions, and alpha/powerpc/etc.,
18994   # which don't. For the time being, punt.
18995   if test x"long_double_math_on_this_cpu" = x"yes"; then
18996     cat >>confdefs.h <<\_ACEOF
18997 #define HAVE_ACOSL 1
18998 _ACEOF
18999
19000     cat >>confdefs.h <<\_ACEOF
19001 #define HAVE_ASINL 1
19002 _ACEOF
19003
19004     cat >>confdefs.h <<\_ACEOF
19005 #define HAVE_ATAN2L 1
19006 _ACEOF
19007
19008     cat >>confdefs.h <<\_ACEOF
19009 #define HAVE_ATANL 1
19010 _ACEOF
19011
19012     cat >>confdefs.h <<\_ACEOF
19013 #define HAVE_CEILL 1
19014 _ACEOF
19015
19016     cat >>confdefs.h <<\_ACEOF
19017 #define HAVE_COPYSIGNL 1
19018 _ACEOF
19019
19020     cat >>confdefs.h <<\_ACEOF
19021 #define HAVE_COSL 1
19022 _ACEOF
19023
19024     cat >>confdefs.h <<\_ACEOF
19025 #define HAVE_COSHL 1
19026 _ACEOF
19027
19028     cat >>confdefs.h <<\_ACEOF
19029 #define HAVE_EXPL 1
19030 _ACEOF
19031
19032     cat >>confdefs.h <<\_ACEOF
19033 #define HAVE_FABSL 1
19034 _ACEOF
19035
19036     cat >>confdefs.h <<\_ACEOF
19037 #define HAVE_FLOORL 1
19038 _ACEOF
19039
19040     cat >>confdefs.h <<\_ACEOF
19041 #define HAVE_FMODL 1
19042 _ACEOF
19043
19044     cat >>confdefs.h <<\_ACEOF
19045 #define HAVE_FREXPL 1
19046 _ACEOF
19047
19048     cat >>confdefs.h <<\_ACEOF
19049 #define HAVE_LDEXPL 1
19050 _ACEOF
19051
19052     cat >>confdefs.h <<\_ACEOF
19053 #define HAVE_LOG10L 1
19054 _ACEOF
19055
19056     cat >>confdefs.h <<\_ACEOF
19057 #define HAVE_LOGL 1
19058 _ACEOF
19059
19060     cat >>confdefs.h <<\_ACEOF
19061 #define HAVE_MODFL 1
19062 _ACEOF
19063
19064     cat >>confdefs.h <<\_ACEOF
19065 #define HAVE_POWL 1
19066 _ACEOF
19067
19068     cat >>confdefs.h <<\_ACEOF
19069 #define HAVE_SINCOSL 1
19070 _ACEOF
19071
19072     cat >>confdefs.h <<\_ACEOF
19073 #define HAVE_SINL 1
19074 _ACEOF
19075
19076     cat >>confdefs.h <<\_ACEOF
19077 #define HAVE_SINHL 1
19078 _ACEOF
19079
19080     cat >>confdefs.h <<\_ACEOF
19081 #define HAVE_SQRTL 1
19082 _ACEOF
19083
19084     cat >>confdefs.h <<\_ACEOF
19085 #define HAVE_TANL 1
19086 _ACEOF
19087
19088     cat >>confdefs.h <<\_ACEOF
19089 #define HAVE_TANHL 1
19090 _ACEOF
19091
19092   fi
19093
19094 else
19095
19096   # We are being configured natively.  We can do more elaborate tests that
19097   # include AC_TRY_COMPILE now, as the linker is assumed to be working.
19098   GLIBCXX_IS_NATIVE=true
19099   CANADIAN=no
19100
19101   # Check for available headers.
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
19116   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
19117   sys/types.h
19118 do
19119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19121   echo "$as_me:$LINENO: checking for $ac_header" >&5
19122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19124   echo $ECHO_N "(cached) $ECHO_C" >&6
19125 fi
19126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19128 else
19129   # Is the header compilable?
19130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19132 cat >conftest.$ac_ext <<_ACEOF
19133 #line $LINENO "configure"
19134 /* confdefs.h.  */
19135 _ACEOF
19136 cat confdefs.h >>conftest.$ac_ext
19137 cat >>conftest.$ac_ext <<_ACEOF
19138 /* end confdefs.h.  */
19139 $ac_includes_default
19140 #include <$ac_header>
19141 _ACEOF
19142 rm -f conftest.$ac_objext
19143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19144   (eval $ac_compile) 2>&5
19145   ac_status=$?
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); } &&
19148          { ac_try='test -s conftest.$ac_objext'
19149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150   (eval $ac_try) 2>&5
19151   ac_status=$?
19152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); }; }; then
19154   ac_header_compiler=yes
19155 else
19156   echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19158
19159 ac_header_compiler=no
19160 fi
19161 rm -f conftest.$ac_objext conftest.$ac_ext
19162 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19163 echo "${ECHO_T}$ac_header_compiler" >&6
19164
19165 # Is the header present?
19166 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19168 cat >conftest.$ac_ext <<_ACEOF
19169 #line $LINENO "configure"
19170 /* confdefs.h.  */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h.  */
19175 #include <$ac_header>
19176 _ACEOF
19177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19178   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19179   ac_status=$?
19180   grep -v '^ *+' conftest.er1 >conftest.err
19181   rm -f conftest.er1
19182   cat conftest.err >&5
19183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); } >/dev/null; then
19185   if test -s conftest.err; then
19186     ac_cpp_err=$ac_c_preproc_warn_flag
19187   else
19188     ac_cpp_err=
19189   fi
19190 else
19191   ac_cpp_err=yes
19192 fi
19193 if test -z "$ac_cpp_err"; then
19194   ac_header_preproc=yes
19195 else
19196   echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19198
19199   ac_header_preproc=no
19200 fi
19201 rm -f conftest.err conftest.$ac_ext
19202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19203 echo "${ECHO_T}$ac_header_preproc" >&6
19204
19205 # So?  What about this header?
19206 case $ac_header_compiler:$ac_header_preproc in
19207   yes:no )
19208     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19212     (
19213       cat <<\_ASBOX
19214 ## ------------------------------------ ##
19215 ## Report this to bug-autoconf@gnu.org. ##
19216 ## ------------------------------------ ##
19217 _ASBOX
19218     ) |
19219       sed "s/^/$as_me: WARNING:     /" >&2
19220     ;;
19221   no:yes )
19222     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19224     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19228     (
19229       cat <<\_ASBOX
19230 ## ------------------------------------ ##
19231 ## Report this to bug-autoconf@gnu.org. ##
19232 ## ------------------------------------ ##
19233 _ASBOX
19234     ) |
19235       sed "s/^/$as_me: WARNING:     /" >&2
19236     ;;
19237 esac
19238 echo "$as_me:$LINENO: checking for $ac_header" >&5
19239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19241   echo $ECHO_N "(cached) $ECHO_C" >&6
19242 else
19243   eval "$as_ac_Header=$ac_header_preproc"
19244 fi
19245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19247
19248 fi
19249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19250   cat >>confdefs.h <<_ACEOF
19251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19252 _ACEOF
19253
19254 fi
19255
19256 done
19257
19258
19259
19260   # All these tests are for C++; save the language and the compiler flags.
19261   # The CXXFLAGS thing is suspicious, but based on similar bits previously
19262   # found in GLIBCXX_CONFIGURE.
19263
19264
19265   ac_ext=cc
19266 ac_cpp='$CXXCPP $CPPFLAGS'
19267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19270
19271   ac_test_CXXFLAGS="${CXXFLAGS+set}"
19272   ac_save_CXXFLAGS="$CXXFLAGS"
19273
19274   # Check for maintainer-mode bits.
19275   if test x"$USE_MAINTAINER_MODE" = xno; then
19276     WERROR=''
19277   else
19278     WERROR='-Werror'
19279   fi
19280
19281   # Check for -ffunction-sections -fdata-sections
19282   echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
19283 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
19284   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
19285   cat >conftest.$ac_ext <<_ACEOF
19286 #line $LINENO "configure"
19287 /* confdefs.h.  */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h.  */
19292
19293 int
19294 main ()
19295 {
19296 int foo;
19297   ;
19298   return 0;
19299 }
19300 _ACEOF
19301 rm -f conftest.$ac_objext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19303   (eval $ac_compile) 2>&5
19304   ac_status=$?
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); } &&
19307          { ac_try='test -s conftest.$ac_objext'
19308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309   (eval $ac_try) 2>&5
19310   ac_status=$?
19311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312   (exit $ac_status); }; }; then
19313   ac_fdsections=yes
19314 else
19315   echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.$ac_ext >&5
19317
19318 ac_fdsections=no
19319 fi
19320 rm -f conftest.$ac_objext conftest.$ac_ext
19321   if test "$ac_test_CXXFLAGS" = set; then
19322     CXXFLAGS="$ac_save_CXXFLAGS"
19323   else
19324     # this is the suspicious part
19325     CXXFLAGS=''
19326   fi
19327   if test x"$ac_fdsections" = x"yes"; then
19328     SECTION_FLAGS='-ffunction-sections -fdata-sections'
19329   fi
19330   echo "$as_me:$LINENO: result: $ac_fdsections" >&5
19331 echo "${ECHO_T}$ac_fdsections" >&6
19332
19333   ac_ext=c
19334 ac_cpp='$CPP $CPPFLAGS'
19335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19338
19339
19340
19341
19342
19343   # If we're not using GNU ld, then there's no point in even trying these
19344   # tests.  Check for that first.  We should have already tested for gld
19345   # by now (in libtool), but require it now just to be safe...
19346   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
19347   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
19348
19349
19350
19351   # The name set by libtool depends on the version of libtool.  Shame on us
19352   # for depending on an impl detail, but c'est la vie.  Older versions used
19353   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
19354   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
19355   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
19356   # set (hence we're using an older libtool), then set it.
19357   if test x${with_gnu_ld+set} != xset; then
19358     if test x${ac_cv_prog_gnu_ld+set} != xset; then
19359       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
19360       with_gnu_ld=no
19361     else
19362       with_gnu_ld=$ac_cv_prog_gnu_ld
19363     fi
19364   fi
19365
19366   # Start by getting the version number.  I think the libtool test already
19367   # does some of this, but throws away the result.
19368
19369   ldver=`$LD --version 2>/dev/null | head -1 | \
19370          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
19371
19372   glibcxx_gnu_ld_version=`echo $ldver | \
19373          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
19374
19375   # Set --gc-sections.
19376   if test "$with_gnu_ld" = "notbroken"; then
19377     # GNU ld it is!  Joy and bunny rabbits!
19378
19379     # All these tests are for C++; save the language and the compiler flags.
19380     # Need to do this so that g++ won't try to link in libstdc++
19381     ac_test_CFLAGS="${CFLAGS+set}"
19382     ac_save_CFLAGS="$CFLAGS"
19383     CFLAGS='-x c++  -Wl,--gc-sections'
19384
19385     # Check for -Wl,--gc-sections
19386     # XXX This test is broken at the moment, as symbols required for linking
19387     # are now in libsupc++ (not built yet).  In addition, this test has
19388     # cored on solaris in the past.  In addition, --gc-sections doesn't
19389     # really work at the moment (keeps on discarding used sections, first
19390     # .eh_frame and now some of the glibc sections for iconv).
19391     # Bzzzzt.  Thanks for playing, maybe next time.
19392     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
19393 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
19394     if test "$cross_compiling" = yes; then
19395   ac_sectionLDflags=yes
19396 else
19397   cat >conftest.$ac_ext <<_ACEOF
19398 #line $LINENO "configure"
19399 /* confdefs.h.  */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h.  */
19404
19405      int main(void)
19406      {
19407        try { throw 1; }
19408        catch (...) { };
19409        return 0;
19410      }
19411
19412 _ACEOF
19413 rm -f conftest$ac_exeext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19415   (eval $ac_link) 2>&5
19416   ac_status=$?
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420   (eval $ac_try) 2>&5
19421   ac_status=$?
19422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423   (exit $ac_status); }; }; then
19424   ac_sectionLDflags=yes
19425 else
19426   echo "$as_me: program exited with status $ac_status" >&5
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19429
19430 ( exit $ac_status )
19431 ac_sectionLDflags=no
19432 fi
19433 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19434 fi
19435     if test "$ac_test_CFLAGS" = set; then
19436       CFLAGS="$ac_save_CFLAGS"
19437     else
19438       # this is the suspicious part
19439       CFLAGS=''
19440     fi
19441     if test "$ac_sectionLDflags" = "yes"; then
19442       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
19443     fi
19444     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
19445 echo "${ECHO_T}$ac_sectionLDflags" >&6
19446   fi
19447
19448   # Set linker optimization flags.
19449   if test x"$with_gnu_ld" = x"yes"; then
19450     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
19451   fi
19452
19453
19454
19455
19456
19457   ac_test_CXXFLAGS="${CXXFLAGS+set}"
19458   ac_save_CXXFLAGS="$CXXFLAGS"
19459   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
19460
19461     echo "$as_me:$LINENO: checking for sin in -lm" >&5
19462 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
19463 if test "${ac_cv_lib_m_sin+set}" = set; then
19464   echo $ECHO_N "(cached) $ECHO_C" >&6
19465 else
19466   ac_check_lib_save_LIBS=$LIBS
19467 LIBS="-lm  $LIBS"
19468 cat >conftest.$ac_ext <<_ACEOF
19469 #line $LINENO "configure"
19470 /* confdefs.h.  */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h.  */
19475
19476 /* Override any gcc2 internal prototype to avoid an error.  */
19477 #ifdef __cplusplus
19478 extern "C"
19479 #endif
19480 /* We use char because int might match the return type of a gcc2
19481    builtin and then its argument prototype would still apply.  */
19482 char sin ();
19483 int
19484 main ()
19485 {
19486 sin ();
19487   ;
19488   return 0;
19489 }
19490 _ACEOF
19491 rm -f conftest.$ac_objext conftest$ac_exeext
19492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19493   (eval $ac_link) 2>&5
19494   ac_status=$?
19495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); } &&
19497          { ac_try='test -s conftest$ac_exeext'
19498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499   (eval $ac_try) 2>&5
19500   ac_status=$?
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); }; }; then
19503   ac_cv_lib_m_sin=yes
19504 else
19505   echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19507
19508 ac_cv_lib_m_sin=no
19509 fi
19510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19511 LIBS=$ac_check_lib_save_LIBS
19512 fi
19513 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19514 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
19515 if test $ac_cv_lib_m_sin = yes; then
19516   libm="-lm"
19517 fi
19518
19519   ac_save_LIBS="$LIBS"
19520   LIBS="$LIBS $libm"
19521
19522
19523
19524   echo "$as_me:$LINENO: checking for isinf declaration" >&5
19525 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
19526   if test x${glibcxx_cv_func_isinf_use+set} != xset; then
19527     if test "${glibcxx_cv_func_isinf_use+set}" = set; then
19528   echo $ECHO_N "(cached) $ECHO_C" >&6
19529 else
19530
19531
19532
19533       ac_ext=cc
19534 ac_cpp='$CXXCPP $CPPFLAGS'
19535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19538
19539       cat >conftest.$ac_ext <<_ACEOF
19540 #line $LINENO "configure"
19541 /* confdefs.h.  */
19542 _ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h.  */
19546 #include <math.h>
19547                       #ifdef HAVE_IEEEFP_H
19548                       #include <ieeefp.h>
19549                       #endif
19550
19551 int
19552 main ()
19553 {
19554  isinf(0);
19555   ;
19556   return 0;
19557 }
19558 _ACEOF
19559 rm -f conftest.$ac_objext
19560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19561   (eval $ac_compile) 2>&5
19562   ac_status=$?
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); } &&
19565          { ac_try='test -s conftest.$ac_objext'
19566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567   (eval $ac_try) 2>&5
19568   ac_status=$?
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); }; }; then
19571   glibcxx_cv_func_isinf_use=yes
19572 else
19573   echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19575
19576 glibcxx_cv_func_isinf_use=no
19577 fi
19578 rm -f conftest.$ac_objext conftest.$ac_ext
19579       ac_ext=c
19580 ac_cpp='$CPP $CPPFLAGS'
19581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19584
19585
19586 fi
19587
19588   fi
19589   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
19590 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
19591
19592   if test x$glibcxx_cv_func_isinf_use = x"yes"; then
19593
19594 for ac_func in isinf
19595 do
19596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19597 echo "$as_me:$LINENO: checking for $ac_func" >&5
19598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19599 if eval "test \"\${$as_ac_var+set}\" = set"; then
19600   echo $ECHO_N "(cached) $ECHO_C" >&6
19601 else
19602   cat >conftest.$ac_ext <<_ACEOF
19603 #line $LINENO "configure"
19604 /* confdefs.h.  */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h.  */
19609 /* System header to define __stub macros and hopefully few prototypes,
19610     which can conflict with char $ac_func (); below.
19611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19612     <limits.h> exists even on freestanding compilers.  */
19613 #ifdef __STDC__
19614 # include <limits.h>
19615 #else
19616 # include <assert.h>
19617 #endif
19618 /* Override any gcc2 internal prototype to avoid an error.  */
19619 #ifdef __cplusplus
19620 extern "C"
19621 {
19622 #endif
19623 /* We use char because int might match the return type of a gcc2
19624    builtin and then its argument prototype would still apply.  */
19625 char $ac_func ();
19626 /* The GNU C library defines this for functions which it implements
19627     to always fail with ENOSYS.  Some functions are actually named
19628     something starting with __ and the normal name is an alias.  */
19629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19630 choke me
19631 #else
19632 char (*f) () = $ac_func;
19633 #endif
19634 #ifdef __cplusplus
19635 }
19636 #endif
19637
19638 int
19639 main ()
19640 {
19641 return f != $ac_func;
19642   ;
19643   return 0;
19644 }
19645 _ACEOF
19646 rm -f conftest.$ac_objext conftest$ac_exeext
19647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19648   (eval $ac_link) 2>&5
19649   ac_status=$?
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); } &&
19652          { ac_try='test -s conftest$ac_exeext'
19653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654   (eval $ac_try) 2>&5
19655   ac_status=$?
19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); }; }; then
19658   eval "$as_ac_var=yes"
19659 else
19660   echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19662
19663 eval "$as_ac_var=no"
19664 fi
19665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19666 fi
19667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19669 if test `eval echo '${'$as_ac_var'}'` = yes; then
19670   cat >>confdefs.h <<_ACEOF
19671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19672 _ACEOF
19673
19674 fi
19675 done
19676
19677   else
19678
19679   echo "$as_me:$LINENO: checking for _isinf declaration" >&5
19680 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
19681   if test x${glibcxx_cv_func__isinf_use+set} != xset; then
19682     if test "${glibcxx_cv_func__isinf_use+set}" = set; then
19683   echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685
19686
19687
19688       ac_ext=cc
19689 ac_cpp='$CXXCPP $CPPFLAGS'
19690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19693
19694       cat >conftest.$ac_ext <<_ACEOF
19695 #line $LINENO "configure"
19696 /* confdefs.h.  */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h.  */
19701 #include <math.h>
19702                       #ifdef HAVE_IEEEFP_H
19703                       #include <ieeefp.h>
19704                       #endif
19705
19706 int
19707 main ()
19708 {
19709  _isinf(0);
19710   ;
19711   return 0;
19712 }
19713 _ACEOF
19714 rm -f conftest.$ac_objext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19716   (eval $ac_compile) 2>&5
19717   ac_status=$?
19718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719   (exit $ac_status); } &&
19720          { ac_try='test -s conftest.$ac_objext'
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   glibcxx_cv_func__isinf_use=yes
19727 else
19728   echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19730
19731 glibcxx_cv_func__isinf_use=no
19732 fi
19733 rm -f conftest.$ac_objext conftest.$ac_ext
19734       ac_ext=c
19735 ac_cpp='$CPP $CPPFLAGS'
19736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19739
19740
19741 fi
19742
19743   fi
19744   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
19745 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
19746
19747     if test x$glibcxx_cv_func__isinf_use = x"yes"; then
19748
19749 for ac_func in _isinf
19750 do
19751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19752 echo "$as_me:$LINENO: checking for $ac_func" >&5
19753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19754 if eval "test \"\${$as_ac_var+set}\" = set"; then
19755   echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757   cat >conftest.$ac_ext <<_ACEOF
19758 #line $LINENO "configure"
19759 /* confdefs.h.  */
19760 _ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h.  */
19764 /* System header to define __stub macros and hopefully few prototypes,
19765     which can conflict with char $ac_func (); below.
19766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19767     <limits.h> exists even on freestanding compilers.  */
19768 #ifdef __STDC__
19769 # include <limits.h>
19770 #else
19771 # include <assert.h>
19772 #endif
19773 /* Override any gcc2 internal prototype to avoid an error.  */
19774 #ifdef __cplusplus
19775 extern "C"
19776 {
19777 #endif
19778 /* We use char because int might match the return type of a gcc2
19779    builtin and then its argument prototype would still apply.  */
19780 char $ac_func ();
19781 /* The GNU C library defines this for functions which it implements
19782     to always fail with ENOSYS.  Some functions are actually named
19783     something starting with __ and the normal name is an alias.  */
19784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19785 choke me
19786 #else
19787 char (*f) () = $ac_func;
19788 #endif
19789 #ifdef __cplusplus
19790 }
19791 #endif
19792
19793 int
19794 main ()
19795 {
19796 return f != $ac_func;
19797   ;
19798   return 0;
19799 }
19800 _ACEOF
19801 rm -f conftest.$ac_objext conftest$ac_exeext
19802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19803   (eval $ac_link) 2>&5
19804   ac_status=$?
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); } &&
19807          { ac_try='test -s conftest$ac_exeext'
19808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809   (eval $ac_try) 2>&5
19810   ac_status=$?
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); }; }; then
19813   eval "$as_ac_var=yes"
19814 else
19815   echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19817
19818 eval "$as_ac_var=no"
19819 fi
19820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19821 fi
19822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19824 if test `eval echo '${'$as_ac_var'}'` = yes; then
19825   cat >>confdefs.h <<_ACEOF
19826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19827 _ACEOF
19828
19829 fi
19830 done
19831
19832     fi
19833   fi
19834
19835
19836
19837   echo "$as_me:$LINENO: checking for isnan declaration" >&5
19838 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
19839   if test x${glibcxx_cv_func_isnan_use+set} != xset; then
19840     if test "${glibcxx_cv_func_isnan_use+set}" = set; then
19841   echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843
19844
19845
19846       ac_ext=cc
19847 ac_cpp='$CXXCPP $CPPFLAGS'
19848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19851
19852       cat >conftest.$ac_ext <<_ACEOF
19853 #line $LINENO "configure"
19854 /* confdefs.h.  */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h.  */
19859 #include <math.h>
19860                       #ifdef HAVE_IEEEFP_H
19861                       #include <ieeefp.h>
19862                       #endif
19863
19864 int
19865 main ()
19866 {
19867  isnan(0);
19868   ;
19869   return 0;
19870 }
19871 _ACEOF
19872 rm -f conftest.$ac_objext
19873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19874   (eval $ac_compile) 2>&5
19875   ac_status=$?
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); } &&
19878          { ac_try='test -s conftest.$ac_objext'
19879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880   (eval $ac_try) 2>&5
19881   ac_status=$?
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); }; }; then
19884   glibcxx_cv_func_isnan_use=yes
19885 else
19886   echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 glibcxx_cv_func_isnan_use=no
19890 fi
19891 rm -f conftest.$ac_objext conftest.$ac_ext
19892       ac_ext=c
19893 ac_cpp='$CPP $CPPFLAGS'
19894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19897
19898
19899 fi
19900
19901   fi
19902   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
19903 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
19904
19905   if test x$glibcxx_cv_func_isnan_use = x"yes"; then
19906
19907 for ac_func in isnan
19908 do
19909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19910 echo "$as_me:$LINENO: checking for $ac_func" >&5
19911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19912 if eval "test \"\${$as_ac_var+set}\" = set"; then
19913   echo $ECHO_N "(cached) $ECHO_C" >&6
19914 else
19915   cat >conftest.$ac_ext <<_ACEOF
19916 #line $LINENO "configure"
19917 /* confdefs.h.  */
19918 _ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h.  */
19922 /* System header to define __stub macros and hopefully few prototypes,
19923     which can conflict with char $ac_func (); below.
19924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19925     <limits.h> exists even on freestanding compilers.  */
19926 #ifdef __STDC__
19927 # include <limits.h>
19928 #else
19929 # include <assert.h>
19930 #endif
19931 /* Override any gcc2 internal prototype to avoid an error.  */
19932 #ifdef __cplusplus
19933 extern "C"
19934 {
19935 #endif
19936 /* We use char because int might match the return type of a gcc2
19937    builtin and then its argument prototype would still apply.  */
19938 char $ac_func ();
19939 /* The GNU C library defines this for functions which it implements
19940     to always fail with ENOSYS.  Some functions are actually named
19941     something starting with __ and the normal name is an alias.  */
19942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19943 choke me
19944 #else
19945 char (*f) () = $ac_func;
19946 #endif
19947 #ifdef __cplusplus
19948 }
19949 #endif
19950
19951 int
19952 main ()
19953 {
19954 return f != $ac_func;
19955   ;
19956   return 0;
19957 }
19958 _ACEOF
19959 rm -f conftest.$ac_objext conftest$ac_exeext
19960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19961   (eval $ac_link) 2>&5
19962   ac_status=$?
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); } &&
19965          { ac_try='test -s conftest$ac_exeext'
19966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967   (eval $ac_try) 2>&5
19968   ac_status=$?
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); }; }; then
19971   eval "$as_ac_var=yes"
19972 else
19973   echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19975
19976 eval "$as_ac_var=no"
19977 fi
19978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19979 fi
19980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19982 if test `eval echo '${'$as_ac_var'}'` = yes; then
19983   cat >>confdefs.h <<_ACEOF
19984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19985 _ACEOF
19986
19987 fi
19988 done
19989
19990   else
19991
19992   echo "$as_me:$LINENO: checking for _isnan declaration" >&5
19993 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
19994   if test x${glibcxx_cv_func__isnan_use+set} != xset; then
19995     if test "${glibcxx_cv_func__isnan_use+set}" = set; then
19996   echo $ECHO_N "(cached) $ECHO_C" >&6
19997 else
19998
19999
20000
20001       ac_ext=cc
20002 ac_cpp='$CXXCPP $CPPFLAGS'
20003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20006
20007       cat >conftest.$ac_ext <<_ACEOF
20008 #line $LINENO "configure"
20009 /* confdefs.h.  */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h.  */
20014 #include <math.h>
20015                       #ifdef HAVE_IEEEFP_H
20016                       #include <ieeefp.h>
20017                       #endif
20018
20019 int
20020 main ()
20021 {
20022  _isnan(0);
20023   ;
20024   return 0;
20025 }
20026 _ACEOF
20027 rm -f conftest.$ac_objext
20028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20029   (eval $ac_compile) 2>&5
20030   ac_status=$?
20031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032   (exit $ac_status); } &&
20033          { ac_try='test -s conftest.$ac_objext'
20034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035   (eval $ac_try) 2>&5
20036   ac_status=$?
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); }; }; then
20039   glibcxx_cv_func__isnan_use=yes
20040 else
20041   echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20043
20044 glibcxx_cv_func__isnan_use=no
20045 fi
20046 rm -f conftest.$ac_objext conftest.$ac_ext
20047       ac_ext=c
20048 ac_cpp='$CPP $CPPFLAGS'
20049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20052
20053
20054 fi
20055
20056   fi
20057   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
20058 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
20059
20060     if test x$glibcxx_cv_func__isnan_use = x"yes"; then
20061
20062 for ac_func in _isnan
20063 do
20064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20065 echo "$as_me:$LINENO: checking for $ac_func" >&5
20066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20067 if eval "test \"\${$as_ac_var+set}\" = set"; then
20068   echo $ECHO_N "(cached) $ECHO_C" >&6
20069 else
20070   cat >conftest.$ac_ext <<_ACEOF
20071 #line $LINENO "configure"
20072 /* confdefs.h.  */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h.  */
20077 /* System header to define __stub macros and hopefully few prototypes,
20078     which can conflict with char $ac_func (); below.
20079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20080     <limits.h> exists even on freestanding compilers.  */
20081 #ifdef __STDC__
20082 # include <limits.h>
20083 #else
20084 # include <assert.h>
20085 #endif
20086 /* Override any gcc2 internal prototype to avoid an error.  */
20087 #ifdef __cplusplus
20088 extern "C"
20089 {
20090 #endif
20091 /* We use char because int might match the return type of a gcc2
20092    builtin and then its argument prototype would still apply.  */
20093 char $ac_func ();
20094 /* The GNU C library defines this for functions which it implements
20095     to always fail with ENOSYS.  Some functions are actually named
20096     something starting with __ and the normal name is an alias.  */
20097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20098 choke me
20099 #else
20100 char (*f) () = $ac_func;
20101 #endif
20102 #ifdef __cplusplus
20103 }
20104 #endif
20105
20106 int
20107 main ()
20108 {
20109 return f != $ac_func;
20110   ;
20111   return 0;
20112 }
20113 _ACEOF
20114 rm -f conftest.$ac_objext conftest$ac_exeext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20116   (eval $ac_link) 2>&5
20117   ac_status=$?
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); } &&
20120          { ac_try='test -s conftest$ac_exeext'
20121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122   (eval $ac_try) 2>&5
20123   ac_status=$?
20124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125   (exit $ac_status); }; }; then
20126   eval "$as_ac_var=yes"
20127 else
20128   echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20130
20131 eval "$as_ac_var=no"
20132 fi
20133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20134 fi
20135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20137 if test `eval echo '${'$as_ac_var'}'` = yes; then
20138   cat >>confdefs.h <<_ACEOF
20139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20140 _ACEOF
20141
20142 fi
20143 done
20144
20145     fi
20146   fi
20147
20148
20149
20150   echo "$as_me:$LINENO: checking for finite declaration" >&5
20151 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
20152   if test x${glibcxx_cv_func_finite_use+set} != xset; then
20153     if test "${glibcxx_cv_func_finite_use+set}" = set; then
20154   echo $ECHO_N "(cached) $ECHO_C" >&6
20155 else
20156
20157
20158
20159       ac_ext=cc
20160 ac_cpp='$CXXCPP $CPPFLAGS'
20161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20164
20165       cat >conftest.$ac_ext <<_ACEOF
20166 #line $LINENO "configure"
20167 /* confdefs.h.  */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h.  */
20172 #include <math.h>
20173                       #ifdef HAVE_IEEEFP_H
20174                       #include <ieeefp.h>
20175                       #endif
20176
20177 int
20178 main ()
20179 {
20180  finite(0);
20181   ;
20182   return 0;
20183 }
20184 _ACEOF
20185 rm -f conftest.$ac_objext
20186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20187   (eval $ac_compile) 2>&5
20188   ac_status=$?
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); } &&
20191          { ac_try='test -s conftest.$ac_objext'
20192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193   (eval $ac_try) 2>&5
20194   ac_status=$?
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); }; }; then
20197   glibcxx_cv_func_finite_use=yes
20198 else
20199   echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20201
20202 glibcxx_cv_func_finite_use=no
20203 fi
20204 rm -f conftest.$ac_objext conftest.$ac_ext
20205       ac_ext=c
20206 ac_cpp='$CPP $CPPFLAGS'
20207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20210
20211
20212 fi
20213
20214   fi
20215   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
20216 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
20217
20218   if test x$glibcxx_cv_func_finite_use = x"yes"; then
20219
20220 for ac_func in finite
20221 do
20222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20223 echo "$as_me:$LINENO: checking for $ac_func" >&5
20224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20225 if eval "test \"\${$as_ac_var+set}\" = set"; then
20226   echo $ECHO_N "(cached) $ECHO_C" >&6
20227 else
20228   cat >conftest.$ac_ext <<_ACEOF
20229 #line $LINENO "configure"
20230 /* confdefs.h.  */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h.  */
20235 /* System header to define __stub macros and hopefully few prototypes,
20236     which can conflict with char $ac_func (); below.
20237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20238     <limits.h> exists even on freestanding compilers.  */
20239 #ifdef __STDC__
20240 # include <limits.h>
20241 #else
20242 # include <assert.h>
20243 #endif
20244 /* Override any gcc2 internal prototype to avoid an error.  */
20245 #ifdef __cplusplus
20246 extern "C"
20247 {
20248 #endif
20249 /* We use char because int might match the return type of a gcc2
20250    builtin and then its argument prototype would still apply.  */
20251 char $ac_func ();
20252 /* The GNU C library defines this for functions which it implements
20253     to always fail with ENOSYS.  Some functions are actually named
20254     something starting with __ and the normal name is an alias.  */
20255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20256 choke me
20257 #else
20258 char (*f) () = $ac_func;
20259 #endif
20260 #ifdef __cplusplus
20261 }
20262 #endif
20263
20264 int
20265 main ()
20266 {
20267 return f != $ac_func;
20268   ;
20269   return 0;
20270 }
20271 _ACEOF
20272 rm -f conftest.$ac_objext conftest$ac_exeext
20273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20274   (eval $ac_link) 2>&5
20275   ac_status=$?
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); } &&
20278          { ac_try='test -s conftest$ac_exeext'
20279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280   (eval $ac_try) 2>&5
20281   ac_status=$?
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); }; }; then
20284   eval "$as_ac_var=yes"
20285 else
20286   echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20288
20289 eval "$as_ac_var=no"
20290 fi
20291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20292 fi
20293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20295 if test `eval echo '${'$as_ac_var'}'` = yes; then
20296   cat >>confdefs.h <<_ACEOF
20297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20298 _ACEOF
20299
20300 fi
20301 done
20302
20303   else
20304
20305   echo "$as_me:$LINENO: checking for _finite declaration" >&5
20306 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
20307   if test x${glibcxx_cv_func__finite_use+set} != xset; then
20308     if test "${glibcxx_cv_func__finite_use+set}" = set; then
20309   echo $ECHO_N "(cached) $ECHO_C" >&6
20310 else
20311
20312
20313
20314       ac_ext=cc
20315 ac_cpp='$CXXCPP $CPPFLAGS'
20316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20319
20320       cat >conftest.$ac_ext <<_ACEOF
20321 #line $LINENO "configure"
20322 /* confdefs.h.  */
20323 _ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h.  */
20327 #include <math.h>
20328                       #ifdef HAVE_IEEEFP_H
20329                       #include <ieeefp.h>
20330                       #endif
20331
20332 int
20333 main ()
20334 {
20335  _finite(0);
20336   ;
20337   return 0;
20338 }
20339 _ACEOF
20340 rm -f conftest.$ac_objext
20341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20342   (eval $ac_compile) 2>&5
20343   ac_status=$?
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); } &&
20346          { ac_try='test -s conftest.$ac_objext'
20347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348   (eval $ac_try) 2>&5
20349   ac_status=$?
20350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351   (exit $ac_status); }; }; then
20352   glibcxx_cv_func__finite_use=yes
20353 else
20354   echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.$ac_ext >&5
20356
20357 glibcxx_cv_func__finite_use=no
20358 fi
20359 rm -f conftest.$ac_objext conftest.$ac_ext
20360       ac_ext=c
20361 ac_cpp='$CPP $CPPFLAGS'
20362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20365
20366
20367 fi
20368
20369   fi
20370   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
20371 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
20372
20373     if test x$glibcxx_cv_func__finite_use = x"yes"; then
20374
20375 for ac_func in _finite
20376 do
20377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20378 echo "$as_me:$LINENO: checking for $ac_func" >&5
20379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20380 if eval "test \"\${$as_ac_var+set}\" = set"; then
20381   echo $ECHO_N "(cached) $ECHO_C" >&6
20382 else
20383   cat >conftest.$ac_ext <<_ACEOF
20384 #line $LINENO "configure"
20385 /* confdefs.h.  */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h.  */
20390 /* System header to define __stub macros and hopefully few prototypes,
20391     which can conflict with char $ac_func (); below.
20392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20393     <limits.h> exists even on freestanding compilers.  */
20394 #ifdef __STDC__
20395 # include <limits.h>
20396 #else
20397 # include <assert.h>
20398 #endif
20399 /* Override any gcc2 internal prototype to avoid an error.  */
20400 #ifdef __cplusplus
20401 extern "C"
20402 {
20403 #endif
20404 /* We use char because int might match the return type of a gcc2
20405    builtin and then its argument prototype would still apply.  */
20406 char $ac_func ();
20407 /* The GNU C library defines this for functions which it implements
20408     to always fail with ENOSYS.  Some functions are actually named
20409     something starting with __ and the normal name is an alias.  */
20410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20411 choke me
20412 #else
20413 char (*f) () = $ac_func;
20414 #endif
20415 #ifdef __cplusplus
20416 }
20417 #endif
20418
20419 int
20420 main ()
20421 {
20422 return f != $ac_func;
20423   ;
20424   return 0;
20425 }
20426 _ACEOF
20427 rm -f conftest.$ac_objext conftest$ac_exeext
20428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20429   (eval $ac_link) 2>&5
20430   ac_status=$?
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); } &&
20433          { ac_try='test -s conftest$ac_exeext'
20434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435   (eval $ac_try) 2>&5
20436   ac_status=$?
20437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438   (exit $ac_status); }; }; then
20439   eval "$as_ac_var=yes"
20440 else
20441   echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20443
20444 eval "$as_ac_var=no"
20445 fi
20446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20447 fi
20448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20450 if test `eval echo '${'$as_ac_var'}'` = yes; then
20451   cat >>confdefs.h <<_ACEOF
20452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20453 _ACEOF
20454
20455 fi
20456 done
20457
20458     fi
20459   fi
20460
20461
20462
20463   echo "$as_me:$LINENO: checking for copysign declaration" >&5
20464 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
20465   if test x${glibcxx_cv_func_copysign_use+set} != xset; then
20466     if test "${glibcxx_cv_func_copysign_use+set}" = set; then
20467   echo $ECHO_N "(cached) $ECHO_C" >&6
20468 else
20469
20470
20471
20472       ac_ext=cc
20473 ac_cpp='$CXXCPP $CPPFLAGS'
20474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20477
20478       cat >conftest.$ac_ext <<_ACEOF
20479 #line $LINENO "configure"
20480 /* confdefs.h.  */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h.  */
20485 #include <math.h>
20486 int
20487 main ()
20488 {
20489  copysign(0, 0);
20490   ;
20491   return 0;
20492 }
20493 _ACEOF
20494 rm -f conftest.$ac_objext
20495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20496   (eval $ac_compile) 2>&5
20497   ac_status=$?
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); } &&
20500          { ac_try='test -s conftest.$ac_objext'
20501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502   (eval $ac_try) 2>&5
20503   ac_status=$?
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); }; }; then
20506   glibcxx_cv_func_copysign_use=yes
20507 else
20508   echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20510
20511 glibcxx_cv_func_copysign_use=no
20512 fi
20513 rm -f conftest.$ac_objext conftest.$ac_ext
20514       ac_ext=c
20515 ac_cpp='$CPP $CPPFLAGS'
20516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20519
20520
20521 fi
20522
20523   fi
20524   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
20525 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
20526
20527   if test x$glibcxx_cv_func_copysign_use = x"yes"; then
20528
20529 for ac_func in copysign
20530 do
20531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20532 echo "$as_me:$LINENO: checking for $ac_func" >&5
20533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20534 if eval "test \"\${$as_ac_var+set}\" = set"; then
20535   echo $ECHO_N "(cached) $ECHO_C" >&6
20536 else
20537   cat >conftest.$ac_ext <<_ACEOF
20538 #line $LINENO "configure"
20539 /* confdefs.h.  */
20540 _ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h.  */
20544 /* System header to define __stub macros and hopefully few prototypes,
20545     which can conflict with char $ac_func (); below.
20546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20547     <limits.h> exists even on freestanding compilers.  */
20548 #ifdef __STDC__
20549 # include <limits.h>
20550 #else
20551 # include <assert.h>
20552 #endif
20553 /* Override any gcc2 internal prototype to avoid an error.  */
20554 #ifdef __cplusplus
20555 extern "C"
20556 {
20557 #endif
20558 /* We use char because int might match the return type of a gcc2
20559    builtin and then its argument prototype would still apply.  */
20560 char $ac_func ();
20561 /* The GNU C library defines this for functions which it implements
20562     to always fail with ENOSYS.  Some functions are actually named
20563     something starting with __ and the normal name is an alias.  */
20564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20565 choke me
20566 #else
20567 char (*f) () = $ac_func;
20568 #endif
20569 #ifdef __cplusplus
20570 }
20571 #endif
20572
20573 int
20574 main ()
20575 {
20576 return f != $ac_func;
20577   ;
20578   return 0;
20579 }
20580 _ACEOF
20581 rm -f conftest.$ac_objext conftest$ac_exeext
20582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20583   (eval $ac_link) 2>&5
20584   ac_status=$?
20585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); } &&
20587          { ac_try='test -s conftest$ac_exeext'
20588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589   (eval $ac_try) 2>&5
20590   ac_status=$?
20591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592   (exit $ac_status); }; }; then
20593   eval "$as_ac_var=yes"
20594 else
20595   echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20597
20598 eval "$as_ac_var=no"
20599 fi
20600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20601 fi
20602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20604 if test `eval echo '${'$as_ac_var'}'` = yes; then
20605   cat >>confdefs.h <<_ACEOF
20606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20607 _ACEOF
20608
20609 fi
20610 done
20611
20612   else
20613
20614   echo "$as_me:$LINENO: checking for _copysign declaration" >&5
20615 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
20616   if test x${glibcxx_cv_func__copysign_use+set} != xset; then
20617     if test "${glibcxx_cv_func__copysign_use+set}" = set; then
20618   echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620
20621
20622
20623       ac_ext=cc
20624 ac_cpp='$CXXCPP $CPPFLAGS'
20625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20628
20629       cat >conftest.$ac_ext <<_ACEOF
20630 #line $LINENO "configure"
20631 /* confdefs.h.  */
20632 _ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h.  */
20636 #include <math.h>
20637 int
20638 main ()
20639 {
20640  _copysign(0, 0);
20641   ;
20642   return 0;
20643 }
20644 _ACEOF
20645 rm -f conftest.$ac_objext
20646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20647   (eval $ac_compile) 2>&5
20648   ac_status=$?
20649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650   (exit $ac_status); } &&
20651          { ac_try='test -s conftest.$ac_objext'
20652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653   (eval $ac_try) 2>&5
20654   ac_status=$?
20655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656   (exit $ac_status); }; }; then
20657   glibcxx_cv_func__copysign_use=yes
20658 else
20659   echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20661
20662 glibcxx_cv_func__copysign_use=no
20663 fi
20664 rm -f conftest.$ac_objext conftest.$ac_ext
20665       ac_ext=c
20666 ac_cpp='$CPP $CPPFLAGS'
20667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20670
20671
20672 fi
20673
20674   fi
20675   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
20676 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
20677
20678     if test x$glibcxx_cv_func__copysign_use = x"yes"; then
20679
20680 for ac_func in _copysign
20681 do
20682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20683 echo "$as_me:$LINENO: checking for $ac_func" >&5
20684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20685 if eval "test \"\${$as_ac_var+set}\" = set"; then
20686   echo $ECHO_N "(cached) $ECHO_C" >&6
20687 else
20688   cat >conftest.$ac_ext <<_ACEOF
20689 #line $LINENO "configure"
20690 /* confdefs.h.  */
20691 _ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h.  */
20695 /* System header to define __stub macros and hopefully few prototypes,
20696     which can conflict with char $ac_func (); below.
20697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20698     <limits.h> exists even on freestanding compilers.  */
20699 #ifdef __STDC__
20700 # include <limits.h>
20701 #else
20702 # include <assert.h>
20703 #endif
20704 /* Override any gcc2 internal prototype to avoid an error.  */
20705 #ifdef __cplusplus
20706 extern "C"
20707 {
20708 #endif
20709 /* We use char because int might match the return type of a gcc2
20710    builtin and then its argument prototype would still apply.  */
20711 char $ac_func ();
20712 /* The GNU C library defines this for functions which it implements
20713     to always fail with ENOSYS.  Some functions are actually named
20714     something starting with __ and the normal name is an alias.  */
20715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20716 choke me
20717 #else
20718 char (*f) () = $ac_func;
20719 #endif
20720 #ifdef __cplusplus
20721 }
20722 #endif
20723
20724 int
20725 main ()
20726 {
20727 return f != $ac_func;
20728   ;
20729   return 0;
20730 }
20731 _ACEOF
20732 rm -f conftest.$ac_objext conftest$ac_exeext
20733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20734   (eval $ac_link) 2>&5
20735   ac_status=$?
20736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737   (exit $ac_status); } &&
20738          { ac_try='test -s conftest$ac_exeext'
20739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20740   (eval $ac_try) 2>&5
20741   ac_status=$?
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); }; }; then
20744   eval "$as_ac_var=yes"
20745 else
20746   echo "$as_me: failed program was:" >&5
20747 sed 's/^/| /' conftest.$ac_ext >&5
20748
20749 eval "$as_ac_var=no"
20750 fi
20751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20752 fi
20753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20755 if test `eval echo '${'$as_ac_var'}'` = yes; then
20756   cat >>confdefs.h <<_ACEOF
20757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20758 _ACEOF
20759
20760 fi
20761 done
20762
20763     fi
20764   fi
20765
20766
20767
20768   echo "$as_me:$LINENO: checking for sincos declaration" >&5
20769 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
20770   if test x${glibcxx_cv_func_sincos_use+set} != xset; then
20771     if test "${glibcxx_cv_func_sincos_use+set}" = set; then
20772   echo $ECHO_N "(cached) $ECHO_C" >&6
20773 else
20774
20775
20776
20777       ac_ext=cc
20778 ac_cpp='$CXXCPP $CPPFLAGS'
20779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20782
20783       cat >conftest.$ac_ext <<_ACEOF
20784 #line $LINENO "configure"
20785 /* confdefs.h.  */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h.  */
20790 #include <math.h>
20791 int
20792 main ()
20793 {
20794  sincos(0, 0, 0);
20795   ;
20796   return 0;
20797 }
20798 _ACEOF
20799 rm -f conftest.$ac_objext
20800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20801   (eval $ac_compile) 2>&5
20802   ac_status=$?
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); } &&
20805          { ac_try='test -s conftest.$ac_objext'
20806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807   (eval $ac_try) 2>&5
20808   ac_status=$?
20809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); }; }; then
20811   glibcxx_cv_func_sincos_use=yes
20812 else
20813   echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20815
20816 glibcxx_cv_func_sincos_use=no
20817 fi
20818 rm -f conftest.$ac_objext conftest.$ac_ext
20819       ac_ext=c
20820 ac_cpp='$CPP $CPPFLAGS'
20821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20824
20825
20826 fi
20827
20828   fi
20829   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
20830 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
20831
20832   if test x$glibcxx_cv_func_sincos_use = x"yes"; then
20833
20834 for ac_func in sincos
20835 do
20836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20837 echo "$as_me:$LINENO: checking for $ac_func" >&5
20838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20839 if eval "test \"\${$as_ac_var+set}\" = set"; then
20840   echo $ECHO_N "(cached) $ECHO_C" >&6
20841 else
20842   cat >conftest.$ac_ext <<_ACEOF
20843 #line $LINENO "configure"
20844 /* confdefs.h.  */
20845 _ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h.  */
20849 /* System header to define __stub macros and hopefully few prototypes,
20850     which can conflict with char $ac_func (); below.
20851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20852     <limits.h> exists even on freestanding compilers.  */
20853 #ifdef __STDC__
20854 # include <limits.h>
20855 #else
20856 # include <assert.h>
20857 #endif
20858 /* Override any gcc2 internal prototype to avoid an error.  */
20859 #ifdef __cplusplus
20860 extern "C"
20861 {
20862 #endif
20863 /* We use char because int might match the return type of a gcc2
20864    builtin and then its argument prototype would still apply.  */
20865 char $ac_func ();
20866 /* The GNU C library defines this for functions which it implements
20867     to always fail with ENOSYS.  Some functions are actually named
20868     something starting with __ and the normal name is an alias.  */
20869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20870 choke me
20871 #else
20872 char (*f) () = $ac_func;
20873 #endif
20874 #ifdef __cplusplus
20875 }
20876 #endif
20877
20878 int
20879 main ()
20880 {
20881 return f != $ac_func;
20882   ;
20883   return 0;
20884 }
20885 _ACEOF
20886 rm -f conftest.$ac_objext conftest$ac_exeext
20887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20888   (eval $ac_link) 2>&5
20889   ac_status=$?
20890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); } &&
20892          { ac_try='test -s conftest$ac_exeext'
20893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894   (eval $ac_try) 2>&5
20895   ac_status=$?
20896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897   (exit $ac_status); }; }; then
20898   eval "$as_ac_var=yes"
20899 else
20900   echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20902
20903 eval "$as_ac_var=no"
20904 fi
20905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20906 fi
20907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20909 if test `eval echo '${'$as_ac_var'}'` = yes; then
20910   cat >>confdefs.h <<_ACEOF
20911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20912 _ACEOF
20913
20914 fi
20915 done
20916
20917   else
20918
20919   echo "$as_me:$LINENO: checking for _sincos declaration" >&5
20920 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
20921   if test x${glibcxx_cv_func__sincos_use+set} != xset; then
20922     if test "${glibcxx_cv_func__sincos_use+set}" = set; then
20923   echo $ECHO_N "(cached) $ECHO_C" >&6
20924 else
20925
20926
20927
20928       ac_ext=cc
20929 ac_cpp='$CXXCPP $CPPFLAGS'
20930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20933
20934       cat >conftest.$ac_ext <<_ACEOF
20935 #line $LINENO "configure"
20936 /* confdefs.h.  */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h.  */
20941 #include <math.h>
20942 int
20943 main ()
20944 {
20945  _sincos(0, 0, 0);
20946   ;
20947   return 0;
20948 }
20949 _ACEOF
20950 rm -f conftest.$ac_objext
20951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20952   (eval $ac_compile) 2>&5
20953   ac_status=$?
20954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955   (exit $ac_status); } &&
20956          { ac_try='test -s conftest.$ac_objext'
20957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958   (eval $ac_try) 2>&5
20959   ac_status=$?
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); }; }; then
20962   glibcxx_cv_func__sincos_use=yes
20963 else
20964   echo "$as_me: failed program was:" >&5
20965 sed 's/^/| /' conftest.$ac_ext >&5
20966
20967 glibcxx_cv_func__sincos_use=no
20968 fi
20969 rm -f conftest.$ac_objext conftest.$ac_ext
20970       ac_ext=c
20971 ac_cpp='$CPP $CPPFLAGS'
20972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20975
20976
20977 fi
20978
20979   fi
20980   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
20981 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
20982
20983     if test x$glibcxx_cv_func__sincos_use = x"yes"; then
20984
20985 for ac_func in _sincos
20986 do
20987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20988 echo "$as_me:$LINENO: checking for $ac_func" >&5
20989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20990 if eval "test \"\${$as_ac_var+set}\" = set"; then
20991   echo $ECHO_N "(cached) $ECHO_C" >&6
20992 else
20993   cat >conftest.$ac_ext <<_ACEOF
20994 #line $LINENO "configure"
20995 /* confdefs.h.  */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h.  */
21000 /* System header to define __stub macros and hopefully few prototypes,
21001     which can conflict with char $ac_func (); below.
21002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21003     <limits.h> exists even on freestanding compilers.  */
21004 #ifdef __STDC__
21005 # include <limits.h>
21006 #else
21007 # include <assert.h>
21008 #endif
21009 /* Override any gcc2 internal prototype to avoid an error.  */
21010 #ifdef __cplusplus
21011 extern "C"
21012 {
21013 #endif
21014 /* We use char because int might match the return type of a gcc2
21015    builtin and then its argument prototype would still apply.  */
21016 char $ac_func ();
21017 /* The GNU C library defines this for functions which it implements
21018     to always fail with ENOSYS.  Some functions are actually named
21019     something starting with __ and the normal name is an alias.  */
21020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21021 choke me
21022 #else
21023 char (*f) () = $ac_func;
21024 #endif
21025 #ifdef __cplusplus
21026 }
21027 #endif
21028
21029 int
21030 main ()
21031 {
21032 return f != $ac_func;
21033   ;
21034   return 0;
21035 }
21036 _ACEOF
21037 rm -f conftest.$ac_objext conftest$ac_exeext
21038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21039   (eval $ac_link) 2>&5
21040   ac_status=$?
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); } &&
21043          { ac_try='test -s conftest$ac_exeext'
21044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21045   (eval $ac_try) 2>&5
21046   ac_status=$?
21047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048   (exit $ac_status); }; }; then
21049   eval "$as_ac_var=yes"
21050 else
21051   echo "$as_me: failed program was:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21053
21054 eval "$as_ac_var=no"
21055 fi
21056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21057 fi
21058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21060 if test `eval echo '${'$as_ac_var'}'` = yes; then
21061   cat >>confdefs.h <<_ACEOF
21062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21063 _ACEOF
21064
21065 fi
21066 done
21067
21068     fi
21069   fi
21070
21071
21072
21073   echo "$as_me:$LINENO: checking for fpclass declaration" >&5
21074 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
21075   if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
21076     if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
21077   echo $ECHO_N "(cached) $ECHO_C" >&6
21078 else
21079
21080
21081
21082       ac_ext=cc
21083 ac_cpp='$CXXCPP $CPPFLAGS'
21084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21087
21088       cat >conftest.$ac_ext <<_ACEOF
21089 #line $LINENO "configure"
21090 /* confdefs.h.  */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h.  */
21095 #include <math.h>
21096                       #ifdef HAVE_IEEEFP_H
21097                       #include <ieeefp.h>
21098                       #endif
21099
21100 int
21101 main ()
21102 {
21103  fpclass(0);
21104   ;
21105   return 0;
21106 }
21107 _ACEOF
21108 rm -f conftest.$ac_objext
21109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21110   (eval $ac_compile) 2>&5
21111   ac_status=$?
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); } &&
21114          { ac_try='test -s conftest.$ac_objext'
21115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116   (eval $ac_try) 2>&5
21117   ac_status=$?
21118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119   (exit $ac_status); }; }; then
21120   glibcxx_cv_func_fpclass_use=yes
21121 else
21122   echo "$as_me: failed program was:" >&5
21123 sed 's/^/| /' conftest.$ac_ext >&5
21124
21125 glibcxx_cv_func_fpclass_use=no
21126 fi
21127 rm -f conftest.$ac_objext conftest.$ac_ext
21128       ac_ext=c
21129 ac_cpp='$CPP $CPPFLAGS'
21130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21133
21134
21135 fi
21136
21137   fi
21138   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
21139 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
21140
21141   if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
21142
21143 for ac_func in fpclass
21144 do
21145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21146 echo "$as_me:$LINENO: checking for $ac_func" >&5
21147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21148 if eval "test \"\${$as_ac_var+set}\" = set"; then
21149   echo $ECHO_N "(cached) $ECHO_C" >&6
21150 else
21151   cat >conftest.$ac_ext <<_ACEOF
21152 #line $LINENO "configure"
21153 /* confdefs.h.  */
21154 _ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h.  */
21158 /* System header to define __stub macros and hopefully few prototypes,
21159     which can conflict with char $ac_func (); below.
21160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21161     <limits.h> exists even on freestanding compilers.  */
21162 #ifdef __STDC__
21163 # include <limits.h>
21164 #else
21165 # include <assert.h>
21166 #endif
21167 /* Override any gcc2 internal prototype to avoid an error.  */
21168 #ifdef __cplusplus
21169 extern "C"
21170 {
21171 #endif
21172 /* We use char because int might match the return type of a gcc2
21173    builtin and then its argument prototype would still apply.  */
21174 char $ac_func ();
21175 /* The GNU C library defines this for functions which it implements
21176     to always fail with ENOSYS.  Some functions are actually named
21177     something starting with __ and the normal name is an alias.  */
21178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21179 choke me
21180 #else
21181 char (*f) () = $ac_func;
21182 #endif
21183 #ifdef __cplusplus
21184 }
21185 #endif
21186
21187 int
21188 main ()
21189 {
21190 return f != $ac_func;
21191   ;
21192   return 0;
21193 }
21194 _ACEOF
21195 rm -f conftest.$ac_objext conftest$ac_exeext
21196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21197   (eval $ac_link) 2>&5
21198   ac_status=$?
21199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200   (exit $ac_status); } &&
21201          { ac_try='test -s conftest$ac_exeext'
21202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203   (eval $ac_try) 2>&5
21204   ac_status=$?
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); }; }; then
21207   eval "$as_ac_var=yes"
21208 else
21209   echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21211
21212 eval "$as_ac_var=no"
21213 fi
21214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21215 fi
21216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21218 if test `eval echo '${'$as_ac_var'}'` = yes; then
21219   cat >>confdefs.h <<_ACEOF
21220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21221 _ACEOF
21222
21223 fi
21224 done
21225
21226   else
21227
21228   echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
21229 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
21230   if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
21231     if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
21232   echo $ECHO_N "(cached) $ECHO_C" >&6
21233 else
21234
21235
21236
21237       ac_ext=cc
21238 ac_cpp='$CXXCPP $CPPFLAGS'
21239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21242
21243       cat >conftest.$ac_ext <<_ACEOF
21244 #line $LINENO "configure"
21245 /* confdefs.h.  */
21246 _ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h.  */
21250 #include <math.h>
21251                       #ifdef HAVE_IEEEFP_H
21252                       #include <ieeefp.h>
21253                       #endif
21254
21255 int
21256 main ()
21257 {
21258  _fpclass(0);
21259   ;
21260   return 0;
21261 }
21262 _ACEOF
21263 rm -f conftest.$ac_objext
21264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21265   (eval $ac_compile) 2>&5
21266   ac_status=$?
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); } &&
21269          { ac_try='test -s conftest.$ac_objext'
21270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271   (eval $ac_try) 2>&5
21272   ac_status=$?
21273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274   (exit $ac_status); }; }; then
21275   glibcxx_cv_func__fpclass_use=yes
21276 else
21277   echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21279
21280 glibcxx_cv_func__fpclass_use=no
21281 fi
21282 rm -f conftest.$ac_objext conftest.$ac_ext
21283       ac_ext=c
21284 ac_cpp='$CPP $CPPFLAGS'
21285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21288
21289
21290 fi
21291
21292   fi
21293   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
21294 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
21295
21296     if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
21297
21298 for ac_func in _fpclass
21299 do
21300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21301 echo "$as_me:$LINENO: checking for $ac_func" >&5
21302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21303 if eval "test \"\${$as_ac_var+set}\" = set"; then
21304   echo $ECHO_N "(cached) $ECHO_C" >&6
21305 else
21306   cat >conftest.$ac_ext <<_ACEOF
21307 #line $LINENO "configure"
21308 /* confdefs.h.  */
21309 _ACEOF
21310 cat confdefs.h >>conftest.$ac_ext
21311 cat >>conftest.$ac_ext <<_ACEOF
21312 /* end confdefs.h.  */
21313 /* System header to define __stub macros and hopefully few prototypes,
21314     which can conflict with char $ac_func (); below.
21315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21316     <limits.h> exists even on freestanding compilers.  */
21317 #ifdef __STDC__
21318 # include <limits.h>
21319 #else
21320 # include <assert.h>
21321 #endif
21322 /* Override any gcc2 internal prototype to avoid an error.  */
21323 #ifdef __cplusplus
21324 extern "C"
21325 {
21326 #endif
21327 /* We use char because int might match the return type of a gcc2
21328    builtin and then its argument prototype would still apply.  */
21329 char $ac_func ();
21330 /* The GNU C library defines this for functions which it implements
21331     to always fail with ENOSYS.  Some functions are actually named
21332     something starting with __ and the normal name is an alias.  */
21333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21334 choke me
21335 #else
21336 char (*f) () = $ac_func;
21337 #endif
21338 #ifdef __cplusplus
21339 }
21340 #endif
21341
21342 int
21343 main ()
21344 {
21345 return f != $ac_func;
21346   ;
21347   return 0;
21348 }
21349 _ACEOF
21350 rm -f conftest.$ac_objext conftest$ac_exeext
21351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21352   (eval $ac_link) 2>&5
21353   ac_status=$?
21354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355   (exit $ac_status); } &&
21356          { ac_try='test -s conftest$ac_exeext'
21357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21358   (eval $ac_try) 2>&5
21359   ac_status=$?
21360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); }; }; then
21362   eval "$as_ac_var=yes"
21363 else
21364   echo "$as_me: failed program was:" >&5
21365 sed 's/^/| /' conftest.$ac_ext >&5
21366
21367 eval "$as_ac_var=no"
21368 fi
21369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21370 fi
21371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21373 if test `eval echo '${'$as_ac_var'}'` = yes; then
21374   cat >>confdefs.h <<_ACEOF
21375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21376 _ACEOF
21377
21378 fi
21379 done
21380
21381     fi
21382   fi
21383
21384
21385
21386   echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
21387 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
21388   if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
21389     if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
21390   echo $ECHO_N "(cached) $ECHO_C" >&6
21391 else
21392
21393
21394
21395       ac_ext=cc
21396 ac_cpp='$CXXCPP $CPPFLAGS'
21397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21400
21401       cat >conftest.$ac_ext <<_ACEOF
21402 #line $LINENO "configure"
21403 /* confdefs.h.  */
21404 _ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h.  */
21408 #include <math.h>
21409                       #ifdef HAVE_IEEEFP_H
21410                       #include <ieeefp.h>
21411                       #endif
21412
21413 int
21414 main ()
21415 {
21416  qfpclass(0);
21417   ;
21418   return 0;
21419 }
21420 _ACEOF
21421 rm -f conftest.$ac_objext
21422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21423   (eval $ac_compile) 2>&5
21424   ac_status=$?
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); } &&
21427          { ac_try='test -s conftest.$ac_objext'
21428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429   (eval $ac_try) 2>&5
21430   ac_status=$?
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); }; }; then
21433   glibcxx_cv_func_qfpclass_use=yes
21434 else
21435   echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438 glibcxx_cv_func_qfpclass_use=no
21439 fi
21440 rm -f conftest.$ac_objext conftest.$ac_ext
21441       ac_ext=c
21442 ac_cpp='$CPP $CPPFLAGS'
21443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21446
21447
21448 fi
21449
21450   fi
21451   echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
21452 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
21453
21454   if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
21455
21456 for ac_func in qfpclass
21457 do
21458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21459 echo "$as_me:$LINENO: checking for $ac_func" >&5
21460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21461 if eval "test \"\${$as_ac_var+set}\" = set"; then
21462   echo $ECHO_N "(cached) $ECHO_C" >&6
21463 else
21464   cat >conftest.$ac_ext <<_ACEOF
21465 #line $LINENO "configure"
21466 /* confdefs.h.  */
21467 _ACEOF
21468 cat confdefs.h >>conftest.$ac_ext
21469 cat >>conftest.$ac_ext <<_ACEOF
21470 /* end confdefs.h.  */
21471 /* System header to define __stub macros and hopefully few prototypes,
21472     which can conflict with char $ac_func (); below.
21473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21474     <limits.h> exists even on freestanding compilers.  */
21475 #ifdef __STDC__
21476 # include <limits.h>
21477 #else
21478 # include <assert.h>
21479 #endif
21480 /* Override any gcc2 internal prototype to avoid an error.  */
21481 #ifdef __cplusplus
21482 extern "C"
21483 {
21484 #endif
21485 /* We use char because int might match the return type of a gcc2
21486    builtin and then its argument prototype would still apply.  */
21487 char $ac_func ();
21488 /* The GNU C library defines this for functions which it implements
21489     to always fail with ENOSYS.  Some functions are actually named
21490     something starting with __ and the normal name is an alias.  */
21491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21492 choke me
21493 #else
21494 char (*f) () = $ac_func;
21495 #endif
21496 #ifdef __cplusplus
21497 }
21498 #endif
21499
21500 int
21501 main ()
21502 {
21503 return f != $ac_func;
21504   ;
21505   return 0;
21506 }
21507 _ACEOF
21508 rm -f conftest.$ac_objext conftest$ac_exeext
21509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21510   (eval $ac_link) 2>&5
21511   ac_status=$?
21512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513   (exit $ac_status); } &&
21514          { ac_try='test -s conftest$ac_exeext'
21515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516   (eval $ac_try) 2>&5
21517   ac_status=$?
21518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519   (exit $ac_status); }; }; then
21520   eval "$as_ac_var=yes"
21521 else
21522   echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21524
21525 eval "$as_ac_var=no"
21526 fi
21527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21528 fi
21529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21531 if test `eval echo '${'$as_ac_var'}'` = yes; then
21532   cat >>confdefs.h <<_ACEOF
21533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21534 _ACEOF
21535
21536 fi
21537 done
21538
21539   else
21540
21541   echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
21542 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
21543   if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
21544     if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
21545   echo $ECHO_N "(cached) $ECHO_C" >&6
21546 else
21547
21548
21549
21550       ac_ext=cc
21551 ac_cpp='$CXXCPP $CPPFLAGS'
21552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21555
21556       cat >conftest.$ac_ext <<_ACEOF
21557 #line $LINENO "configure"
21558 /* confdefs.h.  */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h.  */
21563 #include <math.h>
21564                       #ifdef HAVE_IEEEFP_H
21565                       #include <ieeefp.h>
21566                       #endif
21567
21568 int
21569 main ()
21570 {
21571  _qfpclass(0);
21572   ;
21573   return 0;
21574 }
21575 _ACEOF
21576 rm -f conftest.$ac_objext
21577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21578   (eval $ac_compile) 2>&5
21579   ac_status=$?
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); } &&
21582          { ac_try='test -s conftest.$ac_objext'
21583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584   (eval $ac_try) 2>&5
21585   ac_status=$?
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); }; }; then
21588   glibcxx_cv_func__qfpclass_use=yes
21589 else
21590   echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21592
21593 glibcxx_cv_func__qfpclass_use=no
21594 fi
21595 rm -f conftest.$ac_objext conftest.$ac_ext
21596       ac_ext=c
21597 ac_cpp='$CPP $CPPFLAGS'
21598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21601
21602
21603 fi
21604
21605   fi
21606   echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
21607 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
21608
21609     if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
21610
21611 for ac_func in _qfpclass
21612 do
21613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21614 echo "$as_me:$LINENO: checking for $ac_func" >&5
21615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21616 if eval "test \"\${$as_ac_var+set}\" = set"; then
21617   echo $ECHO_N "(cached) $ECHO_C" >&6
21618 else
21619   cat >conftest.$ac_ext <<_ACEOF
21620 #line $LINENO "configure"
21621 /* confdefs.h.  */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h.  */
21626 /* System header to define __stub macros and hopefully few prototypes,
21627     which can conflict with char $ac_func (); below.
21628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21629     <limits.h> exists even on freestanding compilers.  */
21630 #ifdef __STDC__
21631 # include <limits.h>
21632 #else
21633 # include <assert.h>
21634 #endif
21635 /* Override any gcc2 internal prototype to avoid an error.  */
21636 #ifdef __cplusplus
21637 extern "C"
21638 {
21639 #endif
21640 /* We use char because int might match the return type of a gcc2
21641    builtin and then its argument prototype would still apply.  */
21642 char $ac_func ();
21643 /* The GNU C library defines this for functions which it implements
21644     to always fail with ENOSYS.  Some functions are actually named
21645     something starting with __ and the normal name is an alias.  */
21646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21647 choke me
21648 #else
21649 char (*f) () = $ac_func;
21650 #endif
21651 #ifdef __cplusplus
21652 }
21653 #endif
21654
21655 int
21656 main ()
21657 {
21658 return f != $ac_func;
21659   ;
21660   return 0;
21661 }
21662 _ACEOF
21663 rm -f conftest.$ac_objext conftest$ac_exeext
21664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21665   (eval $ac_link) 2>&5
21666   ac_status=$?
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); } &&
21669          { ac_try='test -s conftest$ac_exeext'
21670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671   (eval $ac_try) 2>&5
21672   ac_status=$?
21673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674   (exit $ac_status); }; }; then
21675   eval "$as_ac_var=yes"
21676 else
21677   echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21679
21680 eval "$as_ac_var=no"
21681 fi
21682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21683 fi
21684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21686 if test `eval echo '${'$as_ac_var'}'` = yes; then
21687   cat >>confdefs.h <<_ACEOF
21688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21689 _ACEOF
21690
21691 fi
21692 done
21693
21694     fi
21695   fi
21696
21697
21698
21699   echo "$as_me:$LINENO: checking for hypot declaration" >&5
21700 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
21701   if test x${glibcxx_cv_func_hypot_use+set} != xset; then
21702     if test "${glibcxx_cv_func_hypot_use+set}" = set; then
21703   echo $ECHO_N "(cached) $ECHO_C" >&6
21704 else
21705
21706
21707
21708       ac_ext=cc
21709 ac_cpp='$CXXCPP $CPPFLAGS'
21710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21713
21714       cat >conftest.$ac_ext <<_ACEOF
21715 #line $LINENO "configure"
21716 /* confdefs.h.  */
21717 _ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h.  */
21721 #include <math.h>
21722 int
21723 main ()
21724 {
21725  hypot(0, 0);
21726   ;
21727   return 0;
21728 }
21729 _ACEOF
21730 rm -f conftest.$ac_objext
21731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21732   (eval $ac_compile) 2>&5
21733   ac_status=$?
21734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735   (exit $ac_status); } &&
21736          { ac_try='test -s conftest.$ac_objext'
21737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21738   (eval $ac_try) 2>&5
21739   ac_status=$?
21740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741   (exit $ac_status); }; }; then
21742   glibcxx_cv_func_hypot_use=yes
21743 else
21744   echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.$ac_ext >&5
21746
21747 glibcxx_cv_func_hypot_use=no
21748 fi
21749 rm -f conftest.$ac_objext conftest.$ac_ext
21750       ac_ext=c
21751 ac_cpp='$CPP $CPPFLAGS'
21752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21755
21756
21757 fi
21758
21759   fi
21760   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
21761 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
21762
21763   if test x$glibcxx_cv_func_hypot_use = x"yes"; then
21764
21765 for ac_func in hypot
21766 do
21767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21768 echo "$as_me:$LINENO: checking for $ac_func" >&5
21769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21770 if eval "test \"\${$as_ac_var+set}\" = set"; then
21771   echo $ECHO_N "(cached) $ECHO_C" >&6
21772 else
21773   cat >conftest.$ac_ext <<_ACEOF
21774 #line $LINENO "configure"
21775 /* confdefs.h.  */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h.  */
21780 /* System header to define __stub macros and hopefully few prototypes,
21781     which can conflict with char $ac_func (); below.
21782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21783     <limits.h> exists even on freestanding compilers.  */
21784 #ifdef __STDC__
21785 # include <limits.h>
21786 #else
21787 # include <assert.h>
21788 #endif
21789 /* Override any gcc2 internal prototype to avoid an error.  */
21790 #ifdef __cplusplus
21791 extern "C"
21792 {
21793 #endif
21794 /* We use char because int might match the return type of a gcc2
21795    builtin and then its argument prototype would still apply.  */
21796 char $ac_func ();
21797 /* The GNU C library defines this for functions which it implements
21798     to always fail with ENOSYS.  Some functions are actually named
21799     something starting with __ and the normal name is an alias.  */
21800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21801 choke me
21802 #else
21803 char (*f) () = $ac_func;
21804 #endif
21805 #ifdef __cplusplus
21806 }
21807 #endif
21808
21809 int
21810 main ()
21811 {
21812 return f != $ac_func;
21813   ;
21814   return 0;
21815 }
21816 _ACEOF
21817 rm -f conftest.$ac_objext conftest$ac_exeext
21818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21819   (eval $ac_link) 2>&5
21820   ac_status=$?
21821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822   (exit $ac_status); } &&
21823          { ac_try='test -s conftest$ac_exeext'
21824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21825   (eval $ac_try) 2>&5
21826   ac_status=$?
21827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828   (exit $ac_status); }; }; then
21829   eval "$as_ac_var=yes"
21830 else
21831   echo "$as_me: failed program was:" >&5
21832 sed 's/^/| /' conftest.$ac_ext >&5
21833
21834 eval "$as_ac_var=no"
21835 fi
21836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21837 fi
21838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21840 if test `eval echo '${'$as_ac_var'}'` = yes; then
21841   cat >>confdefs.h <<_ACEOF
21842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21843 _ACEOF
21844
21845 fi
21846 done
21847
21848   else
21849
21850   echo "$as_me:$LINENO: checking for _hypot declaration" >&5
21851 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
21852   if test x${glibcxx_cv_func__hypot_use+set} != xset; then
21853     if test "${glibcxx_cv_func__hypot_use+set}" = set; then
21854   echo $ECHO_N "(cached) $ECHO_C" >&6
21855 else
21856
21857
21858
21859       ac_ext=cc
21860 ac_cpp='$CXXCPP $CPPFLAGS'
21861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21864
21865       cat >conftest.$ac_ext <<_ACEOF
21866 #line $LINENO "configure"
21867 /* confdefs.h.  */
21868 _ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h.  */
21872 #include <math.h>
21873 int
21874 main ()
21875 {
21876  _hypot(0, 0);
21877   ;
21878   return 0;
21879 }
21880 _ACEOF
21881 rm -f conftest.$ac_objext
21882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21883   (eval $ac_compile) 2>&5
21884   ac_status=$?
21885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886   (exit $ac_status); } &&
21887          { ac_try='test -s conftest.$ac_objext'
21888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889   (eval $ac_try) 2>&5
21890   ac_status=$?
21891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892   (exit $ac_status); }; }; then
21893   glibcxx_cv_func__hypot_use=yes
21894 else
21895   echo "$as_me: failed program was:" >&5
21896 sed 's/^/| /' conftest.$ac_ext >&5
21897
21898 glibcxx_cv_func__hypot_use=no
21899 fi
21900 rm -f conftest.$ac_objext conftest.$ac_ext
21901       ac_ext=c
21902 ac_cpp='$CPP $CPPFLAGS'
21903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21906
21907
21908 fi
21909
21910   fi
21911   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
21912 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
21913
21914     if test x$glibcxx_cv_func__hypot_use = x"yes"; then
21915
21916 for ac_func in _hypot
21917 do
21918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21919 echo "$as_me:$LINENO: checking for $ac_func" >&5
21920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21921 if eval "test \"\${$as_ac_var+set}\" = set"; then
21922   echo $ECHO_N "(cached) $ECHO_C" >&6
21923 else
21924   cat >conftest.$ac_ext <<_ACEOF
21925 #line $LINENO "configure"
21926 /* confdefs.h.  */
21927 _ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h.  */
21931 /* System header to define __stub macros and hopefully few prototypes,
21932     which can conflict with char $ac_func (); below.
21933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21934     <limits.h> exists even on freestanding compilers.  */
21935 #ifdef __STDC__
21936 # include <limits.h>
21937 #else
21938 # include <assert.h>
21939 #endif
21940 /* Override any gcc2 internal prototype to avoid an error.  */
21941 #ifdef __cplusplus
21942 extern "C"
21943 {
21944 #endif
21945 /* We use char because int might match the return type of a gcc2
21946    builtin and then its argument prototype would still apply.  */
21947 char $ac_func ();
21948 /* The GNU C library defines this for functions which it implements
21949     to always fail with ENOSYS.  Some functions are actually named
21950     something starting with __ and the normal name is an alias.  */
21951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21952 choke me
21953 #else
21954 char (*f) () = $ac_func;
21955 #endif
21956 #ifdef __cplusplus
21957 }
21958 #endif
21959
21960 int
21961 main ()
21962 {
21963 return f != $ac_func;
21964   ;
21965   return 0;
21966 }
21967 _ACEOF
21968 rm -f conftest.$ac_objext conftest$ac_exeext
21969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21970   (eval $ac_link) 2>&5
21971   ac_status=$?
21972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973   (exit $ac_status); } &&
21974          { ac_try='test -s conftest$ac_exeext'
21975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976   (eval $ac_try) 2>&5
21977   ac_status=$?
21978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); }; }; then
21980   eval "$as_ac_var=yes"
21981 else
21982   echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21984
21985 eval "$as_ac_var=no"
21986 fi
21987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21988 fi
21989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21991 if test `eval echo '${'$as_ac_var'}'` = yes; then
21992   cat >>confdefs.h <<_ACEOF
21993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21994 _ACEOF
21995
21996 fi
21997 done
21998
21999     fi
22000   fi
22001
22002
22003
22004   echo "$as_me:$LINENO: checking for float trig functions" >&5
22005 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
22006   if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
22007   echo $ECHO_N "(cached) $ECHO_C" >&6
22008 else
22009
22010
22011
22012     ac_ext=cc
22013 ac_cpp='$CXXCPP $CPPFLAGS'
22014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22017
22018     cat >conftest.$ac_ext <<_ACEOF
22019 #line $LINENO "configure"
22020 /* confdefs.h.  */
22021 _ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h.  */
22025 #include <math.h>
22026 int
22027 main ()
22028 {
22029  `for x in acosf asinf atanf \
22030                                           cosf sinf tanf \
22031                                           coshf sinhf tanhf; do echo "$x (0);"; done`
22032   ;
22033   return 0;
22034 }
22035 _ACEOF
22036 rm -f conftest.$ac_objext
22037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22038   (eval $ac_compile) 2>&5
22039   ac_status=$?
22040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); } &&
22042          { ac_try='test -s conftest.$ac_objext'
22043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044   (eval $ac_try) 2>&5
22045   ac_status=$?
22046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047   (exit $ac_status); }; }; then
22048   glibcxx_cv_func_float_trig_use=yes
22049 else
22050   echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22052
22053 glibcxx_cv_func_float_trig_use=no
22054 fi
22055 rm -f conftest.$ac_objext conftest.$ac_ext
22056     ac_ext=c
22057 ac_cpp='$CPP $CPPFLAGS'
22058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22061
22062 fi
22063
22064   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
22065 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
22066   if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076 for ac_func in acosf asinf atanf \
22077                                           cosf sinf tanf \
22078                                           coshf sinhf tanhf
22079 do
22080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22081 echo "$as_me:$LINENO: checking for $ac_func" >&5
22082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22083 if eval "test \"\${$as_ac_var+set}\" = set"; then
22084   echo $ECHO_N "(cached) $ECHO_C" >&6
22085 else
22086   cat >conftest.$ac_ext <<_ACEOF
22087 #line $LINENO "configure"
22088 /* confdefs.h.  */
22089 _ACEOF
22090 cat confdefs.h >>conftest.$ac_ext
22091 cat >>conftest.$ac_ext <<_ACEOF
22092 /* end confdefs.h.  */
22093 /* System header to define __stub macros and hopefully few prototypes,
22094     which can conflict with char $ac_func (); below.
22095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22096     <limits.h> exists even on freestanding compilers.  */
22097 #ifdef __STDC__
22098 # include <limits.h>
22099 #else
22100 # include <assert.h>
22101 #endif
22102 /* Override any gcc2 internal prototype to avoid an error.  */
22103 #ifdef __cplusplus
22104 extern "C"
22105 {
22106 #endif
22107 /* We use char because int might match the return type of a gcc2
22108    builtin and then its argument prototype would still apply.  */
22109 char $ac_func ();
22110 /* The GNU C library defines this for functions which it implements
22111     to always fail with ENOSYS.  Some functions are actually named
22112     something starting with __ and the normal name is an alias.  */
22113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22114 choke me
22115 #else
22116 char (*f) () = $ac_func;
22117 #endif
22118 #ifdef __cplusplus
22119 }
22120 #endif
22121
22122 int
22123 main ()
22124 {
22125 return f != $ac_func;
22126   ;
22127   return 0;
22128 }
22129 _ACEOF
22130 rm -f conftest.$ac_objext conftest$ac_exeext
22131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22132   (eval $ac_link) 2>&5
22133   ac_status=$?
22134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135   (exit $ac_status); } &&
22136          { ac_try='test -s conftest$ac_exeext'
22137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138   (eval $ac_try) 2>&5
22139   ac_status=$?
22140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141   (exit $ac_status); }; }; then
22142   eval "$as_ac_var=yes"
22143 else
22144   echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22146
22147 eval "$as_ac_var=no"
22148 fi
22149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22150 fi
22151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22153 if test `eval echo '${'$as_ac_var'}'` = yes; then
22154   cat >>confdefs.h <<_ACEOF
22155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22156 _ACEOF
22157
22158 fi
22159 done
22160
22161   fi
22162
22163
22164   echo "$as_me:$LINENO: checking for float round functions" >&5
22165 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
22166   if test "${glibcxx_cv_func_float_round_use+set}" = set; then
22167   echo $ECHO_N "(cached) $ECHO_C" >&6
22168 else
22169
22170
22171
22172     ac_ext=cc
22173 ac_cpp='$CXXCPP $CPPFLAGS'
22174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22177
22178     cat >conftest.$ac_ext <<_ACEOF
22179 #line $LINENO "configure"
22180 /* confdefs.h.  */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h.  */
22185 #include <math.h>
22186 int
22187 main ()
22188 {
22189  `for x in ceilf floorf; do echo "$x (0);"; done`
22190   ;
22191   return 0;
22192 }
22193 _ACEOF
22194 rm -f conftest.$ac_objext
22195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22196   (eval $ac_compile) 2>&5
22197   ac_status=$?
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); } &&
22200          { ac_try='test -s conftest.$ac_objext'
22201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202   (eval $ac_try) 2>&5
22203   ac_status=$?
22204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); }; }; then
22206   glibcxx_cv_func_float_round_use=yes
22207 else
22208   echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22210
22211 glibcxx_cv_func_float_round_use=no
22212 fi
22213 rm -f conftest.$ac_objext conftest.$ac_ext
22214     ac_ext=c
22215 ac_cpp='$CPP $CPPFLAGS'
22216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22219
22220 fi
22221
22222   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
22223 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
22224   if test x$glibcxx_cv_func_float_round_use = x"yes"; then
22225
22226
22227 for ac_func in ceilf floorf
22228 do
22229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22230 echo "$as_me:$LINENO: checking for $ac_func" >&5
22231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22232 if eval "test \"\${$as_ac_var+set}\" = set"; then
22233   echo $ECHO_N "(cached) $ECHO_C" >&6
22234 else
22235   cat >conftest.$ac_ext <<_ACEOF
22236 #line $LINENO "configure"
22237 /* confdefs.h.  */
22238 _ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h.  */
22242 /* System header to define __stub macros and hopefully few prototypes,
22243     which can conflict with char $ac_func (); below.
22244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22245     <limits.h> exists even on freestanding compilers.  */
22246 #ifdef __STDC__
22247 # include <limits.h>
22248 #else
22249 # include <assert.h>
22250 #endif
22251 /* Override any gcc2 internal prototype to avoid an error.  */
22252 #ifdef __cplusplus
22253 extern "C"
22254 {
22255 #endif
22256 /* We use char because int might match the return type of a gcc2
22257    builtin and then its argument prototype would still apply.  */
22258 char $ac_func ();
22259 /* The GNU C library defines this for functions which it implements
22260     to always fail with ENOSYS.  Some functions are actually named
22261     something starting with __ and the normal name is an alias.  */
22262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22263 choke me
22264 #else
22265 char (*f) () = $ac_func;
22266 #endif
22267 #ifdef __cplusplus
22268 }
22269 #endif
22270
22271 int
22272 main ()
22273 {
22274 return f != $ac_func;
22275   ;
22276   return 0;
22277 }
22278 _ACEOF
22279 rm -f conftest.$ac_objext conftest$ac_exeext
22280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22281   (eval $ac_link) 2>&5
22282   ac_status=$?
22283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284   (exit $ac_status); } &&
22285          { ac_try='test -s conftest$ac_exeext'
22286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287   (eval $ac_try) 2>&5
22288   ac_status=$?
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); }; }; then
22291   eval "$as_ac_var=yes"
22292 else
22293   echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22295
22296 eval "$as_ac_var=no"
22297 fi
22298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22299 fi
22300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22302 if test `eval echo '${'$as_ac_var'}'` = yes; then
22303   cat >>confdefs.h <<_ACEOF
22304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22305 _ACEOF
22306
22307 fi
22308 done
22309
22310   fi
22311
22312
22313
22314   echo "$as_me:$LINENO: checking for expf declaration" >&5
22315 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
22316   if test x${glibcxx_cv_func_expf_use+set} != xset; then
22317     if test "${glibcxx_cv_func_expf_use+set}" = set; then
22318   echo $ECHO_N "(cached) $ECHO_C" >&6
22319 else
22320
22321
22322
22323       ac_ext=cc
22324 ac_cpp='$CXXCPP $CPPFLAGS'
22325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22328
22329       cat >conftest.$ac_ext <<_ACEOF
22330 #line $LINENO "configure"
22331 /* confdefs.h.  */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h.  */
22336 #include <math.h>
22337                       #ifdef HAVE_IEEEFP_H
22338                       #include <ieeefp.h>
22339                       #endif
22340
22341 int
22342 main ()
22343 {
22344  expf(0);
22345   ;
22346   return 0;
22347 }
22348 _ACEOF
22349 rm -f conftest.$ac_objext
22350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22351   (eval $ac_compile) 2>&5
22352   ac_status=$?
22353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354   (exit $ac_status); } &&
22355          { ac_try='test -s conftest.$ac_objext'
22356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357   (eval $ac_try) 2>&5
22358   ac_status=$?
22359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360   (exit $ac_status); }; }; then
22361   glibcxx_cv_func_expf_use=yes
22362 else
22363   echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22365
22366 glibcxx_cv_func_expf_use=no
22367 fi
22368 rm -f conftest.$ac_objext conftest.$ac_ext
22369       ac_ext=c
22370 ac_cpp='$CPP $CPPFLAGS'
22371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22374
22375
22376 fi
22377
22378   fi
22379   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
22380 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
22381
22382   if test x$glibcxx_cv_func_expf_use = x"yes"; then
22383
22384 for ac_func in expf
22385 do
22386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22387 echo "$as_me:$LINENO: checking for $ac_func" >&5
22388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22389 if eval "test \"\${$as_ac_var+set}\" = set"; then
22390   echo $ECHO_N "(cached) $ECHO_C" >&6
22391 else
22392   cat >conftest.$ac_ext <<_ACEOF
22393 #line $LINENO "configure"
22394 /* confdefs.h.  */
22395 _ACEOF
22396 cat confdefs.h >>conftest.$ac_ext
22397 cat >>conftest.$ac_ext <<_ACEOF
22398 /* end confdefs.h.  */
22399 /* System header to define __stub macros and hopefully few prototypes,
22400     which can conflict with char $ac_func (); below.
22401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22402     <limits.h> exists even on freestanding compilers.  */
22403 #ifdef __STDC__
22404 # include <limits.h>
22405 #else
22406 # include <assert.h>
22407 #endif
22408 /* Override any gcc2 internal prototype to avoid an error.  */
22409 #ifdef __cplusplus
22410 extern "C"
22411 {
22412 #endif
22413 /* We use char because int might match the return type of a gcc2
22414    builtin and then its argument prototype would still apply.  */
22415 char $ac_func ();
22416 /* The GNU C library defines this for functions which it implements
22417     to always fail with ENOSYS.  Some functions are actually named
22418     something starting with __ and the normal name is an alias.  */
22419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22420 choke me
22421 #else
22422 char (*f) () = $ac_func;
22423 #endif
22424 #ifdef __cplusplus
22425 }
22426 #endif
22427
22428 int
22429 main ()
22430 {
22431 return f != $ac_func;
22432   ;
22433   return 0;
22434 }
22435 _ACEOF
22436 rm -f conftest.$ac_objext conftest$ac_exeext
22437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22438   (eval $ac_link) 2>&5
22439   ac_status=$?
22440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441   (exit $ac_status); } &&
22442          { ac_try='test -s conftest$ac_exeext'
22443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444   (eval $ac_try) 2>&5
22445   ac_status=$?
22446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); }; }; then
22448   eval "$as_ac_var=yes"
22449 else
22450   echo "$as_me: failed program was:" >&5
22451 sed 's/^/| /' conftest.$ac_ext >&5
22452
22453 eval "$as_ac_var=no"
22454 fi
22455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22456 fi
22457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22459 if test `eval echo '${'$as_ac_var'}'` = yes; then
22460   cat >>confdefs.h <<_ACEOF
22461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22462 _ACEOF
22463
22464 fi
22465 done
22466
22467   else
22468
22469   echo "$as_me:$LINENO: checking for _expf declaration" >&5
22470 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
22471   if test x${glibcxx_cv_func__expf_use+set} != xset; then
22472     if test "${glibcxx_cv_func__expf_use+set}" = set; then
22473   echo $ECHO_N "(cached) $ECHO_C" >&6
22474 else
22475
22476
22477
22478       ac_ext=cc
22479 ac_cpp='$CXXCPP $CPPFLAGS'
22480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22483
22484       cat >conftest.$ac_ext <<_ACEOF
22485 #line $LINENO "configure"
22486 /* confdefs.h.  */
22487 _ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h.  */
22491 #include <math.h>
22492                       #ifdef HAVE_IEEEFP_H
22493                       #include <ieeefp.h>
22494                       #endif
22495
22496 int
22497 main ()
22498 {
22499  _expf(0);
22500   ;
22501   return 0;
22502 }
22503 _ACEOF
22504 rm -f conftest.$ac_objext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506   (eval $ac_compile) 2>&5
22507   ac_status=$?
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); } &&
22510          { ac_try='test -s conftest.$ac_objext'
22511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512   (eval $ac_try) 2>&5
22513   ac_status=$?
22514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515   (exit $ac_status); }; }; then
22516   glibcxx_cv_func__expf_use=yes
22517 else
22518   echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22520
22521 glibcxx_cv_func__expf_use=no
22522 fi
22523 rm -f conftest.$ac_objext conftest.$ac_ext
22524       ac_ext=c
22525 ac_cpp='$CPP $CPPFLAGS'
22526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22529
22530
22531 fi
22532
22533   fi
22534   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
22535 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
22536
22537     if test x$glibcxx_cv_func__expf_use = x"yes"; then
22538
22539 for ac_func in _expf
22540 do
22541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22542 echo "$as_me:$LINENO: checking for $ac_func" >&5
22543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22544 if eval "test \"\${$as_ac_var+set}\" = set"; then
22545   echo $ECHO_N "(cached) $ECHO_C" >&6
22546 else
22547   cat >conftest.$ac_ext <<_ACEOF
22548 #line $LINENO "configure"
22549 /* confdefs.h.  */
22550 _ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h.  */
22554 /* System header to define __stub macros and hopefully few prototypes,
22555     which can conflict with char $ac_func (); below.
22556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22557     <limits.h> exists even on freestanding compilers.  */
22558 #ifdef __STDC__
22559 # include <limits.h>
22560 #else
22561 # include <assert.h>
22562 #endif
22563 /* Override any gcc2 internal prototype to avoid an error.  */
22564 #ifdef __cplusplus
22565 extern "C"
22566 {
22567 #endif
22568 /* We use char because int might match the return type of a gcc2
22569    builtin and then its argument prototype would still apply.  */
22570 char $ac_func ();
22571 /* The GNU C library defines this for functions which it implements
22572     to always fail with ENOSYS.  Some functions are actually named
22573     something starting with __ and the normal name is an alias.  */
22574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22575 choke me
22576 #else
22577 char (*f) () = $ac_func;
22578 #endif
22579 #ifdef __cplusplus
22580 }
22581 #endif
22582
22583 int
22584 main ()
22585 {
22586 return f != $ac_func;
22587   ;
22588   return 0;
22589 }
22590 _ACEOF
22591 rm -f conftest.$ac_objext conftest$ac_exeext
22592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22593   (eval $ac_link) 2>&5
22594   ac_status=$?
22595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596   (exit $ac_status); } &&
22597          { ac_try='test -s conftest$ac_exeext'
22598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599   (eval $ac_try) 2>&5
22600   ac_status=$?
22601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602   (exit $ac_status); }; }; then
22603   eval "$as_ac_var=yes"
22604 else
22605   echo "$as_me: failed program was:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22607
22608 eval "$as_ac_var=no"
22609 fi
22610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22611 fi
22612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22614 if test `eval echo '${'$as_ac_var'}'` = yes; then
22615   cat >>confdefs.h <<_ACEOF
22616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22617 _ACEOF
22618
22619 fi
22620 done
22621
22622     fi
22623   fi
22624
22625
22626
22627   echo "$as_me:$LINENO: checking for isnanf declaration" >&5
22628 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
22629   if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
22630     if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
22631   echo $ECHO_N "(cached) $ECHO_C" >&6
22632 else
22633
22634
22635
22636       ac_ext=cc
22637 ac_cpp='$CXXCPP $CPPFLAGS'
22638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22641
22642       cat >conftest.$ac_ext <<_ACEOF
22643 #line $LINENO "configure"
22644 /* confdefs.h.  */
22645 _ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h.  */
22649 #include <math.h>
22650                       #ifdef HAVE_IEEEFP_H
22651                       #include <ieeefp.h>
22652                       #endif
22653
22654 int
22655 main ()
22656 {
22657  isnanf(0);
22658   ;
22659   return 0;
22660 }
22661 _ACEOF
22662 rm -f conftest.$ac_objext
22663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22664   (eval $ac_compile) 2>&5
22665   ac_status=$?
22666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667   (exit $ac_status); } &&
22668          { ac_try='test -s conftest.$ac_objext'
22669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22670   (eval $ac_try) 2>&5
22671   ac_status=$?
22672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673   (exit $ac_status); }; }; then
22674   glibcxx_cv_func_isnanf_use=yes
22675 else
22676   echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22678
22679 glibcxx_cv_func_isnanf_use=no
22680 fi
22681 rm -f conftest.$ac_objext conftest.$ac_ext
22682       ac_ext=c
22683 ac_cpp='$CPP $CPPFLAGS'
22684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22687
22688
22689 fi
22690
22691   fi
22692   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
22693 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
22694
22695   if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
22696
22697 for ac_func in isnanf
22698 do
22699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22700 echo "$as_me:$LINENO: checking for $ac_func" >&5
22701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22702 if eval "test \"\${$as_ac_var+set}\" = set"; then
22703   echo $ECHO_N "(cached) $ECHO_C" >&6
22704 else
22705   cat >conftest.$ac_ext <<_ACEOF
22706 #line $LINENO "configure"
22707 /* confdefs.h.  */
22708 _ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h.  */
22712 /* System header to define __stub macros and hopefully few prototypes,
22713     which can conflict with char $ac_func (); below.
22714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22715     <limits.h> exists even on freestanding compilers.  */
22716 #ifdef __STDC__
22717 # include <limits.h>
22718 #else
22719 # include <assert.h>
22720 #endif
22721 /* Override any gcc2 internal prototype to avoid an error.  */
22722 #ifdef __cplusplus
22723 extern "C"
22724 {
22725 #endif
22726 /* We use char because int might match the return type of a gcc2
22727    builtin and then its argument prototype would still apply.  */
22728 char $ac_func ();
22729 /* The GNU C library defines this for functions which it implements
22730     to always fail with ENOSYS.  Some functions are actually named
22731     something starting with __ and the normal name is an alias.  */
22732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22733 choke me
22734 #else
22735 char (*f) () = $ac_func;
22736 #endif
22737 #ifdef __cplusplus
22738 }
22739 #endif
22740
22741 int
22742 main ()
22743 {
22744 return f != $ac_func;
22745   ;
22746   return 0;
22747 }
22748 _ACEOF
22749 rm -f conftest.$ac_objext conftest$ac_exeext
22750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22751   (eval $ac_link) 2>&5
22752   ac_status=$?
22753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754   (exit $ac_status); } &&
22755          { ac_try='test -s conftest$ac_exeext'
22756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22757   (eval $ac_try) 2>&5
22758   ac_status=$?
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); }; }; then
22761   eval "$as_ac_var=yes"
22762 else
22763   echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22765
22766 eval "$as_ac_var=no"
22767 fi
22768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22769 fi
22770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22772 if test `eval echo '${'$as_ac_var'}'` = yes; then
22773   cat >>confdefs.h <<_ACEOF
22774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22775 _ACEOF
22776
22777 fi
22778 done
22779
22780   else
22781
22782   echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
22783 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
22784   if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
22785     if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
22786   echo $ECHO_N "(cached) $ECHO_C" >&6
22787 else
22788
22789
22790
22791       ac_ext=cc
22792 ac_cpp='$CXXCPP $CPPFLAGS'
22793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22796
22797       cat >conftest.$ac_ext <<_ACEOF
22798 #line $LINENO "configure"
22799 /* confdefs.h.  */
22800 _ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h.  */
22804 #include <math.h>
22805                       #ifdef HAVE_IEEEFP_H
22806                       #include <ieeefp.h>
22807                       #endif
22808
22809 int
22810 main ()
22811 {
22812  _isnanf(0);
22813   ;
22814   return 0;
22815 }
22816 _ACEOF
22817 rm -f conftest.$ac_objext
22818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22819   (eval $ac_compile) 2>&5
22820   ac_status=$?
22821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822   (exit $ac_status); } &&
22823          { ac_try='test -s conftest.$ac_objext'
22824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22825   (eval $ac_try) 2>&5
22826   ac_status=$?
22827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828   (exit $ac_status); }; }; then
22829   glibcxx_cv_func__isnanf_use=yes
22830 else
22831   echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22833
22834 glibcxx_cv_func__isnanf_use=no
22835 fi
22836 rm -f conftest.$ac_objext conftest.$ac_ext
22837       ac_ext=c
22838 ac_cpp='$CPP $CPPFLAGS'
22839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22842
22843
22844 fi
22845
22846   fi
22847   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
22848 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
22849
22850     if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
22851
22852 for ac_func in _isnanf
22853 do
22854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22855 echo "$as_me:$LINENO: checking for $ac_func" >&5
22856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22857 if eval "test \"\${$as_ac_var+set}\" = set"; then
22858   echo $ECHO_N "(cached) $ECHO_C" >&6
22859 else
22860   cat >conftest.$ac_ext <<_ACEOF
22861 #line $LINENO "configure"
22862 /* confdefs.h.  */
22863 _ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h.  */
22867 /* System header to define __stub macros and hopefully few prototypes,
22868     which can conflict with char $ac_func (); below.
22869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22870     <limits.h> exists even on freestanding compilers.  */
22871 #ifdef __STDC__
22872 # include <limits.h>
22873 #else
22874 # include <assert.h>
22875 #endif
22876 /* Override any gcc2 internal prototype to avoid an error.  */
22877 #ifdef __cplusplus
22878 extern "C"
22879 {
22880 #endif
22881 /* We use char because int might match the return type of a gcc2
22882    builtin and then its argument prototype would still apply.  */
22883 char $ac_func ();
22884 /* The GNU C library defines this for functions which it implements
22885     to always fail with ENOSYS.  Some functions are actually named
22886     something starting with __ and the normal name is an alias.  */
22887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22888 choke me
22889 #else
22890 char (*f) () = $ac_func;
22891 #endif
22892 #ifdef __cplusplus
22893 }
22894 #endif
22895
22896 int
22897 main ()
22898 {
22899 return f != $ac_func;
22900   ;
22901   return 0;
22902 }
22903 _ACEOF
22904 rm -f conftest.$ac_objext conftest$ac_exeext
22905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22906   (eval $ac_link) 2>&5
22907   ac_status=$?
22908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); } &&
22910          { ac_try='test -s conftest$ac_exeext'
22911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22912   (eval $ac_try) 2>&5
22913   ac_status=$?
22914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915   (exit $ac_status); }; }; then
22916   eval "$as_ac_var=yes"
22917 else
22918   echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22920
22921 eval "$as_ac_var=no"
22922 fi
22923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22924 fi
22925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22927 if test `eval echo '${'$as_ac_var'}'` = yes; then
22928   cat >>confdefs.h <<_ACEOF
22929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22930 _ACEOF
22931
22932 fi
22933 done
22934
22935     fi
22936   fi
22937
22938
22939
22940   echo "$as_me:$LINENO: checking for isinff declaration" >&5
22941 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
22942   if test x${glibcxx_cv_func_isinff_use+set} != xset; then
22943     if test "${glibcxx_cv_func_isinff_use+set}" = set; then
22944   echo $ECHO_N "(cached) $ECHO_C" >&6
22945 else
22946
22947
22948
22949       ac_ext=cc
22950 ac_cpp='$CXXCPP $CPPFLAGS'
22951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22954
22955       cat >conftest.$ac_ext <<_ACEOF
22956 #line $LINENO "configure"
22957 /* confdefs.h.  */
22958 _ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h.  */
22962 #include <math.h>
22963                       #ifdef HAVE_IEEEFP_H
22964                       #include <ieeefp.h>
22965                       #endif
22966
22967 int
22968 main ()
22969 {
22970  isinff(0);
22971   ;
22972   return 0;
22973 }
22974 _ACEOF
22975 rm -f conftest.$ac_objext
22976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22977   (eval $ac_compile) 2>&5
22978   ac_status=$?
22979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980   (exit $ac_status); } &&
22981          { ac_try='test -s conftest.$ac_objext'
22982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983   (eval $ac_try) 2>&5
22984   ac_status=$?
22985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); }; }; then
22987   glibcxx_cv_func_isinff_use=yes
22988 else
22989   echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22991
22992 glibcxx_cv_func_isinff_use=no
22993 fi
22994 rm -f conftest.$ac_objext conftest.$ac_ext
22995       ac_ext=c
22996 ac_cpp='$CPP $CPPFLAGS'
22997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23000
23001
23002 fi
23003
23004   fi
23005   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
23006 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
23007
23008   if test x$glibcxx_cv_func_isinff_use = x"yes"; then
23009
23010 for ac_func in isinff
23011 do
23012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23013 echo "$as_me:$LINENO: checking for $ac_func" >&5
23014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23015 if eval "test \"\${$as_ac_var+set}\" = set"; then
23016   echo $ECHO_N "(cached) $ECHO_C" >&6
23017 else
23018   cat >conftest.$ac_ext <<_ACEOF
23019 #line $LINENO "configure"
23020 /* confdefs.h.  */
23021 _ACEOF
23022 cat confdefs.h >>conftest.$ac_ext
23023 cat >>conftest.$ac_ext <<_ACEOF
23024 /* end confdefs.h.  */
23025 /* System header to define __stub macros and hopefully few prototypes,
23026     which can conflict with char $ac_func (); below.
23027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23028     <limits.h> exists even on freestanding compilers.  */
23029 #ifdef __STDC__
23030 # include <limits.h>
23031 #else
23032 # include <assert.h>
23033 #endif
23034 /* Override any gcc2 internal prototype to avoid an error.  */
23035 #ifdef __cplusplus
23036 extern "C"
23037 {
23038 #endif
23039 /* We use char because int might match the return type of a gcc2
23040    builtin and then its argument prototype would still apply.  */
23041 char $ac_func ();
23042 /* The GNU C library defines this for functions which it implements
23043     to always fail with ENOSYS.  Some functions are actually named
23044     something starting with __ and the normal name is an alias.  */
23045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23046 choke me
23047 #else
23048 char (*f) () = $ac_func;
23049 #endif
23050 #ifdef __cplusplus
23051 }
23052 #endif
23053
23054 int
23055 main ()
23056 {
23057 return f != $ac_func;
23058   ;
23059   return 0;
23060 }
23061 _ACEOF
23062 rm -f conftest.$ac_objext conftest$ac_exeext
23063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23064   (eval $ac_link) 2>&5
23065   ac_status=$?
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); } &&
23068          { ac_try='test -s conftest$ac_exeext'
23069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23070   (eval $ac_try) 2>&5
23071   ac_status=$?
23072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073   (exit $ac_status); }; }; then
23074   eval "$as_ac_var=yes"
23075 else
23076   echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.$ac_ext >&5
23078
23079 eval "$as_ac_var=no"
23080 fi
23081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23082 fi
23083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23085 if test `eval echo '${'$as_ac_var'}'` = yes; then
23086   cat >>confdefs.h <<_ACEOF
23087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23088 _ACEOF
23089
23090 fi
23091 done
23092
23093   else
23094
23095   echo "$as_me:$LINENO: checking for _isinff declaration" >&5
23096 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
23097   if test x${glibcxx_cv_func__isinff_use+set} != xset; then
23098     if test "${glibcxx_cv_func__isinff_use+set}" = set; then
23099   echo $ECHO_N "(cached) $ECHO_C" >&6
23100 else
23101
23102
23103
23104       ac_ext=cc
23105 ac_cpp='$CXXCPP $CPPFLAGS'
23106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23109
23110       cat >conftest.$ac_ext <<_ACEOF
23111 #line $LINENO "configure"
23112 /* confdefs.h.  */
23113 _ACEOF
23114 cat confdefs.h >>conftest.$ac_ext
23115 cat >>conftest.$ac_ext <<_ACEOF
23116 /* end confdefs.h.  */
23117 #include <math.h>
23118                       #ifdef HAVE_IEEEFP_H
23119                       #include <ieeefp.h>
23120                       #endif
23121
23122 int
23123 main ()
23124 {
23125  _isinff(0);
23126   ;
23127   return 0;
23128 }
23129 _ACEOF
23130 rm -f conftest.$ac_objext
23131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23132   (eval $ac_compile) 2>&5
23133   ac_status=$?
23134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135   (exit $ac_status); } &&
23136          { ac_try='test -s conftest.$ac_objext'
23137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138   (eval $ac_try) 2>&5
23139   ac_status=$?
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); }; }; then
23142   glibcxx_cv_func__isinff_use=yes
23143 else
23144   echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23146
23147 glibcxx_cv_func__isinff_use=no
23148 fi
23149 rm -f conftest.$ac_objext conftest.$ac_ext
23150       ac_ext=c
23151 ac_cpp='$CPP $CPPFLAGS'
23152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23155
23156
23157 fi
23158
23159   fi
23160   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
23161 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
23162
23163     if test x$glibcxx_cv_func__isinff_use = x"yes"; then
23164
23165 for ac_func in _isinff
23166 do
23167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23168 echo "$as_me:$LINENO: checking for $ac_func" >&5
23169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23170 if eval "test \"\${$as_ac_var+set}\" = set"; then
23171   echo $ECHO_N "(cached) $ECHO_C" >&6
23172 else
23173   cat >conftest.$ac_ext <<_ACEOF
23174 #line $LINENO "configure"
23175 /* confdefs.h.  */
23176 _ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h.  */
23180 /* System header to define __stub macros and hopefully few prototypes,
23181     which can conflict with char $ac_func (); below.
23182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23183     <limits.h> exists even on freestanding compilers.  */
23184 #ifdef __STDC__
23185 # include <limits.h>
23186 #else
23187 # include <assert.h>
23188 #endif
23189 /* Override any gcc2 internal prototype to avoid an error.  */
23190 #ifdef __cplusplus
23191 extern "C"
23192 {
23193 #endif
23194 /* We use char because int might match the return type of a gcc2
23195    builtin and then its argument prototype would still apply.  */
23196 char $ac_func ();
23197 /* The GNU C library defines this for functions which it implements
23198     to always fail with ENOSYS.  Some functions are actually named
23199     something starting with __ and the normal name is an alias.  */
23200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23201 choke me
23202 #else
23203 char (*f) () = $ac_func;
23204 #endif
23205 #ifdef __cplusplus
23206 }
23207 #endif
23208
23209 int
23210 main ()
23211 {
23212 return f != $ac_func;
23213   ;
23214   return 0;
23215 }
23216 _ACEOF
23217 rm -f conftest.$ac_objext conftest$ac_exeext
23218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23219   (eval $ac_link) 2>&5
23220   ac_status=$?
23221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222   (exit $ac_status); } &&
23223          { ac_try='test -s conftest$ac_exeext'
23224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23225   (eval $ac_try) 2>&5
23226   ac_status=$?
23227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228   (exit $ac_status); }; }; then
23229   eval "$as_ac_var=yes"
23230 else
23231   echo "$as_me: failed program was:" >&5
23232 sed 's/^/| /' conftest.$ac_ext >&5
23233
23234 eval "$as_ac_var=no"
23235 fi
23236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23237 fi
23238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23240 if test `eval echo '${'$as_ac_var'}'` = yes; then
23241   cat >>confdefs.h <<_ACEOF
23242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23243 _ACEOF
23244
23245 fi
23246 done
23247
23248     fi
23249   fi
23250
23251
23252
23253   echo "$as_me:$LINENO: checking for atan2f declaration" >&5
23254 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
23255   if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
23256     if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
23257   echo $ECHO_N "(cached) $ECHO_C" >&6
23258 else
23259
23260
23261
23262       ac_ext=cc
23263 ac_cpp='$CXXCPP $CPPFLAGS'
23264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23267
23268       cat >conftest.$ac_ext <<_ACEOF
23269 #line $LINENO "configure"
23270 /* confdefs.h.  */
23271 _ACEOF
23272 cat confdefs.h >>conftest.$ac_ext
23273 cat >>conftest.$ac_ext <<_ACEOF
23274 /* end confdefs.h.  */
23275 #include <math.h>
23276 int
23277 main ()
23278 {
23279  atan2f(0, 0);
23280   ;
23281   return 0;
23282 }
23283 _ACEOF
23284 rm -f conftest.$ac_objext
23285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23286   (eval $ac_compile) 2>&5
23287   ac_status=$?
23288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289   (exit $ac_status); } &&
23290          { ac_try='test -s conftest.$ac_objext'
23291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292   (eval $ac_try) 2>&5
23293   ac_status=$?
23294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295   (exit $ac_status); }; }; then
23296   glibcxx_cv_func_atan2f_use=yes
23297 else
23298   echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23300
23301 glibcxx_cv_func_atan2f_use=no
23302 fi
23303 rm -f conftest.$ac_objext conftest.$ac_ext
23304       ac_ext=c
23305 ac_cpp='$CPP $CPPFLAGS'
23306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23309
23310
23311 fi
23312
23313   fi
23314   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
23315 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
23316
23317   if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
23318
23319 for ac_func in atan2f
23320 do
23321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23322 echo "$as_me:$LINENO: checking for $ac_func" >&5
23323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23324 if eval "test \"\${$as_ac_var+set}\" = set"; then
23325   echo $ECHO_N "(cached) $ECHO_C" >&6
23326 else
23327   cat >conftest.$ac_ext <<_ACEOF
23328 #line $LINENO "configure"
23329 /* confdefs.h.  */
23330 _ACEOF
23331 cat confdefs.h >>conftest.$ac_ext
23332 cat >>conftest.$ac_ext <<_ACEOF
23333 /* end confdefs.h.  */
23334 /* System header to define __stub macros and hopefully few prototypes,
23335     which can conflict with char $ac_func (); below.
23336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23337     <limits.h> exists even on freestanding compilers.  */
23338 #ifdef __STDC__
23339 # include <limits.h>
23340 #else
23341 # include <assert.h>
23342 #endif
23343 /* Override any gcc2 internal prototype to avoid an error.  */
23344 #ifdef __cplusplus
23345 extern "C"
23346 {
23347 #endif
23348 /* We use char because int might match the return type of a gcc2
23349    builtin and then its argument prototype would still apply.  */
23350 char $ac_func ();
23351 /* The GNU C library defines this for functions which it implements
23352     to always fail with ENOSYS.  Some functions are actually named
23353     something starting with __ and the normal name is an alias.  */
23354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23355 choke me
23356 #else
23357 char (*f) () = $ac_func;
23358 #endif
23359 #ifdef __cplusplus
23360 }
23361 #endif
23362
23363 int
23364 main ()
23365 {
23366 return f != $ac_func;
23367   ;
23368   return 0;
23369 }
23370 _ACEOF
23371 rm -f conftest.$ac_objext conftest$ac_exeext
23372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23373   (eval $ac_link) 2>&5
23374   ac_status=$?
23375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376   (exit $ac_status); } &&
23377          { ac_try='test -s conftest$ac_exeext'
23378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23379   (eval $ac_try) 2>&5
23380   ac_status=$?
23381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382   (exit $ac_status); }; }; then
23383   eval "$as_ac_var=yes"
23384 else
23385   echo "$as_me: failed program was:" >&5
23386 sed 's/^/| /' conftest.$ac_ext >&5
23387
23388 eval "$as_ac_var=no"
23389 fi
23390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23391 fi
23392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23394 if test `eval echo '${'$as_ac_var'}'` = yes; then
23395   cat >>confdefs.h <<_ACEOF
23396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23397 _ACEOF
23398
23399 fi
23400 done
23401
23402   else
23403
23404   echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
23405 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
23406   if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
23407     if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
23408   echo $ECHO_N "(cached) $ECHO_C" >&6
23409 else
23410
23411
23412
23413       ac_ext=cc
23414 ac_cpp='$CXXCPP $CPPFLAGS'
23415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23418
23419       cat >conftest.$ac_ext <<_ACEOF
23420 #line $LINENO "configure"
23421 /* confdefs.h.  */
23422 _ACEOF
23423 cat confdefs.h >>conftest.$ac_ext
23424 cat >>conftest.$ac_ext <<_ACEOF
23425 /* end confdefs.h.  */
23426 #include <math.h>
23427 int
23428 main ()
23429 {
23430  _atan2f(0, 0);
23431   ;
23432   return 0;
23433 }
23434 _ACEOF
23435 rm -f conftest.$ac_objext
23436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23437   (eval $ac_compile) 2>&5
23438   ac_status=$?
23439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440   (exit $ac_status); } &&
23441          { ac_try='test -s conftest.$ac_objext'
23442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23443   (eval $ac_try) 2>&5
23444   ac_status=$?
23445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446   (exit $ac_status); }; }; then
23447   glibcxx_cv_func__atan2f_use=yes
23448 else
23449   echo "$as_me: failed program was:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23451
23452 glibcxx_cv_func__atan2f_use=no
23453 fi
23454 rm -f conftest.$ac_objext conftest.$ac_ext
23455       ac_ext=c
23456 ac_cpp='$CPP $CPPFLAGS'
23457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23460
23461
23462 fi
23463
23464   fi
23465   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
23466 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
23467
23468     if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
23469
23470 for ac_func in _atan2f
23471 do
23472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23473 echo "$as_me:$LINENO: checking for $ac_func" >&5
23474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23475 if eval "test \"\${$as_ac_var+set}\" = set"; then
23476   echo $ECHO_N "(cached) $ECHO_C" >&6
23477 else
23478   cat >conftest.$ac_ext <<_ACEOF
23479 #line $LINENO "configure"
23480 /* confdefs.h.  */
23481 _ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h.  */
23485 /* System header to define __stub macros and hopefully few prototypes,
23486     which can conflict with char $ac_func (); below.
23487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23488     <limits.h> exists even on freestanding compilers.  */
23489 #ifdef __STDC__
23490 # include <limits.h>
23491 #else
23492 # include <assert.h>
23493 #endif
23494 /* Override any gcc2 internal prototype to avoid an error.  */
23495 #ifdef __cplusplus
23496 extern "C"
23497 {
23498 #endif
23499 /* We use char because int might match the return type of a gcc2
23500    builtin and then its argument prototype would still apply.  */
23501 char $ac_func ();
23502 /* The GNU C library defines this for functions which it implements
23503     to always fail with ENOSYS.  Some functions are actually named
23504     something starting with __ and the normal name is an alias.  */
23505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23506 choke me
23507 #else
23508 char (*f) () = $ac_func;
23509 #endif
23510 #ifdef __cplusplus
23511 }
23512 #endif
23513
23514 int
23515 main ()
23516 {
23517 return f != $ac_func;
23518   ;
23519   return 0;
23520 }
23521 _ACEOF
23522 rm -f conftest.$ac_objext conftest$ac_exeext
23523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23524   (eval $ac_link) 2>&5
23525   ac_status=$?
23526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527   (exit $ac_status); } &&
23528          { ac_try='test -s conftest$ac_exeext'
23529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23530   (eval $ac_try) 2>&5
23531   ac_status=$?
23532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533   (exit $ac_status); }; }; then
23534   eval "$as_ac_var=yes"
23535 else
23536   echo "$as_me: failed program was:" >&5
23537 sed 's/^/| /' conftest.$ac_ext >&5
23538
23539 eval "$as_ac_var=no"
23540 fi
23541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23542 fi
23543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23545 if test `eval echo '${'$as_ac_var'}'` = yes; then
23546   cat >>confdefs.h <<_ACEOF
23547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23548 _ACEOF
23549
23550 fi
23551 done
23552
23553     fi
23554   fi
23555
23556
23557
23558   echo "$as_me:$LINENO: checking for fabsf declaration" >&5
23559 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
23560   if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
23561     if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
23562   echo $ECHO_N "(cached) $ECHO_C" >&6
23563 else
23564
23565
23566
23567       ac_ext=cc
23568 ac_cpp='$CXXCPP $CPPFLAGS'
23569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23572
23573       cat >conftest.$ac_ext <<_ACEOF
23574 #line $LINENO "configure"
23575 /* confdefs.h.  */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h.  */
23580 #include <math.h>
23581                       #ifdef HAVE_IEEEFP_H
23582                       #include <ieeefp.h>
23583                       #endif
23584
23585 int
23586 main ()
23587 {
23588  fabsf(0);
23589   ;
23590   return 0;
23591 }
23592 _ACEOF
23593 rm -f conftest.$ac_objext
23594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23595   (eval $ac_compile) 2>&5
23596   ac_status=$?
23597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598   (exit $ac_status); } &&
23599          { ac_try='test -s conftest.$ac_objext'
23600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601   (eval $ac_try) 2>&5
23602   ac_status=$?
23603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604   (exit $ac_status); }; }; then
23605   glibcxx_cv_func_fabsf_use=yes
23606 else
23607   echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23609
23610 glibcxx_cv_func_fabsf_use=no
23611 fi
23612 rm -f conftest.$ac_objext conftest.$ac_ext
23613       ac_ext=c
23614 ac_cpp='$CPP $CPPFLAGS'
23615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23618
23619
23620 fi
23621
23622   fi
23623   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
23624 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
23625
23626   if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
23627
23628 for ac_func in fabsf
23629 do
23630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23631 echo "$as_me:$LINENO: checking for $ac_func" >&5
23632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23633 if eval "test \"\${$as_ac_var+set}\" = set"; then
23634   echo $ECHO_N "(cached) $ECHO_C" >&6
23635 else
23636   cat >conftest.$ac_ext <<_ACEOF
23637 #line $LINENO "configure"
23638 /* confdefs.h.  */
23639 _ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h.  */
23643 /* System header to define __stub macros and hopefully few prototypes,
23644     which can conflict with char $ac_func (); below.
23645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23646     <limits.h> exists even on freestanding compilers.  */
23647 #ifdef __STDC__
23648 # include <limits.h>
23649 #else
23650 # include <assert.h>
23651 #endif
23652 /* Override any gcc2 internal prototype to avoid an error.  */
23653 #ifdef __cplusplus
23654 extern "C"
23655 {
23656 #endif
23657 /* We use char because int might match the return type of a gcc2
23658    builtin and then its argument prototype would still apply.  */
23659 char $ac_func ();
23660 /* The GNU C library defines this for functions which it implements
23661     to always fail with ENOSYS.  Some functions are actually named
23662     something starting with __ and the normal name is an alias.  */
23663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23664 choke me
23665 #else
23666 char (*f) () = $ac_func;
23667 #endif
23668 #ifdef __cplusplus
23669 }
23670 #endif
23671
23672 int
23673 main ()
23674 {
23675 return f != $ac_func;
23676   ;
23677   return 0;
23678 }
23679 _ACEOF
23680 rm -f conftest.$ac_objext conftest$ac_exeext
23681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23682   (eval $ac_link) 2>&5
23683   ac_status=$?
23684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685   (exit $ac_status); } &&
23686          { ac_try='test -s conftest$ac_exeext'
23687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23688   (eval $ac_try) 2>&5
23689   ac_status=$?
23690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691   (exit $ac_status); }; }; then
23692   eval "$as_ac_var=yes"
23693 else
23694   echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23696
23697 eval "$as_ac_var=no"
23698 fi
23699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23700 fi
23701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23703 if test `eval echo '${'$as_ac_var'}'` = yes; then
23704   cat >>confdefs.h <<_ACEOF
23705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23706 _ACEOF
23707
23708 fi
23709 done
23710
23711   else
23712
23713   echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
23714 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
23715   if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
23716     if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
23717   echo $ECHO_N "(cached) $ECHO_C" >&6
23718 else
23719
23720
23721
23722       ac_ext=cc
23723 ac_cpp='$CXXCPP $CPPFLAGS'
23724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23727
23728       cat >conftest.$ac_ext <<_ACEOF
23729 #line $LINENO "configure"
23730 /* confdefs.h.  */
23731 _ACEOF
23732 cat confdefs.h >>conftest.$ac_ext
23733 cat >>conftest.$ac_ext <<_ACEOF
23734 /* end confdefs.h.  */
23735 #include <math.h>
23736                       #ifdef HAVE_IEEEFP_H
23737                       #include <ieeefp.h>
23738                       #endif
23739
23740 int
23741 main ()
23742 {
23743  _fabsf(0);
23744   ;
23745   return 0;
23746 }
23747 _ACEOF
23748 rm -f conftest.$ac_objext
23749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23750   (eval $ac_compile) 2>&5
23751   ac_status=$?
23752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753   (exit $ac_status); } &&
23754          { ac_try='test -s conftest.$ac_objext'
23755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756   (eval $ac_try) 2>&5
23757   ac_status=$?
23758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759   (exit $ac_status); }; }; then
23760   glibcxx_cv_func__fabsf_use=yes
23761 else
23762   echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23764
23765 glibcxx_cv_func__fabsf_use=no
23766 fi
23767 rm -f conftest.$ac_objext conftest.$ac_ext
23768       ac_ext=c
23769 ac_cpp='$CPP $CPPFLAGS'
23770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23773
23774
23775 fi
23776
23777   fi
23778   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
23779 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
23780
23781     if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
23782
23783 for ac_func in _fabsf
23784 do
23785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23786 echo "$as_me:$LINENO: checking for $ac_func" >&5
23787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23788 if eval "test \"\${$as_ac_var+set}\" = set"; then
23789   echo $ECHO_N "(cached) $ECHO_C" >&6
23790 else
23791   cat >conftest.$ac_ext <<_ACEOF
23792 #line $LINENO "configure"
23793 /* confdefs.h.  */
23794 _ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h.  */
23798 /* System header to define __stub macros and hopefully few prototypes,
23799     which can conflict with char $ac_func (); below.
23800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23801     <limits.h> exists even on freestanding compilers.  */
23802 #ifdef __STDC__
23803 # include <limits.h>
23804 #else
23805 # include <assert.h>
23806 #endif
23807 /* Override any gcc2 internal prototype to avoid an error.  */
23808 #ifdef __cplusplus
23809 extern "C"
23810 {
23811 #endif
23812 /* We use char because int might match the return type of a gcc2
23813    builtin and then its argument prototype would still apply.  */
23814 char $ac_func ();
23815 /* The GNU C library defines this for functions which it implements
23816     to always fail with ENOSYS.  Some functions are actually named
23817     something starting with __ and the normal name is an alias.  */
23818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23819 choke me
23820 #else
23821 char (*f) () = $ac_func;
23822 #endif
23823 #ifdef __cplusplus
23824 }
23825 #endif
23826
23827 int
23828 main ()
23829 {
23830 return f != $ac_func;
23831   ;
23832   return 0;
23833 }
23834 _ACEOF
23835 rm -f conftest.$ac_objext conftest$ac_exeext
23836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23837   (eval $ac_link) 2>&5
23838   ac_status=$?
23839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840   (exit $ac_status); } &&
23841          { ac_try='test -s conftest$ac_exeext'
23842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23843   (eval $ac_try) 2>&5
23844   ac_status=$?
23845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846   (exit $ac_status); }; }; then
23847   eval "$as_ac_var=yes"
23848 else
23849   echo "$as_me: failed program was:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23851
23852 eval "$as_ac_var=no"
23853 fi
23854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23855 fi
23856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23858 if test `eval echo '${'$as_ac_var'}'` = yes; then
23859   cat >>confdefs.h <<_ACEOF
23860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23861 _ACEOF
23862
23863 fi
23864 done
23865
23866     fi
23867   fi
23868
23869
23870
23871   echo "$as_me:$LINENO: checking for fmodf declaration" >&5
23872 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
23873   if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
23874     if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
23875   echo $ECHO_N "(cached) $ECHO_C" >&6
23876 else
23877
23878
23879
23880       ac_ext=cc
23881 ac_cpp='$CXXCPP $CPPFLAGS'
23882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23885
23886       cat >conftest.$ac_ext <<_ACEOF
23887 #line $LINENO "configure"
23888 /* confdefs.h.  */
23889 _ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h.  */
23893 #include <math.h>
23894 int
23895 main ()
23896 {
23897  fmodf(0, 0);
23898   ;
23899   return 0;
23900 }
23901 _ACEOF
23902 rm -f conftest.$ac_objext
23903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23904   (eval $ac_compile) 2>&5
23905   ac_status=$?
23906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907   (exit $ac_status); } &&
23908          { ac_try='test -s conftest.$ac_objext'
23909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23910   (eval $ac_try) 2>&5
23911   ac_status=$?
23912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913   (exit $ac_status); }; }; then
23914   glibcxx_cv_func_fmodf_use=yes
23915 else
23916   echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23918
23919 glibcxx_cv_func_fmodf_use=no
23920 fi
23921 rm -f conftest.$ac_objext conftest.$ac_ext
23922       ac_ext=c
23923 ac_cpp='$CPP $CPPFLAGS'
23924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23927
23928
23929 fi
23930
23931   fi
23932   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
23933 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
23934
23935   if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
23936
23937 for ac_func in fmodf
23938 do
23939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23940 echo "$as_me:$LINENO: checking for $ac_func" >&5
23941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23942 if eval "test \"\${$as_ac_var+set}\" = set"; then
23943   echo $ECHO_N "(cached) $ECHO_C" >&6
23944 else
23945   cat >conftest.$ac_ext <<_ACEOF
23946 #line $LINENO "configure"
23947 /* confdefs.h.  */
23948 _ACEOF
23949 cat confdefs.h >>conftest.$ac_ext
23950 cat >>conftest.$ac_ext <<_ACEOF
23951 /* end confdefs.h.  */
23952 /* System header to define __stub macros and hopefully few prototypes,
23953     which can conflict with char $ac_func (); below.
23954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23955     <limits.h> exists even on freestanding compilers.  */
23956 #ifdef __STDC__
23957 # include <limits.h>
23958 #else
23959 # include <assert.h>
23960 #endif
23961 /* Override any gcc2 internal prototype to avoid an error.  */
23962 #ifdef __cplusplus
23963 extern "C"
23964 {
23965 #endif
23966 /* We use char because int might match the return type of a gcc2
23967    builtin and then its argument prototype would still apply.  */
23968 char $ac_func ();
23969 /* The GNU C library defines this for functions which it implements
23970     to always fail with ENOSYS.  Some functions are actually named
23971     something starting with __ and the normal name is an alias.  */
23972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23973 choke me
23974 #else
23975 char (*f) () = $ac_func;
23976 #endif
23977 #ifdef __cplusplus
23978 }
23979 #endif
23980
23981 int
23982 main ()
23983 {
23984 return f != $ac_func;
23985   ;
23986   return 0;
23987 }
23988 _ACEOF
23989 rm -f conftest.$ac_objext conftest$ac_exeext
23990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23991   (eval $ac_link) 2>&5
23992   ac_status=$?
23993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994   (exit $ac_status); } &&
23995          { ac_try='test -s conftest$ac_exeext'
23996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997   (eval $ac_try) 2>&5
23998   ac_status=$?
23999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000   (exit $ac_status); }; }; then
24001   eval "$as_ac_var=yes"
24002 else
24003   echo "$as_me: failed program was:" >&5
24004 sed 's/^/| /' conftest.$ac_ext >&5
24005
24006 eval "$as_ac_var=no"
24007 fi
24008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24009 fi
24010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24012 if test `eval echo '${'$as_ac_var'}'` = yes; then
24013   cat >>confdefs.h <<_ACEOF
24014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24015 _ACEOF
24016
24017 fi
24018 done
24019
24020   else
24021
24022   echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
24023 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
24024   if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
24025     if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
24026   echo $ECHO_N "(cached) $ECHO_C" >&6
24027 else
24028
24029
24030
24031       ac_ext=cc
24032 ac_cpp='$CXXCPP $CPPFLAGS'
24033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24036
24037       cat >conftest.$ac_ext <<_ACEOF
24038 #line $LINENO "configure"
24039 /* confdefs.h.  */
24040 _ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h.  */
24044 #include <math.h>
24045 int
24046 main ()
24047 {
24048  _fmodf(0, 0);
24049   ;
24050   return 0;
24051 }
24052 _ACEOF
24053 rm -f conftest.$ac_objext
24054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24055   (eval $ac_compile) 2>&5
24056   ac_status=$?
24057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058   (exit $ac_status); } &&
24059          { ac_try='test -s conftest.$ac_objext'
24060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24061   (eval $ac_try) 2>&5
24062   ac_status=$?
24063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064   (exit $ac_status); }; }; then
24065   glibcxx_cv_func__fmodf_use=yes
24066 else
24067   echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24069
24070 glibcxx_cv_func__fmodf_use=no
24071 fi
24072 rm -f conftest.$ac_objext conftest.$ac_ext
24073       ac_ext=c
24074 ac_cpp='$CPP $CPPFLAGS'
24075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24078
24079
24080 fi
24081
24082   fi
24083   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
24084 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
24085
24086     if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
24087
24088 for ac_func in _fmodf
24089 do
24090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24091 echo "$as_me:$LINENO: checking for $ac_func" >&5
24092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24093 if eval "test \"\${$as_ac_var+set}\" = set"; then
24094   echo $ECHO_N "(cached) $ECHO_C" >&6
24095 else
24096   cat >conftest.$ac_ext <<_ACEOF
24097 #line $LINENO "configure"
24098 /* confdefs.h.  */
24099 _ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h.  */
24103 /* System header to define __stub macros and hopefully few prototypes,
24104     which can conflict with char $ac_func (); below.
24105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24106     <limits.h> exists even on freestanding compilers.  */
24107 #ifdef __STDC__
24108 # include <limits.h>
24109 #else
24110 # include <assert.h>
24111 #endif
24112 /* Override any gcc2 internal prototype to avoid an error.  */
24113 #ifdef __cplusplus
24114 extern "C"
24115 {
24116 #endif
24117 /* We use char because int might match the return type of a gcc2
24118    builtin and then its argument prototype would still apply.  */
24119 char $ac_func ();
24120 /* The GNU C library defines this for functions which it implements
24121     to always fail with ENOSYS.  Some functions are actually named
24122     something starting with __ and the normal name is an alias.  */
24123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24124 choke me
24125 #else
24126 char (*f) () = $ac_func;
24127 #endif
24128 #ifdef __cplusplus
24129 }
24130 #endif
24131
24132 int
24133 main ()
24134 {
24135 return f != $ac_func;
24136   ;
24137   return 0;
24138 }
24139 _ACEOF
24140 rm -f conftest.$ac_objext conftest$ac_exeext
24141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24142   (eval $ac_link) 2>&5
24143   ac_status=$?
24144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145   (exit $ac_status); } &&
24146          { ac_try='test -s conftest$ac_exeext'
24147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24148   (eval $ac_try) 2>&5
24149   ac_status=$?
24150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); }; }; then
24152   eval "$as_ac_var=yes"
24153 else
24154   echo "$as_me: failed program was:" >&5
24155 sed 's/^/| /' conftest.$ac_ext >&5
24156
24157 eval "$as_ac_var=no"
24158 fi
24159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24160 fi
24161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24163 if test `eval echo '${'$as_ac_var'}'` = yes; then
24164   cat >>confdefs.h <<_ACEOF
24165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24166 _ACEOF
24167
24168 fi
24169 done
24170
24171     fi
24172   fi
24173
24174
24175
24176   echo "$as_me:$LINENO: checking for frexpf declaration" >&5
24177 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
24178   if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
24179     if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
24180   echo $ECHO_N "(cached) $ECHO_C" >&6
24181 else
24182
24183
24184
24185       ac_ext=cc
24186 ac_cpp='$CXXCPP $CPPFLAGS'
24187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24190
24191       cat >conftest.$ac_ext <<_ACEOF
24192 #line $LINENO "configure"
24193 /* confdefs.h.  */
24194 _ACEOF
24195 cat confdefs.h >>conftest.$ac_ext
24196 cat >>conftest.$ac_ext <<_ACEOF
24197 /* end confdefs.h.  */
24198 #include <math.h>
24199 int
24200 main ()
24201 {
24202  frexpf(0, 0);
24203   ;
24204   return 0;
24205 }
24206 _ACEOF
24207 rm -f conftest.$ac_objext
24208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24209   (eval $ac_compile) 2>&5
24210   ac_status=$?
24211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212   (exit $ac_status); } &&
24213          { ac_try='test -s conftest.$ac_objext'
24214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24215   (eval $ac_try) 2>&5
24216   ac_status=$?
24217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218   (exit $ac_status); }; }; then
24219   glibcxx_cv_func_frexpf_use=yes
24220 else
24221   echo "$as_me: failed program was:" >&5
24222 sed 's/^/| /' conftest.$ac_ext >&5
24223
24224 glibcxx_cv_func_frexpf_use=no
24225 fi
24226 rm -f conftest.$ac_objext conftest.$ac_ext
24227       ac_ext=c
24228 ac_cpp='$CPP $CPPFLAGS'
24229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24232
24233
24234 fi
24235
24236   fi
24237   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
24238 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
24239
24240   if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
24241
24242 for ac_func in frexpf
24243 do
24244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24245 echo "$as_me:$LINENO: checking for $ac_func" >&5
24246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24247 if eval "test \"\${$as_ac_var+set}\" = set"; then
24248   echo $ECHO_N "(cached) $ECHO_C" >&6
24249 else
24250   cat >conftest.$ac_ext <<_ACEOF
24251 #line $LINENO "configure"
24252 /* confdefs.h.  */
24253 _ACEOF
24254 cat confdefs.h >>conftest.$ac_ext
24255 cat >>conftest.$ac_ext <<_ACEOF
24256 /* end confdefs.h.  */
24257 /* System header to define __stub macros and hopefully few prototypes,
24258     which can conflict with char $ac_func (); below.
24259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24260     <limits.h> exists even on freestanding compilers.  */
24261 #ifdef __STDC__
24262 # include <limits.h>
24263 #else
24264 # include <assert.h>
24265 #endif
24266 /* Override any gcc2 internal prototype to avoid an error.  */
24267 #ifdef __cplusplus
24268 extern "C"
24269 {
24270 #endif
24271 /* We use char because int might match the return type of a gcc2
24272    builtin and then its argument prototype would still apply.  */
24273 char $ac_func ();
24274 /* The GNU C library defines this for functions which it implements
24275     to always fail with ENOSYS.  Some functions are actually named
24276     something starting with __ and the normal name is an alias.  */
24277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24278 choke me
24279 #else
24280 char (*f) () = $ac_func;
24281 #endif
24282 #ifdef __cplusplus
24283 }
24284 #endif
24285
24286 int
24287 main ()
24288 {
24289 return f != $ac_func;
24290   ;
24291   return 0;
24292 }
24293 _ACEOF
24294 rm -f conftest.$ac_objext conftest$ac_exeext
24295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24296   (eval $ac_link) 2>&5
24297   ac_status=$?
24298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299   (exit $ac_status); } &&
24300          { ac_try='test -s conftest$ac_exeext'
24301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24302   (eval $ac_try) 2>&5
24303   ac_status=$?
24304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305   (exit $ac_status); }; }; then
24306   eval "$as_ac_var=yes"
24307 else
24308   echo "$as_me: failed program was:" >&5
24309 sed 's/^/| /' conftest.$ac_ext >&5
24310
24311 eval "$as_ac_var=no"
24312 fi
24313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24314 fi
24315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24317 if test `eval echo '${'$as_ac_var'}'` = yes; then
24318   cat >>confdefs.h <<_ACEOF
24319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24320 _ACEOF
24321
24322 fi
24323 done
24324
24325   else
24326
24327   echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
24328 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
24329   if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
24330     if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
24331   echo $ECHO_N "(cached) $ECHO_C" >&6
24332 else
24333
24334
24335
24336       ac_ext=cc
24337 ac_cpp='$CXXCPP $CPPFLAGS'
24338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24341
24342       cat >conftest.$ac_ext <<_ACEOF
24343 #line $LINENO "configure"
24344 /* confdefs.h.  */
24345 _ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h.  */
24349 #include <math.h>
24350 int
24351 main ()
24352 {
24353  _frexpf(0, 0);
24354   ;
24355   return 0;
24356 }
24357 _ACEOF
24358 rm -f conftest.$ac_objext
24359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24360   (eval $ac_compile) 2>&5
24361   ac_status=$?
24362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363   (exit $ac_status); } &&
24364          { ac_try='test -s conftest.$ac_objext'
24365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24366   (eval $ac_try) 2>&5
24367   ac_status=$?
24368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369   (exit $ac_status); }; }; then
24370   glibcxx_cv_func__frexpf_use=yes
24371 else
24372   echo "$as_me: failed program was:" >&5
24373 sed 's/^/| /' conftest.$ac_ext >&5
24374
24375 glibcxx_cv_func__frexpf_use=no
24376 fi
24377 rm -f conftest.$ac_objext conftest.$ac_ext
24378       ac_ext=c
24379 ac_cpp='$CPP $CPPFLAGS'
24380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24383
24384
24385 fi
24386
24387   fi
24388   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
24389 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
24390
24391     if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
24392
24393 for ac_func in _frexpf
24394 do
24395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24396 echo "$as_me:$LINENO: checking for $ac_func" >&5
24397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24398 if eval "test \"\${$as_ac_var+set}\" = set"; then
24399   echo $ECHO_N "(cached) $ECHO_C" >&6
24400 else
24401   cat >conftest.$ac_ext <<_ACEOF
24402 #line $LINENO "configure"
24403 /* confdefs.h.  */
24404 _ACEOF
24405 cat confdefs.h >>conftest.$ac_ext
24406 cat >>conftest.$ac_ext <<_ACEOF
24407 /* end confdefs.h.  */
24408 /* System header to define __stub macros and hopefully few prototypes,
24409     which can conflict with char $ac_func (); below.
24410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24411     <limits.h> exists even on freestanding compilers.  */
24412 #ifdef __STDC__
24413 # include <limits.h>
24414 #else
24415 # include <assert.h>
24416 #endif
24417 /* Override any gcc2 internal prototype to avoid an error.  */
24418 #ifdef __cplusplus
24419 extern "C"
24420 {
24421 #endif
24422 /* We use char because int might match the return type of a gcc2
24423    builtin and then its argument prototype would still apply.  */
24424 char $ac_func ();
24425 /* The GNU C library defines this for functions which it implements
24426     to always fail with ENOSYS.  Some functions are actually named
24427     something starting with __ and the normal name is an alias.  */
24428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24429 choke me
24430 #else
24431 char (*f) () = $ac_func;
24432 #endif
24433 #ifdef __cplusplus
24434 }
24435 #endif
24436
24437 int
24438 main ()
24439 {
24440 return f != $ac_func;
24441   ;
24442   return 0;
24443 }
24444 _ACEOF
24445 rm -f conftest.$ac_objext conftest$ac_exeext
24446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24447   (eval $ac_link) 2>&5
24448   ac_status=$?
24449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450   (exit $ac_status); } &&
24451          { ac_try='test -s conftest$ac_exeext'
24452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24453   (eval $ac_try) 2>&5
24454   ac_status=$?
24455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456   (exit $ac_status); }; }; then
24457   eval "$as_ac_var=yes"
24458 else
24459   echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24461
24462 eval "$as_ac_var=no"
24463 fi
24464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24465 fi
24466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24468 if test `eval echo '${'$as_ac_var'}'` = yes; then
24469   cat >>confdefs.h <<_ACEOF
24470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24471 _ACEOF
24472
24473 fi
24474 done
24475
24476     fi
24477   fi
24478
24479
24480
24481   echo "$as_me:$LINENO: checking for hypotf declaration" >&5
24482 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
24483   if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
24484     if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
24485   echo $ECHO_N "(cached) $ECHO_C" >&6
24486 else
24487
24488
24489
24490       ac_ext=cc
24491 ac_cpp='$CXXCPP $CPPFLAGS'
24492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24495
24496       cat >conftest.$ac_ext <<_ACEOF
24497 #line $LINENO "configure"
24498 /* confdefs.h.  */
24499 _ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h.  */
24503 #include <math.h>
24504 int
24505 main ()
24506 {
24507  hypotf(0, 0);
24508   ;
24509   return 0;
24510 }
24511 _ACEOF
24512 rm -f conftest.$ac_objext
24513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24514   (eval $ac_compile) 2>&5
24515   ac_status=$?
24516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517   (exit $ac_status); } &&
24518          { ac_try='test -s conftest.$ac_objext'
24519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24520   (eval $ac_try) 2>&5
24521   ac_status=$?
24522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523   (exit $ac_status); }; }; then
24524   glibcxx_cv_func_hypotf_use=yes
24525 else
24526   echo "$as_me: failed program was:" >&5
24527 sed 's/^/| /' conftest.$ac_ext >&5
24528
24529 glibcxx_cv_func_hypotf_use=no
24530 fi
24531 rm -f conftest.$ac_objext conftest.$ac_ext
24532       ac_ext=c
24533 ac_cpp='$CPP $CPPFLAGS'
24534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24537
24538
24539 fi
24540
24541   fi
24542   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
24543 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
24544
24545   if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
24546
24547 for ac_func in hypotf
24548 do
24549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24550 echo "$as_me:$LINENO: checking for $ac_func" >&5
24551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24552 if eval "test \"\${$as_ac_var+set}\" = set"; then
24553   echo $ECHO_N "(cached) $ECHO_C" >&6
24554 else
24555   cat >conftest.$ac_ext <<_ACEOF
24556 #line $LINENO "configure"
24557 /* confdefs.h.  */
24558 _ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h.  */
24562 /* System header to define __stub macros and hopefully few prototypes,
24563     which can conflict with char $ac_func (); below.
24564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24565     <limits.h> exists even on freestanding compilers.  */
24566 #ifdef __STDC__
24567 # include <limits.h>
24568 #else
24569 # include <assert.h>
24570 #endif
24571 /* Override any gcc2 internal prototype to avoid an error.  */
24572 #ifdef __cplusplus
24573 extern "C"
24574 {
24575 #endif
24576 /* We use char because int might match the return type of a gcc2
24577    builtin and then its argument prototype would still apply.  */
24578 char $ac_func ();
24579 /* The GNU C library defines this for functions which it implements
24580     to always fail with ENOSYS.  Some functions are actually named
24581     something starting with __ and the normal name is an alias.  */
24582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24583 choke me
24584 #else
24585 char (*f) () = $ac_func;
24586 #endif
24587 #ifdef __cplusplus
24588 }
24589 #endif
24590
24591 int
24592 main ()
24593 {
24594 return f != $ac_func;
24595   ;
24596   return 0;
24597 }
24598 _ACEOF
24599 rm -f conftest.$ac_objext conftest$ac_exeext
24600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24601   (eval $ac_link) 2>&5
24602   ac_status=$?
24603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604   (exit $ac_status); } &&
24605          { ac_try='test -s conftest$ac_exeext'
24606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24607   (eval $ac_try) 2>&5
24608   ac_status=$?
24609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610   (exit $ac_status); }; }; then
24611   eval "$as_ac_var=yes"
24612 else
24613   echo "$as_me: failed program was:" >&5
24614 sed 's/^/| /' conftest.$ac_ext >&5
24615
24616 eval "$as_ac_var=no"
24617 fi
24618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24619 fi
24620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24622 if test `eval echo '${'$as_ac_var'}'` = yes; then
24623   cat >>confdefs.h <<_ACEOF
24624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24625 _ACEOF
24626
24627 fi
24628 done
24629
24630   else
24631
24632   echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
24633 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
24634   if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
24635     if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
24636   echo $ECHO_N "(cached) $ECHO_C" >&6
24637 else
24638
24639
24640
24641       ac_ext=cc
24642 ac_cpp='$CXXCPP $CPPFLAGS'
24643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24646
24647       cat >conftest.$ac_ext <<_ACEOF
24648 #line $LINENO "configure"
24649 /* confdefs.h.  */
24650 _ACEOF
24651 cat confdefs.h >>conftest.$ac_ext
24652 cat >>conftest.$ac_ext <<_ACEOF
24653 /* end confdefs.h.  */
24654 #include <math.h>
24655 int
24656 main ()
24657 {
24658  _hypotf(0, 0);
24659   ;
24660   return 0;
24661 }
24662 _ACEOF
24663 rm -f conftest.$ac_objext
24664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24665   (eval $ac_compile) 2>&5
24666   ac_status=$?
24667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668   (exit $ac_status); } &&
24669          { ac_try='test -s conftest.$ac_objext'
24670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671   (eval $ac_try) 2>&5
24672   ac_status=$?
24673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674   (exit $ac_status); }; }; then
24675   glibcxx_cv_func__hypotf_use=yes
24676 else
24677   echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24679
24680 glibcxx_cv_func__hypotf_use=no
24681 fi
24682 rm -f conftest.$ac_objext conftest.$ac_ext
24683       ac_ext=c
24684 ac_cpp='$CPP $CPPFLAGS'
24685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24688
24689
24690 fi
24691
24692   fi
24693   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
24694 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
24695
24696     if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
24697
24698 for ac_func in _hypotf
24699 do
24700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24701 echo "$as_me:$LINENO: checking for $ac_func" >&5
24702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24703 if eval "test \"\${$as_ac_var+set}\" = set"; then
24704   echo $ECHO_N "(cached) $ECHO_C" >&6
24705 else
24706   cat >conftest.$ac_ext <<_ACEOF
24707 #line $LINENO "configure"
24708 /* confdefs.h.  */
24709 _ACEOF
24710 cat confdefs.h >>conftest.$ac_ext
24711 cat >>conftest.$ac_ext <<_ACEOF
24712 /* end confdefs.h.  */
24713 /* System header to define __stub macros and hopefully few prototypes,
24714     which can conflict with char $ac_func (); below.
24715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24716     <limits.h> exists even on freestanding compilers.  */
24717 #ifdef __STDC__
24718 # include <limits.h>
24719 #else
24720 # include <assert.h>
24721 #endif
24722 /* Override any gcc2 internal prototype to avoid an error.  */
24723 #ifdef __cplusplus
24724 extern "C"
24725 {
24726 #endif
24727 /* We use char because int might match the return type of a gcc2
24728    builtin and then its argument prototype would still apply.  */
24729 char $ac_func ();
24730 /* The GNU C library defines this for functions which it implements
24731     to always fail with ENOSYS.  Some functions are actually named
24732     something starting with __ and the normal name is an alias.  */
24733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24734 choke me
24735 #else
24736 char (*f) () = $ac_func;
24737 #endif
24738 #ifdef __cplusplus
24739 }
24740 #endif
24741
24742 int
24743 main ()
24744 {
24745 return f != $ac_func;
24746   ;
24747   return 0;
24748 }
24749 _ACEOF
24750 rm -f conftest.$ac_objext conftest$ac_exeext
24751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24752   (eval $ac_link) 2>&5
24753   ac_status=$?
24754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755   (exit $ac_status); } &&
24756          { ac_try='test -s conftest$ac_exeext'
24757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24758   (eval $ac_try) 2>&5
24759   ac_status=$?
24760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761   (exit $ac_status); }; }; then
24762   eval "$as_ac_var=yes"
24763 else
24764   echo "$as_me: failed program was:" >&5
24765 sed 's/^/| /' conftest.$ac_ext >&5
24766
24767 eval "$as_ac_var=no"
24768 fi
24769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24770 fi
24771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24773 if test `eval echo '${'$as_ac_var'}'` = yes; then
24774   cat >>confdefs.h <<_ACEOF
24775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24776 _ACEOF
24777
24778 fi
24779 done
24780
24781     fi
24782   fi
24783
24784
24785
24786   echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
24787 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
24788   if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
24789     if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
24790   echo $ECHO_N "(cached) $ECHO_C" >&6
24791 else
24792
24793
24794
24795       ac_ext=cc
24796 ac_cpp='$CXXCPP $CPPFLAGS'
24797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24800
24801       cat >conftest.$ac_ext <<_ACEOF
24802 #line $LINENO "configure"
24803 /* confdefs.h.  */
24804 _ACEOF
24805 cat confdefs.h >>conftest.$ac_ext
24806 cat >>conftest.$ac_ext <<_ACEOF
24807 /* end confdefs.h.  */
24808 #include <math.h>
24809 int
24810 main ()
24811 {
24812  ldexpf(0, 0);
24813   ;
24814   return 0;
24815 }
24816 _ACEOF
24817 rm -f conftest.$ac_objext
24818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24819   (eval $ac_compile) 2>&5
24820   ac_status=$?
24821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822   (exit $ac_status); } &&
24823          { ac_try='test -s conftest.$ac_objext'
24824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24825   (eval $ac_try) 2>&5
24826   ac_status=$?
24827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828   (exit $ac_status); }; }; then
24829   glibcxx_cv_func_ldexpf_use=yes
24830 else
24831   echo "$as_me: failed program was:" >&5
24832 sed 's/^/| /' conftest.$ac_ext >&5
24833
24834 glibcxx_cv_func_ldexpf_use=no
24835 fi
24836 rm -f conftest.$ac_objext conftest.$ac_ext
24837       ac_ext=c
24838 ac_cpp='$CPP $CPPFLAGS'
24839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24842
24843
24844 fi
24845
24846   fi
24847   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
24848 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
24849
24850   if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
24851
24852 for ac_func in ldexpf
24853 do
24854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24855 echo "$as_me:$LINENO: checking for $ac_func" >&5
24856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24857 if eval "test \"\${$as_ac_var+set}\" = set"; then
24858   echo $ECHO_N "(cached) $ECHO_C" >&6
24859 else
24860   cat >conftest.$ac_ext <<_ACEOF
24861 #line $LINENO "configure"
24862 /* confdefs.h.  */
24863 _ACEOF
24864 cat confdefs.h >>conftest.$ac_ext
24865 cat >>conftest.$ac_ext <<_ACEOF
24866 /* end confdefs.h.  */
24867 /* System header to define __stub macros and hopefully few prototypes,
24868     which can conflict with char $ac_func (); below.
24869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24870     <limits.h> exists even on freestanding compilers.  */
24871 #ifdef __STDC__
24872 # include <limits.h>
24873 #else
24874 # include <assert.h>
24875 #endif
24876 /* Override any gcc2 internal prototype to avoid an error.  */
24877 #ifdef __cplusplus
24878 extern "C"
24879 {
24880 #endif
24881 /* We use char because int might match the return type of a gcc2
24882    builtin and then its argument prototype would still apply.  */
24883 char $ac_func ();
24884 /* The GNU C library defines this for functions which it implements
24885     to always fail with ENOSYS.  Some functions are actually named
24886     something starting with __ and the normal name is an alias.  */
24887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24888 choke me
24889 #else
24890 char (*f) () = $ac_func;
24891 #endif
24892 #ifdef __cplusplus
24893 }
24894 #endif
24895
24896 int
24897 main ()
24898 {
24899 return f != $ac_func;
24900   ;
24901   return 0;
24902 }
24903 _ACEOF
24904 rm -f conftest.$ac_objext conftest$ac_exeext
24905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24906   (eval $ac_link) 2>&5
24907   ac_status=$?
24908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909   (exit $ac_status); } &&
24910          { ac_try='test -s conftest$ac_exeext'
24911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24912   (eval $ac_try) 2>&5
24913   ac_status=$?
24914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915   (exit $ac_status); }; }; then
24916   eval "$as_ac_var=yes"
24917 else
24918   echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24920
24921 eval "$as_ac_var=no"
24922 fi
24923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24924 fi
24925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24927 if test `eval echo '${'$as_ac_var'}'` = yes; then
24928   cat >>confdefs.h <<_ACEOF
24929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24930 _ACEOF
24931
24932 fi
24933 done
24934
24935   else
24936
24937   echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
24938 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
24939   if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
24940     if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
24941   echo $ECHO_N "(cached) $ECHO_C" >&6
24942 else
24943
24944
24945
24946       ac_ext=cc
24947 ac_cpp='$CXXCPP $CPPFLAGS'
24948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24951
24952       cat >conftest.$ac_ext <<_ACEOF
24953 #line $LINENO "configure"
24954 /* confdefs.h.  */
24955 _ACEOF
24956 cat confdefs.h >>conftest.$ac_ext
24957 cat >>conftest.$ac_ext <<_ACEOF
24958 /* end confdefs.h.  */
24959 #include <math.h>
24960 int
24961 main ()
24962 {
24963  _ldexpf(0, 0);
24964   ;
24965   return 0;
24966 }
24967 _ACEOF
24968 rm -f conftest.$ac_objext
24969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24970   (eval $ac_compile) 2>&5
24971   ac_status=$?
24972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973   (exit $ac_status); } &&
24974          { ac_try='test -s conftest.$ac_objext'
24975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24976   (eval $ac_try) 2>&5
24977   ac_status=$?
24978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979   (exit $ac_status); }; }; then
24980   glibcxx_cv_func__ldexpf_use=yes
24981 else
24982   echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24984
24985 glibcxx_cv_func__ldexpf_use=no
24986 fi
24987 rm -f conftest.$ac_objext conftest.$ac_ext
24988       ac_ext=c
24989 ac_cpp='$CPP $CPPFLAGS'
24990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24993
24994
24995 fi
24996
24997   fi
24998   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
24999 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
25000
25001     if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
25002
25003 for ac_func in _ldexpf
25004 do
25005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25006 echo "$as_me:$LINENO: checking for $ac_func" >&5
25007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25008 if eval "test \"\${$as_ac_var+set}\" = set"; then
25009   echo $ECHO_N "(cached) $ECHO_C" >&6
25010 else
25011   cat >conftest.$ac_ext <<_ACEOF
25012 #line $LINENO "configure"
25013 /* confdefs.h.  */
25014 _ACEOF
25015 cat confdefs.h >>conftest.$ac_ext
25016 cat >>conftest.$ac_ext <<_ACEOF
25017 /* end confdefs.h.  */
25018 /* System header to define __stub macros and hopefully few prototypes,
25019     which can conflict with char $ac_func (); below.
25020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25021     <limits.h> exists even on freestanding compilers.  */
25022 #ifdef __STDC__
25023 # include <limits.h>
25024 #else
25025 # include <assert.h>
25026 #endif
25027 /* Override any gcc2 internal prototype to avoid an error.  */
25028 #ifdef __cplusplus
25029 extern "C"
25030 {
25031 #endif
25032 /* We use char because int might match the return type of a gcc2
25033    builtin and then its argument prototype would still apply.  */
25034 char $ac_func ();
25035 /* The GNU C library defines this for functions which it implements
25036     to always fail with ENOSYS.  Some functions are actually named
25037     something starting with __ and the normal name is an alias.  */
25038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25039 choke me
25040 #else
25041 char (*f) () = $ac_func;
25042 #endif
25043 #ifdef __cplusplus
25044 }
25045 #endif
25046
25047 int
25048 main ()
25049 {
25050 return f != $ac_func;
25051   ;
25052   return 0;
25053 }
25054 _ACEOF
25055 rm -f conftest.$ac_objext conftest$ac_exeext
25056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25057   (eval $ac_link) 2>&5
25058   ac_status=$?
25059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060   (exit $ac_status); } &&
25061          { ac_try='test -s conftest$ac_exeext'
25062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25063   (eval $ac_try) 2>&5
25064   ac_status=$?
25065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066   (exit $ac_status); }; }; then
25067   eval "$as_ac_var=yes"
25068 else
25069   echo "$as_me: failed program was:" >&5
25070 sed 's/^/| /' conftest.$ac_ext >&5
25071
25072 eval "$as_ac_var=no"
25073 fi
25074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25075 fi
25076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25078 if test `eval echo '${'$as_ac_var'}'` = yes; then
25079   cat >>confdefs.h <<_ACEOF
25080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25081 _ACEOF
25082
25083 fi
25084 done
25085
25086     fi
25087   fi
25088
25089
25090
25091   echo "$as_me:$LINENO: checking for logf declaration" >&5
25092 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
25093   if test x${glibcxx_cv_func_logf_use+set} != xset; then
25094     if test "${glibcxx_cv_func_logf_use+set}" = set; then
25095   echo $ECHO_N "(cached) $ECHO_C" >&6
25096 else
25097
25098
25099
25100       ac_ext=cc
25101 ac_cpp='$CXXCPP $CPPFLAGS'
25102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25105
25106       cat >conftest.$ac_ext <<_ACEOF
25107 #line $LINENO "configure"
25108 /* confdefs.h.  */
25109 _ACEOF
25110 cat confdefs.h >>conftest.$ac_ext
25111 cat >>conftest.$ac_ext <<_ACEOF
25112 /* end confdefs.h.  */
25113 #include <math.h>
25114                       #ifdef HAVE_IEEEFP_H
25115                       #include <ieeefp.h>
25116                       #endif
25117
25118 int
25119 main ()
25120 {
25121  logf(0);
25122   ;
25123   return 0;
25124 }
25125 _ACEOF
25126 rm -f conftest.$ac_objext
25127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25128   (eval $ac_compile) 2>&5
25129   ac_status=$?
25130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131   (exit $ac_status); } &&
25132          { ac_try='test -s conftest.$ac_objext'
25133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25134   (eval $ac_try) 2>&5
25135   ac_status=$?
25136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137   (exit $ac_status); }; }; then
25138   glibcxx_cv_func_logf_use=yes
25139 else
25140   echo "$as_me: failed program was:" >&5
25141 sed 's/^/| /' conftest.$ac_ext >&5
25142
25143 glibcxx_cv_func_logf_use=no
25144 fi
25145 rm -f conftest.$ac_objext conftest.$ac_ext
25146       ac_ext=c
25147 ac_cpp='$CPP $CPPFLAGS'
25148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25151
25152
25153 fi
25154
25155   fi
25156   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
25157 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
25158
25159   if test x$glibcxx_cv_func_logf_use = x"yes"; then
25160
25161 for ac_func in logf
25162 do
25163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25164 echo "$as_me:$LINENO: checking for $ac_func" >&5
25165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25166 if eval "test \"\${$as_ac_var+set}\" = set"; then
25167   echo $ECHO_N "(cached) $ECHO_C" >&6
25168 else
25169   cat >conftest.$ac_ext <<_ACEOF
25170 #line $LINENO "configure"
25171 /* confdefs.h.  */
25172 _ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h.  */
25176 /* System header to define __stub macros and hopefully few prototypes,
25177     which can conflict with char $ac_func (); below.
25178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25179     <limits.h> exists even on freestanding compilers.  */
25180 #ifdef __STDC__
25181 # include <limits.h>
25182 #else
25183 # include <assert.h>
25184 #endif
25185 /* Override any gcc2 internal prototype to avoid an error.  */
25186 #ifdef __cplusplus
25187 extern "C"
25188 {
25189 #endif
25190 /* We use char because int might match the return type of a gcc2
25191    builtin and then its argument prototype would still apply.  */
25192 char $ac_func ();
25193 /* The GNU C library defines this for functions which it implements
25194     to always fail with ENOSYS.  Some functions are actually named
25195     something starting with __ and the normal name is an alias.  */
25196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25197 choke me
25198 #else
25199 char (*f) () = $ac_func;
25200 #endif
25201 #ifdef __cplusplus
25202 }
25203 #endif
25204
25205 int
25206 main ()
25207 {
25208 return f != $ac_func;
25209   ;
25210   return 0;
25211 }
25212 _ACEOF
25213 rm -f conftest.$ac_objext conftest$ac_exeext
25214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25215   (eval $ac_link) 2>&5
25216   ac_status=$?
25217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218   (exit $ac_status); } &&
25219          { ac_try='test -s conftest$ac_exeext'
25220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25221   (eval $ac_try) 2>&5
25222   ac_status=$?
25223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224   (exit $ac_status); }; }; then
25225   eval "$as_ac_var=yes"
25226 else
25227   echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25229
25230 eval "$as_ac_var=no"
25231 fi
25232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25233 fi
25234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25236 if test `eval echo '${'$as_ac_var'}'` = yes; then
25237   cat >>confdefs.h <<_ACEOF
25238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25239 _ACEOF
25240
25241 fi
25242 done
25243
25244   else
25245
25246   echo "$as_me:$LINENO: checking for _logf declaration" >&5
25247 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
25248   if test x${glibcxx_cv_func__logf_use+set} != xset; then
25249     if test "${glibcxx_cv_func__logf_use+set}" = set; then
25250   echo $ECHO_N "(cached) $ECHO_C" >&6
25251 else
25252
25253
25254
25255       ac_ext=cc
25256 ac_cpp='$CXXCPP $CPPFLAGS'
25257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25260
25261       cat >conftest.$ac_ext <<_ACEOF
25262 #line $LINENO "configure"
25263 /* confdefs.h.  */
25264 _ACEOF
25265 cat confdefs.h >>conftest.$ac_ext
25266 cat >>conftest.$ac_ext <<_ACEOF
25267 /* end confdefs.h.  */
25268 #include <math.h>
25269                       #ifdef HAVE_IEEEFP_H
25270                       #include <ieeefp.h>
25271                       #endif
25272
25273 int
25274 main ()
25275 {
25276  _logf(0);
25277   ;
25278   return 0;
25279 }
25280 _ACEOF
25281 rm -f conftest.$ac_objext
25282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25283   (eval $ac_compile) 2>&5
25284   ac_status=$?
25285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286   (exit $ac_status); } &&
25287          { ac_try='test -s conftest.$ac_objext'
25288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289   (eval $ac_try) 2>&5
25290   ac_status=$?
25291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292   (exit $ac_status); }; }; then
25293   glibcxx_cv_func__logf_use=yes
25294 else
25295   echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25297
25298 glibcxx_cv_func__logf_use=no
25299 fi
25300 rm -f conftest.$ac_objext conftest.$ac_ext
25301       ac_ext=c
25302 ac_cpp='$CPP $CPPFLAGS'
25303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25306
25307
25308 fi
25309
25310   fi
25311   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
25312 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
25313
25314     if test x$glibcxx_cv_func__logf_use = x"yes"; then
25315
25316 for ac_func in _logf
25317 do
25318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25319 echo "$as_me:$LINENO: checking for $ac_func" >&5
25320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25321 if eval "test \"\${$as_ac_var+set}\" = set"; then
25322   echo $ECHO_N "(cached) $ECHO_C" >&6
25323 else
25324   cat >conftest.$ac_ext <<_ACEOF
25325 #line $LINENO "configure"
25326 /* confdefs.h.  */
25327 _ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h.  */
25331 /* System header to define __stub macros and hopefully few prototypes,
25332     which can conflict with char $ac_func (); below.
25333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25334     <limits.h> exists even on freestanding compilers.  */
25335 #ifdef __STDC__
25336 # include <limits.h>
25337 #else
25338 # include <assert.h>
25339 #endif
25340 /* Override any gcc2 internal prototype to avoid an error.  */
25341 #ifdef __cplusplus
25342 extern "C"
25343 {
25344 #endif
25345 /* We use char because int might match the return type of a gcc2
25346    builtin and then its argument prototype would still apply.  */
25347 char $ac_func ();
25348 /* The GNU C library defines this for functions which it implements
25349     to always fail with ENOSYS.  Some functions are actually named
25350     something starting with __ and the normal name is an alias.  */
25351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25352 choke me
25353 #else
25354 char (*f) () = $ac_func;
25355 #endif
25356 #ifdef __cplusplus
25357 }
25358 #endif
25359
25360 int
25361 main ()
25362 {
25363 return f != $ac_func;
25364   ;
25365   return 0;
25366 }
25367 _ACEOF
25368 rm -f conftest.$ac_objext conftest$ac_exeext
25369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25370   (eval $ac_link) 2>&5
25371   ac_status=$?
25372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373   (exit $ac_status); } &&
25374          { ac_try='test -s conftest$ac_exeext'
25375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25376   (eval $ac_try) 2>&5
25377   ac_status=$?
25378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379   (exit $ac_status); }; }; then
25380   eval "$as_ac_var=yes"
25381 else
25382   echo "$as_me: failed program was:" >&5
25383 sed 's/^/| /' conftest.$ac_ext >&5
25384
25385 eval "$as_ac_var=no"
25386 fi
25387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25388 fi
25389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25391 if test `eval echo '${'$as_ac_var'}'` = yes; then
25392   cat >>confdefs.h <<_ACEOF
25393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25394 _ACEOF
25395
25396 fi
25397 done
25398
25399     fi
25400   fi
25401
25402
25403
25404   echo "$as_me:$LINENO: checking for log10f declaration" >&5
25405 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
25406   if test x${glibcxx_cv_func_log10f_use+set} != xset; then
25407     if test "${glibcxx_cv_func_log10f_use+set}" = set; then
25408   echo $ECHO_N "(cached) $ECHO_C" >&6
25409 else
25410
25411
25412
25413       ac_ext=cc
25414 ac_cpp='$CXXCPP $CPPFLAGS'
25415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25418
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 #include <math.h>
25427                       #ifdef HAVE_IEEEFP_H
25428                       #include <ieeefp.h>
25429                       #endif
25430
25431 int
25432 main ()
25433 {
25434  log10f(0);
25435   ;
25436   return 0;
25437 }
25438 _ACEOF
25439 rm -f conftest.$ac_objext
25440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25441   (eval $ac_compile) 2>&5
25442   ac_status=$?
25443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444   (exit $ac_status); } &&
25445          { ac_try='test -s conftest.$ac_objext'
25446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25447   (eval $ac_try) 2>&5
25448   ac_status=$?
25449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450   (exit $ac_status); }; }; then
25451   glibcxx_cv_func_log10f_use=yes
25452 else
25453   echo "$as_me: failed program was:" >&5
25454 sed 's/^/| /' conftest.$ac_ext >&5
25455
25456 glibcxx_cv_func_log10f_use=no
25457 fi
25458 rm -f conftest.$ac_objext conftest.$ac_ext
25459       ac_ext=c
25460 ac_cpp='$CPP $CPPFLAGS'
25461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25464
25465
25466 fi
25467
25468   fi
25469   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
25470 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
25471
25472   if test x$glibcxx_cv_func_log10f_use = x"yes"; then
25473
25474 for ac_func in log10f
25475 do
25476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25477 echo "$as_me:$LINENO: checking for $ac_func" >&5
25478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25479 if eval "test \"\${$as_ac_var+set}\" = set"; then
25480   echo $ECHO_N "(cached) $ECHO_C" >&6
25481 else
25482   cat >conftest.$ac_ext <<_ACEOF
25483 #line $LINENO "configure"
25484 /* confdefs.h.  */
25485 _ACEOF
25486 cat confdefs.h >>conftest.$ac_ext
25487 cat >>conftest.$ac_ext <<_ACEOF
25488 /* end confdefs.h.  */
25489 /* System header to define __stub macros and hopefully few prototypes,
25490     which can conflict with char $ac_func (); below.
25491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25492     <limits.h> exists even on freestanding compilers.  */
25493 #ifdef __STDC__
25494 # include <limits.h>
25495 #else
25496 # include <assert.h>
25497 #endif
25498 /* Override any gcc2 internal prototype to avoid an error.  */
25499 #ifdef __cplusplus
25500 extern "C"
25501 {
25502 #endif
25503 /* We use char because int might match the return type of a gcc2
25504    builtin and then its argument prototype would still apply.  */
25505 char $ac_func ();
25506 /* The GNU C library defines this for functions which it implements
25507     to always fail with ENOSYS.  Some functions are actually named
25508     something starting with __ and the normal name is an alias.  */
25509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25510 choke me
25511 #else
25512 char (*f) () = $ac_func;
25513 #endif
25514 #ifdef __cplusplus
25515 }
25516 #endif
25517
25518 int
25519 main ()
25520 {
25521 return f != $ac_func;
25522   ;
25523   return 0;
25524 }
25525 _ACEOF
25526 rm -f conftest.$ac_objext conftest$ac_exeext
25527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25528   (eval $ac_link) 2>&5
25529   ac_status=$?
25530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531   (exit $ac_status); } &&
25532          { ac_try='test -s conftest$ac_exeext'
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   eval "$as_ac_var=yes"
25539 else
25540   echo "$as_me: failed program was:" >&5
25541 sed 's/^/| /' conftest.$ac_ext >&5
25542
25543 eval "$as_ac_var=no"
25544 fi
25545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25546 fi
25547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25549 if test `eval echo '${'$as_ac_var'}'` = yes; then
25550   cat >>confdefs.h <<_ACEOF
25551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25552 _ACEOF
25553
25554 fi
25555 done
25556
25557   else
25558
25559   echo "$as_me:$LINENO: checking for _log10f declaration" >&5
25560 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
25561   if test x${glibcxx_cv_func__log10f_use+set} != xset; then
25562     if test "${glibcxx_cv_func__log10f_use+set}" = set; then
25563   echo $ECHO_N "(cached) $ECHO_C" >&6
25564 else
25565
25566
25567
25568       ac_ext=cc
25569 ac_cpp='$CXXCPP $CPPFLAGS'
25570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25573
25574       cat >conftest.$ac_ext <<_ACEOF
25575 #line $LINENO "configure"
25576 /* confdefs.h.  */
25577 _ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h.  */
25581 #include <math.h>
25582                       #ifdef HAVE_IEEEFP_H
25583                       #include <ieeefp.h>
25584                       #endif
25585
25586 int
25587 main ()
25588 {
25589  _log10f(0);
25590   ;
25591   return 0;
25592 }
25593 _ACEOF
25594 rm -f conftest.$ac_objext
25595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25596   (eval $ac_compile) 2>&5
25597   ac_status=$?
25598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599   (exit $ac_status); } &&
25600          { ac_try='test -s conftest.$ac_objext'
25601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25602   (eval $ac_try) 2>&5
25603   ac_status=$?
25604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605   (exit $ac_status); }; }; then
25606   glibcxx_cv_func__log10f_use=yes
25607 else
25608   echo "$as_me: failed program was:" >&5
25609 sed 's/^/| /' conftest.$ac_ext >&5
25610
25611 glibcxx_cv_func__log10f_use=no
25612 fi
25613 rm -f conftest.$ac_objext conftest.$ac_ext
25614       ac_ext=c
25615 ac_cpp='$CPP $CPPFLAGS'
25616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25619
25620
25621 fi
25622
25623   fi
25624   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
25625 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
25626
25627     if test x$glibcxx_cv_func__log10f_use = x"yes"; then
25628
25629 for ac_func in _log10f
25630 do
25631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25632 echo "$as_me:$LINENO: checking for $ac_func" >&5
25633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25634 if eval "test \"\${$as_ac_var+set}\" = set"; then
25635   echo $ECHO_N "(cached) $ECHO_C" >&6
25636 else
25637   cat >conftest.$ac_ext <<_ACEOF
25638 #line $LINENO "configure"
25639 /* confdefs.h.  */
25640 _ACEOF
25641 cat confdefs.h >>conftest.$ac_ext
25642 cat >>conftest.$ac_ext <<_ACEOF
25643 /* end confdefs.h.  */
25644 /* System header to define __stub macros and hopefully few prototypes,
25645     which can conflict with char $ac_func (); below.
25646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25647     <limits.h> exists even on freestanding compilers.  */
25648 #ifdef __STDC__
25649 # include <limits.h>
25650 #else
25651 # include <assert.h>
25652 #endif
25653 /* Override any gcc2 internal prototype to avoid an error.  */
25654 #ifdef __cplusplus
25655 extern "C"
25656 {
25657 #endif
25658 /* We use char because int might match the return type of a gcc2
25659    builtin and then its argument prototype would still apply.  */
25660 char $ac_func ();
25661 /* The GNU C library defines this for functions which it implements
25662     to always fail with ENOSYS.  Some functions are actually named
25663     something starting with __ and the normal name is an alias.  */
25664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25665 choke me
25666 #else
25667 char (*f) () = $ac_func;
25668 #endif
25669 #ifdef __cplusplus
25670 }
25671 #endif
25672
25673 int
25674 main ()
25675 {
25676 return f != $ac_func;
25677   ;
25678   return 0;
25679 }
25680 _ACEOF
25681 rm -f conftest.$ac_objext conftest$ac_exeext
25682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25683   (eval $ac_link) 2>&5
25684   ac_status=$?
25685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686   (exit $ac_status); } &&
25687          { ac_try='test -s conftest$ac_exeext'
25688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689   (eval $ac_try) 2>&5
25690   ac_status=$?
25691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692   (exit $ac_status); }; }; then
25693   eval "$as_ac_var=yes"
25694 else
25695   echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25697
25698 eval "$as_ac_var=no"
25699 fi
25700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25701 fi
25702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25704 if test `eval echo '${'$as_ac_var'}'` = yes; then
25705   cat >>confdefs.h <<_ACEOF
25706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25707 _ACEOF
25708
25709 fi
25710 done
25711
25712     fi
25713   fi
25714
25715
25716
25717   echo "$as_me:$LINENO: checking for modff declaration" >&5
25718 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
25719   if test x${glibcxx_cv_func_modff_use+set} != xset; then
25720     if test "${glibcxx_cv_func_modff_use+set}" = set; then
25721   echo $ECHO_N "(cached) $ECHO_C" >&6
25722 else
25723
25724
25725
25726       ac_ext=cc
25727 ac_cpp='$CXXCPP $CPPFLAGS'
25728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25731
25732       cat >conftest.$ac_ext <<_ACEOF
25733 #line $LINENO "configure"
25734 /* confdefs.h.  */
25735 _ACEOF
25736 cat confdefs.h >>conftest.$ac_ext
25737 cat >>conftest.$ac_ext <<_ACEOF
25738 /* end confdefs.h.  */
25739 #include <math.h>
25740 int
25741 main ()
25742 {
25743  modff(0, 0);
25744   ;
25745   return 0;
25746 }
25747 _ACEOF
25748 rm -f conftest.$ac_objext
25749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25750   (eval $ac_compile) 2>&5
25751   ac_status=$?
25752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753   (exit $ac_status); } &&
25754          { ac_try='test -s conftest.$ac_objext'
25755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25756   (eval $ac_try) 2>&5
25757   ac_status=$?
25758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759   (exit $ac_status); }; }; then
25760   glibcxx_cv_func_modff_use=yes
25761 else
25762   echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25764
25765 glibcxx_cv_func_modff_use=no
25766 fi
25767 rm -f conftest.$ac_objext conftest.$ac_ext
25768       ac_ext=c
25769 ac_cpp='$CPP $CPPFLAGS'
25770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25773
25774
25775 fi
25776
25777   fi
25778   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
25779 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
25780
25781   if test x$glibcxx_cv_func_modff_use = x"yes"; then
25782
25783 for ac_func in modff
25784 do
25785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25786 echo "$as_me:$LINENO: checking for $ac_func" >&5
25787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25788 if eval "test \"\${$as_ac_var+set}\" = set"; then
25789   echo $ECHO_N "(cached) $ECHO_C" >&6
25790 else
25791   cat >conftest.$ac_ext <<_ACEOF
25792 #line $LINENO "configure"
25793 /* confdefs.h.  */
25794 _ACEOF
25795 cat confdefs.h >>conftest.$ac_ext
25796 cat >>conftest.$ac_ext <<_ACEOF
25797 /* end confdefs.h.  */
25798 /* System header to define __stub macros and hopefully few prototypes,
25799     which can conflict with char $ac_func (); below.
25800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25801     <limits.h> exists even on freestanding compilers.  */
25802 #ifdef __STDC__
25803 # include <limits.h>
25804 #else
25805 # include <assert.h>
25806 #endif
25807 /* Override any gcc2 internal prototype to avoid an error.  */
25808 #ifdef __cplusplus
25809 extern "C"
25810 {
25811 #endif
25812 /* We use char because int might match the return type of a gcc2
25813    builtin and then its argument prototype would still apply.  */
25814 char $ac_func ();
25815 /* The GNU C library defines this for functions which it implements
25816     to always fail with ENOSYS.  Some functions are actually named
25817     something starting with __ and the normal name is an alias.  */
25818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25819 choke me
25820 #else
25821 char (*f) () = $ac_func;
25822 #endif
25823 #ifdef __cplusplus
25824 }
25825 #endif
25826
25827 int
25828 main ()
25829 {
25830 return f != $ac_func;
25831   ;
25832   return 0;
25833 }
25834 _ACEOF
25835 rm -f conftest.$ac_objext conftest$ac_exeext
25836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25837   (eval $ac_link) 2>&5
25838   ac_status=$?
25839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840   (exit $ac_status); } &&
25841          { ac_try='test -s conftest$ac_exeext'
25842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843   (eval $ac_try) 2>&5
25844   ac_status=$?
25845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846   (exit $ac_status); }; }; then
25847   eval "$as_ac_var=yes"
25848 else
25849   echo "$as_me: failed program was:" >&5
25850 sed 's/^/| /' conftest.$ac_ext >&5
25851
25852 eval "$as_ac_var=no"
25853 fi
25854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25855 fi
25856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25858 if test `eval echo '${'$as_ac_var'}'` = yes; then
25859   cat >>confdefs.h <<_ACEOF
25860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25861 _ACEOF
25862
25863 fi
25864 done
25865
25866   else
25867
25868   echo "$as_me:$LINENO: checking for _modff declaration" >&5
25869 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
25870   if test x${glibcxx_cv_func__modff_use+set} != xset; then
25871     if test "${glibcxx_cv_func__modff_use+set}" = set; then
25872   echo $ECHO_N "(cached) $ECHO_C" >&6
25873 else
25874
25875
25876
25877       ac_ext=cc
25878 ac_cpp='$CXXCPP $CPPFLAGS'
25879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25882
25883       cat >conftest.$ac_ext <<_ACEOF
25884 #line $LINENO "configure"
25885 /* confdefs.h.  */
25886 _ACEOF
25887 cat confdefs.h >>conftest.$ac_ext
25888 cat >>conftest.$ac_ext <<_ACEOF
25889 /* end confdefs.h.  */
25890 #include <math.h>
25891 int
25892 main ()
25893 {
25894  _modff(0, 0);
25895   ;
25896   return 0;
25897 }
25898 _ACEOF
25899 rm -f conftest.$ac_objext
25900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25901   (eval $ac_compile) 2>&5
25902   ac_status=$?
25903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904   (exit $ac_status); } &&
25905          { ac_try='test -s conftest.$ac_objext'
25906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25907   (eval $ac_try) 2>&5
25908   ac_status=$?
25909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910   (exit $ac_status); }; }; then
25911   glibcxx_cv_func__modff_use=yes
25912 else
25913   echo "$as_me: failed program was:" >&5
25914 sed 's/^/| /' conftest.$ac_ext >&5
25915
25916 glibcxx_cv_func__modff_use=no
25917 fi
25918 rm -f conftest.$ac_objext conftest.$ac_ext
25919       ac_ext=c
25920 ac_cpp='$CPP $CPPFLAGS'
25921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25924
25925
25926 fi
25927
25928   fi
25929   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
25930 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
25931
25932     if test x$glibcxx_cv_func__modff_use = x"yes"; then
25933
25934 for ac_func in _modff
25935 do
25936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25937 echo "$as_me:$LINENO: checking for $ac_func" >&5
25938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25939 if eval "test \"\${$as_ac_var+set}\" = set"; then
25940   echo $ECHO_N "(cached) $ECHO_C" >&6
25941 else
25942   cat >conftest.$ac_ext <<_ACEOF
25943 #line $LINENO "configure"
25944 /* confdefs.h.  */
25945 _ACEOF
25946 cat confdefs.h >>conftest.$ac_ext
25947 cat >>conftest.$ac_ext <<_ACEOF
25948 /* end confdefs.h.  */
25949 /* System header to define __stub macros and hopefully few prototypes,
25950     which can conflict with char $ac_func (); below.
25951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25952     <limits.h> exists even on freestanding compilers.  */
25953 #ifdef __STDC__
25954 # include <limits.h>
25955 #else
25956 # include <assert.h>
25957 #endif
25958 /* Override any gcc2 internal prototype to avoid an error.  */
25959 #ifdef __cplusplus
25960 extern "C"
25961 {
25962 #endif
25963 /* We use char because int might match the return type of a gcc2
25964    builtin and then its argument prototype would still apply.  */
25965 char $ac_func ();
25966 /* The GNU C library defines this for functions which it implements
25967     to always fail with ENOSYS.  Some functions are actually named
25968     something starting with __ and the normal name is an alias.  */
25969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25970 choke me
25971 #else
25972 char (*f) () = $ac_func;
25973 #endif
25974 #ifdef __cplusplus
25975 }
25976 #endif
25977
25978 int
25979 main ()
25980 {
25981 return f != $ac_func;
25982   ;
25983   return 0;
25984 }
25985 _ACEOF
25986 rm -f conftest.$ac_objext conftest$ac_exeext
25987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25988   (eval $ac_link) 2>&5
25989   ac_status=$?
25990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991   (exit $ac_status); } &&
25992          { ac_try='test -s conftest$ac_exeext'
25993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25994   (eval $ac_try) 2>&5
25995   ac_status=$?
25996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25997   (exit $ac_status); }; }; then
25998   eval "$as_ac_var=yes"
25999 else
26000   echo "$as_me: failed program was:" >&5
26001 sed 's/^/| /' conftest.$ac_ext >&5
26002
26003 eval "$as_ac_var=no"
26004 fi
26005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26006 fi
26007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26009 if test `eval echo '${'$as_ac_var'}'` = yes; then
26010   cat >>confdefs.h <<_ACEOF
26011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26012 _ACEOF
26013
26014 fi
26015 done
26016
26017     fi
26018   fi
26019
26020
26021
26022   echo "$as_me:$LINENO: checking for powf declaration" >&5
26023 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
26024   if test x${glibcxx_cv_func_powf_use+set} != xset; then
26025     if test "${glibcxx_cv_func_powf_use+set}" = set; then
26026   echo $ECHO_N "(cached) $ECHO_C" >&6
26027 else
26028
26029
26030
26031       ac_ext=cc
26032 ac_cpp='$CXXCPP $CPPFLAGS'
26033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26036
26037       cat >conftest.$ac_ext <<_ACEOF
26038 #line $LINENO "configure"
26039 /* confdefs.h.  */
26040 _ACEOF
26041 cat confdefs.h >>conftest.$ac_ext
26042 cat >>conftest.$ac_ext <<_ACEOF
26043 /* end confdefs.h.  */
26044 #include <math.h>
26045 int
26046 main ()
26047 {
26048  powf(0, 0);
26049   ;
26050   return 0;
26051 }
26052 _ACEOF
26053 rm -f conftest.$ac_objext
26054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26055   (eval $ac_compile) 2>&5
26056   ac_status=$?
26057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058   (exit $ac_status); } &&
26059          { ac_try='test -s conftest.$ac_objext'
26060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26061   (eval $ac_try) 2>&5
26062   ac_status=$?
26063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064   (exit $ac_status); }; }; then
26065   glibcxx_cv_func_powf_use=yes
26066 else
26067   echo "$as_me: failed program was:" >&5
26068 sed 's/^/| /' conftest.$ac_ext >&5
26069
26070 glibcxx_cv_func_powf_use=no
26071 fi
26072 rm -f conftest.$ac_objext conftest.$ac_ext
26073       ac_ext=c
26074 ac_cpp='$CPP $CPPFLAGS'
26075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26078
26079
26080 fi
26081
26082   fi
26083   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
26084 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
26085
26086   if test x$glibcxx_cv_func_powf_use = x"yes"; then
26087
26088 for ac_func in powf
26089 do
26090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26091 echo "$as_me:$LINENO: checking for $ac_func" >&5
26092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26093 if eval "test \"\${$as_ac_var+set}\" = set"; then
26094   echo $ECHO_N "(cached) $ECHO_C" >&6
26095 else
26096   cat >conftest.$ac_ext <<_ACEOF
26097 #line $LINENO "configure"
26098 /* confdefs.h.  */
26099 _ACEOF
26100 cat confdefs.h >>conftest.$ac_ext
26101 cat >>conftest.$ac_ext <<_ACEOF
26102 /* end confdefs.h.  */
26103 /* System header to define __stub macros and hopefully few prototypes,
26104     which can conflict with char $ac_func (); below.
26105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26106     <limits.h> exists even on freestanding compilers.  */
26107 #ifdef __STDC__
26108 # include <limits.h>
26109 #else
26110 # include <assert.h>
26111 #endif
26112 /* Override any gcc2 internal prototype to avoid an error.  */
26113 #ifdef __cplusplus
26114 extern "C"
26115 {
26116 #endif
26117 /* We use char because int might match the return type of a gcc2
26118    builtin and then its argument prototype would still apply.  */
26119 char $ac_func ();
26120 /* The GNU C library defines this for functions which it implements
26121     to always fail with ENOSYS.  Some functions are actually named
26122     something starting with __ and the normal name is an alias.  */
26123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26124 choke me
26125 #else
26126 char (*f) () = $ac_func;
26127 #endif
26128 #ifdef __cplusplus
26129 }
26130 #endif
26131
26132 int
26133 main ()
26134 {
26135 return f != $ac_func;
26136   ;
26137   return 0;
26138 }
26139 _ACEOF
26140 rm -f conftest.$ac_objext conftest$ac_exeext
26141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26142   (eval $ac_link) 2>&5
26143   ac_status=$?
26144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145   (exit $ac_status); } &&
26146          { ac_try='test -s conftest$ac_exeext'
26147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148   (eval $ac_try) 2>&5
26149   ac_status=$?
26150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151   (exit $ac_status); }; }; then
26152   eval "$as_ac_var=yes"
26153 else
26154   echo "$as_me: failed program was:" >&5
26155 sed 's/^/| /' conftest.$ac_ext >&5
26156
26157 eval "$as_ac_var=no"
26158 fi
26159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26160 fi
26161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26163 if test `eval echo '${'$as_ac_var'}'` = yes; then
26164   cat >>confdefs.h <<_ACEOF
26165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26166 _ACEOF
26167
26168 fi
26169 done
26170
26171   else
26172
26173   echo "$as_me:$LINENO: checking for _powf declaration" >&5
26174 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
26175   if test x${glibcxx_cv_func__powf_use+set} != xset; then
26176     if test "${glibcxx_cv_func__powf_use+set}" = set; then
26177   echo $ECHO_N "(cached) $ECHO_C" >&6
26178 else
26179
26180
26181
26182       ac_ext=cc
26183 ac_cpp='$CXXCPP $CPPFLAGS'
26184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26187
26188       cat >conftest.$ac_ext <<_ACEOF
26189 #line $LINENO "configure"
26190 /* confdefs.h.  */
26191 _ACEOF
26192 cat confdefs.h >>conftest.$ac_ext
26193 cat >>conftest.$ac_ext <<_ACEOF
26194 /* end confdefs.h.  */
26195 #include <math.h>
26196 int
26197 main ()
26198 {
26199  _powf(0, 0);
26200   ;
26201   return 0;
26202 }
26203 _ACEOF
26204 rm -f conftest.$ac_objext
26205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26206   (eval $ac_compile) 2>&5
26207   ac_status=$?
26208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26209   (exit $ac_status); } &&
26210          { ac_try='test -s conftest.$ac_objext'
26211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26212   (eval $ac_try) 2>&5
26213   ac_status=$?
26214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215   (exit $ac_status); }; }; then
26216   glibcxx_cv_func__powf_use=yes
26217 else
26218   echo "$as_me: failed program was:" >&5
26219 sed 's/^/| /' conftest.$ac_ext >&5
26220
26221 glibcxx_cv_func__powf_use=no
26222 fi
26223 rm -f conftest.$ac_objext conftest.$ac_ext
26224       ac_ext=c
26225 ac_cpp='$CPP $CPPFLAGS'
26226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26229
26230
26231 fi
26232
26233   fi
26234   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
26235 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
26236
26237     if test x$glibcxx_cv_func__powf_use = x"yes"; then
26238
26239 for ac_func in _powf
26240 do
26241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26242 echo "$as_me:$LINENO: checking for $ac_func" >&5
26243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26244 if eval "test \"\${$as_ac_var+set}\" = set"; then
26245   echo $ECHO_N "(cached) $ECHO_C" >&6
26246 else
26247   cat >conftest.$ac_ext <<_ACEOF
26248 #line $LINENO "configure"
26249 /* confdefs.h.  */
26250 _ACEOF
26251 cat confdefs.h >>conftest.$ac_ext
26252 cat >>conftest.$ac_ext <<_ACEOF
26253 /* end confdefs.h.  */
26254 /* System header to define __stub macros and hopefully few prototypes,
26255     which can conflict with char $ac_func (); below.
26256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26257     <limits.h> exists even on freestanding compilers.  */
26258 #ifdef __STDC__
26259 # include <limits.h>
26260 #else
26261 # include <assert.h>
26262 #endif
26263 /* Override any gcc2 internal prototype to avoid an error.  */
26264 #ifdef __cplusplus
26265 extern "C"
26266 {
26267 #endif
26268 /* We use char because int might match the return type of a gcc2
26269    builtin and then its argument prototype would still apply.  */
26270 char $ac_func ();
26271 /* The GNU C library defines this for functions which it implements
26272     to always fail with ENOSYS.  Some functions are actually named
26273     something starting with __ and the normal name is an alias.  */
26274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26275 choke me
26276 #else
26277 char (*f) () = $ac_func;
26278 #endif
26279 #ifdef __cplusplus
26280 }
26281 #endif
26282
26283 int
26284 main ()
26285 {
26286 return f != $ac_func;
26287   ;
26288   return 0;
26289 }
26290 _ACEOF
26291 rm -f conftest.$ac_objext conftest$ac_exeext
26292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26293   (eval $ac_link) 2>&5
26294   ac_status=$?
26295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296   (exit $ac_status); } &&
26297          { ac_try='test -s conftest$ac_exeext'
26298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26299   (eval $ac_try) 2>&5
26300   ac_status=$?
26301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302   (exit $ac_status); }; }; then
26303   eval "$as_ac_var=yes"
26304 else
26305   echo "$as_me: failed program was:" >&5
26306 sed 's/^/| /' conftest.$ac_ext >&5
26307
26308 eval "$as_ac_var=no"
26309 fi
26310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26311 fi
26312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26314 if test `eval echo '${'$as_ac_var'}'` = yes; then
26315   cat >>confdefs.h <<_ACEOF
26316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26317 _ACEOF
26318
26319 fi
26320 done
26321
26322     fi
26323   fi
26324
26325
26326
26327   echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
26328 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
26329   if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
26330     if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
26331   echo $ECHO_N "(cached) $ECHO_C" >&6
26332 else
26333
26334
26335
26336       ac_ext=cc
26337 ac_cpp='$CXXCPP $CPPFLAGS'
26338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26341
26342       cat >conftest.$ac_ext <<_ACEOF
26343 #line $LINENO "configure"
26344 /* confdefs.h.  */
26345 _ACEOF
26346 cat confdefs.h >>conftest.$ac_ext
26347 cat >>conftest.$ac_ext <<_ACEOF
26348 /* end confdefs.h.  */
26349 #include <math.h>
26350                       #ifdef HAVE_IEEEFP_H
26351                       #include <ieeefp.h>
26352                       #endif
26353
26354 int
26355 main ()
26356 {
26357  sqrtf(0);
26358   ;
26359   return 0;
26360 }
26361 _ACEOF
26362 rm -f conftest.$ac_objext
26363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26364   (eval $ac_compile) 2>&5
26365   ac_status=$?
26366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367   (exit $ac_status); } &&
26368          { ac_try='test -s conftest.$ac_objext'
26369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26370   (eval $ac_try) 2>&5
26371   ac_status=$?
26372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373   (exit $ac_status); }; }; then
26374   glibcxx_cv_func_sqrtf_use=yes
26375 else
26376   echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26378
26379 glibcxx_cv_func_sqrtf_use=no
26380 fi
26381 rm -f conftest.$ac_objext conftest.$ac_ext
26382       ac_ext=c
26383 ac_cpp='$CPP $CPPFLAGS'
26384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26387
26388
26389 fi
26390
26391   fi
26392   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
26393 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
26394
26395   if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
26396
26397 for ac_func in sqrtf
26398 do
26399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26400 echo "$as_me:$LINENO: checking for $ac_func" >&5
26401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26402 if eval "test \"\${$as_ac_var+set}\" = set"; then
26403   echo $ECHO_N "(cached) $ECHO_C" >&6
26404 else
26405   cat >conftest.$ac_ext <<_ACEOF
26406 #line $LINENO "configure"
26407 /* confdefs.h.  */
26408 _ACEOF
26409 cat confdefs.h >>conftest.$ac_ext
26410 cat >>conftest.$ac_ext <<_ACEOF
26411 /* end confdefs.h.  */
26412 /* System header to define __stub macros and hopefully few prototypes,
26413     which can conflict with char $ac_func (); below.
26414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26415     <limits.h> exists even on freestanding compilers.  */
26416 #ifdef __STDC__
26417 # include <limits.h>
26418 #else
26419 # include <assert.h>
26420 #endif
26421 /* Override any gcc2 internal prototype to avoid an error.  */
26422 #ifdef __cplusplus
26423 extern "C"
26424 {
26425 #endif
26426 /* We use char because int might match the return type of a gcc2
26427    builtin and then its argument prototype would still apply.  */
26428 char $ac_func ();
26429 /* The GNU C library defines this for functions which it implements
26430     to always fail with ENOSYS.  Some functions are actually named
26431     something starting with __ and the normal name is an alias.  */
26432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26433 choke me
26434 #else
26435 char (*f) () = $ac_func;
26436 #endif
26437 #ifdef __cplusplus
26438 }
26439 #endif
26440
26441 int
26442 main ()
26443 {
26444 return f != $ac_func;
26445   ;
26446   return 0;
26447 }
26448 _ACEOF
26449 rm -f conftest.$ac_objext conftest$ac_exeext
26450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26451   (eval $ac_link) 2>&5
26452   ac_status=$?
26453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454   (exit $ac_status); } &&
26455          { ac_try='test -s conftest$ac_exeext'
26456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26457   (eval $ac_try) 2>&5
26458   ac_status=$?
26459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460   (exit $ac_status); }; }; then
26461   eval "$as_ac_var=yes"
26462 else
26463   echo "$as_me: failed program was:" >&5
26464 sed 's/^/| /' conftest.$ac_ext >&5
26465
26466 eval "$as_ac_var=no"
26467 fi
26468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26469 fi
26470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26472 if test `eval echo '${'$as_ac_var'}'` = yes; then
26473   cat >>confdefs.h <<_ACEOF
26474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26475 _ACEOF
26476
26477 fi
26478 done
26479
26480   else
26481
26482   echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
26483 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
26484   if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
26485     if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
26486   echo $ECHO_N "(cached) $ECHO_C" >&6
26487 else
26488
26489
26490
26491       ac_ext=cc
26492 ac_cpp='$CXXCPP $CPPFLAGS'
26493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26496
26497       cat >conftest.$ac_ext <<_ACEOF
26498 #line $LINENO "configure"
26499 /* confdefs.h.  */
26500 _ACEOF
26501 cat confdefs.h >>conftest.$ac_ext
26502 cat >>conftest.$ac_ext <<_ACEOF
26503 /* end confdefs.h.  */
26504 #include <math.h>
26505                       #ifdef HAVE_IEEEFP_H
26506                       #include <ieeefp.h>
26507                       #endif
26508
26509 int
26510 main ()
26511 {
26512  _sqrtf(0);
26513   ;
26514   return 0;
26515 }
26516 _ACEOF
26517 rm -f conftest.$ac_objext
26518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26519   (eval $ac_compile) 2>&5
26520   ac_status=$?
26521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522   (exit $ac_status); } &&
26523          { ac_try='test -s conftest.$ac_objext'
26524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26525   (eval $ac_try) 2>&5
26526   ac_status=$?
26527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528   (exit $ac_status); }; }; then
26529   glibcxx_cv_func__sqrtf_use=yes
26530 else
26531   echo "$as_me: failed program was:" >&5
26532 sed 's/^/| /' conftest.$ac_ext >&5
26533
26534 glibcxx_cv_func__sqrtf_use=no
26535 fi
26536 rm -f conftest.$ac_objext conftest.$ac_ext
26537       ac_ext=c
26538 ac_cpp='$CPP $CPPFLAGS'
26539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26542
26543
26544 fi
26545
26546   fi
26547   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
26548 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
26549
26550     if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
26551
26552 for ac_func in _sqrtf
26553 do
26554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26555 echo "$as_me:$LINENO: checking for $ac_func" >&5
26556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26557 if eval "test \"\${$as_ac_var+set}\" = set"; then
26558   echo $ECHO_N "(cached) $ECHO_C" >&6
26559 else
26560   cat >conftest.$ac_ext <<_ACEOF
26561 #line $LINENO "configure"
26562 /* confdefs.h.  */
26563 _ACEOF
26564 cat confdefs.h >>conftest.$ac_ext
26565 cat >>conftest.$ac_ext <<_ACEOF
26566 /* end confdefs.h.  */
26567 /* System header to define __stub macros and hopefully few prototypes,
26568     which can conflict with char $ac_func (); below.
26569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26570     <limits.h> exists even on freestanding compilers.  */
26571 #ifdef __STDC__
26572 # include <limits.h>
26573 #else
26574 # include <assert.h>
26575 #endif
26576 /* Override any gcc2 internal prototype to avoid an error.  */
26577 #ifdef __cplusplus
26578 extern "C"
26579 {
26580 #endif
26581 /* We use char because int might match the return type of a gcc2
26582    builtin and then its argument prototype would still apply.  */
26583 char $ac_func ();
26584 /* The GNU C library defines this for functions which it implements
26585     to always fail with ENOSYS.  Some functions are actually named
26586     something starting with __ and the normal name is an alias.  */
26587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26588 choke me
26589 #else
26590 char (*f) () = $ac_func;
26591 #endif
26592 #ifdef __cplusplus
26593 }
26594 #endif
26595
26596 int
26597 main ()
26598 {
26599 return f != $ac_func;
26600   ;
26601   return 0;
26602 }
26603 _ACEOF
26604 rm -f conftest.$ac_objext conftest$ac_exeext
26605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26606   (eval $ac_link) 2>&5
26607   ac_status=$?
26608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609   (exit $ac_status); } &&
26610          { ac_try='test -s conftest$ac_exeext'
26611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26612   (eval $ac_try) 2>&5
26613   ac_status=$?
26614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615   (exit $ac_status); }; }; then
26616   eval "$as_ac_var=yes"
26617 else
26618   echo "$as_me: failed program was:" >&5
26619 sed 's/^/| /' conftest.$ac_ext >&5
26620
26621 eval "$as_ac_var=no"
26622 fi
26623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26624 fi
26625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26627 if test `eval echo '${'$as_ac_var'}'` = yes; then
26628   cat >>confdefs.h <<_ACEOF
26629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26630 _ACEOF
26631
26632 fi
26633 done
26634
26635     fi
26636   fi
26637
26638
26639
26640   echo "$as_me:$LINENO: checking for sincosf declaration" >&5
26641 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
26642   if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
26643     if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
26644   echo $ECHO_N "(cached) $ECHO_C" >&6
26645 else
26646
26647
26648
26649       ac_ext=cc
26650 ac_cpp='$CXXCPP $CPPFLAGS'
26651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26654
26655       cat >conftest.$ac_ext <<_ACEOF
26656 #line $LINENO "configure"
26657 /* confdefs.h.  */
26658 _ACEOF
26659 cat confdefs.h >>conftest.$ac_ext
26660 cat >>conftest.$ac_ext <<_ACEOF
26661 /* end confdefs.h.  */
26662 #include <math.h>
26663 int
26664 main ()
26665 {
26666  sincosf(0, 0, 0);
26667   ;
26668   return 0;
26669 }
26670 _ACEOF
26671 rm -f conftest.$ac_objext
26672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26673   (eval $ac_compile) 2>&5
26674   ac_status=$?
26675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676   (exit $ac_status); } &&
26677          { ac_try='test -s conftest.$ac_objext'
26678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26679   (eval $ac_try) 2>&5
26680   ac_status=$?
26681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682   (exit $ac_status); }; }; then
26683   glibcxx_cv_func_sincosf_use=yes
26684 else
26685   echo "$as_me: failed program was:" >&5
26686 sed 's/^/| /' conftest.$ac_ext >&5
26687
26688 glibcxx_cv_func_sincosf_use=no
26689 fi
26690 rm -f conftest.$ac_objext conftest.$ac_ext
26691       ac_ext=c
26692 ac_cpp='$CPP $CPPFLAGS'
26693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26696
26697
26698 fi
26699
26700   fi
26701   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
26702 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
26703
26704   if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
26705
26706 for ac_func in sincosf
26707 do
26708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26709 echo "$as_me:$LINENO: checking for $ac_func" >&5
26710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26711 if eval "test \"\${$as_ac_var+set}\" = set"; then
26712   echo $ECHO_N "(cached) $ECHO_C" >&6
26713 else
26714   cat >conftest.$ac_ext <<_ACEOF
26715 #line $LINENO "configure"
26716 /* confdefs.h.  */
26717 _ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h.  */
26721 /* System header to define __stub macros and hopefully few prototypes,
26722     which can conflict with char $ac_func (); below.
26723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26724     <limits.h> exists even on freestanding compilers.  */
26725 #ifdef __STDC__
26726 # include <limits.h>
26727 #else
26728 # include <assert.h>
26729 #endif
26730 /* Override any gcc2 internal prototype to avoid an error.  */
26731 #ifdef __cplusplus
26732 extern "C"
26733 {
26734 #endif
26735 /* We use char because int might match the return type of a gcc2
26736    builtin and then its argument prototype would still apply.  */
26737 char $ac_func ();
26738 /* The GNU C library defines this for functions which it implements
26739     to always fail with ENOSYS.  Some functions are actually named
26740     something starting with __ and the normal name is an alias.  */
26741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26742 choke me
26743 #else
26744 char (*f) () = $ac_func;
26745 #endif
26746 #ifdef __cplusplus
26747 }
26748 #endif
26749
26750 int
26751 main ()
26752 {
26753 return f != $ac_func;
26754   ;
26755   return 0;
26756 }
26757 _ACEOF
26758 rm -f conftest.$ac_objext conftest$ac_exeext
26759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26760   (eval $ac_link) 2>&5
26761   ac_status=$?
26762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763   (exit $ac_status); } &&
26764          { ac_try='test -s conftest$ac_exeext'
26765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26766   (eval $ac_try) 2>&5
26767   ac_status=$?
26768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769   (exit $ac_status); }; }; then
26770   eval "$as_ac_var=yes"
26771 else
26772   echo "$as_me: failed program was:" >&5
26773 sed 's/^/| /' conftest.$ac_ext >&5
26774
26775 eval "$as_ac_var=no"
26776 fi
26777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26778 fi
26779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26781 if test `eval echo '${'$as_ac_var'}'` = yes; then
26782   cat >>confdefs.h <<_ACEOF
26783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26784 _ACEOF
26785
26786 fi
26787 done
26788
26789   else
26790
26791   echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
26792 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
26793   if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
26794     if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
26795   echo $ECHO_N "(cached) $ECHO_C" >&6
26796 else
26797
26798
26799
26800       ac_ext=cc
26801 ac_cpp='$CXXCPP $CPPFLAGS'
26802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26805
26806       cat >conftest.$ac_ext <<_ACEOF
26807 #line $LINENO "configure"
26808 /* confdefs.h.  */
26809 _ACEOF
26810 cat confdefs.h >>conftest.$ac_ext
26811 cat >>conftest.$ac_ext <<_ACEOF
26812 /* end confdefs.h.  */
26813 #include <math.h>
26814 int
26815 main ()
26816 {
26817  _sincosf(0, 0, 0);
26818   ;
26819   return 0;
26820 }
26821 _ACEOF
26822 rm -f conftest.$ac_objext
26823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26824   (eval $ac_compile) 2>&5
26825   ac_status=$?
26826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827   (exit $ac_status); } &&
26828          { ac_try='test -s conftest.$ac_objext'
26829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830   (eval $ac_try) 2>&5
26831   ac_status=$?
26832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833   (exit $ac_status); }; }; then
26834   glibcxx_cv_func__sincosf_use=yes
26835 else
26836   echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26838
26839 glibcxx_cv_func__sincosf_use=no
26840 fi
26841 rm -f conftest.$ac_objext conftest.$ac_ext
26842       ac_ext=c
26843 ac_cpp='$CPP $CPPFLAGS'
26844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26847
26848
26849 fi
26850
26851   fi
26852   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
26853 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
26854
26855     if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
26856
26857 for ac_func in _sincosf
26858 do
26859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26860 echo "$as_me:$LINENO: checking for $ac_func" >&5
26861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26862 if eval "test \"\${$as_ac_var+set}\" = set"; then
26863   echo $ECHO_N "(cached) $ECHO_C" >&6
26864 else
26865   cat >conftest.$ac_ext <<_ACEOF
26866 #line $LINENO "configure"
26867 /* confdefs.h.  */
26868 _ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h.  */
26872 /* System header to define __stub macros and hopefully few prototypes,
26873     which can conflict with char $ac_func (); below.
26874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26875     <limits.h> exists even on freestanding compilers.  */
26876 #ifdef __STDC__
26877 # include <limits.h>
26878 #else
26879 # include <assert.h>
26880 #endif
26881 /* Override any gcc2 internal prototype to avoid an error.  */
26882 #ifdef __cplusplus
26883 extern "C"
26884 {
26885 #endif
26886 /* We use char because int might match the return type of a gcc2
26887    builtin and then its argument prototype would still apply.  */
26888 char $ac_func ();
26889 /* The GNU C library defines this for functions which it implements
26890     to always fail with ENOSYS.  Some functions are actually named
26891     something starting with __ and the normal name is an alias.  */
26892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26893 choke me
26894 #else
26895 char (*f) () = $ac_func;
26896 #endif
26897 #ifdef __cplusplus
26898 }
26899 #endif
26900
26901 int
26902 main ()
26903 {
26904 return f != $ac_func;
26905   ;
26906   return 0;
26907 }
26908 _ACEOF
26909 rm -f conftest.$ac_objext conftest$ac_exeext
26910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26911   (eval $ac_link) 2>&5
26912   ac_status=$?
26913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914   (exit $ac_status); } &&
26915          { ac_try='test -s conftest$ac_exeext'
26916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26917   (eval $ac_try) 2>&5
26918   ac_status=$?
26919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920   (exit $ac_status); }; }; then
26921   eval "$as_ac_var=yes"
26922 else
26923   echo "$as_me: failed program was:" >&5
26924 sed 's/^/| /' conftest.$ac_ext >&5
26925
26926 eval "$as_ac_var=no"
26927 fi
26928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26929 fi
26930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26932 if test `eval echo '${'$as_ac_var'}'` = yes; then
26933   cat >>confdefs.h <<_ACEOF
26934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26935 _ACEOF
26936
26937 fi
26938 done
26939
26940     fi
26941   fi
26942
26943
26944
26945   echo "$as_me:$LINENO: checking for finitef declaration" >&5
26946 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
26947   if test x${glibcxx_cv_func_finitef_use+set} != xset; then
26948     if test "${glibcxx_cv_func_finitef_use+set}" = set; then
26949   echo $ECHO_N "(cached) $ECHO_C" >&6
26950 else
26951
26952
26953
26954       ac_ext=cc
26955 ac_cpp='$CXXCPP $CPPFLAGS'
26956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26959
26960       cat >conftest.$ac_ext <<_ACEOF
26961 #line $LINENO "configure"
26962 /* confdefs.h.  */
26963 _ACEOF
26964 cat confdefs.h >>conftest.$ac_ext
26965 cat >>conftest.$ac_ext <<_ACEOF
26966 /* end confdefs.h.  */
26967 #include <math.h>
26968                       #ifdef HAVE_IEEEFP_H
26969                       #include <ieeefp.h>
26970                       #endif
26971
26972 int
26973 main ()
26974 {
26975  finitef(0);
26976   ;
26977   return 0;
26978 }
26979 _ACEOF
26980 rm -f conftest.$ac_objext
26981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26982   (eval $ac_compile) 2>&5
26983   ac_status=$?
26984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985   (exit $ac_status); } &&
26986          { ac_try='test -s conftest.$ac_objext'
26987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988   (eval $ac_try) 2>&5
26989   ac_status=$?
26990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991   (exit $ac_status); }; }; then
26992   glibcxx_cv_func_finitef_use=yes
26993 else
26994   echo "$as_me: failed program was:" >&5
26995 sed 's/^/| /' conftest.$ac_ext >&5
26996
26997 glibcxx_cv_func_finitef_use=no
26998 fi
26999 rm -f conftest.$ac_objext conftest.$ac_ext
27000       ac_ext=c
27001 ac_cpp='$CPP $CPPFLAGS'
27002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27005
27006
27007 fi
27008
27009   fi
27010   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
27011 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
27012
27013   if test x$glibcxx_cv_func_finitef_use = x"yes"; then
27014
27015 for ac_func in finitef
27016 do
27017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27018 echo "$as_me:$LINENO: checking for $ac_func" >&5
27019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27020 if eval "test \"\${$as_ac_var+set}\" = set"; then
27021   echo $ECHO_N "(cached) $ECHO_C" >&6
27022 else
27023   cat >conftest.$ac_ext <<_ACEOF
27024 #line $LINENO "configure"
27025 /* confdefs.h.  */
27026 _ACEOF
27027 cat confdefs.h >>conftest.$ac_ext
27028 cat >>conftest.$ac_ext <<_ACEOF
27029 /* end confdefs.h.  */
27030 /* System header to define __stub macros and hopefully few prototypes,
27031     which can conflict with char $ac_func (); below.
27032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27033     <limits.h> exists even on freestanding compilers.  */
27034 #ifdef __STDC__
27035 # include <limits.h>
27036 #else
27037 # include <assert.h>
27038 #endif
27039 /* Override any gcc2 internal prototype to avoid an error.  */
27040 #ifdef __cplusplus
27041 extern "C"
27042 {
27043 #endif
27044 /* We use char because int might match the return type of a gcc2
27045    builtin and then its argument prototype would still apply.  */
27046 char $ac_func ();
27047 /* The GNU C library defines this for functions which it implements
27048     to always fail with ENOSYS.  Some functions are actually named
27049     something starting with __ and the normal name is an alias.  */
27050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27051 choke me
27052 #else
27053 char (*f) () = $ac_func;
27054 #endif
27055 #ifdef __cplusplus
27056 }
27057 #endif
27058
27059 int
27060 main ()
27061 {
27062 return f != $ac_func;
27063   ;
27064   return 0;
27065 }
27066 _ACEOF
27067 rm -f conftest.$ac_objext conftest$ac_exeext
27068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27069   (eval $ac_link) 2>&5
27070   ac_status=$?
27071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072   (exit $ac_status); } &&
27073          { ac_try='test -s conftest$ac_exeext'
27074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27075   (eval $ac_try) 2>&5
27076   ac_status=$?
27077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078   (exit $ac_status); }; }; then
27079   eval "$as_ac_var=yes"
27080 else
27081   echo "$as_me: failed program was:" >&5
27082 sed 's/^/| /' conftest.$ac_ext >&5
27083
27084 eval "$as_ac_var=no"
27085 fi
27086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27087 fi
27088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27090 if test `eval echo '${'$as_ac_var'}'` = yes; then
27091   cat >>confdefs.h <<_ACEOF
27092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27093 _ACEOF
27094
27095 fi
27096 done
27097
27098   else
27099
27100   echo "$as_me:$LINENO: checking for _finitef declaration" >&5
27101 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
27102   if test x${glibcxx_cv_func__finitef_use+set} != xset; then
27103     if test "${glibcxx_cv_func__finitef_use+set}" = set; then
27104   echo $ECHO_N "(cached) $ECHO_C" >&6
27105 else
27106
27107
27108
27109       ac_ext=cc
27110 ac_cpp='$CXXCPP $CPPFLAGS'
27111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27114
27115       cat >conftest.$ac_ext <<_ACEOF
27116 #line $LINENO "configure"
27117 /* confdefs.h.  */
27118 _ACEOF
27119 cat confdefs.h >>conftest.$ac_ext
27120 cat >>conftest.$ac_ext <<_ACEOF
27121 /* end confdefs.h.  */
27122 #include <math.h>
27123                       #ifdef HAVE_IEEEFP_H
27124                       #include <ieeefp.h>
27125                       #endif
27126
27127 int
27128 main ()
27129 {
27130  _finitef(0);
27131   ;
27132   return 0;
27133 }
27134 _ACEOF
27135 rm -f conftest.$ac_objext
27136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27137   (eval $ac_compile) 2>&5
27138   ac_status=$?
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); } &&
27141          { ac_try='test -s conftest.$ac_objext'
27142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143   (eval $ac_try) 2>&5
27144   ac_status=$?
27145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146   (exit $ac_status); }; }; then
27147   glibcxx_cv_func__finitef_use=yes
27148 else
27149   echo "$as_me: failed program was:" >&5
27150 sed 's/^/| /' conftest.$ac_ext >&5
27151
27152 glibcxx_cv_func__finitef_use=no
27153 fi
27154 rm -f conftest.$ac_objext conftest.$ac_ext
27155       ac_ext=c
27156 ac_cpp='$CPP $CPPFLAGS'
27157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27160
27161
27162 fi
27163
27164   fi
27165   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
27166 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
27167
27168     if test x$glibcxx_cv_func__finitef_use = x"yes"; then
27169
27170 for ac_func in _finitef
27171 do
27172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27173 echo "$as_me:$LINENO: checking for $ac_func" >&5
27174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27175 if eval "test \"\${$as_ac_var+set}\" = set"; then
27176   echo $ECHO_N "(cached) $ECHO_C" >&6
27177 else
27178   cat >conftest.$ac_ext <<_ACEOF
27179 #line $LINENO "configure"
27180 /* confdefs.h.  */
27181 _ACEOF
27182 cat confdefs.h >>conftest.$ac_ext
27183 cat >>conftest.$ac_ext <<_ACEOF
27184 /* end confdefs.h.  */
27185 /* System header to define __stub macros and hopefully few prototypes,
27186     which can conflict with char $ac_func (); below.
27187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27188     <limits.h> exists even on freestanding compilers.  */
27189 #ifdef __STDC__
27190 # include <limits.h>
27191 #else
27192 # include <assert.h>
27193 #endif
27194 /* Override any gcc2 internal prototype to avoid an error.  */
27195 #ifdef __cplusplus
27196 extern "C"
27197 {
27198 #endif
27199 /* We use char because int might match the return type of a gcc2
27200    builtin and then its argument prototype would still apply.  */
27201 char $ac_func ();
27202 /* The GNU C library defines this for functions which it implements
27203     to always fail with ENOSYS.  Some functions are actually named
27204     something starting with __ and the normal name is an alias.  */
27205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27206 choke me
27207 #else
27208 char (*f) () = $ac_func;
27209 #endif
27210 #ifdef __cplusplus
27211 }
27212 #endif
27213
27214 int
27215 main ()
27216 {
27217 return f != $ac_func;
27218   ;
27219   return 0;
27220 }
27221 _ACEOF
27222 rm -f conftest.$ac_objext conftest$ac_exeext
27223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27224   (eval $ac_link) 2>&5
27225   ac_status=$?
27226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227   (exit $ac_status); } &&
27228          { ac_try='test -s conftest$ac_exeext'
27229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27230   (eval $ac_try) 2>&5
27231   ac_status=$?
27232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233   (exit $ac_status); }; }; then
27234   eval "$as_ac_var=yes"
27235 else
27236   echo "$as_me: failed program was:" >&5
27237 sed 's/^/| /' conftest.$ac_ext >&5
27238
27239 eval "$as_ac_var=no"
27240 fi
27241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27242 fi
27243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27245 if test `eval echo '${'$as_ac_var'}'` = yes; then
27246   cat >>confdefs.h <<_ACEOF
27247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27248 _ACEOF
27249
27250 fi
27251 done
27252
27253     fi
27254   fi
27255
27256
27257
27258   echo "$as_me:$LINENO: checking for long double trig functions" >&5
27259 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
27260   if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
27261   echo $ECHO_N "(cached) $ECHO_C" >&6
27262 else
27263
27264
27265
27266     ac_ext=cc
27267 ac_cpp='$CXXCPP $CPPFLAGS'
27268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27271
27272     cat >conftest.$ac_ext <<_ACEOF
27273 #line $LINENO "configure"
27274 /* confdefs.h.  */
27275 _ACEOF
27276 cat confdefs.h >>conftest.$ac_ext
27277 cat >>conftest.$ac_ext <<_ACEOF
27278 /* end confdefs.h.  */
27279 #include <math.h>
27280 int
27281 main ()
27282 {
27283  `for x in acosl asinl atanl \
27284                                           cosl sinl tanl \
27285                                           coshl sinhl tanhl; do echo "$x (0);"; done`
27286   ;
27287   return 0;
27288 }
27289 _ACEOF
27290 rm -f conftest.$ac_objext
27291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27292   (eval $ac_compile) 2>&5
27293   ac_status=$?
27294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295   (exit $ac_status); } &&
27296          { ac_try='test -s conftest.$ac_objext'
27297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27298   (eval $ac_try) 2>&5
27299   ac_status=$?
27300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301   (exit $ac_status); }; }; then
27302   glibcxx_cv_func_long_double_trig_use=yes
27303 else
27304   echo "$as_me: failed program was:" >&5
27305 sed 's/^/| /' conftest.$ac_ext >&5
27306
27307 glibcxx_cv_func_long_double_trig_use=no
27308 fi
27309 rm -f conftest.$ac_objext conftest.$ac_ext
27310     ac_ext=c
27311 ac_cpp='$CPP $CPPFLAGS'
27312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27315
27316 fi
27317
27318   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
27319 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
27320   if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
27321
27322
27323
27324
27325
27326
27327
27328
27329
27330 for ac_func in acosl asinl atanl \
27331                                           cosl sinl tanl \
27332                                           coshl sinhl tanhl
27333 do
27334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27335 echo "$as_me:$LINENO: checking for $ac_func" >&5
27336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27337 if eval "test \"\${$as_ac_var+set}\" = set"; then
27338   echo $ECHO_N "(cached) $ECHO_C" >&6
27339 else
27340   cat >conftest.$ac_ext <<_ACEOF
27341 #line $LINENO "configure"
27342 /* confdefs.h.  */
27343 _ACEOF
27344 cat confdefs.h >>conftest.$ac_ext
27345 cat >>conftest.$ac_ext <<_ACEOF
27346 /* end confdefs.h.  */
27347 /* System header to define __stub macros and hopefully few prototypes,
27348     which can conflict with char $ac_func (); below.
27349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27350     <limits.h> exists even on freestanding compilers.  */
27351 #ifdef __STDC__
27352 # include <limits.h>
27353 #else
27354 # include <assert.h>
27355 #endif
27356 /* Override any gcc2 internal prototype to avoid an error.  */
27357 #ifdef __cplusplus
27358 extern "C"
27359 {
27360 #endif
27361 /* We use char because int might match the return type of a gcc2
27362    builtin and then its argument prototype would still apply.  */
27363 char $ac_func ();
27364 /* The GNU C library defines this for functions which it implements
27365     to always fail with ENOSYS.  Some functions are actually named
27366     something starting with __ and the normal name is an alias.  */
27367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27368 choke me
27369 #else
27370 char (*f) () = $ac_func;
27371 #endif
27372 #ifdef __cplusplus
27373 }
27374 #endif
27375
27376 int
27377 main ()
27378 {
27379 return f != $ac_func;
27380   ;
27381   return 0;
27382 }
27383 _ACEOF
27384 rm -f conftest.$ac_objext conftest$ac_exeext
27385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27386   (eval $ac_link) 2>&5
27387   ac_status=$?
27388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389   (exit $ac_status); } &&
27390          { ac_try='test -s conftest$ac_exeext'
27391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27392   (eval $ac_try) 2>&5
27393   ac_status=$?
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); }; }; then
27396   eval "$as_ac_var=yes"
27397 else
27398   echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27400
27401 eval "$as_ac_var=no"
27402 fi
27403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27404 fi
27405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27407 if test `eval echo '${'$as_ac_var'}'` = yes; then
27408   cat >>confdefs.h <<_ACEOF
27409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27410 _ACEOF
27411
27412 fi
27413 done
27414
27415   fi
27416
27417
27418   echo "$as_me:$LINENO: checking for long double round functions" >&5
27419 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
27420   if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
27421   echo $ECHO_N "(cached) $ECHO_C" >&6
27422 else
27423
27424
27425
27426     ac_ext=cc
27427 ac_cpp='$CXXCPP $CPPFLAGS'
27428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27431
27432     cat >conftest.$ac_ext <<_ACEOF
27433 #line $LINENO "configure"
27434 /* confdefs.h.  */
27435 _ACEOF
27436 cat confdefs.h >>conftest.$ac_ext
27437 cat >>conftest.$ac_ext <<_ACEOF
27438 /* end confdefs.h.  */
27439 #include <math.h>
27440 int
27441 main ()
27442 {
27443  `for x in ceill floorl; do echo "$x (0);"; done`
27444   ;
27445   return 0;
27446 }
27447 _ACEOF
27448 rm -f conftest.$ac_objext
27449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27450   (eval $ac_compile) 2>&5
27451   ac_status=$?
27452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453   (exit $ac_status); } &&
27454          { ac_try='test -s conftest.$ac_objext'
27455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27456   (eval $ac_try) 2>&5
27457   ac_status=$?
27458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459   (exit $ac_status); }; }; then
27460   glibcxx_cv_func_long_double_round_use=yes
27461 else
27462   echo "$as_me: failed program was:" >&5
27463 sed 's/^/| /' conftest.$ac_ext >&5
27464
27465 glibcxx_cv_func_long_double_round_use=no
27466 fi
27467 rm -f conftest.$ac_objext conftest.$ac_ext
27468     ac_ext=c
27469 ac_cpp='$CPP $CPPFLAGS'
27470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27473
27474 fi
27475
27476   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
27477 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
27478   if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
27479
27480
27481 for ac_func in ceill floorl
27482 do
27483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27484 echo "$as_me:$LINENO: checking for $ac_func" >&5
27485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27486 if eval "test \"\${$as_ac_var+set}\" = set"; then
27487   echo $ECHO_N "(cached) $ECHO_C" >&6
27488 else
27489   cat >conftest.$ac_ext <<_ACEOF
27490 #line $LINENO "configure"
27491 /* confdefs.h.  */
27492 _ACEOF
27493 cat confdefs.h >>conftest.$ac_ext
27494 cat >>conftest.$ac_ext <<_ACEOF
27495 /* end confdefs.h.  */
27496 /* System header to define __stub macros and hopefully few prototypes,
27497     which can conflict with char $ac_func (); below.
27498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27499     <limits.h> exists even on freestanding compilers.  */
27500 #ifdef __STDC__
27501 # include <limits.h>
27502 #else
27503 # include <assert.h>
27504 #endif
27505 /* Override any gcc2 internal prototype to avoid an error.  */
27506 #ifdef __cplusplus
27507 extern "C"
27508 {
27509 #endif
27510 /* We use char because int might match the return type of a gcc2
27511    builtin and then its argument prototype would still apply.  */
27512 char $ac_func ();
27513 /* The GNU C library defines this for functions which it implements
27514     to always fail with ENOSYS.  Some functions are actually named
27515     something starting with __ and the normal name is an alias.  */
27516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27517 choke me
27518 #else
27519 char (*f) () = $ac_func;
27520 #endif
27521 #ifdef __cplusplus
27522 }
27523 #endif
27524
27525 int
27526 main ()
27527 {
27528 return f != $ac_func;
27529   ;
27530   return 0;
27531 }
27532 _ACEOF
27533 rm -f conftest.$ac_objext conftest$ac_exeext
27534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27535   (eval $ac_link) 2>&5
27536   ac_status=$?
27537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538   (exit $ac_status); } &&
27539          { ac_try='test -s conftest$ac_exeext'
27540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27541   (eval $ac_try) 2>&5
27542   ac_status=$?
27543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544   (exit $ac_status); }; }; then
27545   eval "$as_ac_var=yes"
27546 else
27547   echo "$as_me: failed program was:" >&5
27548 sed 's/^/| /' conftest.$ac_ext >&5
27549
27550 eval "$as_ac_var=no"
27551 fi
27552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27553 fi
27554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27556 if test `eval echo '${'$as_ac_var'}'` = yes; then
27557   cat >>confdefs.h <<_ACEOF
27558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27559 _ACEOF
27560
27561 fi
27562 done
27563
27564   fi
27565
27566
27567
27568   echo "$as_me:$LINENO: checking for isnanl declaration" >&5
27569 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
27570   if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
27571     if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
27572   echo $ECHO_N "(cached) $ECHO_C" >&6
27573 else
27574
27575
27576
27577       ac_ext=cc
27578 ac_cpp='$CXXCPP $CPPFLAGS'
27579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27582
27583       cat >conftest.$ac_ext <<_ACEOF
27584 #line $LINENO "configure"
27585 /* confdefs.h.  */
27586 _ACEOF
27587 cat confdefs.h >>conftest.$ac_ext
27588 cat >>conftest.$ac_ext <<_ACEOF
27589 /* end confdefs.h.  */
27590 #include <math.h>
27591                       #ifdef HAVE_IEEEFP_H
27592                       #include <ieeefp.h>
27593                       #endif
27594
27595 int
27596 main ()
27597 {
27598  isnanl(0);
27599   ;
27600   return 0;
27601 }
27602 _ACEOF
27603 rm -f conftest.$ac_objext
27604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27605   (eval $ac_compile) 2>&5
27606   ac_status=$?
27607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608   (exit $ac_status); } &&
27609          { ac_try='test -s conftest.$ac_objext'
27610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27611   (eval $ac_try) 2>&5
27612   ac_status=$?
27613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614   (exit $ac_status); }; }; then
27615   glibcxx_cv_func_isnanl_use=yes
27616 else
27617   echo "$as_me: failed program was:" >&5
27618 sed 's/^/| /' conftest.$ac_ext >&5
27619
27620 glibcxx_cv_func_isnanl_use=no
27621 fi
27622 rm -f conftest.$ac_objext conftest.$ac_ext
27623       ac_ext=c
27624 ac_cpp='$CPP $CPPFLAGS'
27625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27628
27629
27630 fi
27631
27632   fi
27633   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
27634 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
27635
27636   if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
27637
27638 for ac_func in isnanl
27639 do
27640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27641 echo "$as_me:$LINENO: checking for $ac_func" >&5
27642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27643 if eval "test \"\${$as_ac_var+set}\" = set"; then
27644   echo $ECHO_N "(cached) $ECHO_C" >&6
27645 else
27646   cat >conftest.$ac_ext <<_ACEOF
27647 #line $LINENO "configure"
27648 /* confdefs.h.  */
27649 _ACEOF
27650 cat confdefs.h >>conftest.$ac_ext
27651 cat >>conftest.$ac_ext <<_ACEOF
27652 /* end confdefs.h.  */
27653 /* System header to define __stub macros and hopefully few prototypes,
27654     which can conflict with char $ac_func (); below.
27655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27656     <limits.h> exists even on freestanding compilers.  */
27657 #ifdef __STDC__
27658 # include <limits.h>
27659 #else
27660 # include <assert.h>
27661 #endif
27662 /* Override any gcc2 internal prototype to avoid an error.  */
27663 #ifdef __cplusplus
27664 extern "C"
27665 {
27666 #endif
27667 /* We use char because int might match the return type of a gcc2
27668    builtin and then its argument prototype would still apply.  */
27669 char $ac_func ();
27670 /* The GNU C library defines this for functions which it implements
27671     to always fail with ENOSYS.  Some functions are actually named
27672     something starting with __ and the normal name is an alias.  */
27673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27674 choke me
27675 #else
27676 char (*f) () = $ac_func;
27677 #endif
27678 #ifdef __cplusplus
27679 }
27680 #endif
27681
27682 int
27683 main ()
27684 {
27685 return f != $ac_func;
27686   ;
27687   return 0;
27688 }
27689 _ACEOF
27690 rm -f conftest.$ac_objext conftest$ac_exeext
27691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27692   (eval $ac_link) 2>&5
27693   ac_status=$?
27694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695   (exit $ac_status); } &&
27696          { ac_try='test -s conftest$ac_exeext'
27697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27698   (eval $ac_try) 2>&5
27699   ac_status=$?
27700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701   (exit $ac_status); }; }; then
27702   eval "$as_ac_var=yes"
27703 else
27704   echo "$as_me: failed program was:" >&5
27705 sed 's/^/| /' conftest.$ac_ext >&5
27706
27707 eval "$as_ac_var=no"
27708 fi
27709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27710 fi
27711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27713 if test `eval echo '${'$as_ac_var'}'` = yes; then
27714   cat >>confdefs.h <<_ACEOF
27715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27716 _ACEOF
27717
27718 fi
27719 done
27720
27721   else
27722
27723   echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
27724 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
27725   if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
27726     if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
27727   echo $ECHO_N "(cached) $ECHO_C" >&6
27728 else
27729
27730
27731
27732       ac_ext=cc
27733 ac_cpp='$CXXCPP $CPPFLAGS'
27734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27737
27738       cat >conftest.$ac_ext <<_ACEOF
27739 #line $LINENO "configure"
27740 /* confdefs.h.  */
27741 _ACEOF
27742 cat confdefs.h >>conftest.$ac_ext
27743 cat >>conftest.$ac_ext <<_ACEOF
27744 /* end confdefs.h.  */
27745 #include <math.h>
27746                       #ifdef HAVE_IEEEFP_H
27747                       #include <ieeefp.h>
27748                       #endif
27749
27750 int
27751 main ()
27752 {
27753  _isnanl(0);
27754   ;
27755   return 0;
27756 }
27757 _ACEOF
27758 rm -f conftest.$ac_objext
27759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27760   (eval $ac_compile) 2>&5
27761   ac_status=$?
27762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763   (exit $ac_status); } &&
27764          { ac_try='test -s conftest.$ac_objext'
27765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27766   (eval $ac_try) 2>&5
27767   ac_status=$?
27768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769   (exit $ac_status); }; }; then
27770   glibcxx_cv_func__isnanl_use=yes
27771 else
27772   echo "$as_me: failed program was:" >&5
27773 sed 's/^/| /' conftest.$ac_ext >&5
27774
27775 glibcxx_cv_func__isnanl_use=no
27776 fi
27777 rm -f conftest.$ac_objext conftest.$ac_ext
27778       ac_ext=c
27779 ac_cpp='$CPP $CPPFLAGS'
27780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27783
27784
27785 fi
27786
27787   fi
27788   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
27789 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
27790
27791     if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
27792
27793 for ac_func in _isnanl
27794 do
27795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27796 echo "$as_me:$LINENO: checking for $ac_func" >&5
27797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27798 if eval "test \"\${$as_ac_var+set}\" = set"; then
27799   echo $ECHO_N "(cached) $ECHO_C" >&6
27800 else
27801   cat >conftest.$ac_ext <<_ACEOF
27802 #line $LINENO "configure"
27803 /* confdefs.h.  */
27804 _ACEOF
27805 cat confdefs.h >>conftest.$ac_ext
27806 cat >>conftest.$ac_ext <<_ACEOF
27807 /* end confdefs.h.  */
27808 /* System header to define __stub macros and hopefully few prototypes,
27809     which can conflict with char $ac_func (); below.
27810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27811     <limits.h> exists even on freestanding compilers.  */
27812 #ifdef __STDC__
27813 # include <limits.h>
27814 #else
27815 # include <assert.h>
27816 #endif
27817 /* Override any gcc2 internal prototype to avoid an error.  */
27818 #ifdef __cplusplus
27819 extern "C"
27820 {
27821 #endif
27822 /* We use char because int might match the return type of a gcc2
27823    builtin and then its argument prototype would still apply.  */
27824 char $ac_func ();
27825 /* The GNU C library defines this for functions which it implements
27826     to always fail with ENOSYS.  Some functions are actually named
27827     something starting with __ and the normal name is an alias.  */
27828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27829 choke me
27830 #else
27831 char (*f) () = $ac_func;
27832 #endif
27833 #ifdef __cplusplus
27834 }
27835 #endif
27836
27837 int
27838 main ()
27839 {
27840 return f != $ac_func;
27841   ;
27842   return 0;
27843 }
27844 _ACEOF
27845 rm -f conftest.$ac_objext conftest$ac_exeext
27846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27847   (eval $ac_link) 2>&5
27848   ac_status=$?
27849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850   (exit $ac_status); } &&
27851          { ac_try='test -s conftest$ac_exeext'
27852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27853   (eval $ac_try) 2>&5
27854   ac_status=$?
27855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856   (exit $ac_status); }; }; then
27857   eval "$as_ac_var=yes"
27858 else
27859   echo "$as_me: failed program was:" >&5
27860 sed 's/^/| /' conftest.$ac_ext >&5
27861
27862 eval "$as_ac_var=no"
27863 fi
27864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27865 fi
27866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27868 if test `eval echo '${'$as_ac_var'}'` = yes; then
27869   cat >>confdefs.h <<_ACEOF
27870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27871 _ACEOF
27872
27873 fi
27874 done
27875
27876     fi
27877   fi
27878
27879
27880
27881   echo "$as_me:$LINENO: checking for isinfl declaration" >&5
27882 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
27883   if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
27884     if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
27885   echo $ECHO_N "(cached) $ECHO_C" >&6
27886 else
27887
27888
27889
27890       ac_ext=cc
27891 ac_cpp='$CXXCPP $CPPFLAGS'
27892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27895
27896       cat >conftest.$ac_ext <<_ACEOF
27897 #line $LINENO "configure"
27898 /* confdefs.h.  */
27899 _ACEOF
27900 cat confdefs.h >>conftest.$ac_ext
27901 cat >>conftest.$ac_ext <<_ACEOF
27902 /* end confdefs.h.  */
27903 #include <math.h>
27904                       #ifdef HAVE_IEEEFP_H
27905                       #include <ieeefp.h>
27906                       #endif
27907
27908 int
27909 main ()
27910 {
27911  isinfl(0);
27912   ;
27913   return 0;
27914 }
27915 _ACEOF
27916 rm -f conftest.$ac_objext
27917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27918   (eval $ac_compile) 2>&5
27919   ac_status=$?
27920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921   (exit $ac_status); } &&
27922          { ac_try='test -s conftest.$ac_objext'
27923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27924   (eval $ac_try) 2>&5
27925   ac_status=$?
27926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27927   (exit $ac_status); }; }; then
27928   glibcxx_cv_func_isinfl_use=yes
27929 else
27930   echo "$as_me: failed program was:" >&5
27931 sed 's/^/| /' conftest.$ac_ext >&5
27932
27933 glibcxx_cv_func_isinfl_use=no
27934 fi
27935 rm -f conftest.$ac_objext conftest.$ac_ext
27936       ac_ext=c
27937 ac_cpp='$CPP $CPPFLAGS'
27938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27941
27942
27943 fi
27944
27945   fi
27946   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
27947 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
27948
27949   if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
27950
27951 for ac_func in isinfl
27952 do
27953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27954 echo "$as_me:$LINENO: checking for $ac_func" >&5
27955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27956 if eval "test \"\${$as_ac_var+set}\" = set"; then
27957   echo $ECHO_N "(cached) $ECHO_C" >&6
27958 else
27959   cat >conftest.$ac_ext <<_ACEOF
27960 #line $LINENO "configure"
27961 /* confdefs.h.  */
27962 _ACEOF
27963 cat confdefs.h >>conftest.$ac_ext
27964 cat >>conftest.$ac_ext <<_ACEOF
27965 /* end confdefs.h.  */
27966 /* System header to define __stub macros and hopefully few prototypes,
27967     which can conflict with char $ac_func (); below.
27968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27969     <limits.h> exists even on freestanding compilers.  */
27970 #ifdef __STDC__
27971 # include <limits.h>
27972 #else
27973 # include <assert.h>
27974 #endif
27975 /* Override any gcc2 internal prototype to avoid an error.  */
27976 #ifdef __cplusplus
27977 extern "C"
27978 {
27979 #endif
27980 /* We use char because int might match the return type of a gcc2
27981    builtin and then its argument prototype would still apply.  */
27982 char $ac_func ();
27983 /* The GNU C library defines this for functions which it implements
27984     to always fail with ENOSYS.  Some functions are actually named
27985     something starting with __ and the normal name is an alias.  */
27986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27987 choke me
27988 #else
27989 char (*f) () = $ac_func;
27990 #endif
27991 #ifdef __cplusplus
27992 }
27993 #endif
27994
27995 int
27996 main ()
27997 {
27998 return f != $ac_func;
27999   ;
28000   return 0;
28001 }
28002 _ACEOF
28003 rm -f conftest.$ac_objext conftest$ac_exeext
28004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28005   (eval $ac_link) 2>&5
28006   ac_status=$?
28007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008   (exit $ac_status); } &&
28009          { ac_try='test -s conftest$ac_exeext'
28010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28011   (eval $ac_try) 2>&5
28012   ac_status=$?
28013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014   (exit $ac_status); }; }; then
28015   eval "$as_ac_var=yes"
28016 else
28017   echo "$as_me: failed program was:" >&5
28018 sed 's/^/| /' conftest.$ac_ext >&5
28019
28020 eval "$as_ac_var=no"
28021 fi
28022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28023 fi
28024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28026 if test `eval echo '${'$as_ac_var'}'` = yes; then
28027   cat >>confdefs.h <<_ACEOF
28028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28029 _ACEOF
28030
28031 fi
28032 done
28033
28034   else
28035
28036   echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
28037 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
28038   if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
28039     if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
28040   echo $ECHO_N "(cached) $ECHO_C" >&6
28041 else
28042
28043
28044
28045       ac_ext=cc
28046 ac_cpp='$CXXCPP $CPPFLAGS'
28047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28050
28051       cat >conftest.$ac_ext <<_ACEOF
28052 #line $LINENO "configure"
28053 /* confdefs.h.  */
28054 _ACEOF
28055 cat confdefs.h >>conftest.$ac_ext
28056 cat >>conftest.$ac_ext <<_ACEOF
28057 /* end confdefs.h.  */
28058 #include <math.h>
28059                       #ifdef HAVE_IEEEFP_H
28060                       #include <ieeefp.h>
28061                       #endif
28062
28063 int
28064 main ()
28065 {
28066  _isinfl(0);
28067   ;
28068   return 0;
28069 }
28070 _ACEOF
28071 rm -f conftest.$ac_objext
28072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28073   (eval $ac_compile) 2>&5
28074   ac_status=$?
28075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076   (exit $ac_status); } &&
28077          { ac_try='test -s conftest.$ac_objext'
28078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28079   (eval $ac_try) 2>&5
28080   ac_status=$?
28081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082   (exit $ac_status); }; }; then
28083   glibcxx_cv_func__isinfl_use=yes
28084 else
28085   echo "$as_me: failed program was:" >&5
28086 sed 's/^/| /' conftest.$ac_ext >&5
28087
28088 glibcxx_cv_func__isinfl_use=no
28089 fi
28090 rm -f conftest.$ac_objext conftest.$ac_ext
28091       ac_ext=c
28092 ac_cpp='$CPP $CPPFLAGS'
28093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28096
28097
28098 fi
28099
28100   fi
28101   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
28102 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
28103
28104     if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
28105
28106 for ac_func in _isinfl
28107 do
28108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28109 echo "$as_me:$LINENO: checking for $ac_func" >&5
28110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28111 if eval "test \"\${$as_ac_var+set}\" = set"; then
28112   echo $ECHO_N "(cached) $ECHO_C" >&6
28113 else
28114   cat >conftest.$ac_ext <<_ACEOF
28115 #line $LINENO "configure"
28116 /* confdefs.h.  */
28117 _ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h.  */
28121 /* System header to define __stub macros and hopefully few prototypes,
28122     which can conflict with char $ac_func (); below.
28123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28124     <limits.h> exists even on freestanding compilers.  */
28125 #ifdef __STDC__
28126 # include <limits.h>
28127 #else
28128 # include <assert.h>
28129 #endif
28130 /* Override any gcc2 internal prototype to avoid an error.  */
28131 #ifdef __cplusplus
28132 extern "C"
28133 {
28134 #endif
28135 /* We use char because int might match the return type of a gcc2
28136    builtin and then its argument prototype would still apply.  */
28137 char $ac_func ();
28138 /* The GNU C library defines this for functions which it implements
28139     to always fail with ENOSYS.  Some functions are actually named
28140     something starting with __ and the normal name is an alias.  */
28141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28142 choke me
28143 #else
28144 char (*f) () = $ac_func;
28145 #endif
28146 #ifdef __cplusplus
28147 }
28148 #endif
28149
28150 int
28151 main ()
28152 {
28153 return f != $ac_func;
28154   ;
28155   return 0;
28156 }
28157 _ACEOF
28158 rm -f conftest.$ac_objext conftest$ac_exeext
28159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28160   (eval $ac_link) 2>&5
28161   ac_status=$?
28162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163   (exit $ac_status); } &&
28164          { ac_try='test -s conftest$ac_exeext'
28165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28166   (eval $ac_try) 2>&5
28167   ac_status=$?
28168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169   (exit $ac_status); }; }; then
28170   eval "$as_ac_var=yes"
28171 else
28172   echo "$as_me: failed program was:" >&5
28173 sed 's/^/| /' conftest.$ac_ext >&5
28174
28175 eval "$as_ac_var=no"
28176 fi
28177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28178 fi
28179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28181 if test `eval echo '${'$as_ac_var'}'` = yes; then
28182   cat >>confdefs.h <<_ACEOF
28183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28184 _ACEOF
28185
28186 fi
28187 done
28188
28189     fi
28190   fi
28191
28192
28193
28194   echo "$as_me:$LINENO: checking for copysignl declaration" >&5
28195 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
28196   if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
28197     if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
28198   echo $ECHO_N "(cached) $ECHO_C" >&6
28199 else
28200
28201
28202
28203       ac_ext=cc
28204 ac_cpp='$CXXCPP $CPPFLAGS'
28205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28208
28209       cat >conftest.$ac_ext <<_ACEOF
28210 #line $LINENO "configure"
28211 /* confdefs.h.  */
28212 _ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h.  */
28216 #include <math.h>
28217 int
28218 main ()
28219 {
28220  copysignl(0, 0);
28221   ;
28222   return 0;
28223 }
28224 _ACEOF
28225 rm -f conftest.$ac_objext
28226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28227   (eval $ac_compile) 2>&5
28228   ac_status=$?
28229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230   (exit $ac_status); } &&
28231          { ac_try='test -s conftest.$ac_objext'
28232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28233   (eval $ac_try) 2>&5
28234   ac_status=$?
28235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236   (exit $ac_status); }; }; then
28237   glibcxx_cv_func_copysignl_use=yes
28238 else
28239   echo "$as_me: failed program was:" >&5
28240 sed 's/^/| /' conftest.$ac_ext >&5
28241
28242 glibcxx_cv_func_copysignl_use=no
28243 fi
28244 rm -f conftest.$ac_objext conftest.$ac_ext
28245       ac_ext=c
28246 ac_cpp='$CPP $CPPFLAGS'
28247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28250
28251
28252 fi
28253
28254   fi
28255   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
28256 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
28257
28258   if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
28259
28260 for ac_func in copysignl
28261 do
28262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28263 echo "$as_me:$LINENO: checking for $ac_func" >&5
28264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28265 if eval "test \"\${$as_ac_var+set}\" = set"; then
28266   echo $ECHO_N "(cached) $ECHO_C" >&6
28267 else
28268   cat >conftest.$ac_ext <<_ACEOF
28269 #line $LINENO "configure"
28270 /* confdefs.h.  */
28271 _ACEOF
28272 cat confdefs.h >>conftest.$ac_ext
28273 cat >>conftest.$ac_ext <<_ACEOF
28274 /* end confdefs.h.  */
28275 /* System header to define __stub macros and hopefully few prototypes,
28276     which can conflict with char $ac_func (); below.
28277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28278     <limits.h> exists even on freestanding compilers.  */
28279 #ifdef __STDC__
28280 # include <limits.h>
28281 #else
28282 # include <assert.h>
28283 #endif
28284 /* Override any gcc2 internal prototype to avoid an error.  */
28285 #ifdef __cplusplus
28286 extern "C"
28287 {
28288 #endif
28289 /* We use char because int might match the return type of a gcc2
28290    builtin and then its argument prototype would still apply.  */
28291 char $ac_func ();
28292 /* The GNU C library defines this for functions which it implements
28293     to always fail with ENOSYS.  Some functions are actually named
28294     something starting with __ and the normal name is an alias.  */
28295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28296 choke me
28297 #else
28298 char (*f) () = $ac_func;
28299 #endif
28300 #ifdef __cplusplus
28301 }
28302 #endif
28303
28304 int
28305 main ()
28306 {
28307 return f != $ac_func;
28308   ;
28309   return 0;
28310 }
28311 _ACEOF
28312 rm -f conftest.$ac_objext conftest$ac_exeext
28313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28314   (eval $ac_link) 2>&5
28315   ac_status=$?
28316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317   (exit $ac_status); } &&
28318          { ac_try='test -s conftest$ac_exeext'
28319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28320   (eval $ac_try) 2>&5
28321   ac_status=$?
28322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323   (exit $ac_status); }; }; then
28324   eval "$as_ac_var=yes"
28325 else
28326   echo "$as_me: failed program was:" >&5
28327 sed 's/^/| /' conftest.$ac_ext >&5
28328
28329 eval "$as_ac_var=no"
28330 fi
28331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28332 fi
28333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28334 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28335 if test `eval echo '${'$as_ac_var'}'` = yes; then
28336   cat >>confdefs.h <<_ACEOF
28337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28338 _ACEOF
28339
28340 fi
28341 done
28342
28343   else
28344
28345   echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
28346 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
28347   if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
28348     if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
28349   echo $ECHO_N "(cached) $ECHO_C" >&6
28350 else
28351
28352
28353
28354       ac_ext=cc
28355 ac_cpp='$CXXCPP $CPPFLAGS'
28356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28359
28360       cat >conftest.$ac_ext <<_ACEOF
28361 #line $LINENO "configure"
28362 /* confdefs.h.  */
28363 _ACEOF
28364 cat confdefs.h >>conftest.$ac_ext
28365 cat >>conftest.$ac_ext <<_ACEOF
28366 /* end confdefs.h.  */
28367 #include <math.h>
28368 int
28369 main ()
28370 {
28371  _copysignl(0, 0);
28372   ;
28373   return 0;
28374 }
28375 _ACEOF
28376 rm -f conftest.$ac_objext
28377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28378   (eval $ac_compile) 2>&5
28379   ac_status=$?
28380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381   (exit $ac_status); } &&
28382          { ac_try='test -s conftest.$ac_objext'
28383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28384   (eval $ac_try) 2>&5
28385   ac_status=$?
28386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387   (exit $ac_status); }; }; then
28388   glibcxx_cv_func__copysignl_use=yes
28389 else
28390   echo "$as_me: failed program was:" >&5
28391 sed 's/^/| /' conftest.$ac_ext >&5
28392
28393 glibcxx_cv_func__copysignl_use=no
28394 fi
28395 rm -f conftest.$ac_objext conftest.$ac_ext
28396       ac_ext=c
28397 ac_cpp='$CPP $CPPFLAGS'
28398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28401
28402
28403 fi
28404
28405   fi
28406   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
28407 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
28408
28409     if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
28410
28411 for ac_func in _copysignl
28412 do
28413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28414 echo "$as_me:$LINENO: checking for $ac_func" >&5
28415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28416 if eval "test \"\${$as_ac_var+set}\" = set"; then
28417   echo $ECHO_N "(cached) $ECHO_C" >&6
28418 else
28419   cat >conftest.$ac_ext <<_ACEOF
28420 #line $LINENO "configure"
28421 /* confdefs.h.  */
28422 _ACEOF
28423 cat confdefs.h >>conftest.$ac_ext
28424 cat >>conftest.$ac_ext <<_ACEOF
28425 /* end confdefs.h.  */
28426 /* System header to define __stub macros and hopefully few prototypes,
28427     which can conflict with char $ac_func (); below.
28428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28429     <limits.h> exists even on freestanding compilers.  */
28430 #ifdef __STDC__
28431 # include <limits.h>
28432 #else
28433 # include <assert.h>
28434 #endif
28435 /* Override any gcc2 internal prototype to avoid an error.  */
28436 #ifdef __cplusplus
28437 extern "C"
28438 {
28439 #endif
28440 /* We use char because int might match the return type of a gcc2
28441    builtin and then its argument prototype would still apply.  */
28442 char $ac_func ();
28443 /* The GNU C library defines this for functions which it implements
28444     to always fail with ENOSYS.  Some functions are actually named
28445     something starting with __ and the normal name is an alias.  */
28446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28447 choke me
28448 #else
28449 char (*f) () = $ac_func;
28450 #endif
28451 #ifdef __cplusplus
28452 }
28453 #endif
28454
28455 int
28456 main ()
28457 {
28458 return f != $ac_func;
28459   ;
28460   return 0;
28461 }
28462 _ACEOF
28463 rm -f conftest.$ac_objext conftest$ac_exeext
28464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28465   (eval $ac_link) 2>&5
28466   ac_status=$?
28467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468   (exit $ac_status); } &&
28469          { ac_try='test -s conftest$ac_exeext'
28470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28471   (eval $ac_try) 2>&5
28472   ac_status=$?
28473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474   (exit $ac_status); }; }; then
28475   eval "$as_ac_var=yes"
28476 else
28477   echo "$as_me: failed program was:" >&5
28478 sed 's/^/| /' conftest.$ac_ext >&5
28479
28480 eval "$as_ac_var=no"
28481 fi
28482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28483 fi
28484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28486 if test `eval echo '${'$as_ac_var'}'` = yes; then
28487   cat >>confdefs.h <<_ACEOF
28488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28489 _ACEOF
28490
28491 fi
28492 done
28493
28494     fi
28495   fi
28496
28497
28498
28499   echo "$as_me:$LINENO: checking for atan2l declaration" >&5
28500 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
28501   if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
28502     if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
28503   echo $ECHO_N "(cached) $ECHO_C" >&6
28504 else
28505
28506
28507
28508       ac_ext=cc
28509 ac_cpp='$CXXCPP $CPPFLAGS'
28510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28513
28514       cat >conftest.$ac_ext <<_ACEOF
28515 #line $LINENO "configure"
28516 /* confdefs.h.  */
28517 _ACEOF
28518 cat confdefs.h >>conftest.$ac_ext
28519 cat >>conftest.$ac_ext <<_ACEOF
28520 /* end confdefs.h.  */
28521 #include <math.h>
28522 int
28523 main ()
28524 {
28525  atan2l(0, 0);
28526   ;
28527   return 0;
28528 }
28529 _ACEOF
28530 rm -f conftest.$ac_objext
28531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28532   (eval $ac_compile) 2>&5
28533   ac_status=$?
28534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535   (exit $ac_status); } &&
28536          { ac_try='test -s conftest.$ac_objext'
28537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28538   (eval $ac_try) 2>&5
28539   ac_status=$?
28540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541   (exit $ac_status); }; }; then
28542   glibcxx_cv_func_atan2l_use=yes
28543 else
28544   echo "$as_me: failed program was:" >&5
28545 sed 's/^/| /' conftest.$ac_ext >&5
28546
28547 glibcxx_cv_func_atan2l_use=no
28548 fi
28549 rm -f conftest.$ac_objext conftest.$ac_ext
28550       ac_ext=c
28551 ac_cpp='$CPP $CPPFLAGS'
28552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28555
28556
28557 fi
28558
28559   fi
28560   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
28561 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
28562
28563   if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
28564
28565 for ac_func in atan2l
28566 do
28567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28568 echo "$as_me:$LINENO: checking for $ac_func" >&5
28569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28570 if eval "test \"\${$as_ac_var+set}\" = set"; then
28571   echo $ECHO_N "(cached) $ECHO_C" >&6
28572 else
28573   cat >conftest.$ac_ext <<_ACEOF
28574 #line $LINENO "configure"
28575 /* confdefs.h.  */
28576 _ACEOF
28577 cat confdefs.h >>conftest.$ac_ext
28578 cat >>conftest.$ac_ext <<_ACEOF
28579 /* end confdefs.h.  */
28580 /* System header to define __stub macros and hopefully few prototypes,
28581     which can conflict with char $ac_func (); below.
28582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28583     <limits.h> exists even on freestanding compilers.  */
28584 #ifdef __STDC__
28585 # include <limits.h>
28586 #else
28587 # include <assert.h>
28588 #endif
28589 /* Override any gcc2 internal prototype to avoid an error.  */
28590 #ifdef __cplusplus
28591 extern "C"
28592 {
28593 #endif
28594 /* We use char because int might match the return type of a gcc2
28595    builtin and then its argument prototype would still apply.  */
28596 char $ac_func ();
28597 /* The GNU C library defines this for functions which it implements
28598     to always fail with ENOSYS.  Some functions are actually named
28599     something starting with __ and the normal name is an alias.  */
28600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28601 choke me
28602 #else
28603 char (*f) () = $ac_func;
28604 #endif
28605 #ifdef __cplusplus
28606 }
28607 #endif
28608
28609 int
28610 main ()
28611 {
28612 return f != $ac_func;
28613   ;
28614   return 0;
28615 }
28616 _ACEOF
28617 rm -f conftest.$ac_objext conftest$ac_exeext
28618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28619   (eval $ac_link) 2>&5
28620   ac_status=$?
28621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622   (exit $ac_status); } &&
28623          { ac_try='test -s conftest$ac_exeext'
28624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28625   (eval $ac_try) 2>&5
28626   ac_status=$?
28627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628   (exit $ac_status); }; }; then
28629   eval "$as_ac_var=yes"
28630 else
28631   echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28633
28634 eval "$as_ac_var=no"
28635 fi
28636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28637 fi
28638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28640 if test `eval echo '${'$as_ac_var'}'` = yes; then
28641   cat >>confdefs.h <<_ACEOF
28642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28643 _ACEOF
28644
28645 fi
28646 done
28647
28648   else
28649
28650   echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
28651 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
28652   if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
28653     if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
28654   echo $ECHO_N "(cached) $ECHO_C" >&6
28655 else
28656
28657
28658
28659       ac_ext=cc
28660 ac_cpp='$CXXCPP $CPPFLAGS'
28661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28664
28665       cat >conftest.$ac_ext <<_ACEOF
28666 #line $LINENO "configure"
28667 /* confdefs.h.  */
28668 _ACEOF
28669 cat confdefs.h >>conftest.$ac_ext
28670 cat >>conftest.$ac_ext <<_ACEOF
28671 /* end confdefs.h.  */
28672 #include <math.h>
28673 int
28674 main ()
28675 {
28676  _atan2l(0, 0);
28677   ;
28678   return 0;
28679 }
28680 _ACEOF
28681 rm -f conftest.$ac_objext
28682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28683   (eval $ac_compile) 2>&5
28684   ac_status=$?
28685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); } &&
28687          { ac_try='test -s conftest.$ac_objext'
28688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28689   (eval $ac_try) 2>&5
28690   ac_status=$?
28691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692   (exit $ac_status); }; }; then
28693   glibcxx_cv_func__atan2l_use=yes
28694 else
28695   echo "$as_me: failed program was:" >&5
28696 sed 's/^/| /' conftest.$ac_ext >&5
28697
28698 glibcxx_cv_func__atan2l_use=no
28699 fi
28700 rm -f conftest.$ac_objext conftest.$ac_ext
28701       ac_ext=c
28702 ac_cpp='$CPP $CPPFLAGS'
28703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28706
28707
28708 fi
28709
28710   fi
28711   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
28712 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
28713
28714     if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
28715
28716 for ac_func in _atan2l
28717 do
28718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28719 echo "$as_me:$LINENO: checking for $ac_func" >&5
28720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28721 if eval "test \"\${$as_ac_var+set}\" = set"; then
28722   echo $ECHO_N "(cached) $ECHO_C" >&6
28723 else
28724   cat >conftest.$ac_ext <<_ACEOF
28725 #line $LINENO "configure"
28726 /* confdefs.h.  */
28727 _ACEOF
28728 cat confdefs.h >>conftest.$ac_ext
28729 cat >>conftest.$ac_ext <<_ACEOF
28730 /* end confdefs.h.  */
28731 /* System header to define __stub macros and hopefully few prototypes,
28732     which can conflict with char $ac_func (); below.
28733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28734     <limits.h> exists even on freestanding compilers.  */
28735 #ifdef __STDC__
28736 # include <limits.h>
28737 #else
28738 # include <assert.h>
28739 #endif
28740 /* Override any gcc2 internal prototype to avoid an error.  */
28741 #ifdef __cplusplus
28742 extern "C"
28743 {
28744 #endif
28745 /* We use char because int might match the return type of a gcc2
28746    builtin and then its argument prototype would still apply.  */
28747 char $ac_func ();
28748 /* The GNU C library defines this for functions which it implements
28749     to always fail with ENOSYS.  Some functions are actually named
28750     something starting with __ and the normal name is an alias.  */
28751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28752 choke me
28753 #else
28754 char (*f) () = $ac_func;
28755 #endif
28756 #ifdef __cplusplus
28757 }
28758 #endif
28759
28760 int
28761 main ()
28762 {
28763 return f != $ac_func;
28764   ;
28765   return 0;
28766 }
28767 _ACEOF
28768 rm -f conftest.$ac_objext conftest$ac_exeext
28769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28770   (eval $ac_link) 2>&5
28771   ac_status=$?
28772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773   (exit $ac_status); } &&
28774          { ac_try='test -s conftest$ac_exeext'
28775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28776   (eval $ac_try) 2>&5
28777   ac_status=$?
28778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779   (exit $ac_status); }; }; then
28780   eval "$as_ac_var=yes"
28781 else
28782   echo "$as_me: failed program was:" >&5
28783 sed 's/^/| /' conftest.$ac_ext >&5
28784
28785 eval "$as_ac_var=no"
28786 fi
28787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28788 fi
28789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28791 if test `eval echo '${'$as_ac_var'}'` = yes; then
28792   cat >>confdefs.h <<_ACEOF
28793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28794 _ACEOF
28795
28796 fi
28797 done
28798
28799     fi
28800   fi
28801
28802
28803
28804   echo "$as_me:$LINENO: checking for expl declaration" >&5
28805 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
28806   if test x${glibcxx_cv_func_expl_use+set} != xset; then
28807     if test "${glibcxx_cv_func_expl_use+set}" = set; then
28808   echo $ECHO_N "(cached) $ECHO_C" >&6
28809 else
28810
28811
28812
28813       ac_ext=cc
28814 ac_cpp='$CXXCPP $CPPFLAGS'
28815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28818
28819       cat >conftest.$ac_ext <<_ACEOF
28820 #line $LINENO "configure"
28821 /* confdefs.h.  */
28822 _ACEOF
28823 cat confdefs.h >>conftest.$ac_ext
28824 cat >>conftest.$ac_ext <<_ACEOF
28825 /* end confdefs.h.  */
28826 #include <math.h>
28827                       #ifdef HAVE_IEEEFP_H
28828                       #include <ieeefp.h>
28829                       #endif
28830
28831 int
28832 main ()
28833 {
28834  expl(0);
28835   ;
28836   return 0;
28837 }
28838 _ACEOF
28839 rm -f conftest.$ac_objext
28840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28841   (eval $ac_compile) 2>&5
28842   ac_status=$?
28843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844   (exit $ac_status); } &&
28845          { ac_try='test -s conftest.$ac_objext'
28846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28847   (eval $ac_try) 2>&5
28848   ac_status=$?
28849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850   (exit $ac_status); }; }; then
28851   glibcxx_cv_func_expl_use=yes
28852 else
28853   echo "$as_me: failed program was:" >&5
28854 sed 's/^/| /' conftest.$ac_ext >&5
28855
28856 glibcxx_cv_func_expl_use=no
28857 fi
28858 rm -f conftest.$ac_objext conftest.$ac_ext
28859       ac_ext=c
28860 ac_cpp='$CPP $CPPFLAGS'
28861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28864
28865
28866 fi
28867
28868   fi
28869   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
28870 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
28871
28872   if test x$glibcxx_cv_func_expl_use = x"yes"; then
28873
28874 for ac_func in expl
28875 do
28876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28877 echo "$as_me:$LINENO: checking for $ac_func" >&5
28878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28879 if eval "test \"\${$as_ac_var+set}\" = set"; then
28880   echo $ECHO_N "(cached) $ECHO_C" >&6
28881 else
28882   cat >conftest.$ac_ext <<_ACEOF
28883 #line $LINENO "configure"
28884 /* confdefs.h.  */
28885 _ACEOF
28886 cat confdefs.h >>conftest.$ac_ext
28887 cat >>conftest.$ac_ext <<_ACEOF
28888 /* end confdefs.h.  */
28889 /* System header to define __stub macros and hopefully few prototypes,
28890     which can conflict with char $ac_func (); below.
28891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28892     <limits.h> exists even on freestanding compilers.  */
28893 #ifdef __STDC__
28894 # include <limits.h>
28895 #else
28896 # include <assert.h>
28897 #endif
28898 /* Override any gcc2 internal prototype to avoid an error.  */
28899 #ifdef __cplusplus
28900 extern "C"
28901 {
28902 #endif
28903 /* We use char because int might match the return type of a gcc2
28904    builtin and then its argument prototype would still apply.  */
28905 char $ac_func ();
28906 /* The GNU C library defines this for functions which it implements
28907     to always fail with ENOSYS.  Some functions are actually named
28908     something starting with __ and the normal name is an alias.  */
28909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28910 choke me
28911 #else
28912 char (*f) () = $ac_func;
28913 #endif
28914 #ifdef __cplusplus
28915 }
28916 #endif
28917
28918 int
28919 main ()
28920 {
28921 return f != $ac_func;
28922   ;
28923   return 0;
28924 }
28925 _ACEOF
28926 rm -f conftest.$ac_objext conftest$ac_exeext
28927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28928   (eval $ac_link) 2>&5
28929   ac_status=$?
28930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931   (exit $ac_status); } &&
28932          { ac_try='test -s conftest$ac_exeext'
28933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28934   (eval $ac_try) 2>&5
28935   ac_status=$?
28936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937   (exit $ac_status); }; }; then
28938   eval "$as_ac_var=yes"
28939 else
28940   echo "$as_me: failed program was:" >&5
28941 sed 's/^/| /' conftest.$ac_ext >&5
28942
28943 eval "$as_ac_var=no"
28944 fi
28945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28946 fi
28947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28949 if test `eval echo '${'$as_ac_var'}'` = yes; then
28950   cat >>confdefs.h <<_ACEOF
28951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28952 _ACEOF
28953
28954 fi
28955 done
28956
28957   else
28958
28959   echo "$as_me:$LINENO: checking for _expl declaration" >&5
28960 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
28961   if test x${glibcxx_cv_func__expl_use+set} != xset; then
28962     if test "${glibcxx_cv_func__expl_use+set}" = set; then
28963   echo $ECHO_N "(cached) $ECHO_C" >&6
28964 else
28965
28966
28967
28968       ac_ext=cc
28969 ac_cpp='$CXXCPP $CPPFLAGS'
28970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28973
28974       cat >conftest.$ac_ext <<_ACEOF
28975 #line $LINENO "configure"
28976 /* confdefs.h.  */
28977 _ACEOF
28978 cat confdefs.h >>conftest.$ac_ext
28979 cat >>conftest.$ac_ext <<_ACEOF
28980 /* end confdefs.h.  */
28981 #include <math.h>
28982                       #ifdef HAVE_IEEEFP_H
28983                       #include <ieeefp.h>
28984                       #endif
28985
28986 int
28987 main ()
28988 {
28989  _expl(0);
28990   ;
28991   return 0;
28992 }
28993 _ACEOF
28994 rm -f conftest.$ac_objext
28995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28996   (eval $ac_compile) 2>&5
28997   ac_status=$?
28998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999   (exit $ac_status); } &&
29000          { ac_try='test -s conftest.$ac_objext'
29001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002   (eval $ac_try) 2>&5
29003   ac_status=$?
29004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005   (exit $ac_status); }; }; then
29006   glibcxx_cv_func__expl_use=yes
29007 else
29008   echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.$ac_ext >&5
29010
29011 glibcxx_cv_func__expl_use=no
29012 fi
29013 rm -f conftest.$ac_objext conftest.$ac_ext
29014       ac_ext=c
29015 ac_cpp='$CPP $CPPFLAGS'
29016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29019
29020
29021 fi
29022
29023   fi
29024   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
29025 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
29026
29027     if test x$glibcxx_cv_func__expl_use = x"yes"; then
29028
29029 for ac_func in _expl
29030 do
29031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29032 echo "$as_me:$LINENO: checking for $ac_func" >&5
29033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29034 if eval "test \"\${$as_ac_var+set}\" = set"; then
29035   echo $ECHO_N "(cached) $ECHO_C" >&6
29036 else
29037   cat >conftest.$ac_ext <<_ACEOF
29038 #line $LINENO "configure"
29039 /* confdefs.h.  */
29040 _ACEOF
29041 cat confdefs.h >>conftest.$ac_ext
29042 cat >>conftest.$ac_ext <<_ACEOF
29043 /* end confdefs.h.  */
29044 /* System header to define __stub macros and hopefully few prototypes,
29045     which can conflict with char $ac_func (); below.
29046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29047     <limits.h> exists even on freestanding compilers.  */
29048 #ifdef __STDC__
29049 # include <limits.h>
29050 #else
29051 # include <assert.h>
29052 #endif
29053 /* Override any gcc2 internal prototype to avoid an error.  */
29054 #ifdef __cplusplus
29055 extern "C"
29056 {
29057 #endif
29058 /* We use char because int might match the return type of a gcc2
29059    builtin and then its argument prototype would still apply.  */
29060 char $ac_func ();
29061 /* The GNU C library defines this for functions which it implements
29062     to always fail with ENOSYS.  Some functions are actually named
29063     something starting with __ and the normal name is an alias.  */
29064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29065 choke me
29066 #else
29067 char (*f) () = $ac_func;
29068 #endif
29069 #ifdef __cplusplus
29070 }
29071 #endif
29072
29073 int
29074 main ()
29075 {
29076 return f != $ac_func;
29077   ;
29078   return 0;
29079 }
29080 _ACEOF
29081 rm -f conftest.$ac_objext conftest$ac_exeext
29082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29083   (eval $ac_link) 2>&5
29084   ac_status=$?
29085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086   (exit $ac_status); } &&
29087          { ac_try='test -s conftest$ac_exeext'
29088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29089   (eval $ac_try) 2>&5
29090   ac_status=$?
29091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092   (exit $ac_status); }; }; then
29093   eval "$as_ac_var=yes"
29094 else
29095   echo "$as_me: failed program was:" >&5
29096 sed 's/^/| /' conftest.$ac_ext >&5
29097
29098 eval "$as_ac_var=no"
29099 fi
29100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29101 fi
29102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29104 if test `eval echo '${'$as_ac_var'}'` = yes; then
29105   cat >>confdefs.h <<_ACEOF
29106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29107 _ACEOF
29108
29109 fi
29110 done
29111
29112     fi
29113   fi
29114
29115
29116
29117   echo "$as_me:$LINENO: checking for fabsl declaration" >&5
29118 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
29119   if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
29120     if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
29121   echo $ECHO_N "(cached) $ECHO_C" >&6
29122 else
29123
29124
29125
29126       ac_ext=cc
29127 ac_cpp='$CXXCPP $CPPFLAGS'
29128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29131
29132       cat >conftest.$ac_ext <<_ACEOF
29133 #line $LINENO "configure"
29134 /* confdefs.h.  */
29135 _ACEOF
29136 cat confdefs.h >>conftest.$ac_ext
29137 cat >>conftest.$ac_ext <<_ACEOF
29138 /* end confdefs.h.  */
29139 #include <math.h>
29140                       #ifdef HAVE_IEEEFP_H
29141                       #include <ieeefp.h>
29142                       #endif
29143
29144 int
29145 main ()
29146 {
29147  fabsl(0);
29148   ;
29149   return 0;
29150 }
29151 _ACEOF
29152 rm -f conftest.$ac_objext
29153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29154   (eval $ac_compile) 2>&5
29155   ac_status=$?
29156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157   (exit $ac_status); } &&
29158          { ac_try='test -s conftest.$ac_objext'
29159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29160   (eval $ac_try) 2>&5
29161   ac_status=$?
29162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163   (exit $ac_status); }; }; then
29164   glibcxx_cv_func_fabsl_use=yes
29165 else
29166   echo "$as_me: failed program was:" >&5
29167 sed 's/^/| /' conftest.$ac_ext >&5
29168
29169 glibcxx_cv_func_fabsl_use=no
29170 fi
29171 rm -f conftest.$ac_objext conftest.$ac_ext
29172       ac_ext=c
29173 ac_cpp='$CPP $CPPFLAGS'
29174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29177
29178
29179 fi
29180
29181   fi
29182   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
29183 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
29184
29185   if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
29186
29187 for ac_func in fabsl
29188 do
29189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29190 echo "$as_me:$LINENO: checking for $ac_func" >&5
29191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29192 if eval "test \"\${$as_ac_var+set}\" = set"; then
29193   echo $ECHO_N "(cached) $ECHO_C" >&6
29194 else
29195   cat >conftest.$ac_ext <<_ACEOF
29196 #line $LINENO "configure"
29197 /* confdefs.h.  */
29198 _ACEOF
29199 cat confdefs.h >>conftest.$ac_ext
29200 cat >>conftest.$ac_ext <<_ACEOF
29201 /* end confdefs.h.  */
29202 /* System header to define __stub macros and hopefully few prototypes,
29203     which can conflict with char $ac_func (); below.
29204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29205     <limits.h> exists even on freestanding compilers.  */
29206 #ifdef __STDC__
29207 # include <limits.h>
29208 #else
29209 # include <assert.h>
29210 #endif
29211 /* Override any gcc2 internal prototype to avoid an error.  */
29212 #ifdef __cplusplus
29213 extern "C"
29214 {
29215 #endif
29216 /* We use char because int might match the return type of a gcc2
29217    builtin and then its argument prototype would still apply.  */
29218 char $ac_func ();
29219 /* The GNU C library defines this for functions which it implements
29220     to always fail with ENOSYS.  Some functions are actually named
29221     something starting with __ and the normal name is an alias.  */
29222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29223 choke me
29224 #else
29225 char (*f) () = $ac_func;
29226 #endif
29227 #ifdef __cplusplus
29228 }
29229 #endif
29230
29231 int
29232 main ()
29233 {
29234 return f != $ac_func;
29235   ;
29236   return 0;
29237 }
29238 _ACEOF
29239 rm -f conftest.$ac_objext conftest$ac_exeext
29240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29241   (eval $ac_link) 2>&5
29242   ac_status=$?
29243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29244   (exit $ac_status); } &&
29245          { ac_try='test -s conftest$ac_exeext'
29246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29247   (eval $ac_try) 2>&5
29248   ac_status=$?
29249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250   (exit $ac_status); }; }; then
29251   eval "$as_ac_var=yes"
29252 else
29253   echo "$as_me: failed program was:" >&5
29254 sed 's/^/| /' conftest.$ac_ext >&5
29255
29256 eval "$as_ac_var=no"
29257 fi
29258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29259 fi
29260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29262 if test `eval echo '${'$as_ac_var'}'` = yes; then
29263   cat >>confdefs.h <<_ACEOF
29264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29265 _ACEOF
29266
29267 fi
29268 done
29269
29270   else
29271
29272   echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
29273 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
29274   if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
29275     if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
29276   echo $ECHO_N "(cached) $ECHO_C" >&6
29277 else
29278
29279
29280
29281       ac_ext=cc
29282 ac_cpp='$CXXCPP $CPPFLAGS'
29283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29286
29287       cat >conftest.$ac_ext <<_ACEOF
29288 #line $LINENO "configure"
29289 /* confdefs.h.  */
29290 _ACEOF
29291 cat confdefs.h >>conftest.$ac_ext
29292 cat >>conftest.$ac_ext <<_ACEOF
29293 /* end confdefs.h.  */
29294 #include <math.h>
29295                       #ifdef HAVE_IEEEFP_H
29296                       #include <ieeefp.h>
29297                       #endif
29298
29299 int
29300 main ()
29301 {
29302  _fabsl(0);
29303   ;
29304   return 0;
29305 }
29306 _ACEOF
29307 rm -f conftest.$ac_objext
29308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29309   (eval $ac_compile) 2>&5
29310   ac_status=$?
29311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312   (exit $ac_status); } &&
29313          { ac_try='test -s conftest.$ac_objext'
29314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29315   (eval $ac_try) 2>&5
29316   ac_status=$?
29317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318   (exit $ac_status); }; }; then
29319   glibcxx_cv_func__fabsl_use=yes
29320 else
29321   echo "$as_me: failed program was:" >&5
29322 sed 's/^/| /' conftest.$ac_ext >&5
29323
29324 glibcxx_cv_func__fabsl_use=no
29325 fi
29326 rm -f conftest.$ac_objext conftest.$ac_ext
29327       ac_ext=c
29328 ac_cpp='$CPP $CPPFLAGS'
29329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29332
29333
29334 fi
29335
29336   fi
29337   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
29338 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
29339
29340     if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
29341
29342 for ac_func in _fabsl
29343 do
29344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29345 echo "$as_me:$LINENO: checking for $ac_func" >&5
29346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29347 if eval "test \"\${$as_ac_var+set}\" = set"; then
29348   echo $ECHO_N "(cached) $ECHO_C" >&6
29349 else
29350   cat >conftest.$ac_ext <<_ACEOF
29351 #line $LINENO "configure"
29352 /* confdefs.h.  */
29353 _ACEOF
29354 cat confdefs.h >>conftest.$ac_ext
29355 cat >>conftest.$ac_ext <<_ACEOF
29356 /* end confdefs.h.  */
29357 /* System header to define __stub macros and hopefully few prototypes,
29358     which can conflict with char $ac_func (); below.
29359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29360     <limits.h> exists even on freestanding compilers.  */
29361 #ifdef __STDC__
29362 # include <limits.h>
29363 #else
29364 # include <assert.h>
29365 #endif
29366 /* Override any gcc2 internal prototype to avoid an error.  */
29367 #ifdef __cplusplus
29368 extern "C"
29369 {
29370 #endif
29371 /* We use char because int might match the return type of a gcc2
29372    builtin and then its argument prototype would still apply.  */
29373 char $ac_func ();
29374 /* The GNU C library defines this for functions which it implements
29375     to always fail with ENOSYS.  Some functions are actually named
29376     something starting with __ and the normal name is an alias.  */
29377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29378 choke me
29379 #else
29380 char (*f) () = $ac_func;
29381 #endif
29382 #ifdef __cplusplus
29383 }
29384 #endif
29385
29386 int
29387 main ()
29388 {
29389 return f != $ac_func;
29390   ;
29391   return 0;
29392 }
29393 _ACEOF
29394 rm -f conftest.$ac_objext conftest$ac_exeext
29395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29396   (eval $ac_link) 2>&5
29397   ac_status=$?
29398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399   (exit $ac_status); } &&
29400          { ac_try='test -s conftest$ac_exeext'
29401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29402   (eval $ac_try) 2>&5
29403   ac_status=$?
29404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405   (exit $ac_status); }; }; then
29406   eval "$as_ac_var=yes"
29407 else
29408   echo "$as_me: failed program was:" >&5
29409 sed 's/^/| /' conftest.$ac_ext >&5
29410
29411 eval "$as_ac_var=no"
29412 fi
29413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29414 fi
29415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29417 if test `eval echo '${'$as_ac_var'}'` = yes; then
29418   cat >>confdefs.h <<_ACEOF
29419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29420 _ACEOF
29421
29422 fi
29423 done
29424
29425     fi
29426   fi
29427
29428
29429
29430   echo "$as_me:$LINENO: checking for fmodl declaration" >&5
29431 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
29432   if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
29433     if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
29434   echo $ECHO_N "(cached) $ECHO_C" >&6
29435 else
29436
29437
29438
29439       ac_ext=cc
29440 ac_cpp='$CXXCPP $CPPFLAGS'
29441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29444
29445       cat >conftest.$ac_ext <<_ACEOF
29446 #line $LINENO "configure"
29447 /* confdefs.h.  */
29448 _ACEOF
29449 cat confdefs.h >>conftest.$ac_ext
29450 cat >>conftest.$ac_ext <<_ACEOF
29451 /* end confdefs.h.  */
29452 #include <math.h>
29453 int
29454 main ()
29455 {
29456  fmodl(0, 0);
29457   ;
29458   return 0;
29459 }
29460 _ACEOF
29461 rm -f conftest.$ac_objext
29462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29463   (eval $ac_compile) 2>&5
29464   ac_status=$?
29465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466   (exit $ac_status); } &&
29467          { ac_try='test -s conftest.$ac_objext'
29468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29469   (eval $ac_try) 2>&5
29470   ac_status=$?
29471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472   (exit $ac_status); }; }; then
29473   glibcxx_cv_func_fmodl_use=yes
29474 else
29475   echo "$as_me: failed program was:" >&5
29476 sed 's/^/| /' conftest.$ac_ext >&5
29477
29478 glibcxx_cv_func_fmodl_use=no
29479 fi
29480 rm -f conftest.$ac_objext conftest.$ac_ext
29481       ac_ext=c
29482 ac_cpp='$CPP $CPPFLAGS'
29483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29486
29487
29488 fi
29489
29490   fi
29491   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
29492 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
29493
29494   if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
29495
29496 for ac_func in fmodl
29497 do
29498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29499 echo "$as_me:$LINENO: checking for $ac_func" >&5
29500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29501 if eval "test \"\${$as_ac_var+set}\" = set"; then
29502   echo $ECHO_N "(cached) $ECHO_C" >&6
29503 else
29504   cat >conftest.$ac_ext <<_ACEOF
29505 #line $LINENO "configure"
29506 /* confdefs.h.  */
29507 _ACEOF
29508 cat confdefs.h >>conftest.$ac_ext
29509 cat >>conftest.$ac_ext <<_ACEOF
29510 /* end confdefs.h.  */
29511 /* System header to define __stub macros and hopefully few prototypes,
29512     which can conflict with char $ac_func (); below.
29513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29514     <limits.h> exists even on freestanding compilers.  */
29515 #ifdef __STDC__
29516 # include <limits.h>
29517 #else
29518 # include <assert.h>
29519 #endif
29520 /* Override any gcc2 internal prototype to avoid an error.  */
29521 #ifdef __cplusplus
29522 extern "C"
29523 {
29524 #endif
29525 /* We use char because int might match the return type of a gcc2
29526    builtin and then its argument prototype would still apply.  */
29527 char $ac_func ();
29528 /* The GNU C library defines this for functions which it implements
29529     to always fail with ENOSYS.  Some functions are actually named
29530     something starting with __ and the normal name is an alias.  */
29531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29532 choke me
29533 #else
29534 char (*f) () = $ac_func;
29535 #endif
29536 #ifdef __cplusplus
29537 }
29538 #endif
29539
29540 int
29541 main ()
29542 {
29543 return f != $ac_func;
29544   ;
29545   return 0;
29546 }
29547 _ACEOF
29548 rm -f conftest.$ac_objext conftest$ac_exeext
29549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29550   (eval $ac_link) 2>&5
29551   ac_status=$?
29552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553   (exit $ac_status); } &&
29554          { ac_try='test -s conftest$ac_exeext'
29555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29556   (eval $ac_try) 2>&5
29557   ac_status=$?
29558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559   (exit $ac_status); }; }; then
29560   eval "$as_ac_var=yes"
29561 else
29562   echo "$as_me: failed program was:" >&5
29563 sed 's/^/| /' conftest.$ac_ext >&5
29564
29565 eval "$as_ac_var=no"
29566 fi
29567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29568 fi
29569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29571 if test `eval echo '${'$as_ac_var'}'` = yes; then
29572   cat >>confdefs.h <<_ACEOF
29573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29574 _ACEOF
29575
29576 fi
29577 done
29578
29579   else
29580
29581   echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
29582 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
29583   if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
29584     if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
29585   echo $ECHO_N "(cached) $ECHO_C" >&6
29586 else
29587
29588
29589
29590       ac_ext=cc
29591 ac_cpp='$CXXCPP $CPPFLAGS'
29592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29595
29596       cat >conftest.$ac_ext <<_ACEOF
29597 #line $LINENO "configure"
29598 /* confdefs.h.  */
29599 _ACEOF
29600 cat confdefs.h >>conftest.$ac_ext
29601 cat >>conftest.$ac_ext <<_ACEOF
29602 /* end confdefs.h.  */
29603 #include <math.h>
29604 int
29605 main ()
29606 {
29607  _fmodl(0, 0);
29608   ;
29609   return 0;
29610 }
29611 _ACEOF
29612 rm -f conftest.$ac_objext
29613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29614   (eval $ac_compile) 2>&5
29615   ac_status=$?
29616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617   (exit $ac_status); } &&
29618          { ac_try='test -s conftest.$ac_objext'
29619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29620   (eval $ac_try) 2>&5
29621   ac_status=$?
29622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29623   (exit $ac_status); }; }; then
29624   glibcxx_cv_func__fmodl_use=yes
29625 else
29626   echo "$as_me: failed program was:" >&5
29627 sed 's/^/| /' conftest.$ac_ext >&5
29628
29629 glibcxx_cv_func__fmodl_use=no
29630 fi
29631 rm -f conftest.$ac_objext conftest.$ac_ext
29632       ac_ext=c
29633 ac_cpp='$CPP $CPPFLAGS'
29634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29637
29638
29639 fi
29640
29641   fi
29642   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
29643 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
29644
29645     if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
29646
29647 for ac_func in _fmodl
29648 do
29649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29650 echo "$as_me:$LINENO: checking for $ac_func" >&5
29651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29652 if eval "test \"\${$as_ac_var+set}\" = set"; then
29653   echo $ECHO_N "(cached) $ECHO_C" >&6
29654 else
29655   cat >conftest.$ac_ext <<_ACEOF
29656 #line $LINENO "configure"
29657 /* confdefs.h.  */
29658 _ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h.  */
29662 /* System header to define __stub macros and hopefully few prototypes,
29663     which can conflict with char $ac_func (); below.
29664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29665     <limits.h> exists even on freestanding compilers.  */
29666 #ifdef __STDC__
29667 # include <limits.h>
29668 #else
29669 # include <assert.h>
29670 #endif
29671 /* Override any gcc2 internal prototype to avoid an error.  */
29672 #ifdef __cplusplus
29673 extern "C"
29674 {
29675 #endif
29676 /* We use char because int might match the return type of a gcc2
29677    builtin and then its argument prototype would still apply.  */
29678 char $ac_func ();
29679 /* The GNU C library defines this for functions which it implements
29680     to always fail with ENOSYS.  Some functions are actually named
29681     something starting with __ and the normal name is an alias.  */
29682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29683 choke me
29684 #else
29685 char (*f) () = $ac_func;
29686 #endif
29687 #ifdef __cplusplus
29688 }
29689 #endif
29690
29691 int
29692 main ()
29693 {
29694 return f != $ac_func;
29695   ;
29696   return 0;
29697 }
29698 _ACEOF
29699 rm -f conftest.$ac_objext conftest$ac_exeext
29700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29701   (eval $ac_link) 2>&5
29702   ac_status=$?
29703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704   (exit $ac_status); } &&
29705          { ac_try='test -s conftest$ac_exeext'
29706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29707   (eval $ac_try) 2>&5
29708   ac_status=$?
29709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710   (exit $ac_status); }; }; then
29711   eval "$as_ac_var=yes"
29712 else
29713   echo "$as_me: failed program was:" >&5
29714 sed 's/^/| /' conftest.$ac_ext >&5
29715
29716 eval "$as_ac_var=no"
29717 fi
29718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29719 fi
29720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29722 if test `eval echo '${'$as_ac_var'}'` = yes; then
29723   cat >>confdefs.h <<_ACEOF
29724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29725 _ACEOF
29726
29727 fi
29728 done
29729
29730     fi
29731   fi
29732
29733
29734
29735   echo "$as_me:$LINENO: checking for frexpl declaration" >&5
29736 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
29737   if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
29738     if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
29739   echo $ECHO_N "(cached) $ECHO_C" >&6
29740 else
29741
29742
29743
29744       ac_ext=cc
29745 ac_cpp='$CXXCPP $CPPFLAGS'
29746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29749
29750       cat >conftest.$ac_ext <<_ACEOF
29751 #line $LINENO "configure"
29752 /* confdefs.h.  */
29753 _ACEOF
29754 cat confdefs.h >>conftest.$ac_ext
29755 cat >>conftest.$ac_ext <<_ACEOF
29756 /* end confdefs.h.  */
29757 #include <math.h>
29758 int
29759 main ()
29760 {
29761  frexpl(0, 0);
29762   ;
29763   return 0;
29764 }
29765 _ACEOF
29766 rm -f conftest.$ac_objext
29767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29768   (eval $ac_compile) 2>&5
29769   ac_status=$?
29770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771   (exit $ac_status); } &&
29772          { ac_try='test -s conftest.$ac_objext'
29773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29774   (eval $ac_try) 2>&5
29775   ac_status=$?
29776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777   (exit $ac_status); }; }; then
29778   glibcxx_cv_func_frexpl_use=yes
29779 else
29780   echo "$as_me: failed program was:" >&5
29781 sed 's/^/| /' conftest.$ac_ext >&5
29782
29783 glibcxx_cv_func_frexpl_use=no
29784 fi
29785 rm -f conftest.$ac_objext conftest.$ac_ext
29786       ac_ext=c
29787 ac_cpp='$CPP $CPPFLAGS'
29788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29791
29792
29793 fi
29794
29795   fi
29796   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
29797 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
29798
29799   if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
29800
29801 for ac_func in frexpl
29802 do
29803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29804 echo "$as_me:$LINENO: checking for $ac_func" >&5
29805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29806 if eval "test \"\${$as_ac_var+set}\" = set"; then
29807   echo $ECHO_N "(cached) $ECHO_C" >&6
29808 else
29809   cat >conftest.$ac_ext <<_ACEOF
29810 #line $LINENO "configure"
29811 /* confdefs.h.  */
29812 _ACEOF
29813 cat confdefs.h >>conftest.$ac_ext
29814 cat >>conftest.$ac_ext <<_ACEOF
29815 /* end confdefs.h.  */
29816 /* System header to define __stub macros and hopefully few prototypes,
29817     which can conflict with char $ac_func (); below.
29818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29819     <limits.h> exists even on freestanding compilers.  */
29820 #ifdef __STDC__
29821 # include <limits.h>
29822 #else
29823 # include <assert.h>
29824 #endif
29825 /* Override any gcc2 internal prototype to avoid an error.  */
29826 #ifdef __cplusplus
29827 extern "C"
29828 {
29829 #endif
29830 /* We use char because int might match the return type of a gcc2
29831    builtin and then its argument prototype would still apply.  */
29832 char $ac_func ();
29833 /* The GNU C library defines this for functions which it implements
29834     to always fail with ENOSYS.  Some functions are actually named
29835     something starting with __ and the normal name is an alias.  */
29836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29837 choke me
29838 #else
29839 char (*f) () = $ac_func;
29840 #endif
29841 #ifdef __cplusplus
29842 }
29843 #endif
29844
29845 int
29846 main ()
29847 {
29848 return f != $ac_func;
29849   ;
29850   return 0;
29851 }
29852 _ACEOF
29853 rm -f conftest.$ac_objext conftest$ac_exeext
29854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29855   (eval $ac_link) 2>&5
29856   ac_status=$?
29857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858   (exit $ac_status); } &&
29859          { ac_try='test -s conftest$ac_exeext'
29860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29861   (eval $ac_try) 2>&5
29862   ac_status=$?
29863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864   (exit $ac_status); }; }; then
29865   eval "$as_ac_var=yes"
29866 else
29867   echo "$as_me: failed program was:" >&5
29868 sed 's/^/| /' conftest.$ac_ext >&5
29869
29870 eval "$as_ac_var=no"
29871 fi
29872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29873 fi
29874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29876 if test `eval echo '${'$as_ac_var'}'` = yes; then
29877   cat >>confdefs.h <<_ACEOF
29878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29879 _ACEOF
29880
29881 fi
29882 done
29883
29884   else
29885
29886   echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
29887 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
29888   if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
29889     if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
29890   echo $ECHO_N "(cached) $ECHO_C" >&6
29891 else
29892
29893
29894
29895       ac_ext=cc
29896 ac_cpp='$CXXCPP $CPPFLAGS'
29897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29900
29901       cat >conftest.$ac_ext <<_ACEOF
29902 #line $LINENO "configure"
29903 /* confdefs.h.  */
29904 _ACEOF
29905 cat confdefs.h >>conftest.$ac_ext
29906 cat >>conftest.$ac_ext <<_ACEOF
29907 /* end confdefs.h.  */
29908 #include <math.h>
29909 int
29910 main ()
29911 {
29912  _frexpl(0, 0);
29913   ;
29914   return 0;
29915 }
29916 _ACEOF
29917 rm -f conftest.$ac_objext
29918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29919   (eval $ac_compile) 2>&5
29920   ac_status=$?
29921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922   (exit $ac_status); } &&
29923          { ac_try='test -s conftest.$ac_objext'
29924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29925   (eval $ac_try) 2>&5
29926   ac_status=$?
29927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928   (exit $ac_status); }; }; then
29929   glibcxx_cv_func__frexpl_use=yes
29930 else
29931   echo "$as_me: failed program was:" >&5
29932 sed 's/^/| /' conftest.$ac_ext >&5
29933
29934 glibcxx_cv_func__frexpl_use=no
29935 fi
29936 rm -f conftest.$ac_objext conftest.$ac_ext
29937       ac_ext=c
29938 ac_cpp='$CPP $CPPFLAGS'
29939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29942
29943
29944 fi
29945
29946   fi
29947   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
29948 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
29949
29950     if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
29951
29952 for ac_func in _frexpl
29953 do
29954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29955 echo "$as_me:$LINENO: checking for $ac_func" >&5
29956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29957 if eval "test \"\${$as_ac_var+set}\" = set"; then
29958   echo $ECHO_N "(cached) $ECHO_C" >&6
29959 else
29960   cat >conftest.$ac_ext <<_ACEOF
29961 #line $LINENO "configure"
29962 /* confdefs.h.  */
29963 _ACEOF
29964 cat confdefs.h >>conftest.$ac_ext
29965 cat >>conftest.$ac_ext <<_ACEOF
29966 /* end confdefs.h.  */
29967 /* System header to define __stub macros and hopefully few prototypes,
29968     which can conflict with char $ac_func (); below.
29969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29970     <limits.h> exists even on freestanding compilers.  */
29971 #ifdef __STDC__
29972 # include <limits.h>
29973 #else
29974 # include <assert.h>
29975 #endif
29976 /* Override any gcc2 internal prototype to avoid an error.  */
29977 #ifdef __cplusplus
29978 extern "C"
29979 {
29980 #endif
29981 /* We use char because int might match the return type of a gcc2
29982    builtin and then its argument prototype would still apply.  */
29983 char $ac_func ();
29984 /* The GNU C library defines this for functions which it implements
29985     to always fail with ENOSYS.  Some functions are actually named
29986     something starting with __ and the normal name is an alias.  */
29987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29988 choke me
29989 #else
29990 char (*f) () = $ac_func;
29991 #endif
29992 #ifdef __cplusplus
29993 }
29994 #endif
29995
29996 int
29997 main ()
29998 {
29999 return f != $ac_func;
30000   ;
30001   return 0;
30002 }
30003 _ACEOF
30004 rm -f conftest.$ac_objext conftest$ac_exeext
30005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30006   (eval $ac_link) 2>&5
30007   ac_status=$?
30008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009   (exit $ac_status); } &&
30010          { ac_try='test -s conftest$ac_exeext'
30011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012   (eval $ac_try) 2>&5
30013   ac_status=$?
30014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015   (exit $ac_status); }; }; then
30016   eval "$as_ac_var=yes"
30017 else
30018   echo "$as_me: failed program was:" >&5
30019 sed 's/^/| /' conftest.$ac_ext >&5
30020
30021 eval "$as_ac_var=no"
30022 fi
30023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30024 fi
30025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30027 if test `eval echo '${'$as_ac_var'}'` = yes; then
30028   cat >>confdefs.h <<_ACEOF
30029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30030 _ACEOF
30031
30032 fi
30033 done
30034
30035     fi
30036   fi
30037
30038
30039
30040   echo "$as_me:$LINENO: checking for hypotl declaration" >&5
30041 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
30042   if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
30043     if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
30044   echo $ECHO_N "(cached) $ECHO_C" >&6
30045 else
30046
30047
30048
30049       ac_ext=cc
30050 ac_cpp='$CXXCPP $CPPFLAGS'
30051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30054
30055       cat >conftest.$ac_ext <<_ACEOF
30056 #line $LINENO "configure"
30057 /* confdefs.h.  */
30058 _ACEOF
30059 cat confdefs.h >>conftest.$ac_ext
30060 cat >>conftest.$ac_ext <<_ACEOF
30061 /* end confdefs.h.  */
30062 #include <math.h>
30063 int
30064 main ()
30065 {
30066  hypotl(0, 0);
30067   ;
30068   return 0;
30069 }
30070 _ACEOF
30071 rm -f conftest.$ac_objext
30072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30073   (eval $ac_compile) 2>&5
30074   ac_status=$?
30075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076   (exit $ac_status); } &&
30077          { ac_try='test -s conftest.$ac_objext'
30078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30079   (eval $ac_try) 2>&5
30080   ac_status=$?
30081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082   (exit $ac_status); }; }; then
30083   glibcxx_cv_func_hypotl_use=yes
30084 else
30085   echo "$as_me: failed program was:" >&5
30086 sed 's/^/| /' conftest.$ac_ext >&5
30087
30088 glibcxx_cv_func_hypotl_use=no
30089 fi
30090 rm -f conftest.$ac_objext conftest.$ac_ext
30091       ac_ext=c
30092 ac_cpp='$CPP $CPPFLAGS'
30093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30096
30097
30098 fi
30099
30100   fi
30101   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
30102 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
30103
30104   if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
30105
30106 for ac_func in hypotl
30107 do
30108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30109 echo "$as_me:$LINENO: checking for $ac_func" >&5
30110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30111 if eval "test \"\${$as_ac_var+set}\" = set"; then
30112   echo $ECHO_N "(cached) $ECHO_C" >&6
30113 else
30114   cat >conftest.$ac_ext <<_ACEOF
30115 #line $LINENO "configure"
30116 /* confdefs.h.  */
30117 _ACEOF
30118 cat confdefs.h >>conftest.$ac_ext
30119 cat >>conftest.$ac_ext <<_ACEOF
30120 /* end confdefs.h.  */
30121 /* System header to define __stub macros and hopefully few prototypes,
30122     which can conflict with char $ac_func (); below.
30123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30124     <limits.h> exists even on freestanding compilers.  */
30125 #ifdef __STDC__
30126 # include <limits.h>
30127 #else
30128 # include <assert.h>
30129 #endif
30130 /* Override any gcc2 internal prototype to avoid an error.  */
30131 #ifdef __cplusplus
30132 extern "C"
30133 {
30134 #endif
30135 /* We use char because int might match the return type of a gcc2
30136    builtin and then its argument prototype would still apply.  */
30137 char $ac_func ();
30138 /* The GNU C library defines this for functions which it implements
30139     to always fail with ENOSYS.  Some functions are actually named
30140     something starting with __ and the normal name is an alias.  */
30141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30142 choke me
30143 #else
30144 char (*f) () = $ac_func;
30145 #endif
30146 #ifdef __cplusplus
30147 }
30148 #endif
30149
30150 int
30151 main ()
30152 {
30153 return f != $ac_func;
30154   ;
30155   return 0;
30156 }
30157 _ACEOF
30158 rm -f conftest.$ac_objext conftest$ac_exeext
30159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30160   (eval $ac_link) 2>&5
30161   ac_status=$?
30162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163   (exit $ac_status); } &&
30164          { ac_try='test -s conftest$ac_exeext'
30165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30166   (eval $ac_try) 2>&5
30167   ac_status=$?
30168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169   (exit $ac_status); }; }; then
30170   eval "$as_ac_var=yes"
30171 else
30172   echo "$as_me: failed program was:" >&5
30173 sed 's/^/| /' conftest.$ac_ext >&5
30174
30175 eval "$as_ac_var=no"
30176 fi
30177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30178 fi
30179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30181 if test `eval echo '${'$as_ac_var'}'` = yes; then
30182   cat >>confdefs.h <<_ACEOF
30183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30184 _ACEOF
30185
30186 fi
30187 done
30188
30189   else
30190
30191   echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
30192 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
30193   if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
30194     if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
30195   echo $ECHO_N "(cached) $ECHO_C" >&6
30196 else
30197
30198
30199
30200       ac_ext=cc
30201 ac_cpp='$CXXCPP $CPPFLAGS'
30202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30205
30206       cat >conftest.$ac_ext <<_ACEOF
30207 #line $LINENO "configure"
30208 /* confdefs.h.  */
30209 _ACEOF
30210 cat confdefs.h >>conftest.$ac_ext
30211 cat >>conftest.$ac_ext <<_ACEOF
30212 /* end confdefs.h.  */
30213 #include <math.h>
30214 int
30215 main ()
30216 {
30217  _hypotl(0, 0);
30218   ;
30219   return 0;
30220 }
30221 _ACEOF
30222 rm -f conftest.$ac_objext
30223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30224   (eval $ac_compile) 2>&5
30225   ac_status=$?
30226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30227   (exit $ac_status); } &&
30228          { ac_try='test -s conftest.$ac_objext'
30229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30230   (eval $ac_try) 2>&5
30231   ac_status=$?
30232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30233   (exit $ac_status); }; }; then
30234   glibcxx_cv_func__hypotl_use=yes
30235 else
30236   echo "$as_me: failed program was:" >&5
30237 sed 's/^/| /' conftest.$ac_ext >&5
30238
30239 glibcxx_cv_func__hypotl_use=no
30240 fi
30241 rm -f conftest.$ac_objext conftest.$ac_ext
30242       ac_ext=c
30243 ac_cpp='$CPP $CPPFLAGS'
30244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30247
30248
30249 fi
30250
30251   fi
30252   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
30253 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
30254
30255     if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
30256
30257 for ac_func in _hypotl
30258 do
30259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30260 echo "$as_me:$LINENO: checking for $ac_func" >&5
30261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30262 if eval "test \"\${$as_ac_var+set}\" = set"; then
30263   echo $ECHO_N "(cached) $ECHO_C" >&6
30264 else
30265   cat >conftest.$ac_ext <<_ACEOF
30266 #line $LINENO "configure"
30267 /* confdefs.h.  */
30268 _ACEOF
30269 cat confdefs.h >>conftest.$ac_ext
30270 cat >>conftest.$ac_ext <<_ACEOF
30271 /* end confdefs.h.  */
30272 /* System header to define __stub macros and hopefully few prototypes,
30273     which can conflict with char $ac_func (); below.
30274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30275     <limits.h> exists even on freestanding compilers.  */
30276 #ifdef __STDC__
30277 # include <limits.h>
30278 #else
30279 # include <assert.h>
30280 #endif
30281 /* Override any gcc2 internal prototype to avoid an error.  */
30282 #ifdef __cplusplus
30283 extern "C"
30284 {
30285 #endif
30286 /* We use char because int might match the return type of a gcc2
30287    builtin and then its argument prototype would still apply.  */
30288 char $ac_func ();
30289 /* The GNU C library defines this for functions which it implements
30290     to always fail with ENOSYS.  Some functions are actually named
30291     something starting with __ and the normal name is an alias.  */
30292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30293 choke me
30294 #else
30295 char (*f) () = $ac_func;
30296 #endif
30297 #ifdef __cplusplus
30298 }
30299 #endif
30300
30301 int
30302 main ()
30303 {
30304 return f != $ac_func;
30305   ;
30306   return 0;
30307 }
30308 _ACEOF
30309 rm -f conftest.$ac_objext conftest$ac_exeext
30310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30311   (eval $ac_link) 2>&5
30312   ac_status=$?
30313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314   (exit $ac_status); } &&
30315          { ac_try='test -s conftest$ac_exeext'
30316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30317   (eval $ac_try) 2>&5
30318   ac_status=$?
30319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320   (exit $ac_status); }; }; then
30321   eval "$as_ac_var=yes"
30322 else
30323   echo "$as_me: failed program was:" >&5
30324 sed 's/^/| /' conftest.$ac_ext >&5
30325
30326 eval "$as_ac_var=no"
30327 fi
30328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30329 fi
30330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30332 if test `eval echo '${'$as_ac_var'}'` = yes; then
30333   cat >>confdefs.h <<_ACEOF
30334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30335 _ACEOF
30336
30337 fi
30338 done
30339
30340     fi
30341   fi
30342
30343
30344
30345   echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
30346 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
30347   if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
30348     if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
30349   echo $ECHO_N "(cached) $ECHO_C" >&6
30350 else
30351
30352
30353
30354       ac_ext=cc
30355 ac_cpp='$CXXCPP $CPPFLAGS'
30356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30359
30360       cat >conftest.$ac_ext <<_ACEOF
30361 #line $LINENO "configure"
30362 /* confdefs.h.  */
30363 _ACEOF
30364 cat confdefs.h >>conftest.$ac_ext
30365 cat >>conftest.$ac_ext <<_ACEOF
30366 /* end confdefs.h.  */
30367 #include <math.h>
30368 int
30369 main ()
30370 {
30371  ldexpl(0, 0);
30372   ;
30373   return 0;
30374 }
30375 _ACEOF
30376 rm -f conftest.$ac_objext
30377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30378   (eval $ac_compile) 2>&5
30379   ac_status=$?
30380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381   (exit $ac_status); } &&
30382          { ac_try='test -s conftest.$ac_objext'
30383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30384   (eval $ac_try) 2>&5
30385   ac_status=$?
30386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30387   (exit $ac_status); }; }; then
30388   glibcxx_cv_func_ldexpl_use=yes
30389 else
30390   echo "$as_me: failed program was:" >&5
30391 sed 's/^/| /' conftest.$ac_ext >&5
30392
30393 glibcxx_cv_func_ldexpl_use=no
30394 fi
30395 rm -f conftest.$ac_objext conftest.$ac_ext
30396       ac_ext=c
30397 ac_cpp='$CPP $CPPFLAGS'
30398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30401
30402
30403 fi
30404
30405   fi
30406   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
30407 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
30408
30409   if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
30410
30411 for ac_func in ldexpl
30412 do
30413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30414 echo "$as_me:$LINENO: checking for $ac_func" >&5
30415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30416 if eval "test \"\${$as_ac_var+set}\" = set"; then
30417   echo $ECHO_N "(cached) $ECHO_C" >&6
30418 else
30419   cat >conftest.$ac_ext <<_ACEOF
30420 #line $LINENO "configure"
30421 /* confdefs.h.  */
30422 _ACEOF
30423 cat confdefs.h >>conftest.$ac_ext
30424 cat >>conftest.$ac_ext <<_ACEOF
30425 /* end confdefs.h.  */
30426 /* System header to define __stub macros and hopefully few prototypes,
30427     which can conflict with char $ac_func (); below.
30428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30429     <limits.h> exists even on freestanding compilers.  */
30430 #ifdef __STDC__
30431 # include <limits.h>
30432 #else
30433 # include <assert.h>
30434 #endif
30435 /* Override any gcc2 internal prototype to avoid an error.  */
30436 #ifdef __cplusplus
30437 extern "C"
30438 {
30439 #endif
30440 /* We use char because int might match the return type of a gcc2
30441    builtin and then its argument prototype would still apply.  */
30442 char $ac_func ();
30443 /* The GNU C library defines this for functions which it implements
30444     to always fail with ENOSYS.  Some functions are actually named
30445     something starting with __ and the normal name is an alias.  */
30446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30447 choke me
30448 #else
30449 char (*f) () = $ac_func;
30450 #endif
30451 #ifdef __cplusplus
30452 }
30453 #endif
30454
30455 int
30456 main ()
30457 {
30458 return f != $ac_func;
30459   ;
30460   return 0;
30461 }
30462 _ACEOF
30463 rm -f conftest.$ac_objext conftest$ac_exeext
30464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30465   (eval $ac_link) 2>&5
30466   ac_status=$?
30467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468   (exit $ac_status); } &&
30469          { ac_try='test -s conftest$ac_exeext'
30470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30471   (eval $ac_try) 2>&5
30472   ac_status=$?
30473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474   (exit $ac_status); }; }; then
30475   eval "$as_ac_var=yes"
30476 else
30477   echo "$as_me: failed program was:" >&5
30478 sed 's/^/| /' conftest.$ac_ext >&5
30479
30480 eval "$as_ac_var=no"
30481 fi
30482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30483 fi
30484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30486 if test `eval echo '${'$as_ac_var'}'` = yes; then
30487   cat >>confdefs.h <<_ACEOF
30488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30489 _ACEOF
30490
30491 fi
30492 done
30493
30494   else
30495
30496   echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
30497 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
30498   if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
30499     if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
30500   echo $ECHO_N "(cached) $ECHO_C" >&6
30501 else
30502
30503
30504
30505       ac_ext=cc
30506 ac_cpp='$CXXCPP $CPPFLAGS'
30507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30510
30511       cat >conftest.$ac_ext <<_ACEOF
30512 #line $LINENO "configure"
30513 /* confdefs.h.  */
30514 _ACEOF
30515 cat confdefs.h >>conftest.$ac_ext
30516 cat >>conftest.$ac_ext <<_ACEOF
30517 /* end confdefs.h.  */
30518 #include <math.h>
30519 int
30520 main ()
30521 {
30522  _ldexpl(0, 0);
30523   ;
30524   return 0;
30525 }
30526 _ACEOF
30527 rm -f conftest.$ac_objext
30528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30529   (eval $ac_compile) 2>&5
30530   ac_status=$?
30531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532   (exit $ac_status); } &&
30533          { ac_try='test -s conftest.$ac_objext'
30534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30535   (eval $ac_try) 2>&5
30536   ac_status=$?
30537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538   (exit $ac_status); }; }; then
30539   glibcxx_cv_func__ldexpl_use=yes
30540 else
30541   echo "$as_me: failed program was:" >&5
30542 sed 's/^/| /' conftest.$ac_ext >&5
30543
30544 glibcxx_cv_func__ldexpl_use=no
30545 fi
30546 rm -f conftest.$ac_objext conftest.$ac_ext
30547       ac_ext=c
30548 ac_cpp='$CPP $CPPFLAGS'
30549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30552
30553
30554 fi
30555
30556   fi
30557   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
30558 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
30559
30560     if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
30561
30562 for ac_func in _ldexpl
30563 do
30564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30565 echo "$as_me:$LINENO: checking for $ac_func" >&5
30566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30567 if eval "test \"\${$as_ac_var+set}\" = set"; then
30568   echo $ECHO_N "(cached) $ECHO_C" >&6
30569 else
30570   cat >conftest.$ac_ext <<_ACEOF
30571 #line $LINENO "configure"
30572 /* confdefs.h.  */
30573 _ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h.  */
30577 /* System header to define __stub macros and hopefully few prototypes,
30578     which can conflict with char $ac_func (); below.
30579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30580     <limits.h> exists even on freestanding compilers.  */
30581 #ifdef __STDC__
30582 # include <limits.h>
30583 #else
30584 # include <assert.h>
30585 #endif
30586 /* Override any gcc2 internal prototype to avoid an error.  */
30587 #ifdef __cplusplus
30588 extern "C"
30589 {
30590 #endif
30591 /* We use char because int might match the return type of a gcc2
30592    builtin and then its argument prototype would still apply.  */
30593 char $ac_func ();
30594 /* The GNU C library defines this for functions which it implements
30595     to always fail with ENOSYS.  Some functions are actually named
30596     something starting with __ and the normal name is an alias.  */
30597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30598 choke me
30599 #else
30600 char (*f) () = $ac_func;
30601 #endif
30602 #ifdef __cplusplus
30603 }
30604 #endif
30605
30606 int
30607 main ()
30608 {
30609 return f != $ac_func;
30610   ;
30611   return 0;
30612 }
30613 _ACEOF
30614 rm -f conftest.$ac_objext conftest$ac_exeext
30615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30616   (eval $ac_link) 2>&5
30617   ac_status=$?
30618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619   (exit $ac_status); } &&
30620          { ac_try='test -s conftest$ac_exeext'
30621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30622   (eval $ac_try) 2>&5
30623   ac_status=$?
30624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625   (exit $ac_status); }; }; then
30626   eval "$as_ac_var=yes"
30627 else
30628   echo "$as_me: failed program was:" >&5
30629 sed 's/^/| /' conftest.$ac_ext >&5
30630
30631 eval "$as_ac_var=no"
30632 fi
30633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30634 fi
30635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30637 if test `eval echo '${'$as_ac_var'}'` = yes; then
30638   cat >>confdefs.h <<_ACEOF
30639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30640 _ACEOF
30641
30642 fi
30643 done
30644
30645     fi
30646   fi
30647
30648
30649
30650   echo "$as_me:$LINENO: checking for logl declaration" >&5
30651 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
30652   if test x${glibcxx_cv_func_logl_use+set} != xset; then
30653     if test "${glibcxx_cv_func_logl_use+set}" = set; then
30654   echo $ECHO_N "(cached) $ECHO_C" >&6
30655 else
30656
30657
30658
30659       ac_ext=cc
30660 ac_cpp='$CXXCPP $CPPFLAGS'
30661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30664
30665       cat >conftest.$ac_ext <<_ACEOF
30666 #line $LINENO "configure"
30667 /* confdefs.h.  */
30668 _ACEOF
30669 cat confdefs.h >>conftest.$ac_ext
30670 cat >>conftest.$ac_ext <<_ACEOF
30671 /* end confdefs.h.  */
30672 #include <math.h>
30673                       #ifdef HAVE_IEEEFP_H
30674                       #include <ieeefp.h>
30675                       #endif
30676
30677 int
30678 main ()
30679 {
30680  logl(0);
30681   ;
30682   return 0;
30683 }
30684 _ACEOF
30685 rm -f conftest.$ac_objext
30686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30687   (eval $ac_compile) 2>&5
30688   ac_status=$?
30689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690   (exit $ac_status); } &&
30691          { ac_try='test -s conftest.$ac_objext'
30692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30693   (eval $ac_try) 2>&5
30694   ac_status=$?
30695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696   (exit $ac_status); }; }; then
30697   glibcxx_cv_func_logl_use=yes
30698 else
30699   echo "$as_me: failed program was:" >&5
30700 sed 's/^/| /' conftest.$ac_ext >&5
30701
30702 glibcxx_cv_func_logl_use=no
30703 fi
30704 rm -f conftest.$ac_objext conftest.$ac_ext
30705       ac_ext=c
30706 ac_cpp='$CPP $CPPFLAGS'
30707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30710
30711
30712 fi
30713
30714   fi
30715   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
30716 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
30717
30718   if test x$glibcxx_cv_func_logl_use = x"yes"; then
30719
30720 for ac_func in logl
30721 do
30722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30723 echo "$as_me:$LINENO: checking for $ac_func" >&5
30724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30725 if eval "test \"\${$as_ac_var+set}\" = set"; then
30726   echo $ECHO_N "(cached) $ECHO_C" >&6
30727 else
30728   cat >conftest.$ac_ext <<_ACEOF
30729 #line $LINENO "configure"
30730 /* confdefs.h.  */
30731 _ACEOF
30732 cat confdefs.h >>conftest.$ac_ext
30733 cat >>conftest.$ac_ext <<_ACEOF
30734 /* end confdefs.h.  */
30735 /* System header to define __stub macros and hopefully few prototypes,
30736     which can conflict with char $ac_func (); below.
30737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30738     <limits.h> exists even on freestanding compilers.  */
30739 #ifdef __STDC__
30740 # include <limits.h>
30741 #else
30742 # include <assert.h>
30743 #endif
30744 /* Override any gcc2 internal prototype to avoid an error.  */
30745 #ifdef __cplusplus
30746 extern "C"
30747 {
30748 #endif
30749 /* We use char because int might match the return type of a gcc2
30750    builtin and then its argument prototype would still apply.  */
30751 char $ac_func ();
30752 /* The GNU C library defines this for functions which it implements
30753     to always fail with ENOSYS.  Some functions are actually named
30754     something starting with __ and the normal name is an alias.  */
30755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30756 choke me
30757 #else
30758 char (*f) () = $ac_func;
30759 #endif
30760 #ifdef __cplusplus
30761 }
30762 #endif
30763
30764 int
30765 main ()
30766 {
30767 return f != $ac_func;
30768   ;
30769   return 0;
30770 }
30771 _ACEOF
30772 rm -f conftest.$ac_objext conftest$ac_exeext
30773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30774   (eval $ac_link) 2>&5
30775   ac_status=$?
30776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777   (exit $ac_status); } &&
30778          { ac_try='test -s conftest$ac_exeext'
30779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30780   (eval $ac_try) 2>&5
30781   ac_status=$?
30782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783   (exit $ac_status); }; }; then
30784   eval "$as_ac_var=yes"
30785 else
30786   echo "$as_me: failed program was:" >&5
30787 sed 's/^/| /' conftest.$ac_ext >&5
30788
30789 eval "$as_ac_var=no"
30790 fi
30791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30792 fi
30793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30795 if test `eval echo '${'$as_ac_var'}'` = yes; then
30796   cat >>confdefs.h <<_ACEOF
30797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30798 _ACEOF
30799
30800 fi
30801 done
30802
30803   else
30804
30805   echo "$as_me:$LINENO: checking for _logl declaration" >&5
30806 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
30807   if test x${glibcxx_cv_func__logl_use+set} != xset; then
30808     if test "${glibcxx_cv_func__logl_use+set}" = set; then
30809   echo $ECHO_N "(cached) $ECHO_C" >&6
30810 else
30811
30812
30813
30814       ac_ext=cc
30815 ac_cpp='$CXXCPP $CPPFLAGS'
30816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30819
30820       cat >conftest.$ac_ext <<_ACEOF
30821 #line $LINENO "configure"
30822 /* confdefs.h.  */
30823 _ACEOF
30824 cat confdefs.h >>conftest.$ac_ext
30825 cat >>conftest.$ac_ext <<_ACEOF
30826 /* end confdefs.h.  */
30827 #include <math.h>
30828                       #ifdef HAVE_IEEEFP_H
30829                       #include <ieeefp.h>
30830                       #endif
30831
30832 int
30833 main ()
30834 {
30835  _logl(0);
30836   ;
30837   return 0;
30838 }
30839 _ACEOF
30840 rm -f conftest.$ac_objext
30841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30842   (eval $ac_compile) 2>&5
30843   ac_status=$?
30844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30845   (exit $ac_status); } &&
30846          { ac_try='test -s conftest.$ac_objext'
30847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30848   (eval $ac_try) 2>&5
30849   ac_status=$?
30850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851   (exit $ac_status); }; }; then
30852   glibcxx_cv_func__logl_use=yes
30853 else
30854   echo "$as_me: failed program was:" >&5
30855 sed 's/^/| /' conftest.$ac_ext >&5
30856
30857 glibcxx_cv_func__logl_use=no
30858 fi
30859 rm -f conftest.$ac_objext conftest.$ac_ext
30860       ac_ext=c
30861 ac_cpp='$CPP $CPPFLAGS'
30862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30865
30866
30867 fi
30868
30869   fi
30870   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
30871 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
30872
30873     if test x$glibcxx_cv_func__logl_use = x"yes"; then
30874
30875 for ac_func in _logl
30876 do
30877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30878 echo "$as_me:$LINENO: checking for $ac_func" >&5
30879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30880 if eval "test \"\${$as_ac_var+set}\" = set"; then
30881   echo $ECHO_N "(cached) $ECHO_C" >&6
30882 else
30883   cat >conftest.$ac_ext <<_ACEOF
30884 #line $LINENO "configure"
30885 /* confdefs.h.  */
30886 _ACEOF
30887 cat confdefs.h >>conftest.$ac_ext
30888 cat >>conftest.$ac_ext <<_ACEOF
30889 /* end confdefs.h.  */
30890 /* System header to define __stub macros and hopefully few prototypes,
30891     which can conflict with char $ac_func (); below.
30892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30893     <limits.h> exists even on freestanding compilers.  */
30894 #ifdef __STDC__
30895 # include <limits.h>
30896 #else
30897 # include <assert.h>
30898 #endif
30899 /* Override any gcc2 internal prototype to avoid an error.  */
30900 #ifdef __cplusplus
30901 extern "C"
30902 {
30903 #endif
30904 /* We use char because int might match the return type of a gcc2
30905    builtin and then its argument prototype would still apply.  */
30906 char $ac_func ();
30907 /* The GNU C library defines this for functions which it implements
30908     to always fail with ENOSYS.  Some functions are actually named
30909     something starting with __ and the normal name is an alias.  */
30910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30911 choke me
30912 #else
30913 char (*f) () = $ac_func;
30914 #endif
30915 #ifdef __cplusplus
30916 }
30917 #endif
30918
30919 int
30920 main ()
30921 {
30922 return f != $ac_func;
30923   ;
30924   return 0;
30925 }
30926 _ACEOF
30927 rm -f conftest.$ac_objext conftest$ac_exeext
30928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30929   (eval $ac_link) 2>&5
30930   ac_status=$?
30931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30932   (exit $ac_status); } &&
30933          { ac_try='test -s conftest$ac_exeext'
30934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30935   (eval $ac_try) 2>&5
30936   ac_status=$?
30937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30938   (exit $ac_status); }; }; then
30939   eval "$as_ac_var=yes"
30940 else
30941   echo "$as_me: failed program was:" >&5
30942 sed 's/^/| /' conftest.$ac_ext >&5
30943
30944 eval "$as_ac_var=no"
30945 fi
30946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30947 fi
30948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30950 if test `eval echo '${'$as_ac_var'}'` = yes; then
30951   cat >>confdefs.h <<_ACEOF
30952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30953 _ACEOF
30954
30955 fi
30956 done
30957
30958     fi
30959   fi
30960
30961
30962
30963   echo "$as_me:$LINENO: checking for log10l declaration" >&5
30964 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
30965   if test x${glibcxx_cv_func_log10l_use+set} != xset; then
30966     if test "${glibcxx_cv_func_log10l_use+set}" = set; then
30967   echo $ECHO_N "(cached) $ECHO_C" >&6
30968 else
30969
30970
30971
30972       ac_ext=cc
30973 ac_cpp='$CXXCPP $CPPFLAGS'
30974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30977
30978       cat >conftest.$ac_ext <<_ACEOF
30979 #line $LINENO "configure"
30980 /* confdefs.h.  */
30981 _ACEOF
30982 cat confdefs.h >>conftest.$ac_ext
30983 cat >>conftest.$ac_ext <<_ACEOF
30984 /* end confdefs.h.  */
30985 #include <math.h>
30986                       #ifdef HAVE_IEEEFP_H
30987                       #include <ieeefp.h>
30988                       #endif
30989
30990 int
30991 main ()
30992 {
30993  log10l(0);
30994   ;
30995   return 0;
30996 }
30997 _ACEOF
30998 rm -f conftest.$ac_objext
30999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31000   (eval $ac_compile) 2>&5
31001   ac_status=$?
31002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003   (exit $ac_status); } &&
31004          { ac_try='test -s conftest.$ac_objext'
31005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31006   (eval $ac_try) 2>&5
31007   ac_status=$?
31008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009   (exit $ac_status); }; }; then
31010   glibcxx_cv_func_log10l_use=yes
31011 else
31012   echo "$as_me: failed program was:" >&5
31013 sed 's/^/| /' conftest.$ac_ext >&5
31014
31015 glibcxx_cv_func_log10l_use=no
31016 fi
31017 rm -f conftest.$ac_objext conftest.$ac_ext
31018       ac_ext=c
31019 ac_cpp='$CPP $CPPFLAGS'
31020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31023
31024
31025 fi
31026
31027   fi
31028   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
31029 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
31030
31031   if test x$glibcxx_cv_func_log10l_use = x"yes"; then
31032
31033 for ac_func in log10l
31034 do
31035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31036 echo "$as_me:$LINENO: checking for $ac_func" >&5
31037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31038 if eval "test \"\${$as_ac_var+set}\" = set"; then
31039   echo $ECHO_N "(cached) $ECHO_C" >&6
31040 else
31041   cat >conftest.$ac_ext <<_ACEOF
31042 #line $LINENO "configure"
31043 /* confdefs.h.  */
31044 _ACEOF
31045 cat confdefs.h >>conftest.$ac_ext
31046 cat >>conftest.$ac_ext <<_ACEOF
31047 /* end confdefs.h.  */
31048 /* System header to define __stub macros and hopefully few prototypes,
31049     which can conflict with char $ac_func (); below.
31050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31051     <limits.h> exists even on freestanding compilers.  */
31052 #ifdef __STDC__
31053 # include <limits.h>
31054 #else
31055 # include <assert.h>
31056 #endif
31057 /* Override any gcc2 internal prototype to avoid an error.  */
31058 #ifdef __cplusplus
31059 extern "C"
31060 {
31061 #endif
31062 /* We use char because int might match the return type of a gcc2
31063    builtin and then its argument prototype would still apply.  */
31064 char $ac_func ();
31065 /* The GNU C library defines this for functions which it implements
31066     to always fail with ENOSYS.  Some functions are actually named
31067     something starting with __ and the normal name is an alias.  */
31068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31069 choke me
31070 #else
31071 char (*f) () = $ac_func;
31072 #endif
31073 #ifdef __cplusplus
31074 }
31075 #endif
31076
31077 int
31078 main ()
31079 {
31080 return f != $ac_func;
31081   ;
31082   return 0;
31083 }
31084 _ACEOF
31085 rm -f conftest.$ac_objext conftest$ac_exeext
31086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31087   (eval $ac_link) 2>&5
31088   ac_status=$?
31089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090   (exit $ac_status); } &&
31091          { ac_try='test -s conftest$ac_exeext'
31092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31093   (eval $ac_try) 2>&5
31094   ac_status=$?
31095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096   (exit $ac_status); }; }; then
31097   eval "$as_ac_var=yes"
31098 else
31099   echo "$as_me: failed program was:" >&5
31100 sed 's/^/| /' conftest.$ac_ext >&5
31101
31102 eval "$as_ac_var=no"
31103 fi
31104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31105 fi
31106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31108 if test `eval echo '${'$as_ac_var'}'` = yes; then
31109   cat >>confdefs.h <<_ACEOF
31110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31111 _ACEOF
31112
31113 fi
31114 done
31115
31116   else
31117
31118   echo "$as_me:$LINENO: checking for _log10l declaration" >&5
31119 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
31120   if test x${glibcxx_cv_func__log10l_use+set} != xset; then
31121     if test "${glibcxx_cv_func__log10l_use+set}" = set; then
31122   echo $ECHO_N "(cached) $ECHO_C" >&6
31123 else
31124
31125
31126
31127       ac_ext=cc
31128 ac_cpp='$CXXCPP $CPPFLAGS'
31129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31132
31133       cat >conftest.$ac_ext <<_ACEOF
31134 #line $LINENO "configure"
31135 /* confdefs.h.  */
31136 _ACEOF
31137 cat confdefs.h >>conftest.$ac_ext
31138 cat >>conftest.$ac_ext <<_ACEOF
31139 /* end confdefs.h.  */
31140 #include <math.h>
31141                       #ifdef HAVE_IEEEFP_H
31142                       #include <ieeefp.h>
31143                       #endif
31144
31145 int
31146 main ()
31147 {
31148  _log10l(0);
31149   ;
31150   return 0;
31151 }
31152 _ACEOF
31153 rm -f conftest.$ac_objext
31154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31155   (eval $ac_compile) 2>&5
31156   ac_status=$?
31157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158   (exit $ac_status); } &&
31159          { ac_try='test -s conftest.$ac_objext'
31160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31161   (eval $ac_try) 2>&5
31162   ac_status=$?
31163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164   (exit $ac_status); }; }; then
31165   glibcxx_cv_func__log10l_use=yes
31166 else
31167   echo "$as_me: failed program was:" >&5
31168 sed 's/^/| /' conftest.$ac_ext >&5
31169
31170 glibcxx_cv_func__log10l_use=no
31171 fi
31172 rm -f conftest.$ac_objext conftest.$ac_ext
31173       ac_ext=c
31174 ac_cpp='$CPP $CPPFLAGS'
31175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31178
31179
31180 fi
31181
31182   fi
31183   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
31184 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
31185
31186     if test x$glibcxx_cv_func__log10l_use = x"yes"; then
31187
31188 for ac_func in _log10l
31189 do
31190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31191 echo "$as_me:$LINENO: checking for $ac_func" >&5
31192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31193 if eval "test \"\${$as_ac_var+set}\" = set"; then
31194   echo $ECHO_N "(cached) $ECHO_C" >&6
31195 else
31196   cat >conftest.$ac_ext <<_ACEOF
31197 #line $LINENO "configure"
31198 /* confdefs.h.  */
31199 _ACEOF
31200 cat confdefs.h >>conftest.$ac_ext
31201 cat >>conftest.$ac_ext <<_ACEOF
31202 /* end confdefs.h.  */
31203 /* System header to define __stub macros and hopefully few prototypes,
31204     which can conflict with char $ac_func (); below.
31205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31206     <limits.h> exists even on freestanding compilers.  */
31207 #ifdef __STDC__
31208 # include <limits.h>
31209 #else
31210 # include <assert.h>
31211 #endif
31212 /* Override any gcc2 internal prototype to avoid an error.  */
31213 #ifdef __cplusplus
31214 extern "C"
31215 {
31216 #endif
31217 /* We use char because int might match the return type of a gcc2
31218    builtin and then its argument prototype would still apply.  */
31219 char $ac_func ();
31220 /* The GNU C library defines this for functions which it implements
31221     to always fail with ENOSYS.  Some functions are actually named
31222     something starting with __ and the normal name is an alias.  */
31223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31224 choke me
31225 #else
31226 char (*f) () = $ac_func;
31227 #endif
31228 #ifdef __cplusplus
31229 }
31230 #endif
31231
31232 int
31233 main ()
31234 {
31235 return f != $ac_func;
31236   ;
31237   return 0;
31238 }
31239 _ACEOF
31240 rm -f conftest.$ac_objext conftest$ac_exeext
31241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31242   (eval $ac_link) 2>&5
31243   ac_status=$?
31244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31245   (exit $ac_status); } &&
31246          { ac_try='test -s conftest$ac_exeext'
31247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31248   (eval $ac_try) 2>&5
31249   ac_status=$?
31250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31251   (exit $ac_status); }; }; then
31252   eval "$as_ac_var=yes"
31253 else
31254   echo "$as_me: failed program was:" >&5
31255 sed 's/^/| /' conftest.$ac_ext >&5
31256
31257 eval "$as_ac_var=no"
31258 fi
31259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31260 fi
31261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31263 if test `eval echo '${'$as_ac_var'}'` = yes; then
31264   cat >>confdefs.h <<_ACEOF
31265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31266 _ACEOF
31267
31268 fi
31269 done
31270
31271     fi
31272   fi
31273
31274
31275
31276   echo "$as_me:$LINENO: checking for modfl declaration" >&5
31277 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
31278   if test x${glibcxx_cv_func_modfl_use+set} != xset; then
31279     if test "${glibcxx_cv_func_modfl_use+set}" = set; then
31280   echo $ECHO_N "(cached) $ECHO_C" >&6
31281 else
31282
31283
31284
31285       ac_ext=cc
31286 ac_cpp='$CXXCPP $CPPFLAGS'
31287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31290
31291       cat >conftest.$ac_ext <<_ACEOF
31292 #line $LINENO "configure"
31293 /* confdefs.h.  */
31294 _ACEOF
31295 cat confdefs.h >>conftest.$ac_ext
31296 cat >>conftest.$ac_ext <<_ACEOF
31297 /* end confdefs.h.  */
31298 #include <math.h>
31299 int
31300 main ()
31301 {
31302  modfl(0, 0);
31303   ;
31304   return 0;
31305 }
31306 _ACEOF
31307 rm -f conftest.$ac_objext
31308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31309   (eval $ac_compile) 2>&5
31310   ac_status=$?
31311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31312   (exit $ac_status); } &&
31313          { ac_try='test -s conftest.$ac_objext'
31314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31315   (eval $ac_try) 2>&5
31316   ac_status=$?
31317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318   (exit $ac_status); }; }; then
31319   glibcxx_cv_func_modfl_use=yes
31320 else
31321   echo "$as_me: failed program was:" >&5
31322 sed 's/^/| /' conftest.$ac_ext >&5
31323
31324 glibcxx_cv_func_modfl_use=no
31325 fi
31326 rm -f conftest.$ac_objext conftest.$ac_ext
31327       ac_ext=c
31328 ac_cpp='$CPP $CPPFLAGS'
31329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31332
31333
31334 fi
31335
31336   fi
31337   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
31338 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
31339
31340   if test x$glibcxx_cv_func_modfl_use = x"yes"; then
31341
31342 for ac_func in modfl
31343 do
31344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31345 echo "$as_me:$LINENO: checking for $ac_func" >&5
31346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31347 if eval "test \"\${$as_ac_var+set}\" = set"; then
31348   echo $ECHO_N "(cached) $ECHO_C" >&6
31349 else
31350   cat >conftest.$ac_ext <<_ACEOF
31351 #line $LINENO "configure"
31352 /* confdefs.h.  */
31353 _ACEOF
31354 cat confdefs.h >>conftest.$ac_ext
31355 cat >>conftest.$ac_ext <<_ACEOF
31356 /* end confdefs.h.  */
31357 /* System header to define __stub macros and hopefully few prototypes,
31358     which can conflict with char $ac_func (); below.
31359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31360     <limits.h> exists even on freestanding compilers.  */
31361 #ifdef __STDC__
31362 # include <limits.h>
31363 #else
31364 # include <assert.h>
31365 #endif
31366 /* Override any gcc2 internal prototype to avoid an error.  */
31367 #ifdef __cplusplus
31368 extern "C"
31369 {
31370 #endif
31371 /* We use char because int might match the return type of a gcc2
31372    builtin and then its argument prototype would still apply.  */
31373 char $ac_func ();
31374 /* The GNU C library defines this for functions which it implements
31375     to always fail with ENOSYS.  Some functions are actually named
31376     something starting with __ and the normal name is an alias.  */
31377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31378 choke me
31379 #else
31380 char (*f) () = $ac_func;
31381 #endif
31382 #ifdef __cplusplus
31383 }
31384 #endif
31385
31386 int
31387 main ()
31388 {
31389 return f != $ac_func;
31390   ;
31391   return 0;
31392 }
31393 _ACEOF
31394 rm -f conftest.$ac_objext conftest$ac_exeext
31395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31396   (eval $ac_link) 2>&5
31397   ac_status=$?
31398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399   (exit $ac_status); } &&
31400          { ac_try='test -s conftest$ac_exeext'
31401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31402   (eval $ac_try) 2>&5
31403   ac_status=$?
31404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405   (exit $ac_status); }; }; then
31406   eval "$as_ac_var=yes"
31407 else
31408   echo "$as_me: failed program was:" >&5
31409 sed 's/^/| /' conftest.$ac_ext >&5
31410
31411 eval "$as_ac_var=no"
31412 fi
31413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31414 fi
31415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31417 if test `eval echo '${'$as_ac_var'}'` = yes; then
31418   cat >>confdefs.h <<_ACEOF
31419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31420 _ACEOF
31421
31422 fi
31423 done
31424
31425   else
31426
31427   echo "$as_me:$LINENO: checking for _modfl declaration" >&5
31428 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
31429   if test x${glibcxx_cv_func__modfl_use+set} != xset; then
31430     if test "${glibcxx_cv_func__modfl_use+set}" = set; then
31431   echo $ECHO_N "(cached) $ECHO_C" >&6
31432 else
31433
31434
31435
31436       ac_ext=cc
31437 ac_cpp='$CXXCPP $CPPFLAGS'
31438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31441
31442       cat >conftest.$ac_ext <<_ACEOF
31443 #line $LINENO "configure"
31444 /* confdefs.h.  */
31445 _ACEOF
31446 cat confdefs.h >>conftest.$ac_ext
31447 cat >>conftest.$ac_ext <<_ACEOF
31448 /* end confdefs.h.  */
31449 #include <math.h>
31450 int
31451 main ()
31452 {
31453  _modfl(0, 0);
31454   ;
31455   return 0;
31456 }
31457 _ACEOF
31458 rm -f conftest.$ac_objext
31459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31460   (eval $ac_compile) 2>&5
31461   ac_status=$?
31462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463   (exit $ac_status); } &&
31464          { ac_try='test -s conftest.$ac_objext'
31465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31466   (eval $ac_try) 2>&5
31467   ac_status=$?
31468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469   (exit $ac_status); }; }; then
31470   glibcxx_cv_func__modfl_use=yes
31471 else
31472   echo "$as_me: failed program was:" >&5
31473 sed 's/^/| /' conftest.$ac_ext >&5
31474
31475 glibcxx_cv_func__modfl_use=no
31476 fi
31477 rm -f conftest.$ac_objext conftest.$ac_ext
31478       ac_ext=c
31479 ac_cpp='$CPP $CPPFLAGS'
31480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31483
31484
31485 fi
31486
31487   fi
31488   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
31489 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
31490
31491     if test x$glibcxx_cv_func__modfl_use = x"yes"; then
31492
31493 for ac_func in _modfl
31494 do
31495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31496 echo "$as_me:$LINENO: checking for $ac_func" >&5
31497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31498 if eval "test \"\${$as_ac_var+set}\" = set"; then
31499   echo $ECHO_N "(cached) $ECHO_C" >&6
31500 else
31501   cat >conftest.$ac_ext <<_ACEOF
31502 #line $LINENO "configure"
31503 /* confdefs.h.  */
31504 _ACEOF
31505 cat confdefs.h >>conftest.$ac_ext
31506 cat >>conftest.$ac_ext <<_ACEOF
31507 /* end confdefs.h.  */
31508 /* System header to define __stub macros and hopefully few prototypes,
31509     which can conflict with char $ac_func (); below.
31510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31511     <limits.h> exists even on freestanding compilers.  */
31512 #ifdef __STDC__
31513 # include <limits.h>
31514 #else
31515 # include <assert.h>
31516 #endif
31517 /* Override any gcc2 internal prototype to avoid an error.  */
31518 #ifdef __cplusplus
31519 extern "C"
31520 {
31521 #endif
31522 /* We use char because int might match the return type of a gcc2
31523    builtin and then its argument prototype would still apply.  */
31524 char $ac_func ();
31525 /* The GNU C library defines this for functions which it implements
31526     to always fail with ENOSYS.  Some functions are actually named
31527     something starting with __ and the normal name is an alias.  */
31528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31529 choke me
31530 #else
31531 char (*f) () = $ac_func;
31532 #endif
31533 #ifdef __cplusplus
31534 }
31535 #endif
31536
31537 int
31538 main ()
31539 {
31540 return f != $ac_func;
31541   ;
31542   return 0;
31543 }
31544 _ACEOF
31545 rm -f conftest.$ac_objext conftest$ac_exeext
31546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31547   (eval $ac_link) 2>&5
31548   ac_status=$?
31549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550   (exit $ac_status); } &&
31551          { ac_try='test -s conftest$ac_exeext'
31552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31553   (eval $ac_try) 2>&5
31554   ac_status=$?
31555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556   (exit $ac_status); }; }; then
31557   eval "$as_ac_var=yes"
31558 else
31559   echo "$as_me: failed program was:" >&5
31560 sed 's/^/| /' conftest.$ac_ext >&5
31561
31562 eval "$as_ac_var=no"
31563 fi
31564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31565 fi
31566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31568 if test `eval echo '${'$as_ac_var'}'` = yes; then
31569   cat >>confdefs.h <<_ACEOF
31570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31571 _ACEOF
31572
31573 fi
31574 done
31575
31576     fi
31577   fi
31578
31579
31580
31581   echo "$as_me:$LINENO: checking for powl declaration" >&5
31582 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
31583   if test x${glibcxx_cv_func_powl_use+set} != xset; then
31584     if test "${glibcxx_cv_func_powl_use+set}" = set; then
31585   echo $ECHO_N "(cached) $ECHO_C" >&6
31586 else
31587
31588
31589
31590       ac_ext=cc
31591 ac_cpp='$CXXCPP $CPPFLAGS'
31592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31595
31596       cat >conftest.$ac_ext <<_ACEOF
31597 #line $LINENO "configure"
31598 /* confdefs.h.  */
31599 _ACEOF
31600 cat confdefs.h >>conftest.$ac_ext
31601 cat >>conftest.$ac_ext <<_ACEOF
31602 /* end confdefs.h.  */
31603 #include <math.h>
31604 int
31605 main ()
31606 {
31607  powl(0, 0);
31608   ;
31609   return 0;
31610 }
31611 _ACEOF
31612 rm -f conftest.$ac_objext
31613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31614   (eval $ac_compile) 2>&5
31615   ac_status=$?
31616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31617   (exit $ac_status); } &&
31618          { ac_try='test -s conftest.$ac_objext'
31619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31620   (eval $ac_try) 2>&5
31621   ac_status=$?
31622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623   (exit $ac_status); }; }; then
31624   glibcxx_cv_func_powl_use=yes
31625 else
31626   echo "$as_me: failed program was:" >&5
31627 sed 's/^/| /' conftest.$ac_ext >&5
31628
31629 glibcxx_cv_func_powl_use=no
31630 fi
31631 rm -f conftest.$ac_objext conftest.$ac_ext
31632       ac_ext=c
31633 ac_cpp='$CPP $CPPFLAGS'
31634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31637
31638
31639 fi
31640
31641   fi
31642   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
31643 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
31644
31645   if test x$glibcxx_cv_func_powl_use = x"yes"; then
31646
31647 for ac_func in powl
31648 do
31649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31650 echo "$as_me:$LINENO: checking for $ac_func" >&5
31651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31652 if eval "test \"\${$as_ac_var+set}\" = set"; then
31653   echo $ECHO_N "(cached) $ECHO_C" >&6
31654 else
31655   cat >conftest.$ac_ext <<_ACEOF
31656 #line $LINENO "configure"
31657 /* confdefs.h.  */
31658 _ACEOF
31659 cat confdefs.h >>conftest.$ac_ext
31660 cat >>conftest.$ac_ext <<_ACEOF
31661 /* end confdefs.h.  */
31662 /* System header to define __stub macros and hopefully few prototypes,
31663     which can conflict with char $ac_func (); below.
31664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31665     <limits.h> exists even on freestanding compilers.  */
31666 #ifdef __STDC__
31667 # include <limits.h>
31668 #else
31669 # include <assert.h>
31670 #endif
31671 /* Override any gcc2 internal prototype to avoid an error.  */
31672 #ifdef __cplusplus
31673 extern "C"
31674 {
31675 #endif
31676 /* We use char because int might match the return type of a gcc2
31677    builtin and then its argument prototype would still apply.  */
31678 char $ac_func ();
31679 /* The GNU C library defines this for functions which it implements
31680     to always fail with ENOSYS.  Some functions are actually named
31681     something starting with __ and the normal name is an alias.  */
31682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31683 choke me
31684 #else
31685 char (*f) () = $ac_func;
31686 #endif
31687 #ifdef __cplusplus
31688 }
31689 #endif
31690
31691 int
31692 main ()
31693 {
31694 return f != $ac_func;
31695   ;
31696   return 0;
31697 }
31698 _ACEOF
31699 rm -f conftest.$ac_objext conftest$ac_exeext
31700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31701   (eval $ac_link) 2>&5
31702   ac_status=$?
31703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704   (exit $ac_status); } &&
31705          { ac_try='test -s conftest$ac_exeext'
31706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31707   (eval $ac_try) 2>&5
31708   ac_status=$?
31709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710   (exit $ac_status); }; }; then
31711   eval "$as_ac_var=yes"
31712 else
31713   echo "$as_me: failed program was:" >&5
31714 sed 's/^/| /' conftest.$ac_ext >&5
31715
31716 eval "$as_ac_var=no"
31717 fi
31718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31719 fi
31720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31722 if test `eval echo '${'$as_ac_var'}'` = yes; then
31723   cat >>confdefs.h <<_ACEOF
31724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31725 _ACEOF
31726
31727 fi
31728 done
31729
31730   else
31731
31732   echo "$as_me:$LINENO: checking for _powl declaration" >&5
31733 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
31734   if test x${glibcxx_cv_func__powl_use+set} != xset; then
31735     if test "${glibcxx_cv_func__powl_use+set}" = set; then
31736   echo $ECHO_N "(cached) $ECHO_C" >&6
31737 else
31738
31739
31740
31741       ac_ext=cc
31742 ac_cpp='$CXXCPP $CPPFLAGS'
31743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31746
31747       cat >conftest.$ac_ext <<_ACEOF
31748 #line $LINENO "configure"
31749 /* confdefs.h.  */
31750 _ACEOF
31751 cat confdefs.h >>conftest.$ac_ext
31752 cat >>conftest.$ac_ext <<_ACEOF
31753 /* end confdefs.h.  */
31754 #include <math.h>
31755 int
31756 main ()
31757 {
31758  _powl(0, 0);
31759   ;
31760   return 0;
31761 }
31762 _ACEOF
31763 rm -f conftest.$ac_objext
31764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31765   (eval $ac_compile) 2>&5
31766   ac_status=$?
31767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768   (exit $ac_status); } &&
31769          { ac_try='test -s conftest.$ac_objext'
31770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31771   (eval $ac_try) 2>&5
31772   ac_status=$?
31773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774   (exit $ac_status); }; }; then
31775   glibcxx_cv_func__powl_use=yes
31776 else
31777   echo "$as_me: failed program was:" >&5
31778 sed 's/^/| /' conftest.$ac_ext >&5
31779
31780 glibcxx_cv_func__powl_use=no
31781 fi
31782 rm -f conftest.$ac_objext conftest.$ac_ext
31783       ac_ext=c
31784 ac_cpp='$CPP $CPPFLAGS'
31785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31788
31789
31790 fi
31791
31792   fi
31793   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
31794 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
31795
31796     if test x$glibcxx_cv_func__powl_use = x"yes"; then
31797
31798 for ac_func in _powl
31799 do
31800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31801 echo "$as_me:$LINENO: checking for $ac_func" >&5
31802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31803 if eval "test \"\${$as_ac_var+set}\" = set"; then
31804   echo $ECHO_N "(cached) $ECHO_C" >&6
31805 else
31806   cat >conftest.$ac_ext <<_ACEOF
31807 #line $LINENO "configure"
31808 /* confdefs.h.  */
31809 _ACEOF
31810 cat confdefs.h >>conftest.$ac_ext
31811 cat >>conftest.$ac_ext <<_ACEOF
31812 /* end confdefs.h.  */
31813 /* System header to define __stub macros and hopefully few prototypes,
31814     which can conflict with char $ac_func (); below.
31815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31816     <limits.h> exists even on freestanding compilers.  */
31817 #ifdef __STDC__
31818 # include <limits.h>
31819 #else
31820 # include <assert.h>
31821 #endif
31822 /* Override any gcc2 internal prototype to avoid an error.  */
31823 #ifdef __cplusplus
31824 extern "C"
31825 {
31826 #endif
31827 /* We use char because int might match the return type of a gcc2
31828    builtin and then its argument prototype would still apply.  */
31829 char $ac_func ();
31830 /* The GNU C library defines this for functions which it implements
31831     to always fail with ENOSYS.  Some functions are actually named
31832     something starting with __ and the normal name is an alias.  */
31833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31834 choke me
31835 #else
31836 char (*f) () = $ac_func;
31837 #endif
31838 #ifdef __cplusplus
31839 }
31840 #endif
31841
31842 int
31843 main ()
31844 {
31845 return f != $ac_func;
31846   ;
31847   return 0;
31848 }
31849 _ACEOF
31850 rm -f conftest.$ac_objext conftest$ac_exeext
31851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31852   (eval $ac_link) 2>&5
31853   ac_status=$?
31854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855   (exit $ac_status); } &&
31856          { ac_try='test -s conftest$ac_exeext'
31857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31858   (eval $ac_try) 2>&5
31859   ac_status=$?
31860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861   (exit $ac_status); }; }; then
31862   eval "$as_ac_var=yes"
31863 else
31864   echo "$as_me: failed program was:" >&5
31865 sed 's/^/| /' conftest.$ac_ext >&5
31866
31867 eval "$as_ac_var=no"
31868 fi
31869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31870 fi
31871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31873 if test `eval echo '${'$as_ac_var'}'` = yes; then
31874   cat >>confdefs.h <<_ACEOF
31875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31876 _ACEOF
31877
31878 fi
31879 done
31880
31881     fi
31882   fi
31883
31884
31885
31886   echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
31887 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
31888   if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
31889     if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
31890   echo $ECHO_N "(cached) $ECHO_C" >&6
31891 else
31892
31893
31894
31895       ac_ext=cc
31896 ac_cpp='$CXXCPP $CPPFLAGS'
31897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31900
31901       cat >conftest.$ac_ext <<_ACEOF
31902 #line $LINENO "configure"
31903 /* confdefs.h.  */
31904 _ACEOF
31905 cat confdefs.h >>conftest.$ac_ext
31906 cat >>conftest.$ac_ext <<_ACEOF
31907 /* end confdefs.h.  */
31908 #include <math.h>
31909                       #ifdef HAVE_IEEEFP_H
31910                       #include <ieeefp.h>
31911                       #endif
31912
31913 int
31914 main ()
31915 {
31916  sqrtl(0);
31917   ;
31918   return 0;
31919 }
31920 _ACEOF
31921 rm -f conftest.$ac_objext
31922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31923   (eval $ac_compile) 2>&5
31924   ac_status=$?
31925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926   (exit $ac_status); } &&
31927          { ac_try='test -s conftest.$ac_objext'
31928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31929   (eval $ac_try) 2>&5
31930   ac_status=$?
31931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932   (exit $ac_status); }; }; then
31933   glibcxx_cv_func_sqrtl_use=yes
31934 else
31935   echo "$as_me: failed program was:" >&5
31936 sed 's/^/| /' conftest.$ac_ext >&5
31937
31938 glibcxx_cv_func_sqrtl_use=no
31939 fi
31940 rm -f conftest.$ac_objext conftest.$ac_ext
31941       ac_ext=c
31942 ac_cpp='$CPP $CPPFLAGS'
31943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31946
31947
31948 fi
31949
31950   fi
31951   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
31952 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
31953
31954   if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
31955
31956 for ac_func in sqrtl
31957 do
31958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31959 echo "$as_me:$LINENO: checking for $ac_func" >&5
31960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31961 if eval "test \"\${$as_ac_var+set}\" = set"; then
31962   echo $ECHO_N "(cached) $ECHO_C" >&6
31963 else
31964   cat >conftest.$ac_ext <<_ACEOF
31965 #line $LINENO "configure"
31966 /* confdefs.h.  */
31967 _ACEOF
31968 cat confdefs.h >>conftest.$ac_ext
31969 cat >>conftest.$ac_ext <<_ACEOF
31970 /* end confdefs.h.  */
31971 /* System header to define __stub macros and hopefully few prototypes,
31972     which can conflict with char $ac_func (); below.
31973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31974     <limits.h> exists even on freestanding compilers.  */
31975 #ifdef __STDC__
31976 # include <limits.h>
31977 #else
31978 # include <assert.h>
31979 #endif
31980 /* Override any gcc2 internal prototype to avoid an error.  */
31981 #ifdef __cplusplus
31982 extern "C"
31983 {
31984 #endif
31985 /* We use char because int might match the return type of a gcc2
31986    builtin and then its argument prototype would still apply.  */
31987 char $ac_func ();
31988 /* The GNU C library defines this for functions which it implements
31989     to always fail with ENOSYS.  Some functions are actually named
31990     something starting with __ and the normal name is an alias.  */
31991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31992 choke me
31993 #else
31994 char (*f) () = $ac_func;
31995 #endif
31996 #ifdef __cplusplus
31997 }
31998 #endif
31999
32000 int
32001 main ()
32002 {
32003 return f != $ac_func;
32004   ;
32005   return 0;
32006 }
32007 _ACEOF
32008 rm -f conftest.$ac_objext conftest$ac_exeext
32009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32010   (eval $ac_link) 2>&5
32011   ac_status=$?
32012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013   (exit $ac_status); } &&
32014          { ac_try='test -s conftest$ac_exeext'
32015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32016   (eval $ac_try) 2>&5
32017   ac_status=$?
32018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32019   (exit $ac_status); }; }; then
32020   eval "$as_ac_var=yes"
32021 else
32022   echo "$as_me: failed program was:" >&5
32023 sed 's/^/| /' conftest.$ac_ext >&5
32024
32025 eval "$as_ac_var=no"
32026 fi
32027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32028 fi
32029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32031 if test `eval echo '${'$as_ac_var'}'` = yes; then
32032   cat >>confdefs.h <<_ACEOF
32033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32034 _ACEOF
32035
32036 fi
32037 done
32038
32039   else
32040
32041   echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
32042 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
32043   if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
32044     if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
32045   echo $ECHO_N "(cached) $ECHO_C" >&6
32046 else
32047
32048
32049
32050       ac_ext=cc
32051 ac_cpp='$CXXCPP $CPPFLAGS'
32052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32055
32056       cat >conftest.$ac_ext <<_ACEOF
32057 #line $LINENO "configure"
32058 /* confdefs.h.  */
32059 _ACEOF
32060 cat confdefs.h >>conftest.$ac_ext
32061 cat >>conftest.$ac_ext <<_ACEOF
32062 /* end confdefs.h.  */
32063 #include <math.h>
32064                       #ifdef HAVE_IEEEFP_H
32065                       #include <ieeefp.h>
32066                       #endif
32067
32068 int
32069 main ()
32070 {
32071  _sqrtl(0);
32072   ;
32073   return 0;
32074 }
32075 _ACEOF
32076 rm -f conftest.$ac_objext
32077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32078   (eval $ac_compile) 2>&5
32079   ac_status=$?
32080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081   (exit $ac_status); } &&
32082          { ac_try='test -s conftest.$ac_objext'
32083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32084   (eval $ac_try) 2>&5
32085   ac_status=$?
32086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087   (exit $ac_status); }; }; then
32088   glibcxx_cv_func__sqrtl_use=yes
32089 else
32090   echo "$as_me: failed program was:" >&5
32091 sed 's/^/| /' conftest.$ac_ext >&5
32092
32093 glibcxx_cv_func__sqrtl_use=no
32094 fi
32095 rm -f conftest.$ac_objext conftest.$ac_ext
32096       ac_ext=c
32097 ac_cpp='$CPP $CPPFLAGS'
32098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32101
32102
32103 fi
32104
32105   fi
32106   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
32107 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
32108
32109     if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
32110
32111 for ac_func in _sqrtl
32112 do
32113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32114 echo "$as_me:$LINENO: checking for $ac_func" >&5
32115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32116 if eval "test \"\${$as_ac_var+set}\" = set"; then
32117   echo $ECHO_N "(cached) $ECHO_C" >&6
32118 else
32119   cat >conftest.$ac_ext <<_ACEOF
32120 #line $LINENO "configure"
32121 /* confdefs.h.  */
32122 _ACEOF
32123 cat confdefs.h >>conftest.$ac_ext
32124 cat >>conftest.$ac_ext <<_ACEOF
32125 /* end confdefs.h.  */
32126 /* System header to define __stub macros and hopefully few prototypes,
32127     which can conflict with char $ac_func (); below.
32128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32129     <limits.h> exists even on freestanding compilers.  */
32130 #ifdef __STDC__
32131 # include <limits.h>
32132 #else
32133 # include <assert.h>
32134 #endif
32135 /* Override any gcc2 internal prototype to avoid an error.  */
32136 #ifdef __cplusplus
32137 extern "C"
32138 {
32139 #endif
32140 /* We use char because int might match the return type of a gcc2
32141    builtin and then its argument prototype would still apply.  */
32142 char $ac_func ();
32143 /* The GNU C library defines this for functions which it implements
32144     to always fail with ENOSYS.  Some functions are actually named
32145     something starting with __ and the normal name is an alias.  */
32146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32147 choke me
32148 #else
32149 char (*f) () = $ac_func;
32150 #endif
32151 #ifdef __cplusplus
32152 }
32153 #endif
32154
32155 int
32156 main ()
32157 {
32158 return f != $ac_func;
32159   ;
32160   return 0;
32161 }
32162 _ACEOF
32163 rm -f conftest.$ac_objext conftest$ac_exeext
32164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32165   (eval $ac_link) 2>&5
32166   ac_status=$?
32167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32168   (exit $ac_status); } &&
32169          { ac_try='test -s conftest$ac_exeext'
32170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32171   (eval $ac_try) 2>&5
32172   ac_status=$?
32173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32174   (exit $ac_status); }; }; then
32175   eval "$as_ac_var=yes"
32176 else
32177   echo "$as_me: failed program was:" >&5
32178 sed 's/^/| /' conftest.$ac_ext >&5
32179
32180 eval "$as_ac_var=no"
32181 fi
32182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32183 fi
32184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32186 if test `eval echo '${'$as_ac_var'}'` = yes; then
32187   cat >>confdefs.h <<_ACEOF
32188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32189 _ACEOF
32190
32191 fi
32192 done
32193
32194     fi
32195   fi
32196
32197
32198
32199   echo "$as_me:$LINENO: checking for sincosl declaration" >&5
32200 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
32201   if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
32202     if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
32203   echo $ECHO_N "(cached) $ECHO_C" >&6
32204 else
32205
32206
32207
32208       ac_ext=cc
32209 ac_cpp='$CXXCPP $CPPFLAGS'
32210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32213
32214       cat >conftest.$ac_ext <<_ACEOF
32215 #line $LINENO "configure"
32216 /* confdefs.h.  */
32217 _ACEOF
32218 cat confdefs.h >>conftest.$ac_ext
32219 cat >>conftest.$ac_ext <<_ACEOF
32220 /* end confdefs.h.  */
32221 #include <math.h>
32222 int
32223 main ()
32224 {
32225  sincosl(0, 0, 0);
32226   ;
32227   return 0;
32228 }
32229 _ACEOF
32230 rm -f conftest.$ac_objext
32231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32232   (eval $ac_compile) 2>&5
32233   ac_status=$?
32234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32235   (exit $ac_status); } &&
32236          { ac_try='test -s conftest.$ac_objext'
32237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32238   (eval $ac_try) 2>&5
32239   ac_status=$?
32240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241   (exit $ac_status); }; }; then
32242   glibcxx_cv_func_sincosl_use=yes
32243 else
32244   echo "$as_me: failed program was:" >&5
32245 sed 's/^/| /' conftest.$ac_ext >&5
32246
32247 glibcxx_cv_func_sincosl_use=no
32248 fi
32249 rm -f conftest.$ac_objext conftest.$ac_ext
32250       ac_ext=c
32251 ac_cpp='$CPP $CPPFLAGS'
32252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32255
32256
32257 fi
32258
32259   fi
32260   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
32261 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
32262
32263   if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
32264
32265 for ac_func in sincosl
32266 do
32267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32268 echo "$as_me:$LINENO: checking for $ac_func" >&5
32269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32270 if eval "test \"\${$as_ac_var+set}\" = set"; then
32271   echo $ECHO_N "(cached) $ECHO_C" >&6
32272 else
32273   cat >conftest.$ac_ext <<_ACEOF
32274 #line $LINENO "configure"
32275 /* confdefs.h.  */
32276 _ACEOF
32277 cat confdefs.h >>conftest.$ac_ext
32278 cat >>conftest.$ac_ext <<_ACEOF
32279 /* end confdefs.h.  */
32280 /* System header to define __stub macros and hopefully few prototypes,
32281     which can conflict with char $ac_func (); below.
32282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32283     <limits.h> exists even on freestanding compilers.  */
32284 #ifdef __STDC__
32285 # include <limits.h>
32286 #else
32287 # include <assert.h>
32288 #endif
32289 /* Override any gcc2 internal prototype to avoid an error.  */
32290 #ifdef __cplusplus
32291 extern "C"
32292 {
32293 #endif
32294 /* We use char because int might match the return type of a gcc2
32295    builtin and then its argument prototype would still apply.  */
32296 char $ac_func ();
32297 /* The GNU C library defines this for functions which it implements
32298     to always fail with ENOSYS.  Some functions are actually named
32299     something starting with __ and the normal name is an alias.  */
32300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32301 choke me
32302 #else
32303 char (*f) () = $ac_func;
32304 #endif
32305 #ifdef __cplusplus
32306 }
32307 #endif
32308
32309 int
32310 main ()
32311 {
32312 return f != $ac_func;
32313   ;
32314   return 0;
32315 }
32316 _ACEOF
32317 rm -f conftest.$ac_objext conftest$ac_exeext
32318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32319   (eval $ac_link) 2>&5
32320   ac_status=$?
32321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322   (exit $ac_status); } &&
32323          { ac_try='test -s conftest$ac_exeext'
32324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32325   (eval $ac_try) 2>&5
32326   ac_status=$?
32327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328   (exit $ac_status); }; }; then
32329   eval "$as_ac_var=yes"
32330 else
32331   echo "$as_me: failed program was:" >&5
32332 sed 's/^/| /' conftest.$ac_ext >&5
32333
32334 eval "$as_ac_var=no"
32335 fi
32336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32337 fi
32338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32340 if test `eval echo '${'$as_ac_var'}'` = yes; then
32341   cat >>confdefs.h <<_ACEOF
32342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32343 _ACEOF
32344
32345 fi
32346 done
32347
32348   else
32349
32350   echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
32351 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
32352   if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
32353     if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
32354   echo $ECHO_N "(cached) $ECHO_C" >&6
32355 else
32356
32357
32358
32359       ac_ext=cc
32360 ac_cpp='$CXXCPP $CPPFLAGS'
32361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32364
32365       cat >conftest.$ac_ext <<_ACEOF
32366 #line $LINENO "configure"
32367 /* confdefs.h.  */
32368 _ACEOF
32369 cat confdefs.h >>conftest.$ac_ext
32370 cat >>conftest.$ac_ext <<_ACEOF
32371 /* end confdefs.h.  */
32372 #include <math.h>
32373 int
32374 main ()
32375 {
32376  _sincosl(0, 0, 0);
32377   ;
32378   return 0;
32379 }
32380 _ACEOF
32381 rm -f conftest.$ac_objext
32382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32383   (eval $ac_compile) 2>&5
32384   ac_status=$?
32385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386   (exit $ac_status); } &&
32387          { ac_try='test -s conftest.$ac_objext'
32388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32389   (eval $ac_try) 2>&5
32390   ac_status=$?
32391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392   (exit $ac_status); }; }; then
32393   glibcxx_cv_func__sincosl_use=yes
32394 else
32395   echo "$as_me: failed program was:" >&5
32396 sed 's/^/| /' conftest.$ac_ext >&5
32397
32398 glibcxx_cv_func__sincosl_use=no
32399 fi
32400 rm -f conftest.$ac_objext conftest.$ac_ext
32401       ac_ext=c
32402 ac_cpp='$CPP $CPPFLAGS'
32403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32406
32407
32408 fi
32409
32410   fi
32411   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
32412 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
32413
32414     if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
32415
32416 for ac_func in _sincosl
32417 do
32418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32419 echo "$as_me:$LINENO: checking for $ac_func" >&5
32420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32421 if eval "test \"\${$as_ac_var+set}\" = set"; then
32422   echo $ECHO_N "(cached) $ECHO_C" >&6
32423 else
32424   cat >conftest.$ac_ext <<_ACEOF
32425 #line $LINENO "configure"
32426 /* confdefs.h.  */
32427 _ACEOF
32428 cat confdefs.h >>conftest.$ac_ext
32429 cat >>conftest.$ac_ext <<_ACEOF
32430 /* end confdefs.h.  */
32431 /* System header to define __stub macros and hopefully few prototypes,
32432     which can conflict with char $ac_func (); below.
32433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32434     <limits.h> exists even on freestanding compilers.  */
32435 #ifdef __STDC__
32436 # include <limits.h>
32437 #else
32438 # include <assert.h>
32439 #endif
32440 /* Override any gcc2 internal prototype to avoid an error.  */
32441 #ifdef __cplusplus
32442 extern "C"
32443 {
32444 #endif
32445 /* We use char because int might match the return type of a gcc2
32446    builtin and then its argument prototype would still apply.  */
32447 char $ac_func ();
32448 /* The GNU C library defines this for functions which it implements
32449     to always fail with ENOSYS.  Some functions are actually named
32450     something starting with __ and the normal name is an alias.  */
32451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32452 choke me
32453 #else
32454 char (*f) () = $ac_func;
32455 #endif
32456 #ifdef __cplusplus
32457 }
32458 #endif
32459
32460 int
32461 main ()
32462 {
32463 return f != $ac_func;
32464   ;
32465   return 0;
32466 }
32467 _ACEOF
32468 rm -f conftest.$ac_objext conftest$ac_exeext
32469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32470   (eval $ac_link) 2>&5
32471   ac_status=$?
32472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473   (exit $ac_status); } &&
32474          { ac_try='test -s conftest$ac_exeext'
32475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32476   (eval $ac_try) 2>&5
32477   ac_status=$?
32478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479   (exit $ac_status); }; }; then
32480   eval "$as_ac_var=yes"
32481 else
32482   echo "$as_me: failed program was:" >&5
32483 sed 's/^/| /' conftest.$ac_ext >&5
32484
32485 eval "$as_ac_var=no"
32486 fi
32487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32488 fi
32489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32491 if test `eval echo '${'$as_ac_var'}'` = yes; then
32492   cat >>confdefs.h <<_ACEOF
32493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32494 _ACEOF
32495
32496 fi
32497 done
32498
32499     fi
32500   fi
32501
32502
32503
32504   echo "$as_me:$LINENO: checking for finitel declaration" >&5
32505 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
32506   if test x${glibcxx_cv_func_finitel_use+set} != xset; then
32507     if test "${glibcxx_cv_func_finitel_use+set}" = set; then
32508   echo $ECHO_N "(cached) $ECHO_C" >&6
32509 else
32510
32511
32512
32513       ac_ext=cc
32514 ac_cpp='$CXXCPP $CPPFLAGS'
32515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32518
32519       cat >conftest.$ac_ext <<_ACEOF
32520 #line $LINENO "configure"
32521 /* confdefs.h.  */
32522 _ACEOF
32523 cat confdefs.h >>conftest.$ac_ext
32524 cat >>conftest.$ac_ext <<_ACEOF
32525 /* end confdefs.h.  */
32526 #include <math.h>
32527                       #ifdef HAVE_IEEEFP_H
32528                       #include <ieeefp.h>
32529                       #endif
32530
32531 int
32532 main ()
32533 {
32534  finitel(0);
32535   ;
32536   return 0;
32537 }
32538 _ACEOF
32539 rm -f conftest.$ac_objext
32540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32541   (eval $ac_compile) 2>&5
32542   ac_status=$?
32543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32544   (exit $ac_status); } &&
32545          { ac_try='test -s conftest.$ac_objext'
32546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32547   (eval $ac_try) 2>&5
32548   ac_status=$?
32549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550   (exit $ac_status); }; }; then
32551   glibcxx_cv_func_finitel_use=yes
32552 else
32553   echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32555
32556 glibcxx_cv_func_finitel_use=no
32557 fi
32558 rm -f conftest.$ac_objext conftest.$ac_ext
32559       ac_ext=c
32560 ac_cpp='$CPP $CPPFLAGS'
32561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32564
32565
32566 fi
32567
32568   fi
32569   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
32570 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
32571
32572   if test x$glibcxx_cv_func_finitel_use = x"yes"; then
32573
32574 for ac_func in finitel
32575 do
32576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32577 echo "$as_me:$LINENO: checking for $ac_func" >&5
32578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32579 if eval "test \"\${$as_ac_var+set}\" = set"; then
32580   echo $ECHO_N "(cached) $ECHO_C" >&6
32581 else
32582   cat >conftest.$ac_ext <<_ACEOF
32583 #line $LINENO "configure"
32584 /* confdefs.h.  */
32585 _ACEOF
32586 cat confdefs.h >>conftest.$ac_ext
32587 cat >>conftest.$ac_ext <<_ACEOF
32588 /* end confdefs.h.  */
32589 /* System header to define __stub macros and hopefully few prototypes,
32590     which can conflict with char $ac_func (); below.
32591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32592     <limits.h> exists even on freestanding compilers.  */
32593 #ifdef __STDC__
32594 # include <limits.h>
32595 #else
32596 # include <assert.h>
32597 #endif
32598 /* Override any gcc2 internal prototype to avoid an error.  */
32599 #ifdef __cplusplus
32600 extern "C"
32601 {
32602 #endif
32603 /* We use char because int might match the return type of a gcc2
32604    builtin and then its argument prototype would still apply.  */
32605 char $ac_func ();
32606 /* The GNU C library defines this for functions which it implements
32607     to always fail with ENOSYS.  Some functions are actually named
32608     something starting with __ and the normal name is an alias.  */
32609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32610 choke me
32611 #else
32612 char (*f) () = $ac_func;
32613 #endif
32614 #ifdef __cplusplus
32615 }
32616 #endif
32617
32618 int
32619 main ()
32620 {
32621 return f != $ac_func;
32622   ;
32623   return 0;
32624 }
32625 _ACEOF
32626 rm -f conftest.$ac_objext conftest$ac_exeext
32627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32628   (eval $ac_link) 2>&5
32629   ac_status=$?
32630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32631   (exit $ac_status); } &&
32632          { ac_try='test -s conftest$ac_exeext'
32633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32634   (eval $ac_try) 2>&5
32635   ac_status=$?
32636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637   (exit $ac_status); }; }; then
32638   eval "$as_ac_var=yes"
32639 else
32640   echo "$as_me: failed program was:" >&5
32641 sed 's/^/| /' conftest.$ac_ext >&5
32642
32643 eval "$as_ac_var=no"
32644 fi
32645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32646 fi
32647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32649 if test `eval echo '${'$as_ac_var'}'` = yes; then
32650   cat >>confdefs.h <<_ACEOF
32651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32652 _ACEOF
32653
32654 fi
32655 done
32656
32657   else
32658
32659   echo "$as_me:$LINENO: checking for _finitel declaration" >&5
32660 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
32661   if test x${glibcxx_cv_func__finitel_use+set} != xset; then
32662     if test "${glibcxx_cv_func__finitel_use+set}" = set; then
32663   echo $ECHO_N "(cached) $ECHO_C" >&6
32664 else
32665
32666
32667
32668       ac_ext=cc
32669 ac_cpp='$CXXCPP $CPPFLAGS'
32670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32673
32674       cat >conftest.$ac_ext <<_ACEOF
32675 #line $LINENO "configure"
32676 /* confdefs.h.  */
32677 _ACEOF
32678 cat confdefs.h >>conftest.$ac_ext
32679 cat >>conftest.$ac_ext <<_ACEOF
32680 /* end confdefs.h.  */
32681 #include <math.h>
32682                       #ifdef HAVE_IEEEFP_H
32683                       #include <ieeefp.h>
32684                       #endif
32685
32686 int
32687 main ()
32688 {
32689  _finitel(0);
32690   ;
32691   return 0;
32692 }
32693 _ACEOF
32694 rm -f conftest.$ac_objext
32695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32696   (eval $ac_compile) 2>&5
32697   ac_status=$?
32698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699   (exit $ac_status); } &&
32700          { ac_try='test -s conftest.$ac_objext'
32701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32702   (eval $ac_try) 2>&5
32703   ac_status=$?
32704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705   (exit $ac_status); }; }; then
32706   glibcxx_cv_func__finitel_use=yes
32707 else
32708   echo "$as_me: failed program was:" >&5
32709 sed 's/^/| /' conftest.$ac_ext >&5
32710
32711 glibcxx_cv_func__finitel_use=no
32712 fi
32713 rm -f conftest.$ac_objext conftest.$ac_ext
32714       ac_ext=c
32715 ac_cpp='$CPP $CPPFLAGS'
32716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32719
32720
32721 fi
32722
32723   fi
32724   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
32725 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
32726
32727     if test x$glibcxx_cv_func__finitel_use = x"yes"; then
32728
32729 for ac_func in _finitel
32730 do
32731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32732 echo "$as_me:$LINENO: checking for $ac_func" >&5
32733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32734 if eval "test \"\${$as_ac_var+set}\" = set"; then
32735   echo $ECHO_N "(cached) $ECHO_C" >&6
32736 else
32737   cat >conftest.$ac_ext <<_ACEOF
32738 #line $LINENO "configure"
32739 /* confdefs.h.  */
32740 _ACEOF
32741 cat confdefs.h >>conftest.$ac_ext
32742 cat >>conftest.$ac_ext <<_ACEOF
32743 /* end confdefs.h.  */
32744 /* System header to define __stub macros and hopefully few prototypes,
32745     which can conflict with char $ac_func (); below.
32746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32747     <limits.h> exists even on freestanding compilers.  */
32748 #ifdef __STDC__
32749 # include <limits.h>
32750 #else
32751 # include <assert.h>
32752 #endif
32753 /* Override any gcc2 internal prototype to avoid an error.  */
32754 #ifdef __cplusplus
32755 extern "C"
32756 {
32757 #endif
32758 /* We use char because int might match the return type of a gcc2
32759    builtin and then its argument prototype would still apply.  */
32760 char $ac_func ();
32761 /* The GNU C library defines this for functions which it implements
32762     to always fail with ENOSYS.  Some functions are actually named
32763     something starting with __ and the normal name is an alias.  */
32764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32765 choke me
32766 #else
32767 char (*f) () = $ac_func;
32768 #endif
32769 #ifdef __cplusplus
32770 }
32771 #endif
32772
32773 int
32774 main ()
32775 {
32776 return f != $ac_func;
32777   ;
32778   return 0;
32779 }
32780 _ACEOF
32781 rm -f conftest.$ac_objext conftest$ac_exeext
32782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32783   (eval $ac_link) 2>&5
32784   ac_status=$?
32785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786   (exit $ac_status); } &&
32787          { ac_try='test -s conftest$ac_exeext'
32788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32789   (eval $ac_try) 2>&5
32790   ac_status=$?
32791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792   (exit $ac_status); }; }; then
32793   eval "$as_ac_var=yes"
32794 else
32795   echo "$as_me: failed program was:" >&5
32796 sed 's/^/| /' conftest.$ac_ext >&5
32797
32798 eval "$as_ac_var=no"
32799 fi
32800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32801 fi
32802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32804 if test `eval echo '${'$as_ac_var'}'` = yes; then
32805   cat >>confdefs.h <<_ACEOF
32806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32807 _ACEOF
32808
32809 fi
32810 done
32811
32812     fi
32813   fi
32814
32815
32816
32817
32818   echo "$as_me:$LINENO: checking for _float trig functions" >&5
32819 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
32820   if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
32821   echo $ECHO_N "(cached) $ECHO_C" >&6
32822 else
32823
32824
32825
32826     ac_ext=cc
32827 ac_cpp='$CXXCPP $CPPFLAGS'
32828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32831
32832     cat >conftest.$ac_ext <<_ACEOF
32833 #line $LINENO "configure"
32834 /* confdefs.h.  */
32835 _ACEOF
32836 cat confdefs.h >>conftest.$ac_ext
32837 cat >>conftest.$ac_ext <<_ACEOF
32838 /* end confdefs.h.  */
32839 #include <math.h>
32840 int
32841 main ()
32842 {
32843  `for x in _acosf _asinf _atanf \
32844                                           _cosf _sinf _tanf \
32845                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done`
32846   ;
32847   return 0;
32848 }
32849 _ACEOF
32850 rm -f conftest.$ac_objext
32851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32852   (eval $ac_compile) 2>&5
32853   ac_status=$?
32854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855   (exit $ac_status); } &&
32856          { ac_try='test -s conftest.$ac_objext'
32857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32858   (eval $ac_try) 2>&5
32859   ac_status=$?
32860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861   (exit $ac_status); }; }; then
32862   glibcxx_cv_func__float_trig_use=yes
32863 else
32864   echo "$as_me: failed program was:" >&5
32865 sed 's/^/| /' conftest.$ac_ext >&5
32866
32867 glibcxx_cv_func__float_trig_use=no
32868 fi
32869 rm -f conftest.$ac_objext conftest.$ac_ext
32870     ac_ext=c
32871 ac_cpp='$CPP $CPPFLAGS'
32872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32875
32876 fi
32877
32878   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
32879 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
32880   if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
32881
32882
32883
32884
32885
32886
32887
32888
32889
32890 for ac_func in _acosf _asinf _atanf \
32891                                           _cosf _sinf _tanf \
32892                                           _coshf _sinhf _tanhf
32893 do
32894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32895 echo "$as_me:$LINENO: checking for $ac_func" >&5
32896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32897 if eval "test \"\${$as_ac_var+set}\" = set"; then
32898   echo $ECHO_N "(cached) $ECHO_C" >&6
32899 else
32900   cat >conftest.$ac_ext <<_ACEOF
32901 #line $LINENO "configure"
32902 /* confdefs.h.  */
32903 _ACEOF
32904 cat confdefs.h >>conftest.$ac_ext
32905 cat >>conftest.$ac_ext <<_ACEOF
32906 /* end confdefs.h.  */
32907 /* System header to define __stub macros and hopefully few prototypes,
32908     which can conflict with char $ac_func (); below.
32909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32910     <limits.h> exists even on freestanding compilers.  */
32911 #ifdef __STDC__
32912 # include <limits.h>
32913 #else
32914 # include <assert.h>
32915 #endif
32916 /* Override any gcc2 internal prototype to avoid an error.  */
32917 #ifdef __cplusplus
32918 extern "C"
32919 {
32920 #endif
32921 /* We use char because int might match the return type of a gcc2
32922    builtin and then its argument prototype would still apply.  */
32923 char $ac_func ();
32924 /* The GNU C library defines this for functions which it implements
32925     to always fail with ENOSYS.  Some functions are actually named
32926     something starting with __ and the normal name is an alias.  */
32927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32928 choke me
32929 #else
32930 char (*f) () = $ac_func;
32931 #endif
32932 #ifdef __cplusplus
32933 }
32934 #endif
32935
32936 int
32937 main ()
32938 {
32939 return f != $ac_func;
32940   ;
32941   return 0;
32942 }
32943 _ACEOF
32944 rm -f conftest.$ac_objext conftest$ac_exeext
32945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32946   (eval $ac_link) 2>&5
32947   ac_status=$?
32948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949   (exit $ac_status); } &&
32950          { ac_try='test -s conftest$ac_exeext'
32951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32952   (eval $ac_try) 2>&5
32953   ac_status=$?
32954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955   (exit $ac_status); }; }; then
32956   eval "$as_ac_var=yes"
32957 else
32958   echo "$as_me: failed program was:" >&5
32959 sed 's/^/| /' conftest.$ac_ext >&5
32960
32961 eval "$as_ac_var=no"
32962 fi
32963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32964 fi
32965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32967 if test `eval echo '${'$as_ac_var'}'` = yes; then
32968   cat >>confdefs.h <<_ACEOF
32969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32970 _ACEOF
32971
32972 fi
32973 done
32974
32975   fi
32976
32977
32978   echo "$as_me:$LINENO: checking for _float round functions" >&5
32979 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
32980   if test "${glibcxx_cv_func__float_round_use+set}" = set; then
32981   echo $ECHO_N "(cached) $ECHO_C" >&6
32982 else
32983
32984
32985
32986     ac_ext=cc
32987 ac_cpp='$CXXCPP $CPPFLAGS'
32988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32991
32992     cat >conftest.$ac_ext <<_ACEOF
32993 #line $LINENO "configure"
32994 /* confdefs.h.  */
32995 _ACEOF
32996 cat confdefs.h >>conftest.$ac_ext
32997 cat >>conftest.$ac_ext <<_ACEOF
32998 /* end confdefs.h.  */
32999 #include <math.h>
33000 int
33001 main ()
33002 {
33003  `for x in _ceilf _floorf; do echo "$x (0);"; done`
33004   ;
33005   return 0;
33006 }
33007 _ACEOF
33008 rm -f conftest.$ac_objext
33009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33010   (eval $ac_compile) 2>&5
33011   ac_status=$?
33012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013   (exit $ac_status); } &&
33014          { ac_try='test -s conftest.$ac_objext'
33015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016   (eval $ac_try) 2>&5
33017   ac_status=$?
33018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019   (exit $ac_status); }; }; then
33020   glibcxx_cv_func__float_round_use=yes
33021 else
33022   echo "$as_me: failed program was:" >&5
33023 sed 's/^/| /' conftest.$ac_ext >&5
33024
33025 glibcxx_cv_func__float_round_use=no
33026 fi
33027 rm -f conftest.$ac_objext conftest.$ac_ext
33028     ac_ext=c
33029 ac_cpp='$CPP $CPPFLAGS'
33030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33033
33034 fi
33035
33036   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
33037 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
33038   if test x$glibcxx_cv_func__float_round_use = x"yes"; then
33039
33040
33041 for ac_func in _ceilf _floorf
33042 do
33043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33044 echo "$as_me:$LINENO: checking for $ac_func" >&5
33045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33046 if eval "test \"\${$as_ac_var+set}\" = set"; then
33047   echo $ECHO_N "(cached) $ECHO_C" >&6
33048 else
33049   cat >conftest.$ac_ext <<_ACEOF
33050 #line $LINENO "configure"
33051 /* confdefs.h.  */
33052 _ACEOF
33053 cat confdefs.h >>conftest.$ac_ext
33054 cat >>conftest.$ac_ext <<_ACEOF
33055 /* end confdefs.h.  */
33056 /* System header to define __stub macros and hopefully few prototypes,
33057     which can conflict with char $ac_func (); below.
33058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33059     <limits.h> exists even on freestanding compilers.  */
33060 #ifdef __STDC__
33061 # include <limits.h>
33062 #else
33063 # include <assert.h>
33064 #endif
33065 /* Override any gcc2 internal prototype to avoid an error.  */
33066 #ifdef __cplusplus
33067 extern "C"
33068 {
33069 #endif
33070 /* We use char because int might match the return type of a gcc2
33071    builtin and then its argument prototype would still apply.  */
33072 char $ac_func ();
33073 /* The GNU C library defines this for functions which it implements
33074     to always fail with ENOSYS.  Some functions are actually named
33075     something starting with __ and the normal name is an alias.  */
33076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33077 choke me
33078 #else
33079 char (*f) () = $ac_func;
33080 #endif
33081 #ifdef __cplusplus
33082 }
33083 #endif
33084
33085 int
33086 main ()
33087 {
33088 return f != $ac_func;
33089   ;
33090   return 0;
33091 }
33092 _ACEOF
33093 rm -f conftest.$ac_objext conftest$ac_exeext
33094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33095   (eval $ac_link) 2>&5
33096   ac_status=$?
33097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33098   (exit $ac_status); } &&
33099          { ac_try='test -s conftest$ac_exeext'
33100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33101   (eval $ac_try) 2>&5
33102   ac_status=$?
33103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104   (exit $ac_status); }; }; then
33105   eval "$as_ac_var=yes"
33106 else
33107   echo "$as_me: failed program was:" >&5
33108 sed 's/^/| /' conftest.$ac_ext >&5
33109
33110 eval "$as_ac_var=no"
33111 fi
33112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33113 fi
33114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33116 if test `eval echo '${'$as_ac_var'}'` = yes; then
33117   cat >>confdefs.h <<_ACEOF
33118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33119 _ACEOF
33120
33121 fi
33122 done
33123
33124   fi
33125
33126
33127
33128   echo "$as_me:$LINENO: checking for _long double trig functions" >&5
33129 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
33130   if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
33131   echo $ECHO_N "(cached) $ECHO_C" >&6
33132 else
33133
33134
33135
33136     ac_ext=cc
33137 ac_cpp='$CXXCPP $CPPFLAGS'
33138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33141
33142     cat >conftest.$ac_ext <<_ACEOF
33143 #line $LINENO "configure"
33144 /* confdefs.h.  */
33145 _ACEOF
33146 cat confdefs.h >>conftest.$ac_ext
33147 cat >>conftest.$ac_ext <<_ACEOF
33148 /* end confdefs.h.  */
33149 #include <math.h>
33150 int
33151 main ()
33152 {
33153  `for x in _acosl _asinl _atanl \
33154                                           _cosl _sinl _tanl \
33155                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done`
33156   ;
33157   return 0;
33158 }
33159 _ACEOF
33160 rm -f conftest.$ac_objext
33161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33162   (eval $ac_compile) 2>&5
33163   ac_status=$?
33164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165   (exit $ac_status); } &&
33166          { ac_try='test -s conftest.$ac_objext'
33167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33168   (eval $ac_try) 2>&5
33169   ac_status=$?
33170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171   (exit $ac_status); }; }; then
33172   glibcxx_cv_func__long_double_trig_use=yes
33173 else
33174   echo "$as_me: failed program was:" >&5
33175 sed 's/^/| /' conftest.$ac_ext >&5
33176
33177 glibcxx_cv_func__long_double_trig_use=no
33178 fi
33179 rm -f conftest.$ac_objext conftest.$ac_ext
33180     ac_ext=c
33181 ac_cpp='$CPP $CPPFLAGS'
33182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33185
33186 fi
33187
33188   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
33189 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
33190   if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
33191
33192
33193
33194
33195
33196
33197
33198
33199
33200 for ac_func in _acosl _asinl _atanl \
33201                                           _cosl _sinl _tanl \
33202                                           _coshl _sinhl _tanhl
33203 do
33204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33205 echo "$as_me:$LINENO: checking for $ac_func" >&5
33206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33207 if eval "test \"\${$as_ac_var+set}\" = set"; then
33208   echo $ECHO_N "(cached) $ECHO_C" >&6
33209 else
33210   cat >conftest.$ac_ext <<_ACEOF
33211 #line $LINENO "configure"
33212 /* confdefs.h.  */
33213 _ACEOF
33214 cat confdefs.h >>conftest.$ac_ext
33215 cat >>conftest.$ac_ext <<_ACEOF
33216 /* end confdefs.h.  */
33217 /* System header to define __stub macros and hopefully few prototypes,
33218     which can conflict with char $ac_func (); below.
33219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33220     <limits.h> exists even on freestanding compilers.  */
33221 #ifdef __STDC__
33222 # include <limits.h>
33223 #else
33224 # include <assert.h>
33225 #endif
33226 /* Override any gcc2 internal prototype to avoid an error.  */
33227 #ifdef __cplusplus
33228 extern "C"
33229 {
33230 #endif
33231 /* We use char because int might match the return type of a gcc2
33232    builtin and then its argument prototype would still apply.  */
33233 char $ac_func ();
33234 /* The GNU C library defines this for functions which it implements
33235     to always fail with ENOSYS.  Some functions are actually named
33236     something starting with __ and the normal name is an alias.  */
33237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33238 choke me
33239 #else
33240 char (*f) () = $ac_func;
33241 #endif
33242 #ifdef __cplusplus
33243 }
33244 #endif
33245
33246 int
33247 main ()
33248 {
33249 return f != $ac_func;
33250   ;
33251   return 0;
33252 }
33253 _ACEOF
33254 rm -f conftest.$ac_objext conftest$ac_exeext
33255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33256   (eval $ac_link) 2>&5
33257   ac_status=$?
33258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33259   (exit $ac_status); } &&
33260          { ac_try='test -s conftest$ac_exeext'
33261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33262   (eval $ac_try) 2>&5
33263   ac_status=$?
33264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265   (exit $ac_status); }; }; then
33266   eval "$as_ac_var=yes"
33267 else
33268   echo "$as_me: failed program was:" >&5
33269 sed 's/^/| /' conftest.$ac_ext >&5
33270
33271 eval "$as_ac_var=no"
33272 fi
33273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33274 fi
33275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33277 if test `eval echo '${'$as_ac_var'}'` = yes; then
33278   cat >>confdefs.h <<_ACEOF
33279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33280 _ACEOF
33281
33282 fi
33283 done
33284
33285   fi
33286
33287
33288   echo "$as_me:$LINENO: checking for _long double round functions" >&5
33289 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
33290   if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
33291   echo $ECHO_N "(cached) $ECHO_C" >&6
33292 else
33293
33294
33295
33296     ac_ext=cc
33297 ac_cpp='$CXXCPP $CPPFLAGS'
33298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33301
33302     cat >conftest.$ac_ext <<_ACEOF
33303 #line $LINENO "configure"
33304 /* confdefs.h.  */
33305 _ACEOF
33306 cat confdefs.h >>conftest.$ac_ext
33307 cat >>conftest.$ac_ext <<_ACEOF
33308 /* end confdefs.h.  */
33309 #include <math.h>
33310 int
33311 main ()
33312 {
33313  `for x in _ceill _floorl; do echo "$x (0);"; done`
33314   ;
33315   return 0;
33316 }
33317 _ACEOF
33318 rm -f conftest.$ac_objext
33319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33320   (eval $ac_compile) 2>&5
33321   ac_status=$?
33322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33323   (exit $ac_status); } &&
33324          { ac_try='test -s conftest.$ac_objext'
33325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33326   (eval $ac_try) 2>&5
33327   ac_status=$?
33328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329   (exit $ac_status); }; }; then
33330   glibcxx_cv_func__long_double_round_use=yes
33331 else
33332   echo "$as_me: failed program was:" >&5
33333 sed 's/^/| /' conftest.$ac_ext >&5
33334
33335 glibcxx_cv_func__long_double_round_use=no
33336 fi
33337 rm -f conftest.$ac_objext conftest.$ac_ext
33338     ac_ext=c
33339 ac_cpp='$CPP $CPPFLAGS'
33340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33343
33344 fi
33345
33346   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
33347 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
33348   if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
33349
33350
33351 for ac_func in _ceill _floorl
33352 do
33353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33354 echo "$as_me:$LINENO: checking for $ac_func" >&5
33355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33356 if eval "test \"\${$as_ac_var+set}\" = set"; then
33357   echo $ECHO_N "(cached) $ECHO_C" >&6
33358 else
33359   cat >conftest.$ac_ext <<_ACEOF
33360 #line $LINENO "configure"
33361 /* confdefs.h.  */
33362 _ACEOF
33363 cat confdefs.h >>conftest.$ac_ext
33364 cat >>conftest.$ac_ext <<_ACEOF
33365 /* end confdefs.h.  */
33366 /* System header to define __stub macros and hopefully few prototypes,
33367     which can conflict with char $ac_func (); below.
33368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33369     <limits.h> exists even on freestanding compilers.  */
33370 #ifdef __STDC__
33371 # include <limits.h>
33372 #else
33373 # include <assert.h>
33374 #endif
33375 /* Override any gcc2 internal prototype to avoid an error.  */
33376 #ifdef __cplusplus
33377 extern "C"
33378 {
33379 #endif
33380 /* We use char because int might match the return type of a gcc2
33381    builtin and then its argument prototype would still apply.  */
33382 char $ac_func ();
33383 /* The GNU C library defines this for functions which it implements
33384     to always fail with ENOSYS.  Some functions are actually named
33385     something starting with __ and the normal name is an alias.  */
33386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33387 choke me
33388 #else
33389 char (*f) () = $ac_func;
33390 #endif
33391 #ifdef __cplusplus
33392 }
33393 #endif
33394
33395 int
33396 main ()
33397 {
33398 return f != $ac_func;
33399   ;
33400   return 0;
33401 }
33402 _ACEOF
33403 rm -f conftest.$ac_objext conftest$ac_exeext
33404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33405   (eval $ac_link) 2>&5
33406   ac_status=$?
33407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408   (exit $ac_status); } &&
33409          { ac_try='test -s conftest$ac_exeext'
33410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33411   (eval $ac_try) 2>&5
33412   ac_status=$?
33413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414   (exit $ac_status); }; }; then
33415   eval "$as_ac_var=yes"
33416 else
33417   echo "$as_me: failed program was:" >&5
33418 sed 's/^/| /' conftest.$ac_ext >&5
33419
33420 eval "$as_ac_var=no"
33421 fi
33422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33423 fi
33424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33426 if test `eval echo '${'$as_ac_var'}'` = yes; then
33427   cat >>confdefs.h <<_ACEOF
33428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33429 _ACEOF
33430
33431 fi
33432 done
33433
33434   fi
33435
33436
33437   LIBS="$ac_save_LIBS"
33438   CXXFLAGS="$ac_save_CXXFLAGS"
33439
33440
33441
33442   echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
33443 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
33444   if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
33445     if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
33446   echo $ECHO_N "(cached) $ECHO_C" >&6
33447 else
33448
33449
33450
33451       ac_ext=cc
33452 ac_cpp='$CXXCPP $CPPFLAGS'
33453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33456
33457       cat >conftest.$ac_ext <<_ACEOF
33458 #line $LINENO "configure"
33459 /* confdefs.h.  */
33460 _ACEOF
33461 cat confdefs.h >>conftest.$ac_ext
33462 cat >>conftest.$ac_ext <<_ACEOF
33463 /* end confdefs.h.  */
33464 #include <math.h>
33465 int
33466 main ()
33467 {
33468  __builtin_abs(0);
33469   ;
33470   return 0;
33471 }
33472 _ACEOF
33473 rm -f conftest.$ac_objext
33474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33475   (eval $ac_compile) 2>&5
33476   ac_status=$?
33477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33478   (exit $ac_status); } &&
33479          { ac_try='test -s conftest.$ac_objext'
33480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33481   (eval $ac_try) 2>&5
33482   ac_status=$?
33483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484   (exit $ac_status); }; }; then
33485   glibcxx_cv_func___builtin_abs_use=yes
33486 else
33487   echo "$as_me: failed program was:" >&5
33488 sed 's/^/| /' conftest.$ac_ext >&5
33489
33490 glibcxx_cv_func___builtin_abs_use=no
33491 fi
33492 rm -f conftest.$ac_objext conftest.$ac_ext
33493       ac_ext=c
33494 ac_cpp='$CPP $CPPFLAGS'
33495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33498
33499
33500 fi
33501
33502   fi
33503   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
33504 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
33505   if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
33506     echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
33507 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
33508     if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
33509       if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
33510   echo $ECHO_N "(cached) $ECHO_C" >&6
33511 else
33512
33513         cat >conftest.$ac_ext <<_ACEOF
33514 #line $LINENO "configure"
33515 /* confdefs.h.  */
33516 _ACEOF
33517 cat confdefs.h >>conftest.$ac_ext
33518 cat >>conftest.$ac_ext <<_ACEOF
33519 /* end confdefs.h.  */
33520 #include <math.h>
33521 int
33522 main ()
33523 {
33524  __builtin_abs(0);
33525   ;
33526   return 0;
33527 }
33528 _ACEOF
33529 rm -f conftest.$ac_objext conftest$ac_exeext
33530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33531   (eval $ac_link) 2>&5
33532   ac_status=$?
33533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534   (exit $ac_status); } &&
33535          { ac_try='test -s conftest$ac_exeext'
33536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33537   (eval $ac_try) 2>&5
33538   ac_status=$?
33539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540   (exit $ac_status); }; }; then
33541   glibcxx_cv_func___builtin_abs_link=yes
33542 else
33543   echo "$as_me: failed program was:" >&5
33544 sed 's/^/| /' conftest.$ac_ext >&5
33545
33546 glibcxx_cv_func___builtin_abs_link=no
33547 fi
33548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33549
33550 fi
33551
33552     fi
33553     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
33554 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
33555     if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
33556       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
33557       cat >>confdefs.h <<_ACEOF
33558 #define ${ac_tr_func} 1
33559 _ACEOF
33560
33561     fi
33562   fi
33563
33564
33565   echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
33566 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
33567   if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
33568     if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
33569   echo $ECHO_N "(cached) $ECHO_C" >&6
33570 else
33571
33572
33573
33574       ac_ext=cc
33575 ac_cpp='$CXXCPP $CPPFLAGS'
33576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33579
33580       cat >conftest.$ac_ext <<_ACEOF
33581 #line $LINENO "configure"
33582 /* confdefs.h.  */
33583 _ACEOF
33584 cat confdefs.h >>conftest.$ac_ext
33585 cat >>conftest.$ac_ext <<_ACEOF
33586 /* end confdefs.h.  */
33587 #include <math.h>
33588 int
33589 main ()
33590 {
33591  __builtin_fabsf(0);
33592   ;
33593   return 0;
33594 }
33595 _ACEOF
33596 rm -f conftest.$ac_objext
33597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33598   (eval $ac_compile) 2>&5
33599   ac_status=$?
33600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601   (exit $ac_status); } &&
33602          { ac_try='test -s conftest.$ac_objext'
33603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33604   (eval $ac_try) 2>&5
33605   ac_status=$?
33606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607   (exit $ac_status); }; }; then
33608   glibcxx_cv_func___builtin_fabsf_use=yes
33609 else
33610   echo "$as_me: failed program was:" >&5
33611 sed 's/^/| /' conftest.$ac_ext >&5
33612
33613 glibcxx_cv_func___builtin_fabsf_use=no
33614 fi
33615 rm -f conftest.$ac_objext conftest.$ac_ext
33616       ac_ext=c
33617 ac_cpp='$CPP $CPPFLAGS'
33618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33621
33622
33623 fi
33624
33625   fi
33626   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
33627 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
33628   if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
33629     echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
33630 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
33631     if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
33632       if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
33633   echo $ECHO_N "(cached) $ECHO_C" >&6
33634 else
33635
33636         cat >conftest.$ac_ext <<_ACEOF
33637 #line $LINENO "configure"
33638 /* confdefs.h.  */
33639 _ACEOF
33640 cat confdefs.h >>conftest.$ac_ext
33641 cat >>conftest.$ac_ext <<_ACEOF
33642 /* end confdefs.h.  */
33643 #include <math.h>
33644 int
33645 main ()
33646 {
33647  __builtin_fabsf(0);
33648   ;
33649   return 0;
33650 }
33651 _ACEOF
33652 rm -f conftest.$ac_objext conftest$ac_exeext
33653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33654   (eval $ac_link) 2>&5
33655   ac_status=$?
33656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33657   (exit $ac_status); } &&
33658          { ac_try='test -s conftest$ac_exeext'
33659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33660   (eval $ac_try) 2>&5
33661   ac_status=$?
33662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33663   (exit $ac_status); }; }; then
33664   glibcxx_cv_func___builtin_fabsf_link=yes
33665 else
33666   echo "$as_me: failed program was:" >&5
33667 sed 's/^/| /' conftest.$ac_ext >&5
33668
33669 glibcxx_cv_func___builtin_fabsf_link=no
33670 fi
33671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33672
33673 fi
33674
33675     fi
33676     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
33677 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
33678     if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
33679       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
33680       cat >>confdefs.h <<_ACEOF
33681 #define ${ac_tr_func} 1
33682 _ACEOF
33683
33684     fi
33685   fi
33686
33687
33688   echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
33689 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
33690   if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
33691     if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
33692   echo $ECHO_N "(cached) $ECHO_C" >&6
33693 else
33694
33695
33696
33697       ac_ext=cc
33698 ac_cpp='$CXXCPP $CPPFLAGS'
33699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33702
33703       cat >conftest.$ac_ext <<_ACEOF
33704 #line $LINENO "configure"
33705 /* confdefs.h.  */
33706 _ACEOF
33707 cat confdefs.h >>conftest.$ac_ext
33708 cat >>conftest.$ac_ext <<_ACEOF
33709 /* end confdefs.h.  */
33710 #include <math.h>
33711 int
33712 main ()
33713 {
33714  __builtin_fabs(0);
33715   ;
33716   return 0;
33717 }
33718 _ACEOF
33719 rm -f conftest.$ac_objext
33720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33721   (eval $ac_compile) 2>&5
33722   ac_status=$?
33723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724   (exit $ac_status); } &&
33725          { ac_try='test -s conftest.$ac_objext'
33726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33727   (eval $ac_try) 2>&5
33728   ac_status=$?
33729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730   (exit $ac_status); }; }; then
33731   glibcxx_cv_func___builtin_fabs_use=yes
33732 else
33733   echo "$as_me: failed program was:" >&5
33734 sed 's/^/| /' conftest.$ac_ext >&5
33735
33736 glibcxx_cv_func___builtin_fabs_use=no
33737 fi
33738 rm -f conftest.$ac_objext conftest.$ac_ext
33739       ac_ext=c
33740 ac_cpp='$CPP $CPPFLAGS'
33741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33744
33745
33746 fi
33747
33748   fi
33749   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
33750 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
33751   if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
33752     echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
33753 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
33754     if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
33755       if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
33756   echo $ECHO_N "(cached) $ECHO_C" >&6
33757 else
33758
33759         cat >conftest.$ac_ext <<_ACEOF
33760 #line $LINENO "configure"
33761 /* confdefs.h.  */
33762 _ACEOF
33763 cat confdefs.h >>conftest.$ac_ext
33764 cat >>conftest.$ac_ext <<_ACEOF
33765 /* end confdefs.h.  */
33766 #include <math.h>
33767 int
33768 main ()
33769 {
33770  __builtin_fabs(0);
33771   ;
33772   return 0;
33773 }
33774 _ACEOF
33775 rm -f conftest.$ac_objext conftest$ac_exeext
33776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33777   (eval $ac_link) 2>&5
33778   ac_status=$?
33779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33780   (exit $ac_status); } &&
33781          { ac_try='test -s conftest$ac_exeext'
33782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33783   (eval $ac_try) 2>&5
33784   ac_status=$?
33785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786   (exit $ac_status); }; }; then
33787   glibcxx_cv_func___builtin_fabs_link=yes
33788 else
33789   echo "$as_me: failed program was:" >&5
33790 sed 's/^/| /' conftest.$ac_ext >&5
33791
33792 glibcxx_cv_func___builtin_fabs_link=no
33793 fi
33794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33795
33796 fi
33797
33798     fi
33799     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
33800 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
33801     if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
33802       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
33803       cat >>confdefs.h <<_ACEOF
33804 #define ${ac_tr_func} 1
33805 _ACEOF
33806
33807     fi
33808   fi
33809
33810
33811   echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
33812 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
33813   if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
33814     if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
33815   echo $ECHO_N "(cached) $ECHO_C" >&6
33816 else
33817
33818
33819
33820       ac_ext=cc
33821 ac_cpp='$CXXCPP $CPPFLAGS'
33822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33825
33826       cat >conftest.$ac_ext <<_ACEOF
33827 #line $LINENO "configure"
33828 /* confdefs.h.  */
33829 _ACEOF
33830 cat confdefs.h >>conftest.$ac_ext
33831 cat >>conftest.$ac_ext <<_ACEOF
33832 /* end confdefs.h.  */
33833 #include <math.h>
33834 int
33835 main ()
33836 {
33837  __builtin_fabsl(0);
33838   ;
33839   return 0;
33840 }
33841 _ACEOF
33842 rm -f conftest.$ac_objext
33843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33844   (eval $ac_compile) 2>&5
33845   ac_status=$?
33846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847   (exit $ac_status); } &&
33848          { ac_try='test -s conftest.$ac_objext'
33849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33850   (eval $ac_try) 2>&5
33851   ac_status=$?
33852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853   (exit $ac_status); }; }; then
33854   glibcxx_cv_func___builtin_fabsl_use=yes
33855 else
33856   echo "$as_me: failed program was:" >&5
33857 sed 's/^/| /' conftest.$ac_ext >&5
33858
33859 glibcxx_cv_func___builtin_fabsl_use=no
33860 fi
33861 rm -f conftest.$ac_objext conftest.$ac_ext
33862       ac_ext=c
33863 ac_cpp='$CPP $CPPFLAGS'
33864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33867
33868
33869 fi
33870
33871   fi
33872   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
33873 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
33874   if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
33875     echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
33876 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
33877     if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
33878       if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
33879   echo $ECHO_N "(cached) $ECHO_C" >&6
33880 else
33881
33882         cat >conftest.$ac_ext <<_ACEOF
33883 #line $LINENO "configure"
33884 /* confdefs.h.  */
33885 _ACEOF
33886 cat confdefs.h >>conftest.$ac_ext
33887 cat >>conftest.$ac_ext <<_ACEOF
33888 /* end confdefs.h.  */
33889 #include <math.h>
33890 int
33891 main ()
33892 {
33893  __builtin_fabsl(0);
33894   ;
33895   return 0;
33896 }
33897 _ACEOF
33898 rm -f conftest.$ac_objext conftest$ac_exeext
33899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33900   (eval $ac_link) 2>&5
33901   ac_status=$?
33902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33903   (exit $ac_status); } &&
33904          { ac_try='test -s conftest$ac_exeext'
33905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33906   (eval $ac_try) 2>&5
33907   ac_status=$?
33908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909   (exit $ac_status); }; }; then
33910   glibcxx_cv_func___builtin_fabsl_link=yes
33911 else
33912   echo "$as_me: failed program was:" >&5
33913 sed 's/^/| /' conftest.$ac_ext >&5
33914
33915 glibcxx_cv_func___builtin_fabsl_link=no
33916 fi
33917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33918
33919 fi
33920
33921     fi
33922     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
33923 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
33924     if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
33925       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
33926       cat >>confdefs.h <<_ACEOF
33927 #define ${ac_tr_func} 1
33928 _ACEOF
33929
33930     fi
33931   fi
33932
33933
33934   echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
33935 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
33936   if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
33937     if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
33938   echo $ECHO_N "(cached) $ECHO_C" >&6
33939 else
33940
33941
33942
33943       ac_ext=cc
33944 ac_cpp='$CXXCPP $CPPFLAGS'
33945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33948
33949       cat >conftest.$ac_ext <<_ACEOF
33950 #line $LINENO "configure"
33951 /* confdefs.h.  */
33952 _ACEOF
33953 cat confdefs.h >>conftest.$ac_ext
33954 cat >>conftest.$ac_ext <<_ACEOF
33955 /* end confdefs.h.  */
33956 #include <math.h>
33957 int
33958 main ()
33959 {
33960  __builtin_labs(0);
33961   ;
33962   return 0;
33963 }
33964 _ACEOF
33965 rm -f conftest.$ac_objext
33966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33967   (eval $ac_compile) 2>&5
33968   ac_status=$?
33969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33970   (exit $ac_status); } &&
33971          { ac_try='test -s conftest.$ac_objext'
33972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33973   (eval $ac_try) 2>&5
33974   ac_status=$?
33975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976   (exit $ac_status); }; }; then
33977   glibcxx_cv_func___builtin_labs_use=yes
33978 else
33979   echo "$as_me: failed program was:" >&5
33980 sed 's/^/| /' conftest.$ac_ext >&5
33981
33982 glibcxx_cv_func___builtin_labs_use=no
33983 fi
33984 rm -f conftest.$ac_objext conftest.$ac_ext
33985       ac_ext=c
33986 ac_cpp='$CPP $CPPFLAGS'
33987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33990
33991
33992 fi
33993
33994   fi
33995   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
33996 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
33997   if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
33998     echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
33999 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
34000     if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
34001       if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
34002   echo $ECHO_N "(cached) $ECHO_C" >&6
34003 else
34004
34005         cat >conftest.$ac_ext <<_ACEOF
34006 #line $LINENO "configure"
34007 /* confdefs.h.  */
34008 _ACEOF
34009 cat confdefs.h >>conftest.$ac_ext
34010 cat >>conftest.$ac_ext <<_ACEOF
34011 /* end confdefs.h.  */
34012 #include <math.h>
34013 int
34014 main ()
34015 {
34016  __builtin_labs(0);
34017   ;
34018   return 0;
34019 }
34020 _ACEOF
34021 rm -f conftest.$ac_objext conftest$ac_exeext
34022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34023   (eval $ac_link) 2>&5
34024   ac_status=$?
34025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026   (exit $ac_status); } &&
34027          { ac_try='test -s conftest$ac_exeext'
34028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029   (eval $ac_try) 2>&5
34030   ac_status=$?
34031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032   (exit $ac_status); }; }; then
34033   glibcxx_cv_func___builtin_labs_link=yes
34034 else
34035   echo "$as_me: failed program was:" >&5
34036 sed 's/^/| /' conftest.$ac_ext >&5
34037
34038 glibcxx_cv_func___builtin_labs_link=no
34039 fi
34040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34041
34042 fi
34043
34044     fi
34045     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
34046 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
34047     if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
34048       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
34049       cat >>confdefs.h <<_ACEOF
34050 #define ${ac_tr_func} 1
34051 _ACEOF
34052
34053     fi
34054   fi
34055
34056
34057
34058   echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
34059 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
34060   if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
34061     if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
34062   echo $ECHO_N "(cached) $ECHO_C" >&6
34063 else
34064
34065
34066
34067       ac_ext=cc
34068 ac_cpp='$CXXCPP $CPPFLAGS'
34069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34072
34073       cat >conftest.$ac_ext <<_ACEOF
34074 #line $LINENO "configure"
34075 /* confdefs.h.  */
34076 _ACEOF
34077 cat confdefs.h >>conftest.$ac_ext
34078 cat >>conftest.$ac_ext <<_ACEOF
34079 /* end confdefs.h.  */
34080 #include <math.h>
34081 int
34082 main ()
34083 {
34084  __builtin_sqrtf(0);
34085   ;
34086   return 0;
34087 }
34088 _ACEOF
34089 rm -f conftest.$ac_objext
34090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34091   (eval $ac_compile) 2>&5
34092   ac_status=$?
34093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34094   (exit $ac_status); } &&
34095          { ac_try='test -s conftest.$ac_objext'
34096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34097   (eval $ac_try) 2>&5
34098   ac_status=$?
34099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100   (exit $ac_status); }; }; then
34101   glibcxx_cv_func___builtin_sqrtf_use=yes
34102 else
34103   echo "$as_me: failed program was:" >&5
34104 sed 's/^/| /' conftest.$ac_ext >&5
34105
34106 glibcxx_cv_func___builtin_sqrtf_use=no
34107 fi
34108 rm -f conftest.$ac_objext conftest.$ac_ext
34109       ac_ext=c
34110 ac_cpp='$CPP $CPPFLAGS'
34111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34114
34115
34116 fi
34117
34118   fi
34119   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
34120 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
34121   if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
34122     echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
34123 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
34124     if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
34125       if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
34126   echo $ECHO_N "(cached) $ECHO_C" >&6
34127 else
34128
34129         cat >conftest.$ac_ext <<_ACEOF
34130 #line $LINENO "configure"
34131 /* confdefs.h.  */
34132 _ACEOF
34133 cat confdefs.h >>conftest.$ac_ext
34134 cat >>conftest.$ac_ext <<_ACEOF
34135 /* end confdefs.h.  */
34136 #include <math.h>
34137 int
34138 main ()
34139 {
34140  __builtin_sqrtf(0);
34141   ;
34142   return 0;
34143 }
34144 _ACEOF
34145 rm -f conftest.$ac_objext conftest$ac_exeext
34146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34147   (eval $ac_link) 2>&5
34148   ac_status=$?
34149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150   (exit $ac_status); } &&
34151          { ac_try='test -s conftest$ac_exeext'
34152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34153   (eval $ac_try) 2>&5
34154   ac_status=$?
34155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156   (exit $ac_status); }; }; then
34157   glibcxx_cv_func___builtin_sqrtf_link=yes
34158 else
34159   echo "$as_me: failed program was:" >&5
34160 sed 's/^/| /' conftest.$ac_ext >&5
34161
34162 glibcxx_cv_func___builtin_sqrtf_link=no
34163 fi
34164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34165
34166 fi
34167
34168     fi
34169     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
34170 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
34171     if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
34172       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
34173       cat >>confdefs.h <<_ACEOF
34174 #define ${ac_tr_func} 1
34175 _ACEOF
34176
34177     fi
34178   fi
34179
34180
34181   echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
34182 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
34183   if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
34184     if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
34185   echo $ECHO_N "(cached) $ECHO_C" >&6
34186 else
34187
34188
34189
34190       ac_ext=cc
34191 ac_cpp='$CXXCPP $CPPFLAGS'
34192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34195
34196       cat >conftest.$ac_ext <<_ACEOF
34197 #line $LINENO "configure"
34198 /* confdefs.h.  */
34199 _ACEOF
34200 cat confdefs.h >>conftest.$ac_ext
34201 cat >>conftest.$ac_ext <<_ACEOF
34202 /* end confdefs.h.  */
34203 #include <math.h>
34204 int
34205 main ()
34206 {
34207  __builtin_sqrt(0);
34208   ;
34209   return 0;
34210 }
34211 _ACEOF
34212 rm -f conftest.$ac_objext
34213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34214   (eval $ac_compile) 2>&5
34215   ac_status=$?
34216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34217   (exit $ac_status); } &&
34218          { ac_try='test -s conftest.$ac_objext'
34219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34220   (eval $ac_try) 2>&5
34221   ac_status=$?
34222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34223   (exit $ac_status); }; }; then
34224   glibcxx_cv_func___builtin_sqrt_use=yes
34225 else
34226   echo "$as_me: failed program was:" >&5
34227 sed 's/^/| /' conftest.$ac_ext >&5
34228
34229 glibcxx_cv_func___builtin_sqrt_use=no
34230 fi
34231 rm -f conftest.$ac_objext conftest.$ac_ext
34232       ac_ext=c
34233 ac_cpp='$CPP $CPPFLAGS'
34234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34237
34238
34239 fi
34240
34241   fi
34242   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
34243 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
34244   if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
34245     echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
34246 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
34247     if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
34248       if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
34249   echo $ECHO_N "(cached) $ECHO_C" >&6
34250 else
34251
34252         cat >conftest.$ac_ext <<_ACEOF
34253 #line $LINENO "configure"
34254 /* confdefs.h.  */
34255 _ACEOF
34256 cat confdefs.h >>conftest.$ac_ext
34257 cat >>conftest.$ac_ext <<_ACEOF
34258 /* end confdefs.h.  */
34259 #include <math.h>
34260 int
34261 main ()
34262 {
34263  __builtin_sqrt(0);
34264   ;
34265   return 0;
34266 }
34267 _ACEOF
34268 rm -f conftest.$ac_objext conftest$ac_exeext
34269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34270   (eval $ac_link) 2>&5
34271   ac_status=$?
34272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273   (exit $ac_status); } &&
34274          { ac_try='test -s conftest$ac_exeext'
34275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34276   (eval $ac_try) 2>&5
34277   ac_status=$?
34278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34279   (exit $ac_status); }; }; then
34280   glibcxx_cv_func___builtin_sqrt_link=yes
34281 else
34282   echo "$as_me: failed program was:" >&5
34283 sed 's/^/| /' conftest.$ac_ext >&5
34284
34285 glibcxx_cv_func___builtin_sqrt_link=no
34286 fi
34287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34288
34289 fi
34290
34291     fi
34292     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
34293 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
34294     if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
34295       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
34296       cat >>confdefs.h <<_ACEOF
34297 #define ${ac_tr_func} 1
34298 _ACEOF
34299
34300     fi
34301   fi
34302
34303
34304   echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
34305 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
34306   if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
34307     if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
34308   echo $ECHO_N "(cached) $ECHO_C" >&6
34309 else
34310
34311
34312
34313       ac_ext=cc
34314 ac_cpp='$CXXCPP $CPPFLAGS'
34315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34318
34319       cat >conftest.$ac_ext <<_ACEOF
34320 #line $LINENO "configure"
34321 /* confdefs.h.  */
34322 _ACEOF
34323 cat confdefs.h >>conftest.$ac_ext
34324 cat >>conftest.$ac_ext <<_ACEOF
34325 /* end confdefs.h.  */
34326 #include <math.h>
34327 int
34328 main ()
34329 {
34330  __builtin_sqrtl(0);
34331   ;
34332   return 0;
34333 }
34334 _ACEOF
34335 rm -f conftest.$ac_objext
34336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34337   (eval $ac_compile) 2>&5
34338   ac_status=$?
34339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34340   (exit $ac_status); } &&
34341          { ac_try='test -s conftest.$ac_objext'
34342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34343   (eval $ac_try) 2>&5
34344   ac_status=$?
34345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34346   (exit $ac_status); }; }; then
34347   glibcxx_cv_func___builtin_sqrtl_use=yes
34348 else
34349   echo "$as_me: failed program was:" >&5
34350 sed 's/^/| /' conftest.$ac_ext >&5
34351
34352 glibcxx_cv_func___builtin_sqrtl_use=no
34353 fi
34354 rm -f conftest.$ac_objext conftest.$ac_ext
34355       ac_ext=c
34356 ac_cpp='$CPP $CPPFLAGS'
34357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34360
34361
34362 fi
34363
34364   fi
34365   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
34366 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
34367   if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
34368     echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
34369 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
34370     if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
34371       if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
34372   echo $ECHO_N "(cached) $ECHO_C" >&6
34373 else
34374
34375         cat >conftest.$ac_ext <<_ACEOF
34376 #line $LINENO "configure"
34377 /* confdefs.h.  */
34378 _ACEOF
34379 cat confdefs.h >>conftest.$ac_ext
34380 cat >>conftest.$ac_ext <<_ACEOF
34381 /* end confdefs.h.  */
34382 #include <math.h>
34383 int
34384 main ()
34385 {
34386  __builtin_sqrtl(0);
34387   ;
34388   return 0;
34389 }
34390 _ACEOF
34391 rm -f conftest.$ac_objext conftest$ac_exeext
34392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34393   (eval $ac_link) 2>&5
34394   ac_status=$?
34395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396   (exit $ac_status); } &&
34397          { ac_try='test -s conftest$ac_exeext'
34398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34399   (eval $ac_try) 2>&5
34400   ac_status=$?
34401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402   (exit $ac_status); }; }; then
34403   glibcxx_cv_func___builtin_sqrtl_link=yes
34404 else
34405   echo "$as_me: failed program was:" >&5
34406 sed 's/^/| /' conftest.$ac_ext >&5
34407
34408 glibcxx_cv_func___builtin_sqrtl_link=no
34409 fi
34410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34411
34412 fi
34413
34414     fi
34415     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
34416 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
34417     if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
34418       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
34419       cat >>confdefs.h <<_ACEOF
34420 #define ${ac_tr_func} 1
34421 _ACEOF
34422
34423     fi
34424   fi
34425
34426
34427
34428   echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
34429 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
34430   if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
34431     if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
34432   echo $ECHO_N "(cached) $ECHO_C" >&6
34433 else
34434
34435
34436
34437       ac_ext=cc
34438 ac_cpp='$CXXCPP $CPPFLAGS'
34439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34442
34443       cat >conftest.$ac_ext <<_ACEOF
34444 #line $LINENO "configure"
34445 /* confdefs.h.  */
34446 _ACEOF
34447 cat confdefs.h >>conftest.$ac_ext
34448 cat >>conftest.$ac_ext <<_ACEOF
34449 /* end confdefs.h.  */
34450 #include <math.h>
34451 int
34452 main ()
34453 {
34454  __builtin_sinf(0);
34455   ;
34456   return 0;
34457 }
34458 _ACEOF
34459 rm -f conftest.$ac_objext
34460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34461   (eval $ac_compile) 2>&5
34462   ac_status=$?
34463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464   (exit $ac_status); } &&
34465          { ac_try='test -s conftest.$ac_objext'
34466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34467   (eval $ac_try) 2>&5
34468   ac_status=$?
34469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34470   (exit $ac_status); }; }; then
34471   glibcxx_cv_func___builtin_sinf_use=yes
34472 else
34473   echo "$as_me: failed program was:" >&5
34474 sed 's/^/| /' conftest.$ac_ext >&5
34475
34476 glibcxx_cv_func___builtin_sinf_use=no
34477 fi
34478 rm -f conftest.$ac_objext conftest.$ac_ext
34479       ac_ext=c
34480 ac_cpp='$CPP $CPPFLAGS'
34481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34484
34485
34486 fi
34487
34488   fi
34489   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
34490 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
34491   if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
34492     echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
34493 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
34494     if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
34495       if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
34496   echo $ECHO_N "(cached) $ECHO_C" >&6
34497 else
34498
34499         cat >conftest.$ac_ext <<_ACEOF
34500 #line $LINENO "configure"
34501 /* confdefs.h.  */
34502 _ACEOF
34503 cat confdefs.h >>conftest.$ac_ext
34504 cat >>conftest.$ac_ext <<_ACEOF
34505 /* end confdefs.h.  */
34506 #include <math.h>
34507 int
34508 main ()
34509 {
34510  __builtin_sinf(0);
34511   ;
34512   return 0;
34513 }
34514 _ACEOF
34515 rm -f conftest.$ac_objext conftest$ac_exeext
34516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34517   (eval $ac_link) 2>&5
34518   ac_status=$?
34519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520   (exit $ac_status); } &&
34521          { ac_try='test -s conftest$ac_exeext'
34522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34523   (eval $ac_try) 2>&5
34524   ac_status=$?
34525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34526   (exit $ac_status); }; }; then
34527   glibcxx_cv_func___builtin_sinf_link=yes
34528 else
34529   echo "$as_me: failed program was:" >&5
34530 sed 's/^/| /' conftest.$ac_ext >&5
34531
34532 glibcxx_cv_func___builtin_sinf_link=no
34533 fi
34534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34535
34536 fi
34537
34538     fi
34539     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
34540 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
34541     if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
34542       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
34543       cat >>confdefs.h <<_ACEOF
34544 #define ${ac_tr_func} 1
34545 _ACEOF
34546
34547     fi
34548   fi
34549
34550
34551   echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
34552 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
34553   if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
34554     if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
34555   echo $ECHO_N "(cached) $ECHO_C" >&6
34556 else
34557
34558
34559
34560       ac_ext=cc
34561 ac_cpp='$CXXCPP $CPPFLAGS'
34562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34565
34566       cat >conftest.$ac_ext <<_ACEOF
34567 #line $LINENO "configure"
34568 /* confdefs.h.  */
34569 _ACEOF
34570 cat confdefs.h >>conftest.$ac_ext
34571 cat >>conftest.$ac_ext <<_ACEOF
34572 /* end confdefs.h.  */
34573 #include <math.h>
34574 int
34575 main ()
34576 {
34577  __builtin_sin(0);
34578   ;
34579   return 0;
34580 }
34581 _ACEOF
34582 rm -f conftest.$ac_objext
34583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34584   (eval $ac_compile) 2>&5
34585   ac_status=$?
34586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587   (exit $ac_status); } &&
34588          { ac_try='test -s conftest.$ac_objext'
34589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34590   (eval $ac_try) 2>&5
34591   ac_status=$?
34592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34593   (exit $ac_status); }; }; then
34594   glibcxx_cv_func___builtin_sin_use=yes
34595 else
34596   echo "$as_me: failed program was:" >&5
34597 sed 's/^/| /' conftest.$ac_ext >&5
34598
34599 glibcxx_cv_func___builtin_sin_use=no
34600 fi
34601 rm -f conftest.$ac_objext conftest.$ac_ext
34602       ac_ext=c
34603 ac_cpp='$CPP $CPPFLAGS'
34604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34607
34608
34609 fi
34610
34611   fi
34612   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
34613 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
34614   if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
34615     echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
34616 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
34617     if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
34618       if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
34619   echo $ECHO_N "(cached) $ECHO_C" >&6
34620 else
34621
34622         cat >conftest.$ac_ext <<_ACEOF
34623 #line $LINENO "configure"
34624 /* confdefs.h.  */
34625 _ACEOF
34626 cat confdefs.h >>conftest.$ac_ext
34627 cat >>conftest.$ac_ext <<_ACEOF
34628 /* end confdefs.h.  */
34629 #include <math.h>
34630 int
34631 main ()
34632 {
34633  __builtin_sin(0);
34634   ;
34635   return 0;
34636 }
34637 _ACEOF
34638 rm -f conftest.$ac_objext conftest$ac_exeext
34639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34640   (eval $ac_link) 2>&5
34641   ac_status=$?
34642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643   (exit $ac_status); } &&
34644          { ac_try='test -s conftest$ac_exeext'
34645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34646   (eval $ac_try) 2>&5
34647   ac_status=$?
34648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34649   (exit $ac_status); }; }; then
34650   glibcxx_cv_func___builtin_sin_link=yes
34651 else
34652   echo "$as_me: failed program was:" >&5
34653 sed 's/^/| /' conftest.$ac_ext >&5
34654
34655 glibcxx_cv_func___builtin_sin_link=no
34656 fi
34657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34658
34659 fi
34660
34661     fi
34662     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
34663 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
34664     if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
34665       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
34666       cat >>confdefs.h <<_ACEOF
34667 #define ${ac_tr_func} 1
34668 _ACEOF
34669
34670     fi
34671   fi
34672
34673
34674   echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
34675 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
34676   if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
34677     if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
34678   echo $ECHO_N "(cached) $ECHO_C" >&6
34679 else
34680
34681
34682
34683       ac_ext=cc
34684 ac_cpp='$CXXCPP $CPPFLAGS'
34685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34688
34689       cat >conftest.$ac_ext <<_ACEOF
34690 #line $LINENO "configure"
34691 /* confdefs.h.  */
34692 _ACEOF
34693 cat confdefs.h >>conftest.$ac_ext
34694 cat >>conftest.$ac_ext <<_ACEOF
34695 /* end confdefs.h.  */
34696 #include <math.h>
34697 int
34698 main ()
34699 {
34700  __builtin_sinl(0);
34701   ;
34702   return 0;
34703 }
34704 _ACEOF
34705 rm -f conftest.$ac_objext
34706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34707   (eval $ac_compile) 2>&5
34708   ac_status=$?
34709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34710   (exit $ac_status); } &&
34711          { ac_try='test -s conftest.$ac_objext'
34712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34713   (eval $ac_try) 2>&5
34714   ac_status=$?
34715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34716   (exit $ac_status); }; }; then
34717   glibcxx_cv_func___builtin_sinl_use=yes
34718 else
34719   echo "$as_me: failed program was:" >&5
34720 sed 's/^/| /' conftest.$ac_ext >&5
34721
34722 glibcxx_cv_func___builtin_sinl_use=no
34723 fi
34724 rm -f conftest.$ac_objext conftest.$ac_ext
34725       ac_ext=c
34726 ac_cpp='$CPP $CPPFLAGS'
34727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34730
34731
34732 fi
34733
34734   fi
34735   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
34736 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
34737   if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
34738     echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
34739 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
34740     if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
34741       if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
34742   echo $ECHO_N "(cached) $ECHO_C" >&6
34743 else
34744
34745         cat >conftest.$ac_ext <<_ACEOF
34746 #line $LINENO "configure"
34747 /* confdefs.h.  */
34748 _ACEOF
34749 cat confdefs.h >>conftest.$ac_ext
34750 cat >>conftest.$ac_ext <<_ACEOF
34751 /* end confdefs.h.  */
34752 #include <math.h>
34753 int
34754 main ()
34755 {
34756  __builtin_sinl(0);
34757   ;
34758   return 0;
34759 }
34760 _ACEOF
34761 rm -f conftest.$ac_objext conftest$ac_exeext
34762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34763   (eval $ac_link) 2>&5
34764   ac_status=$?
34765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766   (exit $ac_status); } &&
34767          { ac_try='test -s conftest$ac_exeext'
34768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34769   (eval $ac_try) 2>&5
34770   ac_status=$?
34771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772   (exit $ac_status); }; }; then
34773   glibcxx_cv_func___builtin_sinl_link=yes
34774 else
34775   echo "$as_me: failed program was:" >&5
34776 sed 's/^/| /' conftest.$ac_ext >&5
34777
34778 glibcxx_cv_func___builtin_sinl_link=no
34779 fi
34780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34781
34782 fi
34783
34784     fi
34785     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
34786 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
34787     if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
34788       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
34789       cat >>confdefs.h <<_ACEOF
34790 #define ${ac_tr_func} 1
34791 _ACEOF
34792
34793     fi
34794   fi
34795
34796
34797
34798   echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
34799 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
34800   if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
34801     if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
34802   echo $ECHO_N "(cached) $ECHO_C" >&6
34803 else
34804
34805
34806
34807       ac_ext=cc
34808 ac_cpp='$CXXCPP $CPPFLAGS'
34809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34812
34813       cat >conftest.$ac_ext <<_ACEOF
34814 #line $LINENO "configure"
34815 /* confdefs.h.  */
34816 _ACEOF
34817 cat confdefs.h >>conftest.$ac_ext
34818 cat >>conftest.$ac_ext <<_ACEOF
34819 /* end confdefs.h.  */
34820 #include <math.h>
34821 int
34822 main ()
34823 {
34824  __builtin_cosf(0);
34825   ;
34826   return 0;
34827 }
34828 _ACEOF
34829 rm -f conftest.$ac_objext
34830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34831   (eval $ac_compile) 2>&5
34832   ac_status=$?
34833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834   (exit $ac_status); } &&
34835          { ac_try='test -s conftest.$ac_objext'
34836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34837   (eval $ac_try) 2>&5
34838   ac_status=$?
34839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34840   (exit $ac_status); }; }; then
34841   glibcxx_cv_func___builtin_cosf_use=yes
34842 else
34843   echo "$as_me: failed program was:" >&5
34844 sed 's/^/| /' conftest.$ac_ext >&5
34845
34846 glibcxx_cv_func___builtin_cosf_use=no
34847 fi
34848 rm -f conftest.$ac_objext conftest.$ac_ext
34849       ac_ext=c
34850 ac_cpp='$CPP $CPPFLAGS'
34851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34854
34855
34856 fi
34857
34858   fi
34859   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
34860 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
34861   if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
34862     echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
34863 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
34864     if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
34865       if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
34866   echo $ECHO_N "(cached) $ECHO_C" >&6
34867 else
34868
34869         cat >conftest.$ac_ext <<_ACEOF
34870 #line $LINENO "configure"
34871 /* confdefs.h.  */
34872 _ACEOF
34873 cat confdefs.h >>conftest.$ac_ext
34874 cat >>conftest.$ac_ext <<_ACEOF
34875 /* end confdefs.h.  */
34876 #include <math.h>
34877 int
34878 main ()
34879 {
34880  __builtin_cosf(0);
34881   ;
34882   return 0;
34883 }
34884 _ACEOF
34885 rm -f conftest.$ac_objext conftest$ac_exeext
34886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34887   (eval $ac_link) 2>&5
34888   ac_status=$?
34889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34890   (exit $ac_status); } &&
34891          { ac_try='test -s conftest$ac_exeext'
34892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34893   (eval $ac_try) 2>&5
34894   ac_status=$?
34895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896   (exit $ac_status); }; }; then
34897   glibcxx_cv_func___builtin_cosf_link=yes
34898 else
34899   echo "$as_me: failed program was:" >&5
34900 sed 's/^/| /' conftest.$ac_ext >&5
34901
34902 glibcxx_cv_func___builtin_cosf_link=no
34903 fi
34904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34905
34906 fi
34907
34908     fi
34909     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
34910 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
34911     if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
34912       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
34913       cat >>confdefs.h <<_ACEOF
34914 #define ${ac_tr_func} 1
34915 _ACEOF
34916
34917     fi
34918   fi
34919
34920
34921   echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
34922 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
34923   if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
34924     if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
34925   echo $ECHO_N "(cached) $ECHO_C" >&6
34926 else
34927
34928
34929
34930       ac_ext=cc
34931 ac_cpp='$CXXCPP $CPPFLAGS'
34932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34935
34936       cat >conftest.$ac_ext <<_ACEOF
34937 #line $LINENO "configure"
34938 /* confdefs.h.  */
34939 _ACEOF
34940 cat confdefs.h >>conftest.$ac_ext
34941 cat >>conftest.$ac_ext <<_ACEOF
34942 /* end confdefs.h.  */
34943 #include <math.h>
34944 int
34945 main ()
34946 {
34947  __builtin_cos(0);
34948   ;
34949   return 0;
34950 }
34951 _ACEOF
34952 rm -f conftest.$ac_objext
34953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34954   (eval $ac_compile) 2>&5
34955   ac_status=$?
34956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957   (exit $ac_status); } &&
34958          { ac_try='test -s conftest.$ac_objext'
34959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34960   (eval $ac_try) 2>&5
34961   ac_status=$?
34962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963   (exit $ac_status); }; }; then
34964   glibcxx_cv_func___builtin_cos_use=yes
34965 else
34966   echo "$as_me: failed program was:" >&5
34967 sed 's/^/| /' conftest.$ac_ext >&5
34968
34969 glibcxx_cv_func___builtin_cos_use=no
34970 fi
34971 rm -f conftest.$ac_objext conftest.$ac_ext
34972       ac_ext=c
34973 ac_cpp='$CPP $CPPFLAGS'
34974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34977
34978
34979 fi
34980
34981   fi
34982   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
34983 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
34984   if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
34985     echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
34986 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
34987     if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
34988       if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
34989   echo $ECHO_N "(cached) $ECHO_C" >&6
34990 else
34991
34992         cat >conftest.$ac_ext <<_ACEOF
34993 #line $LINENO "configure"
34994 /* confdefs.h.  */
34995 _ACEOF
34996 cat confdefs.h >>conftest.$ac_ext
34997 cat >>conftest.$ac_ext <<_ACEOF
34998 /* end confdefs.h.  */
34999 #include <math.h>
35000 int
35001 main ()
35002 {
35003  __builtin_cos(0);
35004   ;
35005   return 0;
35006 }
35007 _ACEOF
35008 rm -f conftest.$ac_objext conftest$ac_exeext
35009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35010   (eval $ac_link) 2>&5
35011   ac_status=$?
35012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35013   (exit $ac_status); } &&
35014          { ac_try='test -s conftest$ac_exeext'
35015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35016   (eval $ac_try) 2>&5
35017   ac_status=$?
35018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35019   (exit $ac_status); }; }; then
35020   glibcxx_cv_func___builtin_cos_link=yes
35021 else
35022   echo "$as_me: failed program was:" >&5
35023 sed 's/^/| /' conftest.$ac_ext >&5
35024
35025 glibcxx_cv_func___builtin_cos_link=no
35026 fi
35027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35028
35029 fi
35030
35031     fi
35032     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
35033 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
35034     if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
35035       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
35036       cat >>confdefs.h <<_ACEOF
35037 #define ${ac_tr_func} 1
35038 _ACEOF
35039
35040     fi
35041   fi
35042
35043
35044   echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
35045 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
35046   if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
35047     if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
35048   echo $ECHO_N "(cached) $ECHO_C" >&6
35049 else
35050
35051
35052
35053       ac_ext=cc
35054 ac_cpp='$CXXCPP $CPPFLAGS'
35055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35058
35059       cat >conftest.$ac_ext <<_ACEOF
35060 #line $LINENO "configure"
35061 /* confdefs.h.  */
35062 _ACEOF
35063 cat confdefs.h >>conftest.$ac_ext
35064 cat >>conftest.$ac_ext <<_ACEOF
35065 /* end confdefs.h.  */
35066 #include <math.h>
35067 int
35068 main ()
35069 {
35070  __builtin_cosl(0);
35071   ;
35072   return 0;
35073 }
35074 _ACEOF
35075 rm -f conftest.$ac_objext
35076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35077   (eval $ac_compile) 2>&5
35078   ac_status=$?
35079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35080   (exit $ac_status); } &&
35081          { ac_try='test -s conftest.$ac_objext'
35082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35083   (eval $ac_try) 2>&5
35084   ac_status=$?
35085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35086   (exit $ac_status); }; }; then
35087   glibcxx_cv_func___builtin_cosl_use=yes
35088 else
35089   echo "$as_me: failed program was:" >&5
35090 sed 's/^/| /' conftest.$ac_ext >&5
35091
35092 glibcxx_cv_func___builtin_cosl_use=no
35093 fi
35094 rm -f conftest.$ac_objext conftest.$ac_ext
35095       ac_ext=c
35096 ac_cpp='$CPP $CPPFLAGS'
35097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35100
35101
35102 fi
35103
35104   fi
35105   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
35106 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
35107   if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
35108     echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
35109 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
35110     if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
35111       if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
35112   echo $ECHO_N "(cached) $ECHO_C" >&6
35113 else
35114
35115         cat >conftest.$ac_ext <<_ACEOF
35116 #line $LINENO "configure"
35117 /* confdefs.h.  */
35118 _ACEOF
35119 cat confdefs.h >>conftest.$ac_ext
35120 cat >>conftest.$ac_ext <<_ACEOF
35121 /* end confdefs.h.  */
35122 #include <math.h>
35123 int
35124 main ()
35125 {
35126  __builtin_cosl(0);
35127   ;
35128   return 0;
35129 }
35130 _ACEOF
35131 rm -f conftest.$ac_objext conftest$ac_exeext
35132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35133   (eval $ac_link) 2>&5
35134   ac_status=$?
35135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35136   (exit $ac_status); } &&
35137          { ac_try='test -s conftest$ac_exeext'
35138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35139   (eval $ac_try) 2>&5
35140   ac_status=$?
35141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35142   (exit $ac_status); }; }; then
35143   glibcxx_cv_func___builtin_cosl_link=yes
35144 else
35145   echo "$as_me: failed program was:" >&5
35146 sed 's/^/| /' conftest.$ac_ext >&5
35147
35148 glibcxx_cv_func___builtin_cosl_link=no
35149 fi
35150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35151
35152 fi
35153
35154     fi
35155     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
35156 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
35157     if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
35158       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
35159       cat >>confdefs.h <<_ACEOF
35160 #define ${ac_tr_func} 1
35161 _ACEOF
35162
35163     fi
35164   fi
35165
35166
35167               dummyvar=no
35168   if test x$dummyvar = x"yes"; then
35169     cat >>confdefs.h <<\_ACEOF
35170 #define HAVE___BUILTIN_ABS 1
35171 _ACEOF
35172
35173     cat >>confdefs.h <<\_ACEOF
35174 #define HAVE___BUILTIN_LABS 1
35175 _ACEOF
35176
35177     cat >>confdefs.h <<\_ACEOF
35178 #define HAVE___BUILTIN_COS 1
35179 _ACEOF
35180
35181     cat >>confdefs.h <<\_ACEOF
35182 #define HAVE___BUILTIN_COSF 1
35183 _ACEOF
35184
35185     cat >>confdefs.h <<\_ACEOF
35186 #define HAVE___BUILTIN_COSL 1
35187 _ACEOF
35188
35189     cat >>confdefs.h <<\_ACEOF
35190 #define HAVE___BUILTIN_FABS 1
35191 _ACEOF
35192
35193     cat >>confdefs.h <<\_ACEOF
35194 #define HAVE___BUILTIN_FABSF 1
35195 _ACEOF
35196
35197     cat >>confdefs.h <<\_ACEOF
35198 #define HAVE___BUILTIN_FABSL 1
35199 _ACEOF
35200
35201     cat >>confdefs.h <<\_ACEOF
35202 #define HAVE___BUILTIN_SIN 1
35203 _ACEOF
35204
35205     cat >>confdefs.h <<\_ACEOF
35206 #define HAVE___BUILTIN_SINF 1
35207 _ACEOF
35208
35209     cat >>confdefs.h <<\_ACEOF
35210 #define HAVE___BUILTIN_SINL 1
35211 _ACEOF
35212
35213     cat >>confdefs.h <<\_ACEOF
35214 #define HAVE___BUILTIN_SQRT 1
35215 _ACEOF
35216
35217     cat >>confdefs.h <<\_ACEOF
35218 #define HAVE___BUILTIN_SQRTF 1
35219 _ACEOF
35220
35221     cat >>confdefs.h <<\_ACEOF
35222 #define HAVE___BUILTIN_SQRTL 1
35223 _ACEOF
35224
35225   fi
35226
35227
35228
35229 echo "$as_me:$LINENO: checking for main in -lm" >&5
35230 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
35231 if test "${ac_cv_lib_m_main+set}" = set; then
35232   echo $ECHO_N "(cached) $ECHO_C" >&6
35233 else
35234   ac_check_lib_save_LIBS=$LIBS
35235 LIBS="-lm  $LIBS"
35236 cat >conftest.$ac_ext <<_ACEOF
35237 #line $LINENO "configure"
35238 /* confdefs.h.  */
35239 _ACEOF
35240 cat confdefs.h >>conftest.$ac_ext
35241 cat >>conftest.$ac_ext <<_ACEOF
35242 /* end confdefs.h.  */
35243
35244
35245 int
35246 main ()
35247 {
35248 main ();
35249   ;
35250   return 0;
35251 }
35252 _ACEOF
35253 rm -f conftest.$ac_objext conftest$ac_exeext
35254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35255   (eval $ac_link) 2>&5
35256   ac_status=$?
35257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35258   (exit $ac_status); } &&
35259          { ac_try='test -s conftest$ac_exeext'
35260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35261   (eval $ac_try) 2>&5
35262   ac_status=$?
35263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35264   (exit $ac_status); }; }; then
35265   ac_cv_lib_m_main=yes
35266 else
35267   echo "$as_me: failed program was:" >&5
35268 sed 's/^/| /' conftest.$ac_ext >&5
35269
35270 ac_cv_lib_m_main=no
35271 fi
35272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35273 LIBS=$ac_check_lib_save_LIBS
35274 fi
35275 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
35276 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
35277 if test $ac_cv_lib_m_main = yes; then
35278   cat >>confdefs.h <<_ACEOF
35279 #define HAVE_LIBM 1
35280 _ACEOF
35281
35282   LIBS="-lm $LIBS"
35283
35284 fi
35285
35286
35287
35288 for ac_func in nan copysignf
35289 do
35290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35291 echo "$as_me:$LINENO: checking for $ac_func" >&5
35292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35293 if eval "test \"\${$as_ac_var+set}\" = set"; then
35294   echo $ECHO_N "(cached) $ECHO_C" >&6
35295 else
35296   cat >conftest.$ac_ext <<_ACEOF
35297 #line $LINENO "configure"
35298 /* confdefs.h.  */
35299 _ACEOF
35300 cat confdefs.h >>conftest.$ac_ext
35301 cat >>conftest.$ac_ext <<_ACEOF
35302 /* end confdefs.h.  */
35303 /* System header to define __stub macros and hopefully few prototypes,
35304     which can conflict with char $ac_func (); below.
35305     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35306     <limits.h> exists even on freestanding compilers.  */
35307 #ifdef __STDC__
35308 # include <limits.h>
35309 #else
35310 # include <assert.h>
35311 #endif
35312 /* Override any gcc2 internal prototype to avoid an error.  */
35313 #ifdef __cplusplus
35314 extern "C"
35315 {
35316 #endif
35317 /* We use char because int might match the return type of a gcc2
35318    builtin and then its argument prototype would still apply.  */
35319 char $ac_func ();
35320 /* The GNU C library defines this for functions which it implements
35321     to always fail with ENOSYS.  Some functions are actually named
35322     something starting with __ and the normal name is an alias.  */
35323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35324 choke me
35325 #else
35326 char (*f) () = $ac_func;
35327 #endif
35328 #ifdef __cplusplus
35329 }
35330 #endif
35331
35332 int
35333 main ()
35334 {
35335 return f != $ac_func;
35336   ;
35337   return 0;
35338 }
35339 _ACEOF
35340 rm -f conftest.$ac_objext conftest$ac_exeext
35341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35342   (eval $ac_link) 2>&5
35343   ac_status=$?
35344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35345   (exit $ac_status); } &&
35346          { ac_try='test -s conftest$ac_exeext'
35347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35348   (eval $ac_try) 2>&5
35349   ac_status=$?
35350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351   (exit $ac_status); }; }; then
35352   eval "$as_ac_var=yes"
35353 else
35354   echo "$as_me: failed program was:" >&5
35355 sed 's/^/| /' conftest.$ac_ext >&5
35356
35357 eval "$as_ac_var=no"
35358 fi
35359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35360 fi
35361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35363 if test `eval echo '${'$as_ac_var'}'` = yes; then
35364   cat >>confdefs.h <<_ACEOF
35365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35366 _ACEOF
35367
35368 else
35369   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
35370 fi
35371 done
35372
35373
35374
35375 for ac_func in __signbit
35376 do
35377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35378 echo "$as_me:$LINENO: checking for $ac_func" >&5
35379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35380 if eval "test \"\${$as_ac_var+set}\" = set"; then
35381   echo $ECHO_N "(cached) $ECHO_C" >&6
35382 else
35383   cat >conftest.$ac_ext <<_ACEOF
35384 #line $LINENO "configure"
35385 /* confdefs.h.  */
35386 _ACEOF
35387 cat confdefs.h >>conftest.$ac_ext
35388 cat >>conftest.$ac_ext <<_ACEOF
35389 /* end confdefs.h.  */
35390 /* System header to define __stub macros and hopefully few prototypes,
35391     which can conflict with char $ac_func (); below.
35392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35393     <limits.h> exists even on freestanding compilers.  */
35394 #ifdef __STDC__
35395 # include <limits.h>
35396 #else
35397 # include <assert.h>
35398 #endif
35399 /* Override any gcc2 internal prototype to avoid an error.  */
35400 #ifdef __cplusplus
35401 extern "C"
35402 {
35403 #endif
35404 /* We use char because int might match the return type of a gcc2
35405    builtin and then its argument prototype would still apply.  */
35406 char $ac_func ();
35407 /* The GNU C library defines this for functions which it implements
35408     to always fail with ENOSYS.  Some functions are actually named
35409     something starting with __ and the normal name is an alias.  */
35410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35411 choke me
35412 #else
35413 char (*f) () = $ac_func;
35414 #endif
35415 #ifdef __cplusplus
35416 }
35417 #endif
35418
35419 int
35420 main ()
35421 {
35422 return f != $ac_func;
35423   ;
35424   return 0;
35425 }
35426 _ACEOF
35427 rm -f conftest.$ac_objext conftest$ac_exeext
35428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35429   (eval $ac_link) 2>&5
35430   ac_status=$?
35431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35432   (exit $ac_status); } &&
35433          { ac_try='test -s conftest$ac_exeext'
35434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35435   (eval $ac_try) 2>&5
35436   ac_status=$?
35437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438   (exit $ac_status); }; }; then
35439   eval "$as_ac_var=yes"
35440 else
35441   echo "$as_me: failed program was:" >&5
35442 sed 's/^/| /' conftest.$ac_ext >&5
35443
35444 eval "$as_ac_var=no"
35445 fi
35446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35447 fi
35448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35450 if test `eval echo '${'$as_ac_var'}'` = yes; then
35451   cat >>confdefs.h <<_ACEOF
35452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35453 _ACEOF
35454
35455 else
35456   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
35457 fi
35458 done
35459
35460
35461 for ac_func in __signbitf
35462 do
35463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35464 echo "$as_me:$LINENO: checking for $ac_func" >&5
35465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35466 if eval "test \"\${$as_ac_var+set}\" = set"; then
35467   echo $ECHO_N "(cached) $ECHO_C" >&6
35468 else
35469   cat >conftest.$ac_ext <<_ACEOF
35470 #line $LINENO "configure"
35471 /* confdefs.h.  */
35472 _ACEOF
35473 cat confdefs.h >>conftest.$ac_ext
35474 cat >>conftest.$ac_ext <<_ACEOF
35475 /* end confdefs.h.  */
35476 /* System header to define __stub macros and hopefully few prototypes,
35477     which can conflict with char $ac_func (); below.
35478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35479     <limits.h> exists even on freestanding compilers.  */
35480 #ifdef __STDC__
35481 # include <limits.h>
35482 #else
35483 # include <assert.h>
35484 #endif
35485 /* Override any gcc2 internal prototype to avoid an error.  */
35486 #ifdef __cplusplus
35487 extern "C"
35488 {
35489 #endif
35490 /* We use char because int might match the return type of a gcc2
35491    builtin and then its argument prototype would still apply.  */
35492 char $ac_func ();
35493 /* The GNU C library defines this for functions which it implements
35494     to always fail with ENOSYS.  Some functions are actually named
35495     something starting with __ and the normal name is an alias.  */
35496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35497 choke me
35498 #else
35499 char (*f) () = $ac_func;
35500 #endif
35501 #ifdef __cplusplus
35502 }
35503 #endif
35504
35505 int
35506 main ()
35507 {
35508 return f != $ac_func;
35509   ;
35510   return 0;
35511 }
35512 _ACEOF
35513 rm -f conftest.$ac_objext conftest$ac_exeext
35514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35515   (eval $ac_link) 2>&5
35516   ac_status=$?
35517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35518   (exit $ac_status); } &&
35519          { ac_try='test -s conftest$ac_exeext'
35520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35521   (eval $ac_try) 2>&5
35522   ac_status=$?
35523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35524   (exit $ac_status); }; }; then
35525   eval "$as_ac_var=yes"
35526 else
35527   echo "$as_me: failed program was:" >&5
35528 sed 's/^/| /' conftest.$ac_ext >&5
35529
35530 eval "$as_ac_var=no"
35531 fi
35532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35533 fi
35534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35536 if test `eval echo '${'$as_ac_var'}'` = yes; then
35537   cat >>confdefs.h <<_ACEOF
35538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35539 _ACEOF
35540
35541 else
35542   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
35543 fi
35544 done
35545
35546
35547           if test x$ac_cv_func_copysignl = x"yes"; then
35548
35549 for ac_func in __signbitl
35550 do
35551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35552 echo "$as_me:$LINENO: checking for $ac_func" >&5
35553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35554 if eval "test \"\${$as_ac_var+set}\" = set"; then
35555   echo $ECHO_N "(cached) $ECHO_C" >&6
35556 else
35557   cat >conftest.$ac_ext <<_ACEOF
35558 #line $LINENO "configure"
35559 /* confdefs.h.  */
35560 _ACEOF
35561 cat confdefs.h >>conftest.$ac_ext
35562 cat >>conftest.$ac_ext <<_ACEOF
35563 /* end confdefs.h.  */
35564 /* System header to define __stub macros and hopefully few prototypes,
35565     which can conflict with char $ac_func (); below.
35566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35567     <limits.h> exists even on freestanding compilers.  */
35568 #ifdef __STDC__
35569 # include <limits.h>
35570 #else
35571 # include <assert.h>
35572 #endif
35573 /* Override any gcc2 internal prototype to avoid an error.  */
35574 #ifdef __cplusplus
35575 extern "C"
35576 {
35577 #endif
35578 /* We use char because int might match the return type of a gcc2
35579    builtin and then its argument prototype would still apply.  */
35580 char $ac_func ();
35581 /* The GNU C library defines this for functions which it implements
35582     to always fail with ENOSYS.  Some functions are actually named
35583     something starting with __ and the normal name is an alias.  */
35584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35585 choke me
35586 #else
35587 char (*f) () = $ac_func;
35588 #endif
35589 #ifdef __cplusplus
35590 }
35591 #endif
35592
35593 int
35594 main ()
35595 {
35596 return f != $ac_func;
35597   ;
35598   return 0;
35599 }
35600 _ACEOF
35601 rm -f conftest.$ac_objext conftest$ac_exeext
35602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35603   (eval $ac_link) 2>&5
35604   ac_status=$?
35605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35606   (exit $ac_status); } &&
35607          { ac_try='test -s conftest$ac_exeext'
35608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35609   (eval $ac_try) 2>&5
35610   ac_status=$?
35611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35612   (exit $ac_status); }; }; then
35613   eval "$as_ac_var=yes"
35614 else
35615   echo "$as_me: failed program was:" >&5
35616 sed 's/^/| /' conftest.$ac_ext >&5
35617
35618 eval "$as_ac_var=no"
35619 fi
35620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35621 fi
35622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35624 if test `eval echo '${'$as_ac_var'}'` = yes; then
35625   cat >>confdefs.h <<_ACEOF
35626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35627 _ACEOF
35628
35629 else
35630   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
35631 fi
35632 done
35633
35634   fi
35635
35636   if test -n "$LIBMATHOBJS"; then
35637     need_libmath=yes
35638   fi
35639
35640
35641
35642   # Test wchar.h for mbstate_t, which is needed for char_traits and
35643   # others even if wchar_t support is not on.
35644   echo "$as_me:$LINENO: checking for mbstate_t" >&5
35645 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
35646   cat >conftest.$ac_ext <<_ACEOF
35647 #line $LINENO "configure"
35648 /* confdefs.h.  */
35649 _ACEOF
35650 cat confdefs.h >>conftest.$ac_ext
35651 cat >>conftest.$ac_ext <<_ACEOF
35652 /* end confdefs.h.  */
35653 #include <wchar.h>
35654 int
35655 main ()
35656 {
35657 mbstate_t teststate;
35658   ;
35659   return 0;
35660 }
35661 _ACEOF
35662 rm -f conftest.$ac_objext
35663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35664   (eval $ac_compile) 2>&5
35665   ac_status=$?
35666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667   (exit $ac_status); } &&
35668          { ac_try='test -s conftest.$ac_objext'
35669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35670   (eval $ac_try) 2>&5
35671   ac_status=$?
35672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35673   (exit $ac_status); }; }; then
35674   have_mbstate_t=yes
35675 else
35676   echo "$as_me: failed program was:" >&5
35677 sed 's/^/| /' conftest.$ac_ext >&5
35678
35679 have_mbstate_t=no
35680 fi
35681 rm -f conftest.$ac_objext conftest.$ac_ext
35682   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
35683 echo "${ECHO_T}$have_mbstate_t" >&6
35684   if test x"$have_mbstate_t" = xyes; then
35685     cat >>confdefs.h <<\_ACEOF
35686 #define HAVE_MBSTATE_T 1
35687 _ACEOF
35688
35689   fi
35690
35691   # Sanity check for existence of ISO C99 headers for extended encoding.
35692
35693 for ac_header in wchar.h
35694 do
35695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35697   echo "$as_me:$LINENO: checking for $ac_header" >&5
35698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35700   echo $ECHO_N "(cached) $ECHO_C" >&6
35701 fi
35702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35704 else
35705   # Is the header compilable?
35706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35708 cat >conftest.$ac_ext <<_ACEOF
35709 #line $LINENO "configure"
35710 /* confdefs.h.  */
35711 _ACEOF
35712 cat confdefs.h >>conftest.$ac_ext
35713 cat >>conftest.$ac_ext <<_ACEOF
35714 /* end confdefs.h.  */
35715 $ac_includes_default
35716 #include <$ac_header>
35717 _ACEOF
35718 rm -f conftest.$ac_objext
35719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35720   (eval $ac_compile) 2>&5
35721   ac_status=$?
35722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35723   (exit $ac_status); } &&
35724          { ac_try='test -s conftest.$ac_objext'
35725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35726   (eval $ac_try) 2>&5
35727   ac_status=$?
35728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35729   (exit $ac_status); }; }; then
35730   ac_header_compiler=yes
35731 else
35732   echo "$as_me: failed program was:" >&5
35733 sed 's/^/| /' conftest.$ac_ext >&5
35734
35735 ac_header_compiler=no
35736 fi
35737 rm -f conftest.$ac_objext conftest.$ac_ext
35738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35739 echo "${ECHO_T}$ac_header_compiler" >&6
35740
35741 # Is the header present?
35742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35744 cat >conftest.$ac_ext <<_ACEOF
35745 #line $LINENO "configure"
35746 /* confdefs.h.  */
35747 _ACEOF
35748 cat confdefs.h >>conftest.$ac_ext
35749 cat >>conftest.$ac_ext <<_ACEOF
35750 /* end confdefs.h.  */
35751 #include <$ac_header>
35752 _ACEOF
35753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35754   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35755   ac_status=$?
35756   grep -v '^ *+' conftest.er1 >conftest.err
35757   rm -f conftest.er1
35758   cat conftest.err >&5
35759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35760   (exit $ac_status); } >/dev/null; then
35761   if test -s conftest.err; then
35762     ac_cpp_err=$ac_c_preproc_warn_flag
35763   else
35764     ac_cpp_err=
35765   fi
35766 else
35767   ac_cpp_err=yes
35768 fi
35769 if test -z "$ac_cpp_err"; then
35770   ac_header_preproc=yes
35771 else
35772   echo "$as_me: failed program was:" >&5
35773 sed 's/^/| /' conftest.$ac_ext >&5
35774
35775   ac_header_preproc=no
35776 fi
35777 rm -f conftest.err conftest.$ac_ext
35778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35779 echo "${ECHO_T}$ac_header_preproc" >&6
35780
35781 # So?  What about this header?
35782 case $ac_header_compiler:$ac_header_preproc in
35783   yes:no )
35784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35788     (
35789       cat <<\_ASBOX
35790 ## ------------------------------------ ##
35791 ## Report this to bug-autoconf@gnu.org. ##
35792 ## ------------------------------------ ##
35793 _ASBOX
35794     ) |
35795       sed "s/^/$as_me: WARNING:     /" >&2
35796     ;;
35797   no:yes )
35798     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35800     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35804     (
35805       cat <<\_ASBOX
35806 ## ------------------------------------ ##
35807 ## Report this to bug-autoconf@gnu.org. ##
35808 ## ------------------------------------ ##
35809 _ASBOX
35810     ) |
35811       sed "s/^/$as_me: WARNING:     /" >&2
35812     ;;
35813 esac
35814 echo "$as_me:$LINENO: checking for $ac_header" >&5
35815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35817   echo $ECHO_N "(cached) $ECHO_C" >&6
35818 else
35819   eval "$as_ac_Header=$ac_header_preproc"
35820 fi
35821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35823
35824 fi
35825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35826   cat >>confdefs.h <<_ACEOF
35827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35828 _ACEOF
35829  ac_has_wchar_h=yes
35830 else
35831   ac_has_wchar_h=no
35832 fi
35833
35834 done
35835
35836
35837 for ac_header in wctype.h
35838 do
35839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35841   echo "$as_me:$LINENO: checking for $ac_header" >&5
35842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35844   echo $ECHO_N "(cached) $ECHO_C" >&6
35845 fi
35846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35848 else
35849   # Is the header compilable?
35850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35852 cat >conftest.$ac_ext <<_ACEOF
35853 #line $LINENO "configure"
35854 /* confdefs.h.  */
35855 _ACEOF
35856 cat confdefs.h >>conftest.$ac_ext
35857 cat >>conftest.$ac_ext <<_ACEOF
35858 /* end confdefs.h.  */
35859 $ac_includes_default
35860 #include <$ac_header>
35861 _ACEOF
35862 rm -f conftest.$ac_objext
35863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35864   (eval $ac_compile) 2>&5
35865   ac_status=$?
35866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35867   (exit $ac_status); } &&
35868          { ac_try='test -s conftest.$ac_objext'
35869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35870   (eval $ac_try) 2>&5
35871   ac_status=$?
35872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873   (exit $ac_status); }; }; then
35874   ac_header_compiler=yes
35875 else
35876   echo "$as_me: failed program was:" >&5
35877 sed 's/^/| /' conftest.$ac_ext >&5
35878
35879 ac_header_compiler=no
35880 fi
35881 rm -f conftest.$ac_objext conftest.$ac_ext
35882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35883 echo "${ECHO_T}$ac_header_compiler" >&6
35884
35885 # Is the header present?
35886 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35888 cat >conftest.$ac_ext <<_ACEOF
35889 #line $LINENO "configure"
35890 /* confdefs.h.  */
35891 _ACEOF
35892 cat confdefs.h >>conftest.$ac_ext
35893 cat >>conftest.$ac_ext <<_ACEOF
35894 /* end confdefs.h.  */
35895 #include <$ac_header>
35896 _ACEOF
35897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35898   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35899   ac_status=$?
35900   grep -v '^ *+' conftest.er1 >conftest.err
35901   rm -f conftest.er1
35902   cat conftest.err >&5
35903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35904   (exit $ac_status); } >/dev/null; then
35905   if test -s conftest.err; then
35906     ac_cpp_err=$ac_c_preproc_warn_flag
35907   else
35908     ac_cpp_err=
35909   fi
35910 else
35911   ac_cpp_err=yes
35912 fi
35913 if test -z "$ac_cpp_err"; then
35914   ac_header_preproc=yes
35915 else
35916   echo "$as_me: failed program was:" >&5
35917 sed 's/^/| /' conftest.$ac_ext >&5
35918
35919   ac_header_preproc=no
35920 fi
35921 rm -f conftest.err conftest.$ac_ext
35922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35923 echo "${ECHO_T}$ac_header_preproc" >&6
35924
35925 # So?  What about this header?
35926 case $ac_header_compiler:$ac_header_preproc in
35927   yes:no )
35928     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35932     (
35933       cat <<\_ASBOX
35934 ## ------------------------------------ ##
35935 ## Report this to bug-autoconf@gnu.org. ##
35936 ## ------------------------------------ ##
35937 _ASBOX
35938     ) |
35939       sed "s/^/$as_me: WARNING:     /" >&2
35940     ;;
35941   no:yes )
35942     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35944     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35948     (
35949       cat <<\_ASBOX
35950 ## ------------------------------------ ##
35951 ## Report this to bug-autoconf@gnu.org. ##
35952 ## ------------------------------------ ##
35953 _ASBOX
35954     ) |
35955       sed "s/^/$as_me: WARNING:     /" >&2
35956     ;;
35957 esac
35958 echo "$as_me:$LINENO: checking for $ac_header" >&5
35959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35961   echo $ECHO_N "(cached) $ECHO_C" >&6
35962 else
35963   eval "$as_ac_Header=$ac_header_preproc"
35964 fi
35965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35967
35968 fi
35969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35970   cat >>confdefs.h <<_ACEOF
35971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35972 _ACEOF
35973  ac_has_wctype_h=yes
35974 else
35975   ac_has_wctype_h=no
35976 fi
35977
35978 done
35979
35980
35981   # Only continue checking if the ISO C99 headers exist and support is on.
35982   if test x"$ac_has_wchar_h" = xyes &&
35983      test x"$ac_has_wctype_h" = xyes &&
35984      test x"$enable_c_mbchar" != xno; then
35985
35986     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
35987     # numeric_limits can instantiate type_traits<wchar_t>
35988     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
35989 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
35990     cat >conftest.$ac_ext <<_ACEOF
35991 #line $LINENO "configure"
35992 /* confdefs.h.  */
35993 _ACEOF
35994 cat confdefs.h >>conftest.$ac_ext
35995 cat >>conftest.$ac_ext <<_ACEOF
35996 /* end confdefs.h.  */
35997 #include <wchar.h>
35998 int
35999 main ()
36000 {
36001 int i = WCHAR_MIN; int j = WCHAR_MAX;
36002   ;
36003   return 0;
36004 }
36005 _ACEOF
36006 rm -f conftest.$ac_objext
36007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36008   (eval $ac_compile) 2>&5
36009   ac_status=$?
36010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36011   (exit $ac_status); } &&
36012          { ac_try='test -s conftest.$ac_objext'
36013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36014   (eval $ac_try) 2>&5
36015   ac_status=$?
36016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36017   (exit $ac_status); }; }; then
36018   has_wchar_minmax=yes
36019 else
36020   echo "$as_me: failed program was:" >&5
36021 sed 's/^/| /' conftest.$ac_ext >&5
36022
36023 has_wchar_minmax=no
36024 fi
36025 rm -f conftest.$ac_objext conftest.$ac_ext
36026     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
36027 echo "${ECHO_T}$has_wchar_minmax" >&6
36028
36029     # Test wchar.h for WEOF, which is what we use to determine whether
36030     # to specialize for char_traits<wchar_t> or not.
36031     echo "$as_me:$LINENO: checking for WEOF" >&5
36032 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
36033     cat >conftest.$ac_ext <<_ACEOF
36034 #line $LINENO "configure"
36035 /* confdefs.h.  */
36036 _ACEOF
36037 cat confdefs.h >>conftest.$ac_ext
36038 cat >>conftest.$ac_ext <<_ACEOF
36039 /* end confdefs.h.  */
36040
36041       #include <wchar.h>
36042       #include <stddef.h>
36043 int
36044 main ()
36045 {
36046 wint_t i = WEOF;
36047   ;
36048   return 0;
36049 }
36050 _ACEOF
36051 rm -f conftest.$ac_objext
36052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36053   (eval $ac_compile) 2>&5
36054   ac_status=$?
36055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056   (exit $ac_status); } &&
36057          { ac_try='test -s conftest.$ac_objext'
36058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36059   (eval $ac_try) 2>&5
36060   ac_status=$?
36061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36062   (exit $ac_status); }; }; then
36063   has_weof=yes
36064 else
36065   echo "$as_me: failed program was:" >&5
36066 sed 's/^/| /' conftest.$ac_ext >&5
36067
36068 has_weof=no
36069 fi
36070 rm -f conftest.$ac_objext conftest.$ac_ext
36071     echo "$as_me:$LINENO: result: $has_weof" >&5
36072 echo "${ECHO_T}$has_weof" >&6
36073
36074     # Tests for wide character functions used in char_traits<wchar_t>.
36075     ac_wfuncs=yes
36076
36077
36078
36079
36080
36081
36082 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
36083 do
36084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36085 echo "$as_me:$LINENO: checking for $ac_func" >&5
36086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36087 if eval "test \"\${$as_ac_var+set}\" = set"; then
36088   echo $ECHO_N "(cached) $ECHO_C" >&6
36089 else
36090   cat >conftest.$ac_ext <<_ACEOF
36091 #line $LINENO "configure"
36092 /* confdefs.h.  */
36093 _ACEOF
36094 cat confdefs.h >>conftest.$ac_ext
36095 cat >>conftest.$ac_ext <<_ACEOF
36096 /* end confdefs.h.  */
36097 /* System header to define __stub macros and hopefully few prototypes,
36098     which can conflict with char $ac_func (); below.
36099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36100     <limits.h> exists even on freestanding compilers.  */
36101 #ifdef __STDC__
36102 # include <limits.h>
36103 #else
36104 # include <assert.h>
36105 #endif
36106 /* Override any gcc2 internal prototype to avoid an error.  */
36107 #ifdef __cplusplus
36108 extern "C"
36109 {
36110 #endif
36111 /* We use char because int might match the return type of a gcc2
36112    builtin and then its argument prototype would still apply.  */
36113 char $ac_func ();
36114 /* The GNU C library defines this for functions which it implements
36115     to always fail with ENOSYS.  Some functions are actually named
36116     something starting with __ and the normal name is an alias.  */
36117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36118 choke me
36119 #else
36120 char (*f) () = $ac_func;
36121 #endif
36122 #ifdef __cplusplus
36123 }
36124 #endif
36125
36126 int
36127 main ()
36128 {
36129 return f != $ac_func;
36130   ;
36131   return 0;
36132 }
36133 _ACEOF
36134 rm -f conftest.$ac_objext conftest$ac_exeext
36135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36136   (eval $ac_link) 2>&5
36137   ac_status=$?
36138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139   (exit $ac_status); } &&
36140          { ac_try='test -s conftest$ac_exeext'
36141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36142   (eval $ac_try) 2>&5
36143   ac_status=$?
36144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36145   (exit $ac_status); }; }; then
36146   eval "$as_ac_var=yes"
36147 else
36148   echo "$as_me: failed program was:" >&5
36149 sed 's/^/| /' conftest.$ac_ext >&5
36150
36151 eval "$as_ac_var=no"
36152 fi
36153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36154 fi
36155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36157 if test `eval echo '${'$as_ac_var'}'` = yes; then
36158   cat >>confdefs.h <<_ACEOF
36159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36160 _ACEOF
36161
36162 else
36163   ac_wfuncs=no
36164 fi
36165 done
36166
36167
36168     # Checks for names injected into std:: by the c_std headers.
36169
36170
36171
36172
36173
36174
36175
36176
36177
36178
36179
36180
36181
36182
36183
36184
36185
36186
36187
36188
36189
36190
36191
36192
36193
36194
36195
36196
36197
36198
36199
36200
36201
36202
36203
36204
36205
36206
36207
36208
36209
36210
36211
36212
36213
36214
36215
36216
36217
36218
36219 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
36220     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
36221     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
36222     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
36223     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
36224     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
36225 do
36226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36227 echo "$as_me:$LINENO: checking for $ac_func" >&5
36228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36229 if eval "test \"\${$as_ac_var+set}\" = set"; then
36230   echo $ECHO_N "(cached) $ECHO_C" >&6
36231 else
36232   cat >conftest.$ac_ext <<_ACEOF
36233 #line $LINENO "configure"
36234 /* confdefs.h.  */
36235 _ACEOF
36236 cat confdefs.h >>conftest.$ac_ext
36237 cat >>conftest.$ac_ext <<_ACEOF
36238 /* end confdefs.h.  */
36239 /* System header to define __stub macros and hopefully few prototypes,
36240     which can conflict with char $ac_func (); below.
36241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36242     <limits.h> exists even on freestanding compilers.  */
36243 #ifdef __STDC__
36244 # include <limits.h>
36245 #else
36246 # include <assert.h>
36247 #endif
36248 /* Override any gcc2 internal prototype to avoid an error.  */
36249 #ifdef __cplusplus
36250 extern "C"
36251 {
36252 #endif
36253 /* We use char because int might match the return type of a gcc2
36254    builtin and then its argument prototype would still apply.  */
36255 char $ac_func ();
36256 /* The GNU C library defines this for functions which it implements
36257     to always fail with ENOSYS.  Some functions are actually named
36258     something starting with __ and the normal name is an alias.  */
36259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36260 choke me
36261 #else
36262 char (*f) () = $ac_func;
36263 #endif
36264 #ifdef __cplusplus
36265 }
36266 #endif
36267
36268 int
36269 main ()
36270 {
36271 return f != $ac_func;
36272   ;
36273   return 0;
36274 }
36275 _ACEOF
36276 rm -f conftest.$ac_objext conftest$ac_exeext
36277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36278   (eval $ac_link) 2>&5
36279   ac_status=$?
36280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36281   (exit $ac_status); } &&
36282          { ac_try='test -s conftest$ac_exeext'
36283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36284   (eval $ac_try) 2>&5
36285   ac_status=$?
36286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287   (exit $ac_status); }; }; then
36288   eval "$as_ac_var=yes"
36289 else
36290   echo "$as_me: failed program was:" >&5
36291 sed 's/^/| /' conftest.$ac_ext >&5
36292
36293 eval "$as_ac_var=no"
36294 fi
36295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36296 fi
36297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36299 if test `eval echo '${'$as_ac_var'}'` = yes; then
36300   cat >>confdefs.h <<_ACEOF
36301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36302 _ACEOF
36303
36304 else
36305   ac_wfuncs=no
36306 fi
36307 done
36308
36309
36310     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
36311 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
36312     if test x"$has_weof" = xyes &&
36313        test x"$has_wchar_minmax" = xyes &&
36314        test x"$ac_wfuncs" = xyes;
36315     then
36316       ac_isoC99_wchar_t=yes
36317     else
36318       ac_isoC99_wchar_t=no
36319     fi
36320     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
36321 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
36322
36323     # Use iconv for wchar_t to char conversions. As such, check for
36324     # X/Open Portability Guide, version 2 features (XPG2).
36325     if test "${ac_cv_header_iconv_h+set}" = set; then
36326   echo "$as_me:$LINENO: checking for iconv.h" >&5
36327 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
36328 if test "${ac_cv_header_iconv_h+set}" = set; then
36329   echo $ECHO_N "(cached) $ECHO_C" >&6
36330 fi
36331 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
36332 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
36333 else
36334   # Is the header compilable?
36335 echo "$as_me:$LINENO: checking iconv.h usability" >&5
36336 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
36337 cat >conftest.$ac_ext <<_ACEOF
36338 #line $LINENO "configure"
36339 /* confdefs.h.  */
36340 _ACEOF
36341 cat confdefs.h >>conftest.$ac_ext
36342 cat >>conftest.$ac_ext <<_ACEOF
36343 /* end confdefs.h.  */
36344 $ac_includes_default
36345 #include <iconv.h>
36346 _ACEOF
36347 rm -f conftest.$ac_objext
36348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36349   (eval $ac_compile) 2>&5
36350   ac_status=$?
36351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36352   (exit $ac_status); } &&
36353          { ac_try='test -s conftest.$ac_objext'
36354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36355   (eval $ac_try) 2>&5
36356   ac_status=$?
36357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36358   (exit $ac_status); }; }; then
36359   ac_header_compiler=yes
36360 else
36361   echo "$as_me: failed program was:" >&5
36362 sed 's/^/| /' conftest.$ac_ext >&5
36363
36364 ac_header_compiler=no
36365 fi
36366 rm -f conftest.$ac_objext conftest.$ac_ext
36367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36368 echo "${ECHO_T}$ac_header_compiler" >&6
36369
36370 # Is the header present?
36371 echo "$as_me:$LINENO: checking iconv.h presence" >&5
36372 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
36373 cat >conftest.$ac_ext <<_ACEOF
36374 #line $LINENO "configure"
36375 /* confdefs.h.  */
36376 _ACEOF
36377 cat confdefs.h >>conftest.$ac_ext
36378 cat >>conftest.$ac_ext <<_ACEOF
36379 /* end confdefs.h.  */
36380 #include <iconv.h>
36381 _ACEOF
36382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36384   ac_status=$?
36385   grep -v '^ *+' conftest.er1 >conftest.err
36386   rm -f conftest.er1
36387   cat conftest.err >&5
36388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36389   (exit $ac_status); } >/dev/null; then
36390   if test -s conftest.err; then
36391     ac_cpp_err=$ac_c_preproc_warn_flag
36392   else
36393     ac_cpp_err=
36394   fi
36395 else
36396   ac_cpp_err=yes
36397 fi
36398 if test -z "$ac_cpp_err"; then
36399   ac_header_preproc=yes
36400 else
36401   echo "$as_me: failed program was:" >&5
36402 sed 's/^/| /' conftest.$ac_ext >&5
36403
36404   ac_header_preproc=no
36405 fi
36406 rm -f conftest.err conftest.$ac_ext
36407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36408 echo "${ECHO_T}$ac_header_preproc" >&6
36409
36410 # So?  What about this header?
36411 case $ac_header_compiler:$ac_header_preproc in
36412   yes:no )
36413     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
36414 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36415     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
36416 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
36417     (
36418       cat <<\_ASBOX
36419 ## ------------------------------------ ##
36420 ## Report this to bug-autoconf@gnu.org. ##
36421 ## ------------------------------------ ##
36422 _ASBOX
36423     ) |
36424       sed "s/^/$as_me: WARNING:     /" >&2
36425     ;;
36426   no:yes )
36427     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
36428 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
36429     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
36430 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
36431     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
36432 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
36433     (
36434       cat <<\_ASBOX
36435 ## ------------------------------------ ##
36436 ## Report this to bug-autoconf@gnu.org. ##
36437 ## ------------------------------------ ##
36438 _ASBOX
36439     ) |
36440       sed "s/^/$as_me: WARNING:     /" >&2
36441     ;;
36442 esac
36443 echo "$as_me:$LINENO: checking for iconv.h" >&5
36444 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
36445 if test "${ac_cv_header_iconv_h+set}" = set; then
36446   echo $ECHO_N "(cached) $ECHO_C" >&6
36447 else
36448   ac_cv_header_iconv_h=$ac_header_preproc
36449 fi
36450 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
36451 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
36452
36453 fi
36454 if test $ac_cv_header_iconv_h = yes; then
36455   ac_has_iconv_h=yes
36456 else
36457   ac_has_iconv_h=no
36458 fi
36459
36460
36461     if test "${ac_cv_header_langinfo_h+set}" = set; then
36462   echo "$as_me:$LINENO: checking for langinfo.h" >&5
36463 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
36464 if test "${ac_cv_header_langinfo_h+set}" = set; then
36465   echo $ECHO_N "(cached) $ECHO_C" >&6
36466 fi
36467 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
36468 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
36469 else
36470   # Is the header compilable?
36471 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
36472 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
36473 cat >conftest.$ac_ext <<_ACEOF
36474 #line $LINENO "configure"
36475 /* confdefs.h.  */
36476 _ACEOF
36477 cat confdefs.h >>conftest.$ac_ext
36478 cat >>conftest.$ac_ext <<_ACEOF
36479 /* end confdefs.h.  */
36480 $ac_includes_default
36481 #include <langinfo.h>
36482 _ACEOF
36483 rm -f conftest.$ac_objext
36484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36485   (eval $ac_compile) 2>&5
36486   ac_status=$?
36487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36488   (exit $ac_status); } &&
36489          { ac_try='test -s conftest.$ac_objext'
36490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36491   (eval $ac_try) 2>&5
36492   ac_status=$?
36493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494   (exit $ac_status); }; }; then
36495   ac_header_compiler=yes
36496 else
36497   echo "$as_me: failed program was:" >&5
36498 sed 's/^/| /' conftest.$ac_ext >&5
36499
36500 ac_header_compiler=no
36501 fi
36502 rm -f conftest.$ac_objext conftest.$ac_ext
36503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36504 echo "${ECHO_T}$ac_header_compiler" >&6
36505
36506 # Is the header present?
36507 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
36508 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
36509 cat >conftest.$ac_ext <<_ACEOF
36510 #line $LINENO "configure"
36511 /* confdefs.h.  */
36512 _ACEOF
36513 cat confdefs.h >>conftest.$ac_ext
36514 cat >>conftest.$ac_ext <<_ACEOF
36515 /* end confdefs.h.  */
36516 #include <langinfo.h>
36517 _ACEOF
36518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36520   ac_status=$?
36521   grep -v '^ *+' conftest.er1 >conftest.err
36522   rm -f conftest.er1
36523   cat conftest.err >&5
36524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36525   (exit $ac_status); } >/dev/null; then
36526   if test -s conftest.err; then
36527     ac_cpp_err=$ac_c_preproc_warn_flag
36528   else
36529     ac_cpp_err=
36530   fi
36531 else
36532   ac_cpp_err=yes
36533 fi
36534 if test -z "$ac_cpp_err"; then
36535   ac_header_preproc=yes
36536 else
36537   echo "$as_me: failed program was:" >&5
36538 sed 's/^/| /' conftest.$ac_ext >&5
36539
36540   ac_header_preproc=no
36541 fi
36542 rm -f conftest.err conftest.$ac_ext
36543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36544 echo "${ECHO_T}$ac_header_preproc" >&6
36545
36546 # So?  What about this header?
36547 case $ac_header_compiler:$ac_header_preproc in
36548   yes:no )
36549     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36550 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36551     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
36552 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
36553     (
36554       cat <<\_ASBOX
36555 ## ------------------------------------ ##
36556 ## Report this to bug-autoconf@gnu.org. ##
36557 ## ------------------------------------ ##
36558 _ASBOX
36559     ) |
36560       sed "s/^/$as_me: WARNING:     /" >&2
36561     ;;
36562   no:yes )
36563     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
36564 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
36565     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
36566 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
36567     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
36568 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
36569     (
36570       cat <<\_ASBOX
36571 ## ------------------------------------ ##
36572 ## Report this to bug-autoconf@gnu.org. ##
36573 ## ------------------------------------ ##
36574 _ASBOX
36575     ) |
36576       sed "s/^/$as_me: WARNING:     /" >&2
36577     ;;
36578 esac
36579 echo "$as_me:$LINENO: checking for langinfo.h" >&5
36580 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
36581 if test "${ac_cv_header_langinfo_h+set}" = set; then
36582   echo $ECHO_N "(cached) $ECHO_C" >&6
36583 else
36584   ac_cv_header_langinfo_h=$ac_header_preproc
36585 fi
36586 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
36587 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
36588
36589 fi
36590 if test $ac_cv_header_langinfo_h = yes; then
36591   ac_has_langinfo_h=yes
36592 else
36593   ac_has_langinfo_h=no
36594 fi
36595
36596
36597
36598     # Check for existence of libiconv.a providing XPG2 wchar_t support.
36599     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
36600 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
36601 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
36602   echo $ECHO_N "(cached) $ECHO_C" >&6
36603 else
36604   ac_check_lib_save_LIBS=$LIBS
36605 LIBS="-liconv  $LIBS"
36606 cat >conftest.$ac_ext <<_ACEOF
36607 #line $LINENO "configure"
36608 /* confdefs.h.  */
36609 _ACEOF
36610 cat confdefs.h >>conftest.$ac_ext
36611 cat >>conftest.$ac_ext <<_ACEOF
36612 /* end confdefs.h.  */
36613
36614 /* Override any gcc2 internal prototype to avoid an error.  */
36615 #ifdef __cplusplus
36616 extern "C"
36617 #endif
36618 /* We use char because int might match the return type of a gcc2
36619    builtin and then its argument prototype would still apply.  */
36620 char iconv ();
36621 int
36622 main ()
36623 {
36624 iconv ();
36625   ;
36626   return 0;
36627 }
36628 _ACEOF
36629 rm -f conftest.$ac_objext conftest$ac_exeext
36630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36631   (eval $ac_link) 2>&5
36632   ac_status=$?
36633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36634   (exit $ac_status); } &&
36635          { ac_try='test -s conftest$ac_exeext'
36636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36637   (eval $ac_try) 2>&5
36638   ac_status=$?
36639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640   (exit $ac_status); }; }; then
36641   ac_cv_lib_iconv_iconv=yes
36642 else
36643   echo "$as_me: failed program was:" >&5
36644 sed 's/^/| /' conftest.$ac_ext >&5
36645
36646 ac_cv_lib_iconv_iconv=no
36647 fi
36648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36649 LIBS=$ac_check_lib_save_LIBS
36650 fi
36651 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
36652 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
36653 if test $ac_cv_lib_iconv_iconv = yes; then
36654   libiconv="-liconv"
36655 fi
36656
36657     ac_save_LIBS="$LIBS"
36658     LIBS="$LIBS $libiconv"
36659
36660
36661
36662
36663
36664 for ac_func in iconv_open iconv_close iconv nl_langinfo
36665 do
36666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36667 echo "$as_me:$LINENO: checking for $ac_func" >&5
36668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36669 if eval "test \"\${$as_ac_var+set}\" = set"; then
36670   echo $ECHO_N "(cached) $ECHO_C" >&6
36671 else
36672   cat >conftest.$ac_ext <<_ACEOF
36673 #line $LINENO "configure"
36674 /* confdefs.h.  */
36675 _ACEOF
36676 cat confdefs.h >>conftest.$ac_ext
36677 cat >>conftest.$ac_ext <<_ACEOF
36678 /* end confdefs.h.  */
36679 /* System header to define __stub macros and hopefully few prototypes,
36680     which can conflict with char $ac_func (); below.
36681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36682     <limits.h> exists even on freestanding compilers.  */
36683 #ifdef __STDC__
36684 # include <limits.h>
36685 #else
36686 # include <assert.h>
36687 #endif
36688 /* Override any gcc2 internal prototype to avoid an error.  */
36689 #ifdef __cplusplus
36690 extern "C"
36691 {
36692 #endif
36693 /* We use char because int might match the return type of a gcc2
36694    builtin and then its argument prototype would still apply.  */
36695 char $ac_func ();
36696 /* The GNU C library defines this for functions which it implements
36697     to always fail with ENOSYS.  Some functions are actually named
36698     something starting with __ and the normal name is an alias.  */
36699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36700 choke me
36701 #else
36702 char (*f) () = $ac_func;
36703 #endif
36704 #ifdef __cplusplus
36705 }
36706 #endif
36707
36708 int
36709 main ()
36710 {
36711 return f != $ac_func;
36712   ;
36713   return 0;
36714 }
36715 _ACEOF
36716 rm -f conftest.$ac_objext conftest$ac_exeext
36717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36718   (eval $ac_link) 2>&5
36719   ac_status=$?
36720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36721   (exit $ac_status); } &&
36722          { ac_try='test -s conftest$ac_exeext'
36723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36724   (eval $ac_try) 2>&5
36725   ac_status=$?
36726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727   (exit $ac_status); }; }; then
36728   eval "$as_ac_var=yes"
36729 else
36730   echo "$as_me: failed program was:" >&5
36731 sed 's/^/| /' conftest.$ac_ext >&5
36732
36733 eval "$as_ac_var=no"
36734 fi
36735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36736 fi
36737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36739 if test `eval echo '${'$as_ac_var'}'` = yes; then
36740   cat >>confdefs.h <<_ACEOF
36741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36742 _ACEOF
36743  ac_XPG2funcs=yes
36744 else
36745   ac_XPG2funcs=no
36746 fi
36747 done
36748
36749
36750     LIBS="$ac_save_LIBS"
36751
36752     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
36753 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
36754     if test x"$ac_has_iconv_h" = xyes &&
36755        test x"$ac_has_langinfo_h" = xyes &&
36756        test x"$ac_XPG2funcs" = xyes;
36757     then
36758       ac_XPG2_wchar_t=yes
36759     else
36760       ac_XPG2_wchar_t=no
36761     fi
36762     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
36763 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
36764
36765     # At the moment, only enable wchar_t specializations if all the
36766     # above support is present.
36767     if test x"$ac_isoC99_wchar_t" = xyes &&
36768        test x"$ac_XPG2_wchar_t" = xyes;
36769     then
36770       cat >>confdefs.h <<\_ACEOF
36771 #define _GLIBCXX_USE_WCHAR_T 1
36772 _ACEOF
36773
36774       enable_wchar_t=yes
36775     fi
36776   fi
36777   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
36778 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
36779   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
36780 echo "${ECHO_T}$enable_wchar_t" >&6
36781
36782
36783   ac_test_CXXFLAGS="${CXXFLAGS+set}"
36784   ac_save_CXXFLAGS="$CXXFLAGS"
36785   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
36786
36787
36788   echo "$as_me:$LINENO: checking for strtold declaration" >&5
36789 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
36790   if test x${glibcxx_cv_func_strtold_use+set} != xset; then
36791     if test "${glibcxx_cv_func_strtold_use+set}" = set; then
36792   echo $ECHO_N "(cached) $ECHO_C" >&6
36793 else
36794
36795
36796
36797       ac_ext=cc
36798 ac_cpp='$CXXCPP $CPPFLAGS'
36799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36802
36803       cat >conftest.$ac_ext <<_ACEOF
36804 #line $LINENO "configure"
36805 /* confdefs.h.  */
36806 _ACEOF
36807 cat confdefs.h >>conftest.$ac_ext
36808 cat >>conftest.$ac_ext <<_ACEOF
36809 /* end confdefs.h.  */
36810 #include <stdlib.h>
36811 int
36812 main ()
36813 {
36814  strtold(0, 0);
36815   ;
36816   return 0;
36817 }
36818 _ACEOF
36819 rm -f conftest.$ac_objext
36820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36821   (eval $ac_compile) 2>&5
36822   ac_status=$?
36823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36824   (exit $ac_status); } &&
36825          { ac_try='test -s conftest.$ac_objext'
36826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36827   (eval $ac_try) 2>&5
36828   ac_status=$?
36829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36830   (exit $ac_status); }; }; then
36831   glibcxx_cv_func_strtold_use=yes
36832 else
36833   echo "$as_me: failed program was:" >&5
36834 sed 's/^/| /' conftest.$ac_ext >&5
36835
36836 glibcxx_cv_func_strtold_use=no
36837 fi
36838 rm -f conftest.$ac_objext conftest.$ac_ext
36839       ac_ext=c
36840 ac_cpp='$CPP $CPPFLAGS'
36841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36844
36845
36846 fi
36847
36848   fi
36849   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
36850 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
36851   if test x$glibcxx_cv_func_strtold_use = x"yes"; then
36852
36853 for ac_func in strtold
36854 do
36855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36856 echo "$as_me:$LINENO: checking for $ac_func" >&5
36857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36858 if eval "test \"\${$as_ac_var+set}\" = set"; then
36859   echo $ECHO_N "(cached) $ECHO_C" >&6
36860 else
36861   cat >conftest.$ac_ext <<_ACEOF
36862 #line $LINENO "configure"
36863 /* confdefs.h.  */
36864 _ACEOF
36865 cat confdefs.h >>conftest.$ac_ext
36866 cat >>conftest.$ac_ext <<_ACEOF
36867 /* end confdefs.h.  */
36868 /* System header to define __stub macros and hopefully few prototypes,
36869     which can conflict with char $ac_func (); below.
36870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36871     <limits.h> exists even on freestanding compilers.  */
36872 #ifdef __STDC__
36873 # include <limits.h>
36874 #else
36875 # include <assert.h>
36876 #endif
36877 /* Override any gcc2 internal prototype to avoid an error.  */
36878 #ifdef __cplusplus
36879 extern "C"
36880 {
36881 #endif
36882 /* We use char because int might match the return type of a gcc2
36883    builtin and then its argument prototype would still apply.  */
36884 char $ac_func ();
36885 /* The GNU C library defines this for functions which it implements
36886     to always fail with ENOSYS.  Some functions are actually named
36887     something starting with __ and the normal name is an alias.  */
36888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36889 choke me
36890 #else
36891 char (*f) () = $ac_func;
36892 #endif
36893 #ifdef __cplusplus
36894 }
36895 #endif
36896
36897 int
36898 main ()
36899 {
36900 return f != $ac_func;
36901   ;
36902   return 0;
36903 }
36904 _ACEOF
36905 rm -f conftest.$ac_objext conftest$ac_exeext
36906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36907   (eval $ac_link) 2>&5
36908   ac_status=$?
36909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36910   (exit $ac_status); } &&
36911          { ac_try='test -s conftest$ac_exeext'
36912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36913   (eval $ac_try) 2>&5
36914   ac_status=$?
36915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36916   (exit $ac_status); }; }; then
36917   eval "$as_ac_var=yes"
36918 else
36919   echo "$as_me: failed program was:" >&5
36920 sed 's/^/| /' conftest.$ac_ext >&5
36921
36922 eval "$as_ac_var=no"
36923 fi
36924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36925 fi
36926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36928 if test `eval echo '${'$as_ac_var'}'` = yes; then
36929   cat >>confdefs.h <<_ACEOF
36930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36931 _ACEOF
36932
36933 fi
36934 done
36935
36936   fi
36937
36938
36939   echo "$as_me:$LINENO: checking for strtof declaration" >&5
36940 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
36941   if test x${glibcxx_cv_func_strtof_use+set} != xset; then
36942     if test "${glibcxx_cv_func_strtof_use+set}" = set; then
36943   echo $ECHO_N "(cached) $ECHO_C" >&6
36944 else
36945
36946
36947
36948       ac_ext=cc
36949 ac_cpp='$CXXCPP $CPPFLAGS'
36950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36953
36954       cat >conftest.$ac_ext <<_ACEOF
36955 #line $LINENO "configure"
36956 /* confdefs.h.  */
36957 _ACEOF
36958 cat confdefs.h >>conftest.$ac_ext
36959 cat >>conftest.$ac_ext <<_ACEOF
36960 /* end confdefs.h.  */
36961 #include <stdlib.h>
36962 int
36963 main ()
36964 {
36965  strtof(0, 0);
36966   ;
36967   return 0;
36968 }
36969 _ACEOF
36970 rm -f conftest.$ac_objext
36971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36972   (eval $ac_compile) 2>&5
36973   ac_status=$?
36974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36975   (exit $ac_status); } &&
36976          { ac_try='test -s conftest.$ac_objext'
36977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36978   (eval $ac_try) 2>&5
36979   ac_status=$?
36980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981   (exit $ac_status); }; }; then
36982   glibcxx_cv_func_strtof_use=yes
36983 else
36984   echo "$as_me: failed program was:" >&5
36985 sed 's/^/| /' conftest.$ac_ext >&5
36986
36987 glibcxx_cv_func_strtof_use=no
36988 fi
36989 rm -f conftest.$ac_objext conftest.$ac_ext
36990       ac_ext=c
36991 ac_cpp='$CPP $CPPFLAGS'
36992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36995
36996
36997 fi
36998
36999   fi
37000   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
37001 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
37002   if test x$glibcxx_cv_func_strtof_use = x"yes"; then
37003
37004 for ac_func in strtof
37005 do
37006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37007 echo "$as_me:$LINENO: checking for $ac_func" >&5
37008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37009 if eval "test \"\${$as_ac_var+set}\" = set"; then
37010   echo $ECHO_N "(cached) $ECHO_C" >&6
37011 else
37012   cat >conftest.$ac_ext <<_ACEOF
37013 #line $LINENO "configure"
37014 /* confdefs.h.  */
37015 _ACEOF
37016 cat confdefs.h >>conftest.$ac_ext
37017 cat >>conftest.$ac_ext <<_ACEOF
37018 /* end confdefs.h.  */
37019 /* System header to define __stub macros and hopefully few prototypes,
37020     which can conflict with char $ac_func (); below.
37021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37022     <limits.h> exists even on freestanding compilers.  */
37023 #ifdef __STDC__
37024 # include <limits.h>
37025 #else
37026 # include <assert.h>
37027 #endif
37028 /* Override any gcc2 internal prototype to avoid an error.  */
37029 #ifdef __cplusplus
37030 extern "C"
37031 {
37032 #endif
37033 /* We use char because int might match the return type of a gcc2
37034    builtin and then its argument prototype would still apply.  */
37035 char $ac_func ();
37036 /* The GNU C library defines this for functions which it implements
37037     to always fail with ENOSYS.  Some functions are actually named
37038     something starting with __ and the normal name is an alias.  */
37039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37040 choke me
37041 #else
37042 char (*f) () = $ac_func;
37043 #endif
37044 #ifdef __cplusplus
37045 }
37046 #endif
37047
37048 int
37049 main ()
37050 {
37051 return f != $ac_func;
37052   ;
37053   return 0;
37054 }
37055 _ACEOF
37056 rm -f conftest.$ac_objext conftest$ac_exeext
37057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37058   (eval $ac_link) 2>&5
37059   ac_status=$?
37060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37061   (exit $ac_status); } &&
37062          { ac_try='test -s conftest$ac_exeext'
37063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37064   (eval $ac_try) 2>&5
37065   ac_status=$?
37066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37067   (exit $ac_status); }; }; then
37068   eval "$as_ac_var=yes"
37069 else
37070   echo "$as_me: failed program was:" >&5
37071 sed 's/^/| /' conftest.$ac_ext >&5
37072
37073 eval "$as_ac_var=no"
37074 fi
37075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37076 fi
37077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37079 if test `eval echo '${'$as_ac_var'}'` = yes; then
37080   cat >>confdefs.h <<_ACEOF
37081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37082 _ACEOF
37083
37084 fi
37085 done
37086
37087   fi
37088
37089
37090 for ac_func in drand48
37091 do
37092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37093 echo "$as_me:$LINENO: checking for $ac_func" >&5
37094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37095 if eval "test \"\${$as_ac_var+set}\" = set"; then
37096   echo $ECHO_N "(cached) $ECHO_C" >&6
37097 else
37098   cat >conftest.$ac_ext <<_ACEOF
37099 #line $LINENO "configure"
37100 /* confdefs.h.  */
37101 _ACEOF
37102 cat confdefs.h >>conftest.$ac_ext
37103 cat >>conftest.$ac_ext <<_ACEOF
37104 /* end confdefs.h.  */
37105 /* System header to define __stub macros and hopefully few prototypes,
37106     which can conflict with char $ac_func (); below.
37107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37108     <limits.h> exists even on freestanding compilers.  */
37109 #ifdef __STDC__
37110 # include <limits.h>
37111 #else
37112 # include <assert.h>
37113 #endif
37114 /* Override any gcc2 internal prototype to avoid an error.  */
37115 #ifdef __cplusplus
37116 extern "C"
37117 {
37118 #endif
37119 /* We use char because int might match the return type of a gcc2
37120    builtin and then its argument prototype would still apply.  */
37121 char $ac_func ();
37122 /* The GNU C library defines this for functions which it implements
37123     to always fail with ENOSYS.  Some functions are actually named
37124     something starting with __ and the normal name is an alias.  */
37125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37126 choke me
37127 #else
37128 char (*f) () = $ac_func;
37129 #endif
37130 #ifdef __cplusplus
37131 }
37132 #endif
37133
37134 int
37135 main ()
37136 {
37137 return f != $ac_func;
37138   ;
37139   return 0;
37140 }
37141 _ACEOF
37142 rm -f conftest.$ac_objext conftest$ac_exeext
37143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37144   (eval $ac_link) 2>&5
37145   ac_status=$?
37146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37147   (exit $ac_status); } &&
37148          { ac_try='test -s conftest$ac_exeext'
37149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37150   (eval $ac_try) 2>&5
37151   ac_status=$?
37152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37153   (exit $ac_status); }; }; then
37154   eval "$as_ac_var=yes"
37155 else
37156   echo "$as_me: failed program was:" >&5
37157 sed 's/^/| /' conftest.$ac_ext >&5
37158
37159 eval "$as_ac_var=no"
37160 fi
37161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37162 fi
37163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37165 if test `eval echo '${'$as_ac_var'}'` = yes; then
37166   cat >>confdefs.h <<_ACEOF
37167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37168 _ACEOF
37169
37170 fi
37171 done
37172
37173
37174   CXXFLAGS="$ac_save_CXXFLAGS"
37175
37176
37177   # For showmanyc_helper().
37178
37179
37180 for ac_header in sys/ioctl.h sys/filio.h
37181 do
37182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37184   echo "$as_me:$LINENO: checking for $ac_header" >&5
37185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37187   echo $ECHO_N "(cached) $ECHO_C" >&6
37188 fi
37189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37191 else
37192   # Is the header compilable?
37193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37195 cat >conftest.$ac_ext <<_ACEOF
37196 #line $LINENO "configure"
37197 /* confdefs.h.  */
37198 _ACEOF
37199 cat confdefs.h >>conftest.$ac_ext
37200 cat >>conftest.$ac_ext <<_ACEOF
37201 /* end confdefs.h.  */
37202 $ac_includes_default
37203 #include <$ac_header>
37204 _ACEOF
37205 rm -f conftest.$ac_objext
37206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37207   (eval $ac_compile) 2>&5
37208   ac_status=$?
37209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37210   (exit $ac_status); } &&
37211          { ac_try='test -s conftest.$ac_objext'
37212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37213   (eval $ac_try) 2>&5
37214   ac_status=$?
37215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37216   (exit $ac_status); }; }; then
37217   ac_header_compiler=yes
37218 else
37219   echo "$as_me: failed program was:" >&5
37220 sed 's/^/| /' conftest.$ac_ext >&5
37221
37222 ac_header_compiler=no
37223 fi
37224 rm -f conftest.$ac_objext conftest.$ac_ext
37225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37226 echo "${ECHO_T}$ac_header_compiler" >&6
37227
37228 # Is the header present?
37229 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37231 cat >conftest.$ac_ext <<_ACEOF
37232 #line $LINENO "configure"
37233 /* confdefs.h.  */
37234 _ACEOF
37235 cat confdefs.h >>conftest.$ac_ext
37236 cat >>conftest.$ac_ext <<_ACEOF
37237 /* end confdefs.h.  */
37238 #include <$ac_header>
37239 _ACEOF
37240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37241   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37242   ac_status=$?
37243   grep -v '^ *+' conftest.er1 >conftest.err
37244   rm -f conftest.er1
37245   cat conftest.err >&5
37246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247   (exit $ac_status); } >/dev/null; then
37248   if test -s conftest.err; then
37249     ac_cpp_err=$ac_c_preproc_warn_flag
37250   else
37251     ac_cpp_err=
37252   fi
37253 else
37254   ac_cpp_err=yes
37255 fi
37256 if test -z "$ac_cpp_err"; then
37257   ac_header_preproc=yes
37258 else
37259   echo "$as_me: failed program was:" >&5
37260 sed 's/^/| /' conftest.$ac_ext >&5
37261
37262   ac_header_preproc=no
37263 fi
37264 rm -f conftest.err conftest.$ac_ext
37265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37266 echo "${ECHO_T}$ac_header_preproc" >&6
37267
37268 # So?  What about this header?
37269 case $ac_header_compiler:$ac_header_preproc in
37270   yes:no )
37271     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37275     (
37276       cat <<\_ASBOX
37277 ## ------------------------------------ ##
37278 ## Report this to bug-autoconf@gnu.org. ##
37279 ## ------------------------------------ ##
37280 _ASBOX
37281     ) |
37282       sed "s/^/$as_me: WARNING:     /" >&2
37283     ;;
37284   no:yes )
37285     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37287     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37291     (
37292       cat <<\_ASBOX
37293 ## ------------------------------------ ##
37294 ## Report this to bug-autoconf@gnu.org. ##
37295 ## ------------------------------------ ##
37296 _ASBOX
37297     ) |
37298       sed "s/^/$as_me: WARNING:     /" >&2
37299     ;;
37300 esac
37301 echo "$as_me:$LINENO: checking for $ac_header" >&5
37302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37304   echo $ECHO_N "(cached) $ECHO_C" >&6
37305 else
37306   eval "$as_ac_Header=$ac_header_preproc"
37307 fi
37308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37310
37311 fi
37312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37313   cat >>confdefs.h <<_ACEOF
37314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37315 _ACEOF
37316
37317 fi
37318
37319 done
37320
37321
37322   if test "${glibcxx_cv_POLL+set}" = set; then
37323   echo $ECHO_N "(cached) $ECHO_C" >&6
37324 else
37325
37326     cat >conftest.$ac_ext <<_ACEOF
37327 #line $LINENO "configure"
37328 /* confdefs.h.  */
37329 _ACEOF
37330 cat confdefs.h >>conftest.$ac_ext
37331 cat >>conftest.$ac_ext <<_ACEOF
37332 /* end confdefs.h.  */
37333 #include <poll.h>
37334 int
37335 main ()
37336 {
37337 struct pollfd pfd[1];
37338        pfd[0].events = POLLIN;
37339        poll(pfd, 1, 0);
37340   ;
37341   return 0;
37342 }
37343 _ACEOF
37344 rm -f conftest.$ac_objext
37345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37346   (eval $ac_compile) 2>&5
37347   ac_status=$?
37348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37349   (exit $ac_status); } &&
37350          { ac_try='test -s conftest.$ac_objext'
37351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37352   (eval $ac_try) 2>&5
37353   ac_status=$?
37354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355   (exit $ac_status); }; }; then
37356   glibcxx_cv_POLL=yes
37357 else
37358   echo "$as_me: failed program was:" >&5
37359 sed 's/^/| /' conftest.$ac_ext >&5
37360
37361 glibcxx_cv_POLL=no
37362 fi
37363 rm -f conftest.$ac_objext conftest.$ac_ext
37364
37365 fi
37366
37367   if test $glibcxx_cv_POLL = yes; then
37368     cat >>confdefs.h <<\_ACEOF
37369 #define HAVE_POLL 1
37370 _ACEOF
37371
37372   fi
37373
37374
37375   if test "${glibcxx_cv_S_ISREG+set}" = set; then
37376   echo $ECHO_N "(cached) $ECHO_C" >&6
37377 else
37378
37379     cat >conftest.$ac_ext <<_ACEOF
37380 #line $LINENO "configure"
37381 /* confdefs.h.  */
37382 _ACEOF
37383 cat confdefs.h >>conftest.$ac_ext
37384 cat >>conftest.$ac_ext <<_ACEOF
37385 /* end confdefs.h.  */
37386 #include <sys/stat.h>
37387 int
37388 main ()
37389 {
37390 struct stat buffer;
37391        fstat(0, &buffer);
37392        S_ISREG(buffer.st_mode);
37393   ;
37394   return 0;
37395 }
37396 _ACEOF
37397 rm -f conftest.$ac_objext conftest$ac_exeext
37398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37399   (eval $ac_link) 2>&5
37400   ac_status=$?
37401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37402   (exit $ac_status); } &&
37403          { ac_try='test -s conftest$ac_exeext'
37404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37405   (eval $ac_try) 2>&5
37406   ac_status=$?
37407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37408   (exit $ac_status); }; }; then
37409   glibcxx_cv_S_ISREG=yes
37410 else
37411   echo "$as_me: failed program was:" >&5
37412 sed 's/^/| /' conftest.$ac_ext >&5
37413
37414 glibcxx_cv_S_ISREG=no
37415 fi
37416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37417
37418 fi
37419
37420   if test "${glibcxx_cv_S_IFREG+set}" = set; then
37421   echo $ECHO_N "(cached) $ECHO_C" >&6
37422 else
37423
37424     cat >conftest.$ac_ext <<_ACEOF
37425 #line $LINENO "configure"
37426 /* confdefs.h.  */
37427 _ACEOF
37428 cat confdefs.h >>conftest.$ac_ext
37429 cat >>conftest.$ac_ext <<_ACEOF
37430 /* end confdefs.h.  */
37431 #include <sys/stat.h>
37432 int
37433 main ()
37434 {
37435 struct stat buffer;
37436        fstat(0, &buffer);
37437        S_IFREG & buffer.st_mode;
37438   ;
37439   return 0;
37440 }
37441 _ACEOF
37442 rm -f conftest.$ac_objext conftest$ac_exeext
37443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37444   (eval $ac_link) 2>&5
37445   ac_status=$?
37446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447   (exit $ac_status); } &&
37448          { ac_try='test -s conftest$ac_exeext'
37449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37450   (eval $ac_try) 2>&5
37451   ac_status=$?
37452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453   (exit $ac_status); }; }; then
37454   glibcxx_cv_S_IFREG=yes
37455 else
37456   echo "$as_me: failed program was:" >&5
37457 sed 's/^/| /' conftest.$ac_ext >&5
37458
37459 glibcxx_cv_S_IFREG=no
37460 fi
37461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37462
37463 fi
37464
37465   if test $glibcxx_cv_S_ISREG = yes; then
37466     cat >>confdefs.h <<\_ACEOF
37467 #define HAVE_S_ISREG 1
37468 _ACEOF
37469
37470   elif test $glibcxx_cv_S_IFREG = yes; then
37471     cat >>confdefs.h <<\_ACEOF
37472 #define HAVE_S_IFREG 1
37473 _ACEOF
37474
37475   fi
37476
37477
37478   # For xsputn_2().
37479
37480 for ac_header in sys/uio.h
37481 do
37482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37484   echo "$as_me:$LINENO: checking for $ac_header" >&5
37485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37487   echo $ECHO_N "(cached) $ECHO_C" >&6
37488 fi
37489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37491 else
37492   # Is the header compilable?
37493 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37495 cat >conftest.$ac_ext <<_ACEOF
37496 #line $LINENO "configure"
37497 /* confdefs.h.  */
37498 _ACEOF
37499 cat confdefs.h >>conftest.$ac_ext
37500 cat >>conftest.$ac_ext <<_ACEOF
37501 /* end confdefs.h.  */
37502 $ac_includes_default
37503 #include <$ac_header>
37504 _ACEOF
37505 rm -f conftest.$ac_objext
37506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37507   (eval $ac_compile) 2>&5
37508   ac_status=$?
37509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37510   (exit $ac_status); } &&
37511          { ac_try='test -s conftest.$ac_objext'
37512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37513   (eval $ac_try) 2>&5
37514   ac_status=$?
37515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37516   (exit $ac_status); }; }; then
37517   ac_header_compiler=yes
37518 else
37519   echo "$as_me: failed program was:" >&5
37520 sed 's/^/| /' conftest.$ac_ext >&5
37521
37522 ac_header_compiler=no
37523 fi
37524 rm -f conftest.$ac_objext conftest.$ac_ext
37525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37526 echo "${ECHO_T}$ac_header_compiler" >&6
37527
37528 # Is the header present?
37529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37531 cat >conftest.$ac_ext <<_ACEOF
37532 #line $LINENO "configure"
37533 /* confdefs.h.  */
37534 _ACEOF
37535 cat confdefs.h >>conftest.$ac_ext
37536 cat >>conftest.$ac_ext <<_ACEOF
37537 /* end confdefs.h.  */
37538 #include <$ac_header>
37539 _ACEOF
37540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37541   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37542   ac_status=$?
37543   grep -v '^ *+' conftest.er1 >conftest.err
37544   rm -f conftest.er1
37545   cat conftest.err >&5
37546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37547   (exit $ac_status); } >/dev/null; then
37548   if test -s conftest.err; then
37549     ac_cpp_err=$ac_c_preproc_warn_flag
37550   else
37551     ac_cpp_err=
37552   fi
37553 else
37554   ac_cpp_err=yes
37555 fi
37556 if test -z "$ac_cpp_err"; then
37557   ac_header_preproc=yes
37558 else
37559   echo "$as_me: failed program was:" >&5
37560 sed 's/^/| /' conftest.$ac_ext >&5
37561
37562   ac_header_preproc=no
37563 fi
37564 rm -f conftest.err conftest.$ac_ext
37565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37566 echo "${ECHO_T}$ac_header_preproc" >&6
37567
37568 # So?  What about this header?
37569 case $ac_header_compiler:$ac_header_preproc in
37570   yes:no )
37571     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37575     (
37576       cat <<\_ASBOX
37577 ## ------------------------------------ ##
37578 ## Report this to bug-autoconf@gnu.org. ##
37579 ## ------------------------------------ ##
37580 _ASBOX
37581     ) |
37582       sed "s/^/$as_me: WARNING:     /" >&2
37583     ;;
37584   no:yes )
37585     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37587     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37591     (
37592       cat <<\_ASBOX
37593 ## ------------------------------------ ##
37594 ## Report this to bug-autoconf@gnu.org. ##
37595 ## ------------------------------------ ##
37596 _ASBOX
37597     ) |
37598       sed "s/^/$as_me: WARNING:     /" >&2
37599     ;;
37600 esac
37601 echo "$as_me:$LINENO: checking for $ac_header" >&5
37602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37604   echo $ECHO_N "(cached) $ECHO_C" >&6
37605 else
37606   eval "$as_ac_Header=$ac_header_preproc"
37607 fi
37608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37610
37611 fi
37612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37613   cat >>confdefs.h <<_ACEOF
37614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37615 _ACEOF
37616
37617 fi
37618
37619 done
37620
37621
37622   if test "${glibcxx_cv_WRITEV+set}" = set; then
37623   echo $ECHO_N "(cached) $ECHO_C" >&6
37624 else
37625
37626     cat >conftest.$ac_ext <<_ACEOF
37627 #line $LINENO "configure"
37628 /* confdefs.h.  */
37629 _ACEOF
37630 cat confdefs.h >>conftest.$ac_ext
37631 cat >>conftest.$ac_ext <<_ACEOF
37632 /* end confdefs.h.  */
37633 #include <sys/uio.h>
37634 int
37635 main ()
37636 {
37637 struct iovec iov[2];
37638        writev(0, iov, 0);
37639   ;
37640   return 0;
37641 }
37642 _ACEOF
37643 rm -f conftest.$ac_objext
37644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37645   (eval $ac_compile) 2>&5
37646   ac_status=$?
37647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37648   (exit $ac_status); } &&
37649          { ac_try='test -s conftest.$ac_objext'
37650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37651   (eval $ac_try) 2>&5
37652   ac_status=$?
37653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654   (exit $ac_status); }; }; then
37655   glibcxx_cv_WRITEV=yes
37656 else
37657   echo "$as_me: failed program was:" >&5
37658 sed 's/^/| /' conftest.$ac_ext >&5
37659
37660 glibcxx_cv_WRITEV=no
37661 fi
37662 rm -f conftest.$ac_objext conftest.$ac_ext
37663
37664 fi
37665
37666   if test $glibcxx_cv_WRITEV = yes; then
37667     cat >>confdefs.h <<\_ACEOF
37668 #define HAVE_WRITEV 1
37669 _ACEOF
37670
37671   fi
37672
37673
37674
37675   if test "${ac_cv_header_locale_h+set}" = set; then
37676   echo "$as_me:$LINENO: checking for locale.h" >&5
37677 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
37678 if test "${ac_cv_header_locale_h+set}" = set; then
37679   echo $ECHO_N "(cached) $ECHO_C" >&6
37680 fi
37681 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
37682 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
37683 else
37684   # Is the header compilable?
37685 echo "$as_me:$LINENO: checking locale.h usability" >&5
37686 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
37687 cat >conftest.$ac_ext <<_ACEOF
37688 #line $LINENO "configure"
37689 /* confdefs.h.  */
37690 _ACEOF
37691 cat confdefs.h >>conftest.$ac_ext
37692 cat >>conftest.$ac_ext <<_ACEOF
37693 /* end confdefs.h.  */
37694 $ac_includes_default
37695 #include <locale.h>
37696 _ACEOF
37697 rm -f conftest.$ac_objext
37698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37699   (eval $ac_compile) 2>&5
37700   ac_status=$?
37701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37702   (exit $ac_status); } &&
37703          { ac_try='test -s conftest.$ac_objext'
37704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37705   (eval $ac_try) 2>&5
37706   ac_status=$?
37707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37708   (exit $ac_status); }; }; then
37709   ac_header_compiler=yes
37710 else
37711   echo "$as_me: failed program was:" >&5
37712 sed 's/^/| /' conftest.$ac_ext >&5
37713
37714 ac_header_compiler=no
37715 fi
37716 rm -f conftest.$ac_objext conftest.$ac_ext
37717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37718 echo "${ECHO_T}$ac_header_compiler" >&6
37719
37720 # Is the header present?
37721 echo "$as_me:$LINENO: checking locale.h presence" >&5
37722 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
37723 cat >conftest.$ac_ext <<_ACEOF
37724 #line $LINENO "configure"
37725 /* confdefs.h.  */
37726 _ACEOF
37727 cat confdefs.h >>conftest.$ac_ext
37728 cat >>conftest.$ac_ext <<_ACEOF
37729 /* end confdefs.h.  */
37730 #include <locale.h>
37731 _ACEOF
37732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37733   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37734   ac_status=$?
37735   grep -v '^ *+' conftest.er1 >conftest.err
37736   rm -f conftest.er1
37737   cat conftest.err >&5
37738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37739   (exit $ac_status); } >/dev/null; then
37740   if test -s conftest.err; then
37741     ac_cpp_err=$ac_c_preproc_warn_flag
37742   else
37743     ac_cpp_err=
37744   fi
37745 else
37746   ac_cpp_err=yes
37747 fi
37748 if test -z "$ac_cpp_err"; then
37749   ac_header_preproc=yes
37750 else
37751   echo "$as_me: failed program was:" >&5
37752 sed 's/^/| /' conftest.$ac_ext >&5
37753
37754   ac_header_preproc=no
37755 fi
37756 rm -f conftest.err conftest.$ac_ext
37757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37758 echo "${ECHO_T}$ac_header_preproc" >&6
37759
37760 # So?  What about this header?
37761 case $ac_header_compiler:$ac_header_preproc in
37762   yes:no )
37763     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
37764 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37765     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
37766 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
37767     (
37768       cat <<\_ASBOX
37769 ## ------------------------------------ ##
37770 ## Report this to bug-autoconf@gnu.org. ##
37771 ## ------------------------------------ ##
37772 _ASBOX
37773     ) |
37774       sed "s/^/$as_me: WARNING:     /" >&2
37775     ;;
37776   no:yes )
37777     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
37778 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
37779     { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
37780 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
37781     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
37782 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
37783     (
37784       cat <<\_ASBOX
37785 ## ------------------------------------ ##
37786 ## Report this to bug-autoconf@gnu.org. ##
37787 ## ------------------------------------ ##
37788 _ASBOX
37789     ) |
37790       sed "s/^/$as_me: WARNING:     /" >&2
37791     ;;
37792 esac
37793 echo "$as_me:$LINENO: checking for locale.h" >&5
37794 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
37795 if test "${ac_cv_header_locale_h+set}" = set; then
37796   echo $ECHO_N "(cached) $ECHO_C" >&6
37797 else
37798   ac_cv_header_locale_h=$ac_header_preproc
37799 fi
37800 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
37801 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
37802
37803 fi
37804 if test $ac_cv_header_locale_h = yes; then
37805
37806     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
37807 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
37808 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
37809   echo $ECHO_N "(cached) $ECHO_C" >&6
37810 else
37811   cat >conftest.$ac_ext <<_ACEOF
37812 #line $LINENO "configure"
37813 /* confdefs.h.  */
37814 _ACEOF
37815 cat confdefs.h >>conftest.$ac_ext
37816 cat >>conftest.$ac_ext <<_ACEOF
37817 /* end confdefs.h.  */
37818 #include <locale.h>
37819 int
37820 main ()
37821 {
37822 return LC_MESSAGES
37823   ;
37824   return 0;
37825 }
37826 _ACEOF
37827 rm -f conftest.$ac_objext conftest$ac_exeext
37828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37829   (eval $ac_link) 2>&5
37830   ac_status=$?
37831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37832   (exit $ac_status); } &&
37833          { ac_try='test -s conftest$ac_exeext'
37834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37835   (eval $ac_try) 2>&5
37836   ac_status=$?
37837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37838   (exit $ac_status); }; }; then
37839   ac_cv_val_LC_MESSAGES=yes
37840 else
37841   echo "$as_me: failed program was:" >&5
37842 sed 's/^/| /' conftest.$ac_ext >&5
37843
37844 ac_cv_val_LC_MESSAGES=no
37845 fi
37846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37847 fi
37848 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
37849 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
37850     if test $ac_cv_val_LC_MESSAGES = yes; then
37851       cat >>confdefs.h <<\_ACEOF
37852 #define HAVE_LC_MESSAGES 1
37853 _ACEOF
37854
37855     fi
37856
37857 fi
37858
37859
37860
37861
37862   cat >conftest.$ac_ext <<_ACEOF
37863 #line $LINENO "configure"
37864 /* confdefs.h.  */
37865 _ACEOF
37866 cat confdefs.h >>conftest.$ac_ext
37867 cat >>conftest.$ac_ext <<_ACEOF
37868 /* end confdefs.h.  */
37869 #include <setjmp.h>
37870 int
37871 main ()
37872 {
37873 sigjmp_buf env;
37874      while (! sigsetjmp (env, 1))
37875        siglongjmp (env, 1);
37876
37877   ;
37878   return 0;
37879 }
37880 _ACEOF
37881 rm -f conftest.$ac_objext
37882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37883   (eval $ac_compile) 2>&5
37884   ac_status=$?
37885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886   (exit $ac_status); } &&
37887          { ac_try='test -s conftest.$ac_objext'
37888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37889   (eval $ac_try) 2>&5
37890   ac_status=$?
37891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37892   (exit $ac_status); }; }; then
37893
37894 cat >>confdefs.h <<\_ACEOF
37895 #define HAVE_SIGSETJMP 1
37896 _ACEOF
37897
37898 else
37899   echo "$as_me: failed program was:" >&5
37900 sed 's/^/| /' conftest.$ac_ext >&5
37901
37902 fi
37903 rm -f conftest.$ac_objext conftest.$ac_ext
37904
37905
37906
37907 for ac_header in stdlib.h unistd.h
37908 do
37909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37911   echo "$as_me:$LINENO: checking for $ac_header" >&5
37912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37914   echo $ECHO_N "(cached) $ECHO_C" >&6
37915 fi
37916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37918 else
37919   # Is the header compilable?
37920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37922 cat >conftest.$ac_ext <<_ACEOF
37923 #line $LINENO "configure"
37924 /* confdefs.h.  */
37925 _ACEOF
37926 cat confdefs.h >>conftest.$ac_ext
37927 cat >>conftest.$ac_ext <<_ACEOF
37928 /* end confdefs.h.  */
37929 $ac_includes_default
37930 #include <$ac_header>
37931 _ACEOF
37932 rm -f conftest.$ac_objext
37933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37934   (eval $ac_compile) 2>&5
37935   ac_status=$?
37936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937   (exit $ac_status); } &&
37938          { ac_try='test -s conftest.$ac_objext'
37939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37940   (eval $ac_try) 2>&5
37941   ac_status=$?
37942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943   (exit $ac_status); }; }; then
37944   ac_header_compiler=yes
37945 else
37946   echo "$as_me: failed program was:" >&5
37947 sed 's/^/| /' conftest.$ac_ext >&5
37948
37949 ac_header_compiler=no
37950 fi
37951 rm -f conftest.$ac_objext conftest.$ac_ext
37952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37953 echo "${ECHO_T}$ac_header_compiler" >&6
37954
37955 # Is the header present?
37956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37958 cat >conftest.$ac_ext <<_ACEOF
37959 #line $LINENO "configure"
37960 /* confdefs.h.  */
37961 _ACEOF
37962 cat confdefs.h >>conftest.$ac_ext
37963 cat >>conftest.$ac_ext <<_ACEOF
37964 /* end confdefs.h.  */
37965 #include <$ac_header>
37966 _ACEOF
37967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37969   ac_status=$?
37970   grep -v '^ *+' conftest.er1 >conftest.err
37971   rm -f conftest.er1
37972   cat conftest.err >&5
37973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37974   (exit $ac_status); } >/dev/null; then
37975   if test -s conftest.err; then
37976     ac_cpp_err=$ac_c_preproc_warn_flag
37977   else
37978     ac_cpp_err=
37979   fi
37980 else
37981   ac_cpp_err=yes
37982 fi
37983 if test -z "$ac_cpp_err"; then
37984   ac_header_preproc=yes
37985 else
37986   echo "$as_me: failed program was:" >&5
37987 sed 's/^/| /' conftest.$ac_ext >&5
37988
37989   ac_header_preproc=no
37990 fi
37991 rm -f conftest.err conftest.$ac_ext
37992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37993 echo "${ECHO_T}$ac_header_preproc" >&6
37994
37995 # So?  What about this header?
37996 case $ac_header_compiler:$ac_header_preproc in
37997   yes:no )
37998     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38002     (
38003       cat <<\_ASBOX
38004 ## ------------------------------------ ##
38005 ## Report this to bug-autoconf@gnu.org. ##
38006 ## ------------------------------------ ##
38007 _ASBOX
38008     ) |
38009       sed "s/^/$as_me: WARNING:     /" >&2
38010     ;;
38011   no:yes )
38012     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38014     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38018     (
38019       cat <<\_ASBOX
38020 ## ------------------------------------ ##
38021 ## Report this to bug-autoconf@gnu.org. ##
38022 ## ------------------------------------ ##
38023 _ASBOX
38024     ) |
38025       sed "s/^/$as_me: WARNING:     /" >&2
38026     ;;
38027 esac
38028 echo "$as_me:$LINENO: checking for $ac_header" >&5
38029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38031   echo $ECHO_N "(cached) $ECHO_C" >&6
38032 else
38033   eval "$as_ac_Header=$ac_header_preproc"
38034 fi
38035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38037
38038 fi
38039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38040   cat >>confdefs.h <<_ACEOF
38041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38042 _ACEOF
38043
38044 fi
38045
38046 done
38047
38048
38049 for ac_func in getpagesize
38050 do
38051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38052 echo "$as_me:$LINENO: checking for $ac_func" >&5
38053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38054 if eval "test \"\${$as_ac_var+set}\" = set"; then
38055   echo $ECHO_N "(cached) $ECHO_C" >&6
38056 else
38057   cat >conftest.$ac_ext <<_ACEOF
38058 #line $LINENO "configure"
38059 /* confdefs.h.  */
38060 _ACEOF
38061 cat confdefs.h >>conftest.$ac_ext
38062 cat >>conftest.$ac_ext <<_ACEOF
38063 /* end confdefs.h.  */
38064 /* System header to define __stub macros and hopefully few prototypes,
38065     which can conflict with char $ac_func (); below.
38066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38067     <limits.h> exists even on freestanding compilers.  */
38068 #ifdef __STDC__
38069 # include <limits.h>
38070 #else
38071 # include <assert.h>
38072 #endif
38073 /* Override any gcc2 internal prototype to avoid an error.  */
38074 #ifdef __cplusplus
38075 extern "C"
38076 {
38077 #endif
38078 /* We use char because int might match the return type of a gcc2
38079    builtin and then its argument prototype would still apply.  */
38080 char $ac_func ();
38081 /* The GNU C library defines this for functions which it implements
38082     to always fail with ENOSYS.  Some functions are actually named
38083     something starting with __ and the normal name is an alias.  */
38084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38085 choke me
38086 #else
38087 char (*f) () = $ac_func;
38088 #endif
38089 #ifdef __cplusplus
38090 }
38091 #endif
38092
38093 int
38094 main ()
38095 {
38096 return f != $ac_func;
38097   ;
38098   return 0;
38099 }
38100 _ACEOF
38101 rm -f conftest.$ac_objext conftest$ac_exeext
38102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38103   (eval $ac_link) 2>&5
38104   ac_status=$?
38105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38106   (exit $ac_status); } &&
38107          { ac_try='test -s conftest$ac_exeext'
38108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38109   (eval $ac_try) 2>&5
38110   ac_status=$?
38111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38112   (exit $ac_status); }; }; then
38113   eval "$as_ac_var=yes"
38114 else
38115   echo "$as_me: failed program was:" >&5
38116 sed 's/^/| /' conftest.$ac_ext >&5
38117
38118 eval "$as_ac_var=no"
38119 fi
38120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38121 fi
38122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38124 if test `eval echo '${'$as_ac_var'}'` = yes; then
38125   cat >>confdefs.h <<_ACEOF
38126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38127 _ACEOF
38128
38129 fi
38130 done
38131
38132 echo "$as_me:$LINENO: checking for working mmap" >&5
38133 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
38134 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
38135   echo $ECHO_N "(cached) $ECHO_C" >&6
38136 else
38137   if test "$cross_compiling" = yes; then
38138   ac_cv_func_mmap_fixed_mapped=no
38139 else
38140   cat >conftest.$ac_ext <<_ACEOF
38141 #line $LINENO "configure"
38142 /* confdefs.h.  */
38143 _ACEOF
38144 cat confdefs.h >>conftest.$ac_ext
38145 cat >>conftest.$ac_ext <<_ACEOF
38146 /* end confdefs.h.  */
38147 $ac_includes_default
38148 /* malloc might have been renamed as rpl_malloc. */
38149 #undef malloc
38150
38151 /* Thanks to Mike Haertel and Jim Avera for this test.
38152    Here is a matrix of mmap possibilities:
38153         mmap private not fixed
38154         mmap private fixed at somewhere currently unmapped
38155         mmap private fixed at somewhere already mapped
38156         mmap shared not fixed
38157         mmap shared fixed at somewhere currently unmapped
38158         mmap shared fixed at somewhere already mapped
38159    For private mappings, we should verify that changes cannot be read()
38160    back from the file, nor mmap's back from the file at a different
38161    address.  (There have been systems where private was not correctly
38162    implemented like the infamous i386 svr4.0, and systems where the
38163    VM page cache was not coherent with the file system buffer cache
38164    like early versions of FreeBSD and possibly contemporary NetBSD.)
38165    For shared mappings, we should conversely verify that changes get
38166    propagated back to all the places they're supposed to be.
38167
38168    Grep wants private fixed already mapped.
38169    The main things grep needs to know about mmap are:
38170    * does it exist and is it safe to write into the mmap'd area
38171    * how to use it (BSD variants)  */
38172
38173 #include <fcntl.h>
38174 #include <sys/mman.h>
38175
38176 #if !STDC_HEADERS && !HAVE_STDLIB_H
38177 char *malloc ();
38178 #endif
38179
38180 /* This mess was copied from the GNU getpagesize.h.  */
38181 #if !HAVE_GETPAGESIZE
38182 /* Assume that all systems that can run configure have sys/param.h.  */
38183 # if !HAVE_SYS_PARAM_H
38184 #  define HAVE_SYS_PARAM_H 1
38185 # endif
38186
38187 # ifdef _SC_PAGESIZE
38188 #  define getpagesize() sysconf(_SC_PAGESIZE)
38189 # else /* no _SC_PAGESIZE */
38190 #  if HAVE_SYS_PARAM_H
38191 #   include <sys/param.h>
38192 #   ifdef EXEC_PAGESIZE
38193 #    define getpagesize() EXEC_PAGESIZE
38194 #   else /* no EXEC_PAGESIZE */
38195 #    ifdef NBPG
38196 #     define getpagesize() NBPG * CLSIZE
38197 #     ifndef CLSIZE
38198 #      define CLSIZE 1
38199 #     endif /* no CLSIZE */
38200 #    else /* no NBPG */
38201 #     ifdef NBPC
38202 #      define getpagesize() NBPC
38203 #     else /* no NBPC */
38204 #      ifdef PAGESIZE
38205 #       define getpagesize() PAGESIZE
38206 #      endif /* PAGESIZE */
38207 #     endif /* no NBPC */
38208 #    endif /* no NBPG */
38209 #   endif /* no EXEC_PAGESIZE */
38210 #  else /* no HAVE_SYS_PARAM_H */
38211 #   define getpagesize() 8192   /* punt totally */
38212 #  endif /* no HAVE_SYS_PARAM_H */
38213 # endif /* no _SC_PAGESIZE */
38214
38215 #endif /* no HAVE_GETPAGESIZE */
38216
38217 int
38218 main ()
38219 {
38220   char *data, *data2, *data3;
38221   int i, pagesize;
38222   int fd;
38223
38224   pagesize = getpagesize ();
38225
38226   /* First, make a file with some known garbage in it. */
38227   data = (char *) malloc (pagesize);
38228   if (!data)
38229     exit (1);
38230   for (i = 0; i < pagesize; ++i)
38231     *(data + i) = rand ();
38232   umask (0);
38233   fd = creat ("conftest.mmap", 0600);
38234   if (fd < 0)
38235     exit (1);
38236   if (write (fd, data, pagesize) != pagesize)
38237     exit (1);
38238   close (fd);
38239
38240   /* Next, try to mmap the file at a fixed address which already has
38241      something else allocated at it.  If we can, also make sure that
38242      we see the same garbage.  */
38243   fd = open ("conftest.mmap", O_RDWR);
38244   if (fd < 0)
38245     exit (1);
38246   data2 = (char *) malloc (2 * pagesize);
38247   if (!data2)
38248     exit (1);
38249   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
38250   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
38251                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
38252     exit (1);
38253   for (i = 0; i < pagesize; ++i)
38254     if (*(data + i) != *(data2 + i))
38255       exit (1);
38256
38257   /* Finally, make sure that changes to the mapped area do not
38258      percolate back to the file as seen by read().  (This is a bug on
38259      some variants of i386 svr4.0.)  */
38260   for (i = 0; i < pagesize; ++i)
38261     *(data2 + i) = *(data2 + i) + 1;
38262   data3 = (char *) malloc (pagesize);
38263   if (!data3)
38264     exit (1);
38265   if (read (fd, data3, pagesize) != pagesize)
38266     exit (1);
38267   for (i = 0; i < pagesize; ++i)
38268     if (*(data + i) != *(data3 + i))
38269       exit (1);
38270   close (fd);
38271   exit (0);
38272 }
38273 _ACEOF
38274 rm -f conftest$ac_exeext
38275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38276   (eval $ac_link) 2>&5
38277   ac_status=$?
38278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38281   (eval $ac_try) 2>&5
38282   ac_status=$?
38283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38284   (exit $ac_status); }; }; then
38285   ac_cv_func_mmap_fixed_mapped=yes
38286 else
38287   echo "$as_me: program exited with status $ac_status" >&5
38288 echo "$as_me: failed program was:" >&5
38289 sed 's/^/| /' conftest.$ac_ext >&5
38290
38291 ( exit $ac_status )
38292 ac_cv_func_mmap_fixed_mapped=no
38293 fi
38294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38295 fi
38296 fi
38297 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
38298 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
38299 if test $ac_cv_func_mmap_fixed_mapped = yes; then
38300
38301 cat >>confdefs.h <<\_ACEOF
38302 #define HAVE_MMAP 1
38303 _ACEOF
38304
38305 fi
38306 rm -f conftest.mmap
38307
38308 fi
38309
38310 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
38311
38312
38313  # Check whether --enable-symvers or --disable-symvers was given.
38314 if test "${enable_symvers+set}" = set; then
38315   enableval="$enable_symvers"
38316
38317       case "$enableval" in
38318        yes|no|gnu) ;;
38319        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
38320 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
38321    { (exit 1); exit 1; }; } ;;
38322                           esac
38323
38324 else
38325   enable_symvers=yes
38326 fi;
38327
38328
38329 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
38330 # don't know enough about $LD to do tricks...
38331
38332 # FIXME  The following test is too strict, in theory.
38333 if test $enable_shared = no ||
38334         test "x$LD" = x ||
38335         test x$glibcxx_gnu_ld_version = x; then
38336   enable_symvers=no
38337 fi
38338
38339 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
38340 if test $enable_symvers != no; then
38341   echo "$as_me:$LINENO: checking for shared libgcc" >&5
38342 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
38343   ac_save_CFLAGS="$CFLAGS"
38344   CFLAGS=' -lgcc_s'
38345   cat >conftest.$ac_ext <<_ACEOF
38346 #line $LINENO "configure"
38347 /* confdefs.h.  */
38348 _ACEOF
38349 cat confdefs.h >>conftest.$ac_ext
38350 cat >>conftest.$ac_ext <<_ACEOF
38351 /* end confdefs.h.  */
38352
38353 int
38354 main ()
38355 {
38356 return 0;
38357   ;
38358   return 0;
38359 }
38360 _ACEOF
38361 rm -f conftest.$ac_objext conftest$ac_exeext
38362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38363   (eval $ac_link) 2>&5
38364   ac_status=$?
38365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366   (exit $ac_status); } &&
38367          { ac_try='test -s conftest$ac_exeext'
38368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38369   (eval $ac_try) 2>&5
38370   ac_status=$?
38371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372   (exit $ac_status); }; }; then
38373   glibcxx_shared_libgcc=yes
38374 else
38375   echo "$as_me: failed program was:" >&5
38376 sed 's/^/| /' conftest.$ac_ext >&5
38377
38378 glibcxx_shared_libgcc=no
38379 fi
38380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38381   CFLAGS="$ac_save_CFLAGS"
38382   echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
38383 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
38384 fi
38385
38386 # For GNU ld, we need at least this version.  The format is described in
38387 # GLIBCXX_CHECK_LINKER_FEATURES above.
38388 glibcxx_min_gnu_ld_version=21400
38389 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
38390
38391 # Check to see if unspecified "yes" value can win, given results above.
38392 # Change "yes" into either "no" or a style name.
38393 if test $enable_symvers = yes; then
38394   if test $with_gnu_ld = yes &&
38395      test $glibcxx_shared_libgcc = yes;
38396   then
38397     if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
38398       enable_symvers=gnu
38399     else
38400       # The right tools, the right setup, but too old.  Fallbacks?
38401       { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
38402 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
38403       { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
38404 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
38405       { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
38406 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
38407       { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
38408 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
38409       if test $glibcxx_gnu_ld_version -ge 21200 ; then
38410         # Globbing fix is present, proper block support is not.
38411                         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
38412 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
38413         enable_symvers=no
38414       else
38415         # 2.11 or older.
38416         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
38417 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
38418         enable_symvers=no
38419       fi
38420     fi
38421   else
38422     # just fail for now
38423     { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
38424 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
38425     { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
38426 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
38427     { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
38428 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
38429     { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
38430 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
38431     enable_symvers=no
38432   fi
38433 fi
38434
38435 # Everything parsed; figure out what file to use.
38436 case $enable_symvers in
38437   no)
38438     SYMVER_MAP=config/linker-map.dummy
38439     ;;
38440   gnu)
38441     SYMVER_MAP=config/linker-map.gnu
38442     cat >>confdefs.h <<\_ACEOF
38443 #define _GLIBCXX_SYMVER 1
38444 _ACEOF
38445
38446     ;;
38447 esac
38448
38449
38450
38451
38452
38453 if test $enable_symvers != no; then
38454   GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
38455   GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
38456 else
38457   GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
38458   GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
38459 fi
38460
38461 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
38462 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
38463
38464
38465 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
38466
38467   if $GLIBCXX_IS_NATIVE; then
38468     # Do checks for memory limit functions.
38469
38470   setrlimit_have_headers=yes
38471
38472
38473
38474 for ac_header in unistd.h sys/time.h sys/resource.h
38475 do
38476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38478   echo "$as_me:$LINENO: checking for $ac_header" >&5
38479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38481   echo $ECHO_N "(cached) $ECHO_C" >&6
38482 fi
38483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38485 else
38486   # Is the header compilable?
38487 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38489 cat >conftest.$ac_ext <<_ACEOF
38490 #line $LINENO "configure"
38491 /* confdefs.h.  */
38492 _ACEOF
38493 cat confdefs.h >>conftest.$ac_ext
38494 cat >>conftest.$ac_ext <<_ACEOF
38495 /* end confdefs.h.  */
38496 $ac_includes_default
38497 #include <$ac_header>
38498 _ACEOF
38499 rm -f conftest.$ac_objext
38500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38501   (eval $ac_compile) 2>&5
38502   ac_status=$?
38503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38504   (exit $ac_status); } &&
38505          { ac_try='test -s conftest.$ac_objext'
38506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38507   (eval $ac_try) 2>&5
38508   ac_status=$?
38509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38510   (exit $ac_status); }; }; then
38511   ac_header_compiler=yes
38512 else
38513   echo "$as_me: failed program was:" >&5
38514 sed 's/^/| /' conftest.$ac_ext >&5
38515
38516 ac_header_compiler=no
38517 fi
38518 rm -f conftest.$ac_objext conftest.$ac_ext
38519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38520 echo "${ECHO_T}$ac_header_compiler" >&6
38521
38522 # Is the header present?
38523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38525 cat >conftest.$ac_ext <<_ACEOF
38526 #line $LINENO "configure"
38527 /* confdefs.h.  */
38528 _ACEOF
38529 cat confdefs.h >>conftest.$ac_ext
38530 cat >>conftest.$ac_ext <<_ACEOF
38531 /* end confdefs.h.  */
38532 #include <$ac_header>
38533 _ACEOF
38534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38536   ac_status=$?
38537   grep -v '^ *+' conftest.er1 >conftest.err
38538   rm -f conftest.er1
38539   cat conftest.err >&5
38540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38541   (exit $ac_status); } >/dev/null; then
38542   if test -s conftest.err; then
38543     ac_cpp_err=$ac_c_preproc_warn_flag
38544   else
38545     ac_cpp_err=
38546   fi
38547 else
38548   ac_cpp_err=yes
38549 fi
38550 if test -z "$ac_cpp_err"; then
38551   ac_header_preproc=yes
38552 else
38553   echo "$as_me: failed program was:" >&5
38554 sed 's/^/| /' conftest.$ac_ext >&5
38555
38556   ac_header_preproc=no
38557 fi
38558 rm -f conftest.err conftest.$ac_ext
38559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38560 echo "${ECHO_T}$ac_header_preproc" >&6
38561
38562 # So?  What about this header?
38563 case $ac_header_compiler:$ac_header_preproc in
38564   yes:no )
38565     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38569     (
38570       cat <<\_ASBOX
38571 ## ------------------------------------ ##
38572 ## Report this to bug-autoconf@gnu.org. ##
38573 ## ------------------------------------ ##
38574 _ASBOX
38575     ) |
38576       sed "s/^/$as_me: WARNING:     /" >&2
38577     ;;
38578   no:yes )
38579     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38581     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38585     (
38586       cat <<\_ASBOX
38587 ## ------------------------------------ ##
38588 ## Report this to bug-autoconf@gnu.org. ##
38589 ## ------------------------------------ ##
38590 _ASBOX
38591     ) |
38592       sed "s/^/$as_me: WARNING:     /" >&2
38593     ;;
38594 esac
38595 echo "$as_me:$LINENO: checking for $ac_header" >&5
38596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38598   echo $ECHO_N "(cached) $ECHO_C" >&6
38599 else
38600   eval "$as_ac_Header=$ac_header_preproc"
38601 fi
38602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38604
38605 fi
38606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38607   cat >>confdefs.h <<_ACEOF
38608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38609 _ACEOF
38610
38611 else
38612   setrlimit_have_headers=no
38613 fi
38614
38615 done
38616
38617   # If don't have the headers, then we can't run the tests now, and we
38618   # won't be seeing any of these during testsuite compilation.
38619   if test $setrlimit_have_headers = yes; then
38620     # Can't do these in a loop, else the resulting syntax is wrong.
38621
38622   cat >conftest.$ac_ext <<_ACEOF
38623 #line $LINENO "configure"
38624 /* confdefs.h.  */
38625 _ACEOF
38626 cat confdefs.h >>conftest.$ac_ext
38627 cat >>conftest.$ac_ext <<_ACEOF
38628 /* end confdefs.h.  */
38629 #include <unistd.h>
38630      #include <sys/time.h>
38631      #include <sys/resource.h>
38632
38633 int
38634 main ()
38635 {
38636  int f = RLIMIT_DATA ;
38637   ;
38638   return 0;
38639 }
38640 _ACEOF
38641 rm -f conftest.$ac_objext
38642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38643   (eval $ac_compile) 2>&5
38644   ac_status=$?
38645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38646   (exit $ac_status); } &&
38647          { ac_try='test -s conftest.$ac_objext'
38648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38649   (eval $ac_try) 2>&5
38650   ac_status=$?
38651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38652   (exit $ac_status); }; }; then
38653   glibcxx_mresult=1
38654 else
38655   echo "$as_me: failed program was:" >&5
38656 sed 's/^/| /' conftest.$ac_ext >&5
38657
38658 glibcxx_mresult=0
38659 fi
38660 rm -f conftest.$ac_objext conftest.$ac_ext
38661
38662 cat >>confdefs.h <<_ACEOF
38663 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
38664 _ACEOF
38665
38666
38667
38668   cat >conftest.$ac_ext <<_ACEOF
38669 #line $LINENO "configure"
38670 /* confdefs.h.  */
38671 _ACEOF
38672 cat confdefs.h >>conftest.$ac_ext
38673 cat >>conftest.$ac_ext <<_ACEOF
38674 /* end confdefs.h.  */
38675 #include <unistd.h>
38676      #include <sys/time.h>
38677      #include <sys/resource.h>
38678
38679 int
38680 main ()
38681 {
38682  int f = RLIMIT_RSS ;
38683   ;
38684   return 0;
38685 }
38686 _ACEOF
38687 rm -f conftest.$ac_objext
38688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38689   (eval $ac_compile) 2>&5
38690   ac_status=$?
38691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38692   (exit $ac_status); } &&
38693          { ac_try='test -s conftest.$ac_objext'
38694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38695   (eval $ac_try) 2>&5
38696   ac_status=$?
38697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38698   (exit $ac_status); }; }; then
38699   glibcxx_mresult=1
38700 else
38701   echo "$as_me: failed program was:" >&5
38702 sed 's/^/| /' conftest.$ac_ext >&5
38703
38704 glibcxx_mresult=0
38705 fi
38706 rm -f conftest.$ac_objext conftest.$ac_ext
38707
38708 cat >>confdefs.h <<_ACEOF
38709 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
38710 _ACEOF
38711
38712
38713
38714   cat >conftest.$ac_ext <<_ACEOF
38715 #line $LINENO "configure"
38716 /* confdefs.h.  */
38717 _ACEOF
38718 cat confdefs.h >>conftest.$ac_ext
38719 cat >>conftest.$ac_ext <<_ACEOF
38720 /* end confdefs.h.  */
38721 #include <unistd.h>
38722      #include <sys/time.h>
38723      #include <sys/resource.h>
38724
38725 int
38726 main ()
38727 {
38728  int f = RLIMIT_VMEM ;
38729   ;
38730   return 0;
38731 }
38732 _ACEOF
38733 rm -f conftest.$ac_objext
38734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38735   (eval $ac_compile) 2>&5
38736   ac_status=$?
38737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38738   (exit $ac_status); } &&
38739          { ac_try='test -s conftest.$ac_objext'
38740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38741   (eval $ac_try) 2>&5
38742   ac_status=$?
38743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38744   (exit $ac_status); }; }; then
38745   glibcxx_mresult=1
38746 else
38747   echo "$as_me: failed program was:" >&5
38748 sed 's/^/| /' conftest.$ac_ext >&5
38749
38750 glibcxx_mresult=0
38751 fi
38752 rm -f conftest.$ac_objext conftest.$ac_ext
38753
38754 cat >>confdefs.h <<_ACEOF
38755 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
38756 _ACEOF
38757
38758
38759
38760   cat >conftest.$ac_ext <<_ACEOF
38761 #line $LINENO "configure"
38762 /* confdefs.h.  */
38763 _ACEOF
38764 cat confdefs.h >>conftest.$ac_ext
38765 cat >>conftest.$ac_ext <<_ACEOF
38766 /* end confdefs.h.  */
38767 #include <unistd.h>
38768      #include <sys/time.h>
38769      #include <sys/resource.h>
38770
38771 int
38772 main ()
38773 {
38774  int f = RLIMIT_AS ;
38775   ;
38776   return 0;
38777 }
38778 _ACEOF
38779 rm -f conftest.$ac_objext
38780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38781   (eval $ac_compile) 2>&5
38782   ac_status=$?
38783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38784   (exit $ac_status); } &&
38785          { ac_try='test -s conftest.$ac_objext'
38786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38787   (eval $ac_try) 2>&5
38788   ac_status=$?
38789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38790   (exit $ac_status); }; }; then
38791   glibcxx_mresult=1
38792 else
38793   echo "$as_me: failed program was:" >&5
38794 sed 's/^/| /' conftest.$ac_ext >&5
38795
38796 glibcxx_mresult=0
38797 fi
38798 rm -f conftest.$ac_objext conftest.$ac_ext
38799
38800 cat >>confdefs.h <<_ACEOF
38801 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
38802 _ACEOF
38803
38804
38805
38806     # Check for rlimit, setrlimit.
38807     if test "${ac_setrlimit+set}" = set; then
38808   echo $ECHO_N "(cached) $ECHO_C" >&6
38809 else
38810
38811       cat >conftest.$ac_ext <<_ACEOF
38812 #line $LINENO "configure"
38813 /* confdefs.h.  */
38814 _ACEOF
38815 cat confdefs.h >>conftest.$ac_ext
38816 cat >>conftest.$ac_ext <<_ACEOF
38817 /* end confdefs.h.  */
38818 #include <unistd.h>
38819          #include <sys/time.h>
38820          #include <sys/resource.h>
38821
38822 int
38823 main ()
38824 {
38825 struct rlimit r;
38826          setrlimit(0, &r);
38827   ;
38828   return 0;
38829 }
38830 _ACEOF
38831 rm -f conftest.$ac_objext
38832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38833   (eval $ac_compile) 2>&5
38834   ac_status=$?
38835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38836   (exit $ac_status); } &&
38837          { ac_try='test -s conftest.$ac_objext'
38838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38839   (eval $ac_try) 2>&5
38840   ac_status=$?
38841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842   (exit $ac_status); }; }; then
38843   ac_setrlimit=yes
38844 else
38845   echo "$as_me: failed program was:" >&5
38846 sed 's/^/| /' conftest.$ac_ext >&5
38847
38848 ac_setrlimit=no
38849 fi
38850 rm -f conftest.$ac_objext conftest.$ac_ext
38851
38852 fi
38853
38854   fi
38855
38856   echo "$as_me:$LINENO: checking for testsuite memory limit support" >&5
38857 echo $ECHO_N "checking for testsuite memory limit support... $ECHO_C" >&6
38858   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
38859     ac_mem_limits=yes
38860     cat >>confdefs.h <<\_ACEOF
38861 #define _GLIBCXX_MEM_LIMITS 1
38862 _ACEOF
38863
38864   else
38865     ac_mem_limits=no
38866   fi
38867   echo "$as_me:$LINENO: result: $ac_mem_limits" >&5
38868 echo "${ECHO_T}$ac_mem_limits" >&6
38869
38870
38871     # Look for setenv, so that extended locale tests can be performed.
38872
38873   echo "$as_me:$LINENO: checking for setenv declaration" >&5
38874 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
38875   if test x${glibcxx_cv_func_setenv_use+set} != xset; then
38876     if test "${glibcxx_cv_func_setenv_use+set}" = set; then
38877   echo $ECHO_N "(cached) $ECHO_C" >&6
38878 else
38879
38880
38881
38882       ac_ext=cc
38883 ac_cpp='$CXXCPP $CPPFLAGS'
38884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38887
38888       cat >conftest.$ac_ext <<_ACEOF
38889 #line $LINENO "configure"
38890 /* confdefs.h.  */
38891 _ACEOF
38892 cat confdefs.h >>conftest.$ac_ext
38893 cat >>conftest.$ac_ext <<_ACEOF
38894 /* end confdefs.h.  */
38895 #include <stdlib.h>
38896 int
38897 main ()
38898 {
38899  setenv(0, 0, 0);
38900   ;
38901   return 0;
38902 }
38903 _ACEOF
38904 rm -f conftest.$ac_objext
38905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38906   (eval $ac_compile) 2>&5
38907   ac_status=$?
38908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38909   (exit $ac_status); } &&
38910          { ac_try='test -s conftest.$ac_objext'
38911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38912   (eval $ac_try) 2>&5
38913   ac_status=$?
38914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915   (exit $ac_status); }; }; then
38916   glibcxx_cv_func_setenv_use=yes
38917 else
38918   echo "$as_me: failed program was:" >&5
38919 sed 's/^/| /' conftest.$ac_ext >&5
38920
38921 glibcxx_cv_func_setenv_use=no
38922 fi
38923 rm -f conftest.$ac_objext conftest.$ac_ext
38924       ac_ext=c
38925 ac_cpp='$CPP $CPPFLAGS'
38926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38929
38930
38931 fi
38932
38933   fi
38934   echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
38935 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
38936   if test x$glibcxx_cv_func_setenv_use = x"yes"; then
38937
38938 for ac_func in setenv
38939 do
38940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38941 echo "$as_me:$LINENO: checking for $ac_func" >&5
38942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38943 if eval "test \"\${$as_ac_var+set}\" = set"; then
38944   echo $ECHO_N "(cached) $ECHO_C" >&6
38945 else
38946   cat >conftest.$ac_ext <<_ACEOF
38947 #line $LINENO "configure"
38948 /* confdefs.h.  */
38949 _ACEOF
38950 cat confdefs.h >>conftest.$ac_ext
38951 cat >>conftest.$ac_ext <<_ACEOF
38952 /* end confdefs.h.  */
38953 /* System header to define __stub macros and hopefully few prototypes,
38954     which can conflict with char $ac_func (); below.
38955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38956     <limits.h> exists even on freestanding compilers.  */
38957 #ifdef __STDC__
38958 # include <limits.h>
38959 #else
38960 # include <assert.h>
38961 #endif
38962 /* Override any gcc2 internal prototype to avoid an error.  */
38963 #ifdef __cplusplus
38964 extern "C"
38965 {
38966 #endif
38967 /* We use char because int might match the return type of a gcc2
38968    builtin and then its argument prototype would still apply.  */
38969 char $ac_func ();
38970 /* The GNU C library defines this for functions which it implements
38971     to always fail with ENOSYS.  Some functions are actually named
38972     something starting with __ and the normal name is an alias.  */
38973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38974 choke me
38975 #else
38976 char (*f) () = $ac_func;
38977 #endif
38978 #ifdef __cplusplus
38979 }
38980 #endif
38981
38982 int
38983 main ()
38984 {
38985 return f != $ac_func;
38986   ;
38987   return 0;
38988 }
38989 _ACEOF
38990 rm -f conftest.$ac_objext conftest$ac_exeext
38991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38992   (eval $ac_link) 2>&5
38993   ac_status=$?
38994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38995   (exit $ac_status); } &&
38996          { ac_try='test -s conftest$ac_exeext'
38997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38998   (eval $ac_try) 2>&5
38999   ac_status=$?
39000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39001   (exit $ac_status); }; }; then
39002   eval "$as_ac_var=yes"
39003 else
39004   echo "$as_me: failed program was:" >&5
39005 sed 's/^/| /' conftest.$ac_ext >&5
39006
39007 eval "$as_ac_var=no"
39008 fi
39009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39010 fi
39011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39012 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39013 if test `eval echo '${'$as_ac_var'}'` = yes; then
39014   cat >>confdefs.h <<_ACEOF
39015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39016 _ACEOF
39017
39018 fi
39019 done
39020
39021   fi
39022
39023   fi
39024
39025   # Export file names for ABI checking.
39026   baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
39027
39028
39029   # Determine if checking the ABI is desirable.
39030   if test $enable_symvers = no; then
39031     enable_abi_check=no
39032   else
39033     case "$host" in
39034       *-*-cygwin*)
39035         enable_abi_check=no ;;
39036       *)
39037         enable_abi_check=yes ;;
39038     esac
39039   fi
39040
39041
39042
39043 if test $enable_wchar_t = yes; then
39044   GLIBCXX_TEST_WCHAR_T_TRUE=
39045   GLIBCXX_TEST_WCHAR_T_FALSE='#'
39046 else
39047   GLIBCXX_TEST_WCHAR_T_TRUE='#'
39048   GLIBCXX_TEST_WCHAR_T_FALSE=
39049 fi
39050
39051
39052
39053 if test $enable_abi_check = yes; then
39054   GLIBCXX_TEST_ABI_TRUE=
39055   GLIBCXX_TEST_ABI_FALSE='#'
39056 else
39057   GLIBCXX_TEST_ABI_TRUE='#'
39058   GLIBCXX_TEST_ABI_FALSE=
39059 fi
39060
39061
39062
39063 # Propagate the target-specific source directories through the build chain.
39064 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
39065 # uses it, and it only gets used in this file.)
39066 ATOMICITY_INC_SRCDIR=config/${atomicity_include_dir}
39067 OS_INC_SRCDIR=config/${os_include_dir}
39068 FPOS_INC_SRCDIR=config/${fpos_include_dir}
39069
39070
39071
39072
39073 # Determine cross-compile flags and AM_CONDITIONALs.
39074 #AC_SUBST(GLIBCXX_IS_NATIVE)
39075
39076
39077 if test $CANADIAN = yes; then
39078   CANADIAN_TRUE=
39079   CANADIAN_FALSE='#'
39080 else
39081   CANADIAN_TRUE='#'
39082   CANADIAN_FALSE=
39083 fi
39084
39085 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
39086
39087
39088 if test $need_libmath = yes; then
39089   GLIBCXX_BUILD_LIBMATH_TRUE=
39090   GLIBCXX_BUILD_LIBMATH_FALSE='#'
39091 else
39092   GLIBCXX_BUILD_LIBMATH_TRUE='#'
39093   GLIBCXX_BUILD_LIBMATH_FALSE=
39094 fi
39095
39096
39097 cat >confcache <<\_ACEOF
39098 # This file is a shell script that caches the results of configure
39099 # tests run on this system so they can be shared between configure
39100 # scripts and configure runs, see configure's option --config-cache.
39101 # It is not useful on other systems.  If it contains results you don't
39102 # want to keep, you may remove or edit it.
39103 #
39104 # config.status only pays attention to the cache file if you give it
39105 # the --recheck option to rerun configure.
39106 #
39107 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39108 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39109 # following values.
39110
39111 _ACEOF
39112
39113 # The following way of writing the cache mishandles newlines in values,
39114 # but we know of no workaround that is simple, portable, and efficient.
39115 # So, don't put newlines in cache variables' values.
39116 # Ultrix sh set writes to stderr and can't be redirected directly,
39117 # and sets the high bit in the cache file unless we assign to the vars.
39118 {
39119   (set) 2>&1 |
39120     case `(ac_space=' '; set | grep ac_space) 2>&1` in
39121     *ac_space=\ *)
39122       # `set' does not quote correctly, so add quotes (double-quote
39123       # substitution turns \\\\ into \\, and sed turns \\ into \).
39124       sed -n \
39125         "s/'/'\\\\''/g;
39126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39127       ;;
39128     *)
39129       # `set' quotes correctly as required by POSIX, so do not add quotes.
39130       sed -n \
39131         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
39132       ;;
39133     esac;
39134 } |
39135   sed '
39136      t clear
39137      : clear
39138      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39139      t end
39140      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39141      : end' >>confcache
39142 if diff $cache_file confcache >/dev/null 2>&1; then :; else
39143   if test -w $cache_file; then
39144     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39145     cat confcache >$cache_file
39146   else
39147     echo "not updating unwritable cache $cache_file"
39148   fi
39149 fi
39150 rm -f confcache
39151
39152 if test ${multilib} = yes; then
39153   multilib_arg="--enable-multilib"
39154 else
39155   multilib_arg=
39156 fi
39157
39158 # Export all the install information
39159
39160   glibcxx_toolexecdir=no
39161   glibcxx_toolexeclibdir=no
39162   glibcxx_prefixdir=$prefix
39163
39164   echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
39165 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
39166
39167 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
39168 if test "${with_gxx_include_dir+set}" = set; then
39169   withval="$with_gxx_include_dir"
39170   case "$withval" in
39171       yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
39172 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
39173    { (exit 1); exit 1; }; } ;;
39174       no)  gxx_include_dir=no ;;
39175       *)   gxx_include_dir=$withval ;;
39176      esac
39177 else
39178   gxx_include_dir=no
39179 fi;
39180   echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
39181 echo "${ECHO_T}$gxx_include_dir" >&6
39182
39183   echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
39184 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
39185   # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
39186 if test "${enable_version_specific_runtime_libs+set}" = set; then
39187   enableval="$enable_version_specific_runtime_libs"
39188   case "$enableval" in
39189       yes) version_specific_libs=yes ;;
39190       no)  version_specific_libs=no ;;
39191       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
39192 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
39193    { (exit 1); exit 1; }; };;
39194      esac
39195 else
39196   version_specific_libs=no
39197 fi;
39198   echo "$as_me:$LINENO: result: $version_specific_libs" >&5
39199 echo "${ECHO_T}$version_specific_libs" >&6
39200
39201   # Default case for install directory for include files.
39202   if test $version_specific_libs = no && test $gxx_include_dir = no; then
39203     gxx_include_dir='${prefix}'/include/c++/${gcc_version}
39204   fi
39205
39206   # Version-specific runtime libs processing.
39207   if test $version_specific_libs = yes; then
39208     # Need the gcc compiler version to know where to install libraries
39209     # and header files if --enable-version-specific-runtime-libs option
39210     # is selected.
39211     if test x"$gxx_include_dir" = x"no"; then
39212       gxx_include_dir='${libdir}/gcc-lib/${host_alias}/'$gcc_version/include/c++
39213     fi
39214     glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
39215     glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
39216   fi
39217
39218   # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
39219   # Install a library built with a cross compiler in tooldir, not libdir.
39220   if test x"$glibcxx_toolexecdir" = x"no"; then
39221     if test -n "$with_cross_host" &&
39222        test x"$with_cross_host" != x"no"; then
39223       glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
39224       glibcxx_toolexeclibdir='${toolexecdir}/lib'
39225     else
39226       glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
39227       glibcxx_toolexeclibdir='${libdir}'
39228     fi
39229     multi_os_directory=`$CXX -print-multi-os-directory`
39230     case $multi_os_directory in
39231       .) ;; # Avoid trailing /.
39232       *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
39233     esac
39234   fi
39235
39236   echo "$as_me:$LINENO: checking for install location" >&5
39237 echo $ECHO_N "checking for install location... $ECHO_C" >&6
39238   echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
39239 echo "${ECHO_T}$gxx_include_dir" >&6
39240
39241
39242
39243
39244
39245
39246
39247 # Export all the include and flag information to Makefiles.
39248
39249   # Root level of the build directory include sources.
39250   GLIBCXX_INCLUDES="-I$glibcxx_builddir/include/$host_alias -I$glibcxx_builddir/include"
39251
39252   # Passed down for canadian crosses.
39253   if test $CANADIAN = yes; then
39254     TOPLEVEL_INCLUDES='-I${includedir}'
39255   fi
39256
39257   LIBMATH_INCLUDES='-I${glibcxx_srcdir}/libmath'
39258
39259   LIBSUPCXX_INCLUDES='-I${glibcxx_srcdir}/libsupc++'
39260
39261   # Now, export this to all the little Makefiles....
39262
39263
39264
39265
39266
39267
39268   # Optimization flags that are probably a good idea for thrill-seekers. Just
39269   # uncomment the lines below and make, everything else is ready to go...
39270   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
39271   OPTIMIZE_CXXFLAGS=
39272
39273
39274   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
39275
39276
39277
39278 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
39279    grep "enable shared" > /dev/null;
39280 then
39281   LIBSUPCXX_PICFLAGS=-prefer-pic
39282 else
39283   LIBSUPCXX_PICFLAGS=
39284 fi
39285
39286
39287                                                                       ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile po/Makefile src/Makefile testsuite/Makefile"
39288
39289           ac_config_files="$ac_config_files scripts/check_survey"
39290
39291           ac_config_files="$ac_config_files scripts/testsuite_flags"
39292
39293
39294           ac_config_commands="$ac_config_commands default"
39295
39296
39297 cat >confcache <<\_ACEOF
39298 # This file is a shell script that caches the results of configure
39299 # tests run on this system so they can be shared between configure
39300 # scripts and configure runs, see configure's option --config-cache.
39301 # It is not useful on other systems.  If it contains results you don't
39302 # want to keep, you may remove or edit it.
39303 #
39304 # config.status only pays attention to the cache file if you give it
39305 # the --recheck option to rerun configure.
39306 #
39307 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39308 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39309 # following values.
39310
39311 _ACEOF
39312
39313 # The following way of writing the cache mishandles newlines in values,
39314 # but we know of no workaround that is simple, portable, and efficient.
39315 # So, don't put newlines in cache variables' values.
39316 # Ultrix sh set writes to stderr and can't be redirected directly,
39317 # and sets the high bit in the cache file unless we assign to the vars.
39318 {
39319   (set) 2>&1 |
39320     case `(ac_space=' '; set | grep ac_space) 2>&1` in
39321     *ac_space=\ *)
39322       # `set' does not quote correctly, so add quotes (double-quote
39323       # substitution turns \\\\ into \\, and sed turns \\ into \).
39324       sed -n \
39325         "s/'/'\\\\''/g;
39326           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39327       ;;
39328     *)
39329       # `set' quotes correctly as required by POSIX, so do not add quotes.
39330       sed -n \
39331         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
39332       ;;
39333     esac;
39334 } |
39335   sed '
39336      t clear
39337      : clear
39338      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39339      t end
39340      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39341      : end' >>confcache
39342 if diff $cache_file confcache >/dev/null 2>&1; then :; else
39343   if test -w $cache_file; then
39344     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39345     cat confcache >$cache_file
39346   else
39347     echo "not updating unwritable cache $cache_file"
39348   fi
39349 fi
39350 rm -f confcache
39351
39352 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39353 # Let make expand exec_prefix.
39354 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39355
39356 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39357 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39358 # trailing colons and then remove the whole line if VPATH becomes empty
39359 # (actually we leave an empty line to preserve line numbers).
39360 if test "x$srcdir" = x.; then
39361   ac_vpsub='/^[         ]*VPATH[        ]*=/{
39362 s/:*\$(srcdir):*/:/;
39363 s/:*\${srcdir}:*/:/;
39364 s/:*@srcdir@:*/:/;
39365 s/^\([^=]*=[    ]*\):*/\1/;
39366 s/:*$//;
39367 s/^[^=]*=[      ]*$//;
39368 }'
39369 fi
39370
39371 DEFS=-DHAVE_CONFIG_H
39372
39373 ac_libobjs=
39374 ac_ltlibobjs=
39375 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39376   # 1. Remove the extension, and $U if already installed.
39377   ac_i=`echo "$ac_i" |
39378          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39379   # 2. Add them.
39380   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39381   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39382 done
39383 LIBOBJS=$ac_libobjs
39384
39385 LTLIBOBJS=$ac_ltlibobjs
39386
39387
39388 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
39389   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
39390 Usually this means the macro was only invoked conditionally." >&5
39391 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
39392 Usually this means the macro was only invoked conditionally." >&2;}
39393    { (exit 1); exit 1; }; }
39394 fi
39395 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
39396   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
39397 Usually this means the macro was only invoked conditionally." >&5
39398 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
39399 Usually this means the macro was only invoked conditionally." >&2;}
39400    { (exit 1); exit 1; }; }
39401 fi
39402 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
39403   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
39404 Usually this means the macro was only invoked conditionally." >&5
39405 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
39406 Usually this means the macro was only invoked conditionally." >&2;}
39407    { (exit 1); exit 1; }; }
39408 fi
39409 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
39410   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
39411 Usually this means the macro was only invoked conditionally." >&5
39412 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
39413 Usually this means the macro was only invoked conditionally." >&2;}
39414    { (exit 1); exit 1; }; }
39415 fi
39416 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
39417   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
39418 Usually this means the macro was only invoked conditionally." >&5
39419 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
39420 Usually this means the macro was only invoked conditionally." >&2;}
39421    { (exit 1); exit 1; }; }
39422 fi
39423 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
39424   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
39425 Usually this means the macro was only invoked conditionally." >&5
39426 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
39427 Usually this means the macro was only invoked conditionally." >&2;}
39428    { (exit 1); exit 1; }; }
39429 fi
39430 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
39431   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
39432 Usually this means the macro was only invoked conditionally." >&5
39433 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
39434 Usually this means the macro was only invoked conditionally." >&2;}
39435    { (exit 1); exit 1; }; }
39436 fi
39437 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
39438   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
39439 Usually this means the macro was only invoked conditionally." >&5
39440 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
39441 Usually this means the macro was only invoked conditionally." >&2;}
39442    { (exit 1); exit 1; }; }
39443 fi
39444 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
39445   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
39446 Usually this means the macro was only invoked conditionally." >&5
39447 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
39448 Usually this means the macro was only invoked conditionally." >&2;}
39449    { (exit 1); exit 1; }; }
39450 fi
39451 if test -z "${CANADIAN_TRUE}" && test -z "${CANADIAN_FALSE}"; then
39452   { { echo "$as_me:$LINENO: error: conditional \"CANADIAN\" was never defined.
39453 Usually this means the macro was only invoked conditionally." >&5
39454 echo "$as_me: error: conditional \"CANADIAN\" was never defined.
39455 Usually this means the macro was only invoked conditionally." >&2;}
39456    { (exit 1); exit 1; }; }
39457 fi
39458 if test -z "${GLIBCXX_BUILD_LIBMATH_TRUE}" && test -z "${GLIBCXX_BUILD_LIBMATH_FALSE}"; then
39459   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_LIBMATH\" was never defined.
39460 Usually this means the macro was only invoked conditionally." >&5
39461 echo "$as_me: error: conditional \"GLIBCXX_BUILD_LIBMATH\" was never defined.
39462 Usually this means the macro was only invoked conditionally." >&2;}
39463    { (exit 1); exit 1; }; }
39464 fi
39465
39466 : ${CONFIG_STATUS=./config.status}
39467 ac_clean_files_save=$ac_clean_files
39468 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39469 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39470 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39471 cat >$CONFIG_STATUS <<_ACEOF
39472 #! $SHELL
39473 # Generated by $as_me.
39474 # Run this file to recreate the current configuration.
39475 # Compiler output produced by configure, useful for debugging
39476 # configure, is in config.log if it exists.
39477
39478 debug=false
39479 ac_cs_recheck=false
39480 ac_cs_silent=false
39481 SHELL=\${CONFIG_SHELL-$SHELL}
39482 _ACEOF
39483
39484 cat >>$CONFIG_STATUS <<\_ACEOF
39485 ## --------------------- ##
39486 ## M4sh Initialization.  ##
39487 ## --------------------- ##
39488
39489 # Be Bourne compatible
39490 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39491   emulate sh
39492   NULLCMD=:
39493   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39494   # is contrary to our usage.  Disable this feature.
39495   alias -g '${1+"$@"}'='"$@"'
39496 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39497   set -o posix
39498 fi
39499
39500 # Support unset when possible.
39501 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
39502   as_unset=unset
39503 else
39504   as_unset=false
39505 fi
39506
39507
39508 # Work around bugs in pre-3.0 UWIN ksh.
39509 $as_unset ENV MAIL MAILPATH
39510 PS1='$ '
39511 PS2='> '
39512 PS4='+ '
39513
39514 # NLS nuisances.
39515 for as_var in \
39516   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39517   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39518   LC_TELEPHONE LC_TIME
39519 do
39520   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
39521     eval $as_var=C; export $as_var
39522   else
39523     $as_unset $as_var
39524   fi
39525 done
39526
39527 # Required to use basename.
39528 if expr a : '\(a\)' >/dev/null 2>&1; then
39529   as_expr=expr
39530 else
39531   as_expr=false
39532 fi
39533
39534 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39535   as_basename=basename
39536 else
39537   as_basename=false
39538 fi
39539
39540
39541 # Name of the executable.
39542 as_me=`$as_basename "$0" ||
39543 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39544          X"$0" : 'X\(//\)$' \| \
39545          X"$0" : 'X\(/\)$' \| \
39546          .     : '\(.\)' 2>/dev/null ||
39547 echo X/"$0" |
39548     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39549           /^X\/\(\/\/\)$/{ s//\1/; q; }
39550           /^X\/\(\/\).*/{ s//\1/; q; }
39551           s/.*/./; q'`
39552
39553
39554 # PATH needs CR, and LINENO needs CR and PATH.
39555 # Avoid depending upon Character Ranges.
39556 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39557 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39558 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39559 as_cr_digits='0123456789'
39560 as_cr_alnum=$as_cr_Letters$as_cr_digits
39561
39562 # The user is always right.
39563 if test "${PATH_SEPARATOR+set}" != set; then
39564   echo "#! /bin/sh" >conf$$.sh
39565   echo  "exit 0"   >>conf$$.sh
39566   chmod +x conf$$.sh
39567   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39568     PATH_SEPARATOR=';'
39569   else
39570     PATH_SEPARATOR=:
39571   fi
39572   rm -f conf$$.sh
39573 fi
39574
39575
39576   as_lineno_1=$LINENO
39577   as_lineno_2=$LINENO
39578   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39579   test "x$as_lineno_1" != "x$as_lineno_2" &&
39580   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
39581   # Find who we are.  Look in the path if we contain no path at all
39582   # relative or not.
39583   case $0 in
39584     *[\\/]* ) as_myself=$0 ;;
39585     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39586 for as_dir in $PATH
39587 do
39588   IFS=$as_save_IFS
39589   test -z "$as_dir" && as_dir=.
39590   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39591 done
39592
39593        ;;
39594   esac
39595   # We did not find ourselves, most probably we were run as `sh COMMAND'
39596   # in which case we are not to be found in the path.
39597   if test "x$as_myself" = x; then
39598     as_myself=$0
39599   fi
39600   if test ! -f "$as_myself"; then
39601     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39602 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39603    { (exit 1); exit 1; }; }
39604   fi
39605   case $CONFIG_SHELL in
39606   '')
39607     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39608 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39609 do
39610   IFS=$as_save_IFS
39611   test -z "$as_dir" && as_dir=.
39612   for as_base in sh bash ksh sh5; do
39613          case $as_dir in
39614          /*)
39615            if ("$as_dir/$as_base" -c '
39616   as_lineno_1=$LINENO
39617   as_lineno_2=$LINENO
39618   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39619   test "x$as_lineno_1" != "x$as_lineno_2" &&
39620   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
39621              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39622              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39623              CONFIG_SHELL=$as_dir/$as_base
39624              export CONFIG_SHELL
39625              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39626            fi;;
39627          esac
39628        done
39629 done
39630 ;;
39631   esac
39632
39633   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39634   # uniformly replaced by the line number.  The first 'sed' inserts a
39635   # line-number line before each line; the second 'sed' does the real
39636   # work.  The second script uses 'N' to pair each line-number line
39637   # with the numbered line, and appends trailing '-' during
39638   # substitution so that $LINENO is not a special case at line end.
39639   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39640   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
39641   sed '=' <$as_myself |
39642     sed '
39643       N
39644       s,$,-,
39645       : loop
39646       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39647       t loop
39648       s,-$,,
39649       s,^['$as_cr_digits']*\n,,
39650     ' >$as_me.lineno &&
39651   chmod +x $as_me.lineno ||
39652     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39653 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39654    { (exit 1); exit 1; }; }
39655
39656   # Don't try to exec as it changes $[0], causing all sort of problems
39657   # (the dirname of $[0] is not the place where we might find the
39658   # original and so on.  Autoconf is especially sensible to this).
39659   . ./$as_me.lineno
39660   # Exit status is that of the last command.
39661   exit
39662 }
39663
39664
39665 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39666   *c*,-n*) ECHO_N= ECHO_C='
39667 ' ECHO_T='      ' ;;
39668   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39669   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
39670 esac
39671
39672 if expr a : '\(a\)' >/dev/null 2>&1; then
39673   as_expr=expr
39674 else
39675   as_expr=false
39676 fi
39677
39678 rm -f conf$$ conf$$.exe conf$$.file
39679 echo >conf$$.file
39680 if ln -s conf$$.file conf$$ 2>/dev/null; then
39681   # We could just check for DJGPP; but this test a) works b) is more generic
39682   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39683   if test -f conf$$.exe; then
39684     # Don't use ln at all; we don't have any links
39685     as_ln_s='cp -p'
39686   else
39687     as_ln_s='ln -s'
39688   fi
39689 elif ln conf$$.file conf$$ 2>/dev/null; then
39690   as_ln_s=ln
39691 else
39692   as_ln_s='cp -p'
39693 fi
39694 rm -f conf$$ conf$$.exe conf$$.file
39695
39696 if mkdir -p . 2>/dev/null; then
39697   as_mkdir_p=:
39698 else
39699   as_mkdir_p=false
39700 fi
39701
39702 as_executable_p="test -f"
39703
39704 # Sed expression to map a string onto a valid CPP name.
39705 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
39706
39707 # Sed expression to map a string onto a valid variable name.
39708 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
39709
39710
39711 # IFS
39712 # We need space, tab and new line, in precisely that order.
39713 as_nl='
39714 '
39715 IFS="   $as_nl"
39716
39717 # CDPATH.
39718 $as_unset CDPATH
39719
39720 exec 6>&1
39721
39722 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39723 # report actual input values of CONFIG_FILES etc. instead of their
39724 # values after options handling.  Logging --version etc. is OK.
39725 exec 5>>config.log
39726 {
39727   echo
39728   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39729 ## Running $as_me. ##
39730 _ASBOX
39731 } >&5
39732 cat >&5 <<_CSEOF
39733
39734 This file was extended by package-unused $as_me version-unused, which was
39735 generated by GNU Autoconf 2.57.  Invocation command line was
39736
39737   CONFIG_FILES    = $CONFIG_FILES
39738   CONFIG_HEADERS  = $CONFIG_HEADERS
39739   CONFIG_LINKS    = $CONFIG_LINKS
39740   CONFIG_COMMANDS = $CONFIG_COMMANDS
39741   $ $0 $@
39742
39743 _CSEOF
39744 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39745 echo >&5
39746 _ACEOF
39747
39748 # Files that config.status was made for.
39749 if test -n "$ac_config_files"; then
39750   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39751 fi
39752
39753 if test -n "$ac_config_headers"; then
39754   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39755 fi
39756
39757 if test -n "$ac_config_links"; then
39758   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39759 fi
39760
39761 if test -n "$ac_config_commands"; then
39762   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39763 fi
39764
39765 cat >>$CONFIG_STATUS <<\_ACEOF
39766
39767 ac_cs_usage="\
39768 \`$as_me' instantiates files from templates according to the
39769 current configuration.
39770
39771 Usage: $0 [OPTIONS] [FILE]...
39772
39773   -h, --help       print this help, then exit
39774   -V, --version    print version number, then exit
39775   -q, --quiet      do not print progress messages
39776   -d, --debug      don't remove temporary files
39777       --recheck    update $as_me by reconfiguring in the same conditions
39778   --file=FILE[:TEMPLATE]
39779                    instantiate the configuration file FILE
39780   --header=FILE[:TEMPLATE]
39781                    instantiate the configuration header FILE
39782
39783 Configuration files:
39784 $config_files
39785
39786 Configuration headers:
39787 $config_headers
39788
39789 Configuration commands:
39790 $config_commands
39791
39792 Report bugs to <bug-autoconf@gnu.org>."
39793 _ACEOF
39794
39795 cat >>$CONFIG_STATUS <<_ACEOF
39796 ac_cs_version="\\
39797 package-unused config.status version-unused
39798 configured by $0, generated by GNU Autoconf 2.57,
39799   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39800
39801 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
39802 Free Software Foundation, Inc.
39803 This config.status script is free software; the Free Software Foundation
39804 gives unlimited permission to copy, distribute and modify it."
39805 srcdir=$srcdir
39806 INSTALL="$INSTALL"
39807 _ACEOF
39808
39809 cat >>$CONFIG_STATUS <<\_ACEOF
39810 # If no file are specified by the user, then we need to provide default
39811 # value.  By we need to know if files were specified by the user.
39812 ac_need_defaults=:
39813 while test $# != 0
39814 do
39815   case $1 in
39816   --*=*)
39817     ac_option=`expr "x$1" : 'x\([^=]*\)='`
39818     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39819     ac_shift=:
39820     ;;
39821   -*)
39822     ac_option=$1
39823     ac_optarg=$2
39824     ac_shift=shift
39825     ;;
39826   *) # This is not an option, so the user has probably given explicit
39827      # arguments.
39828      ac_option=$1
39829      ac_need_defaults=false;;
39830   esac
39831
39832   case $ac_option in
39833   # Handling of the options.
39834 _ACEOF
39835 cat >>$CONFIG_STATUS <<\_ACEOF
39836   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39837     ac_cs_recheck=: ;;
39838   --version | --vers* | -V )
39839     echo "$ac_cs_version"; exit 0 ;;
39840   --he | --h)
39841     # Conflict between --help and --header
39842     { { echo "$as_me:$LINENO: error: ambiguous option: $1
39843 Try \`$0 --help' for more information." >&5
39844 echo "$as_me: error: ambiguous option: $1
39845 Try \`$0 --help' for more information." >&2;}
39846    { (exit 1); exit 1; }; };;
39847   --help | --hel | -h )
39848     echo "$ac_cs_usage"; exit 0 ;;
39849   --debug | --d* | -d )
39850     debug=: ;;
39851   --file | --fil | --fi | --f )
39852     $ac_shift
39853     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39854     ac_need_defaults=false;;
39855   --header | --heade | --head | --hea )
39856     $ac_shift
39857     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39858     ac_need_defaults=false;;
39859   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39860   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39861     ac_cs_silent=: ;;
39862
39863   # This is an error.
39864   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39865 Try \`$0 --help' for more information." >&5
39866 echo "$as_me: error: unrecognized option: $1
39867 Try \`$0 --help' for more information." >&2;}
39868    { (exit 1); exit 1; }; } ;;
39869
39870   *) ac_config_targets="$ac_config_targets $1" ;;
39871
39872   esac
39873   shift
39874 done
39875
39876 ac_configure_extra_args=
39877
39878 if $ac_cs_silent; then
39879   exec 6>/dev/null
39880   ac_configure_extra_args="$ac_configure_extra_args --silent"
39881 fi
39882
39883 _ACEOF
39884 cat >>$CONFIG_STATUS <<_ACEOF
39885 if \$ac_cs_recheck; then
39886   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39887   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39888 fi
39889
39890 _ACEOF
39891
39892 cat >>$CONFIG_STATUS <<_ACEOF
39893 #
39894 # INIT-COMMANDS section.
39895 #
39896
39897
39898 srcdir="$srcdir"
39899 host="$host"
39900 target="$target"
39901 with_multisubdir="$with_multisubdir"
39902 with_multisrctop="$with_multisrctop"
39903 with_target_subdir="$with_target_subdir"
39904 ac_configure_args="${multilib_arg} ${ac_configure_args}"
39905 multi_basedir="$multi_basedir"
39906 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
39907 CC="$CC"
39908
39909 # No init-vars needed so far which aren't already passed by autoconf.
39910
39911
39912 _ACEOF
39913
39914
39915
39916 cat >>$CONFIG_STATUS <<\_ACEOF
39917 for ac_config_target in $ac_config_targets
39918 do
39919   case "$ac_config_target" in
39920   # Handling of arguments.
39921   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39922   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
39923   "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
39924   "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
39925   "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
39926   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
39927   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
39928   "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
39929   "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
39930   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
39931   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39932   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
39933   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39934 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39935    { (exit 1); exit 1; }; };;
39936   esac
39937 done
39938
39939 # If the user did not use the arguments to specify the items to instantiate,
39940 # then the envvar interface is used.  Set only those that are not.
39941 # We use the long form for the default assignment because of an extremely
39942 # bizarre bug on SunOS 4.1.3.
39943 if $ac_need_defaults; then
39944   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39945   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39946   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39947 fi
39948
39949 # Have a temporary directory for convenience.  Make it in the build tree
39950 # simply because there is no reason to put it here, and in addition,
39951 # creating and moving files from /tmp can sometimes cause problems.
39952 # Create a temporary directory, and hook for its removal unless debugging.
39953 $debug ||
39954 {
39955   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39956   trap '{ (exit 1); exit 1; }' 1 2 13 15
39957 }
39958
39959 # Create a (secure) tmp directory for tmp files.
39960
39961 {
39962   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39963   test -n "$tmp" && test -d "$tmp"
39964 }  ||
39965 {
39966   tmp=./confstat$$-$RANDOM
39967   (umask 077 && mkdir $tmp)
39968 } ||
39969 {
39970    echo "$me: cannot create a temporary directory in ." >&2
39971    { (exit 1); exit 1; }
39972 }
39973
39974 _ACEOF
39975
39976 cat >>$CONFIG_STATUS <<_ACEOF
39977
39978 #
39979 # CONFIG_FILES section.
39980 #
39981
39982 # No need to generate the scripts if there are no CONFIG_FILES.
39983 # This happens for instance when ./config.status config.h
39984 if test -n "\$CONFIG_FILES"; then
39985   # Protect against being on the right side of a sed subst in config.status.
39986   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39987    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39988 s,@SHELL@,$SHELL,;t t
39989 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39990 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39991 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39992 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39993 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39994 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39995 s,@exec_prefix@,$exec_prefix,;t t
39996 s,@prefix@,$prefix,;t t
39997 s,@program_transform_name@,$program_transform_name,;t t
39998 s,@bindir@,$bindir,;t t
39999 s,@sbindir@,$sbindir,;t t
40000 s,@libexecdir@,$libexecdir,;t t
40001 s,@datadir@,$datadir,;t t
40002 s,@sysconfdir@,$sysconfdir,;t t
40003 s,@sharedstatedir@,$sharedstatedir,;t t
40004 s,@localstatedir@,$localstatedir,;t t
40005 s,@libdir@,$libdir,;t t
40006 s,@includedir@,$includedir,;t t
40007 s,@oldincludedir@,$oldincludedir,;t t
40008 s,@infodir@,$infodir,;t t
40009 s,@mandir@,$mandir,;t t
40010 s,@build_alias@,$build_alias,;t t
40011 s,@host_alias@,$host_alias,;t t
40012 s,@target_alias@,$target_alias,;t t
40013 s,@DEFS@,$DEFS,;t t
40014 s,@ECHO_C@,$ECHO_C,;t t
40015 s,@ECHO_N@,$ECHO_N,;t t
40016 s,@ECHO_T@,$ECHO_T,;t t
40017 s,@LIBS@,$LIBS,;t t
40018 s,@libtool_VERSION@,$libtool_VERSION,;t t
40019 s,@multi_basedir@,$multi_basedir,;t t
40020 s,@build@,$build,;t t
40021 s,@build_cpu@,$build_cpu,;t t
40022 s,@build_vendor@,$build_vendor,;t t
40023 s,@build_os@,$build_os,;t t
40024 s,@host@,$host,;t t
40025 s,@host_cpu@,$host_cpu,;t t
40026 s,@host_vendor@,$host_vendor,;t t
40027 s,@host_os@,$host_os,;t t
40028 s,@target@,$target,;t t
40029 s,@target_cpu@,$target_cpu,;t t
40030 s,@target_vendor@,$target_vendor,;t t
40031 s,@target_os@,$target_os,;t t
40032 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40033 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40034 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40035 s,@CYGPATH_W@,$CYGPATH_W,;t t
40036 s,@PACKAGE@,$PACKAGE,;t t
40037 s,@VERSION@,$VERSION,;t t
40038 s,@ACLOCAL@,$ACLOCAL,;t t
40039 s,@AUTOCONF@,$AUTOCONF,;t t
40040 s,@AUTOMAKE@,$AUTOMAKE,;t t
40041 s,@AUTOHEADER@,$AUTOHEADER,;t t
40042 s,@MAKEINFO@,$MAKEINFO,;t t
40043 s,@AMTAR@,$AMTAR,;t t
40044 s,@install_sh@,$install_sh,;t t
40045 s,@STRIP@,$STRIP,;t t
40046 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40047 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
40048 s,@AWK@,$AWK,;t t
40049 s,@SET_MAKE@,$SET_MAKE,;t t
40050 s,@am__leading_dot@,$am__leading_dot,;t t
40051 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
40052 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
40053 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
40054 s,@CC@,$CC,;t t
40055 s,@ac_ct_CC@,$ac_ct_CC,;t t
40056 s,@EXEEXT@,$EXEEXT,;t t
40057 s,@OBJEXT@,$OBJEXT,;t t
40058 s,@CXX@,$CXX,;t t
40059 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
40060 s,@CFLAGS@,$CFLAGS,;t t
40061 s,@CXXFLAGS@,$CXXFLAGS,;t t
40062 s,@LN_S@,$LN_S,;t t
40063 s,@AS@,$AS,;t t
40064 s,@ac_ct_AS@,$ac_ct_AS,;t t
40065 s,@AR@,$AR,;t t
40066 s,@ac_ct_AR@,$ac_ct_AR,;t t
40067 s,@RANLIB@,$RANLIB,;t t
40068 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40069 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
40070 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
40071 s,@MAINT@,$MAINT,;t t
40072 s,@LIBTOOL@,$LIBTOOL,;t t
40073 s,@CXXCPP@,$CXXCPP,;t t
40074 s,@CPPFLAGS@,$CPPFLAGS,;t t
40075 s,@enable_shared@,$enable_shared,;t t
40076 s,@enable_static@,$enable_static,;t t
40077 s,@LIBUNWIND_FLAG@,$LIBUNWIND_FLAG,;t t
40078 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
40079 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
40080 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
40081 s,@CSTDIO_H@,$CSTDIO_H,;t t
40082 s,@FPOS_H@,$FPOS_H,;t t
40083 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
40084 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
40085 s,@CPP@,$CPP,;t t
40086 s,@EGREP@,$EGREP,;t t
40087 s,@check_msgfmt@,$check_msgfmt,;t t
40088 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
40089 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
40090 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
40091 s,@USE_NLS@,$USE_NLS,;t t
40092 s,@CLOCALE_H@,$CLOCALE_H,;t t
40093 s,@CCODECVT_H@,$CCODECVT_H,;t t
40094 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
40095 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
40096 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
40097 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
40098 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
40099 s,@CMONEY_CC@,$CMONEY_CC,;t t
40100 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
40101 s,@CTIME_H@,$CTIME_H,;t t
40102 s,@CTIME_CC@,$CTIME_CC,;t t
40103 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
40104 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
40105 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
40106 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
40107 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
40108 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
40109 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
40110 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
40111 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
40112 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
40113 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
40114 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
40115 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
40116 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
40117 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
40118 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
40119 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
40120 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
40121 s,@WERROR@,$WERROR,;t t
40122 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
40123 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
40124 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
40125 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
40126 s,@baseline_dir@,$baseline_dir,;t t
40127 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
40128 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
40129 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
40130 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
40131 s,@ATOMICITY_INC_SRCDIR@,$ATOMICITY_INC_SRCDIR,;t t
40132 s,@FPOS_INC_SRCDIR@,$FPOS_INC_SRCDIR,;t t
40133 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
40134 s,@CANADIAN_TRUE@,$CANADIAN_TRUE,;t t
40135 s,@CANADIAN_FALSE@,$CANADIAN_FALSE,;t t
40136 s,@GLIBCXX_BUILD_LIBMATH_TRUE@,$GLIBCXX_BUILD_LIBMATH_TRUE,;t t
40137 s,@GLIBCXX_BUILD_LIBMATH_FALSE@,$GLIBCXX_BUILD_LIBMATH_FALSE,;t t
40138 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
40139 s,@gxx_include_dir@,$gxx_include_dir,;t t
40140 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
40141 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
40142 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
40143 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
40144 s,@LIBMATH_INCLUDES@,$LIBMATH_INCLUDES,;t t
40145 s,@LIBSUPCXX_INCLUDES@,$LIBSUPCXX_INCLUDES,;t t
40146 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
40147 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
40148 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
40149 s,@LIBOBJS@,$LIBOBJS,;t t
40150 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
40151 CEOF
40152
40153 _ACEOF
40154
40155   cat >>$CONFIG_STATUS <<\_ACEOF
40156   # Split the substitutions into bite-sized pieces for seds with
40157   # small command number limits, like on Digital OSF/1 and HP-UX.
40158   ac_max_sed_lines=48
40159   ac_sed_frag=1 # Number of current file.
40160   ac_beg=1 # First line for current file.
40161   ac_end=$ac_max_sed_lines # Line after last line for current file.
40162   ac_more_lines=:
40163   ac_sed_cmds=
40164   while $ac_more_lines; do
40165     if test $ac_beg -gt 1; then
40166       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40167     else
40168       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40169     fi
40170     if test ! -s $tmp/subs.frag; then
40171       ac_more_lines=false
40172     else
40173       # The purpose of the label and of the branching condition is to
40174       # speed up the sed processing (if there are no `@' at all, there
40175       # is no need to browse any of the substitutions).
40176       # These are the two extra sed commands mentioned above.
40177       (echo ':t
40178   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40179       if test -z "$ac_sed_cmds"; then
40180         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
40181       else
40182         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
40183       fi
40184       ac_sed_frag=`expr $ac_sed_frag + 1`
40185       ac_beg=$ac_end
40186       ac_end=`expr $ac_end + $ac_max_sed_lines`
40187     fi
40188   done
40189   if test -z "$ac_sed_cmds"; then
40190     ac_sed_cmds=cat
40191   fi
40192 fi # test -n "$CONFIG_FILES"
40193
40194 _ACEOF
40195 cat >>$CONFIG_STATUS <<\_ACEOF
40196 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
40197   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40198   case $ac_file in
40199   - | *:- | *:-:* ) # input from stdin
40200         cat >$tmp/stdin
40201         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40202         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40203   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40204         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40205   * )   ac_file_in=$ac_file.in ;;
40206   esac
40207
40208   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40209   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40210 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40211          X"$ac_file" : 'X\(//\)[^/]' \| \
40212          X"$ac_file" : 'X\(//\)$' \| \
40213          X"$ac_file" : 'X\(/\)' \| \
40214          .     : '\(.\)' 2>/dev/null ||
40215 echo X"$ac_file" |
40216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40217           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40218           /^X\(\/\/\)$/{ s//\1/; q; }
40219           /^X\(\/\).*/{ s//\1/; q; }
40220           s/.*/./; q'`
40221   { if $as_mkdir_p; then
40222     mkdir -p "$ac_dir"
40223   else
40224     as_dir="$ac_dir"
40225     as_dirs=
40226     while test ! -d "$as_dir"; do
40227       as_dirs="$as_dir $as_dirs"
40228       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40230          X"$as_dir" : 'X\(//\)[^/]' \| \
40231          X"$as_dir" : 'X\(//\)$' \| \
40232          X"$as_dir" : 'X\(/\)' \| \
40233          .     : '\(.\)' 2>/dev/null ||
40234 echo X"$as_dir" |
40235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40236           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40237           /^X\(\/\/\)$/{ s//\1/; q; }
40238           /^X\(\/\).*/{ s//\1/; q; }
40239           s/.*/./; q'`
40240     done
40241     test ! -n "$as_dirs" || mkdir $as_dirs
40242   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40243 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40244    { (exit 1); exit 1; }; }; }
40245
40246   ac_builddir=.
40247
40248 if test "$ac_dir" != .; then
40249   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40250   # A "../" for each directory in $ac_dir_suffix.
40251   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40252 else
40253   ac_dir_suffix= ac_top_builddir=
40254 fi
40255
40256 case $srcdir in
40257   .)  # No --srcdir option.  We are building in place.
40258     ac_srcdir=.
40259     if test -z "$ac_top_builddir"; then
40260        ac_top_srcdir=.
40261     else
40262        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40263     fi ;;
40264   [\\/]* | ?:[\\/]* )  # Absolute path.
40265     ac_srcdir=$srcdir$ac_dir_suffix;
40266     ac_top_srcdir=$srcdir ;;
40267   *) # Relative path.
40268     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40269     ac_top_srcdir=$ac_top_builddir$srcdir ;;
40270 esac
40271 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
40272 # absolute.
40273 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
40274 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
40275 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
40276 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
40277
40278
40279   case $INSTALL in
40280   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40281   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40282   esac
40283
40284   if test x"$ac_file" != x-; then
40285     { echo "$as_me:$LINENO: creating $ac_file" >&5
40286 echo "$as_me: creating $ac_file" >&6;}
40287     rm -f "$ac_file"
40288   fi
40289   # Let's still pretend it is `configure' which instantiates (i.e., don't
40290   # use $as_me), people would be surprised to read:
40291   #    /* config.h.  Generated by config.status.  */
40292   if test x"$ac_file" = x-; then
40293     configure_input=
40294   else
40295     configure_input="$ac_file.  "
40296   fi
40297   configure_input=$configure_input"Generated from `echo $ac_file_in |
40298                                      sed 's,.*/,,'` by configure."
40299
40300   # First look for the input files in the build tree, otherwise in the
40301   # src tree.
40302   ac_file_inputs=`IFS=:
40303     for f in $ac_file_in; do
40304       case $f in
40305       -) echo $tmp/stdin ;;
40306       [\\/$]*)
40307          # Absolute (can't be DOS-style, as IFS=:)
40308          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40309 echo "$as_me: error: cannot find input file: $f" >&2;}
40310    { (exit 1); exit 1; }; }
40311          echo $f;;
40312       *) # Relative
40313          if test -f "$f"; then
40314            # Build tree
40315            echo $f
40316          elif test -f "$srcdir/$f"; then
40317            # Source tree
40318            echo $srcdir/$f
40319          else
40320            # /dev/null tree
40321            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40322 echo "$as_me: error: cannot find input file: $f" >&2;}
40323    { (exit 1); exit 1; }; }
40324          fi;;
40325       esac
40326     done` || { (exit 1); exit 1; }
40327 _ACEOF
40328 cat >>$CONFIG_STATUS <<_ACEOF
40329   sed "$ac_vpsub
40330 $extrasub
40331 _ACEOF
40332 cat >>$CONFIG_STATUS <<\_ACEOF
40333 :t
40334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40335 s,@configure_input@,$configure_input,;t t
40336 s,@srcdir@,$ac_srcdir,;t t
40337 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40338 s,@top_srcdir@,$ac_top_srcdir,;t t
40339 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40340 s,@builddir@,$ac_builddir,;t t
40341 s,@abs_builddir@,$ac_abs_builddir,;t t
40342 s,@top_builddir@,$ac_top_builddir,;t t
40343 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40344 s,@INSTALL@,$ac_INSTALL,;t t
40345 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40346   rm -f $tmp/stdin
40347   if test x"$ac_file" != x-; then
40348     mv $tmp/out $ac_file
40349   else
40350     cat $tmp/out
40351     rm -f $tmp/out
40352   fi
40353
40354   # Run the commands associated with the file.
40355   case $ac_file in
40356     scripts/check_survey ) chmod +x scripts/check_survey ;;
40357     scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
40358   esac
40359 done
40360 _ACEOF
40361 cat >>$CONFIG_STATUS <<\_ACEOF
40362
40363 #
40364 # CONFIG_HEADER section.
40365 #
40366
40367 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40368 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40369 #
40370 # ac_d sets the value in "#define NAME VALUE" lines.
40371 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
40372 ac_dB='[        ].*$,\1#\2'
40373 ac_dC=' '
40374 ac_dD=',;t'
40375 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40376 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
40377 ac_uB='$,\1#\2define\3'
40378 ac_uC=' '
40379 ac_uD=',;t'
40380
40381 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40382   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40383   case $ac_file in
40384   - | *:- | *:-:* ) # input from stdin
40385         cat >$tmp/stdin
40386         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40387         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40388   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40389         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40390   * )   ac_file_in=$ac_file.in ;;
40391   esac
40392
40393   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40394 echo "$as_me: creating $ac_file" >&6;}
40395
40396   # First look for the input files in the build tree, otherwise in the
40397   # src tree.
40398   ac_file_inputs=`IFS=:
40399     for f in $ac_file_in; do
40400       case $f in
40401       -) echo $tmp/stdin ;;
40402       [\\/$]*)
40403          # Absolute (can't be DOS-style, as IFS=:)
40404          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40405 echo "$as_me: error: cannot find input file: $f" >&2;}
40406    { (exit 1); exit 1; }; }
40407          echo $f;;
40408       *) # Relative
40409          if test -f "$f"; then
40410            # Build tree
40411            echo $f
40412          elif test -f "$srcdir/$f"; then
40413            # Source tree
40414            echo $srcdir/$f
40415          else
40416            # /dev/null tree
40417            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40418 echo "$as_me: error: cannot find input file: $f" >&2;}
40419    { (exit 1); exit 1; }; }
40420          fi;;
40421       esac
40422     done` || { (exit 1); exit 1; }
40423   # Remove the trailing spaces.
40424   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
40425
40426 _ACEOF
40427
40428 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40429 # `conftest.undefs', that substitutes the proper values into
40430 # config.h.in to produce config.h.  The first handles `#define'
40431 # templates, and the second `#undef' templates.
40432 # And first: Protect against being on the right side of a sed subst in
40433 # config.status.  Protect against being in an unquoted here document
40434 # in config.status.
40435 rm -f conftest.defines conftest.undefs
40436 # Using a here document instead of a string reduces the quoting nightmare.
40437 # Putting comments in sed scripts is not portable.
40438 #
40439 # `end' is used to avoid that the second main sed command (meant for
40440 # 0-ary CPP macros) applies to n-ary macro definitions.
40441 # See the Autoconf documentation for `clear'.
40442 cat >confdef2sed.sed <<\_ACEOF
40443 s/[\\&,]/\\&/g
40444 s,[\\$`],\\&,g
40445 t clear
40446 : clear
40447 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40448 t end
40449 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40450 : end
40451 _ACEOF
40452 # If some macros were called several times there might be several times
40453 # the same #defines, which is useless.  Nevertheless, we may not want to
40454 # sort them, since we want the *last* AC-DEFINE to be honored.
40455 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40456 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40457 rm -f confdef2sed.sed
40458
40459 # This sed command replaces #undef with comments.  This is necessary, for
40460 # example, in the case of _POSIX_SOURCE, which is predefined and required
40461 # on some systems where configure will not decide to define it.
40462 cat >>conftest.undefs <<\_ACEOF
40463 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40464 _ACEOF
40465
40466 # Break up conftest.defines because some shells have a limit on the size
40467 # of here documents, and old seds have small limits too (100 cmds).
40468 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40469 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40470 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40471 echo '  :' >>$CONFIG_STATUS
40472 rm -f conftest.tail
40473 while grep . conftest.defines >/dev/null
40474 do
40475   # Write a limited-size here document to $tmp/defines.sed.
40476   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40477   # Speed up: don't consider the non `#define' lines.
40478   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
40479   # Work around the forget-to-reset-the-flag bug.
40480   echo 't clr' >>$CONFIG_STATUS
40481   echo ': clr' >>$CONFIG_STATUS
40482   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40483   echo 'CEOF
40484   sed -f $tmp/defines.sed $tmp/in >$tmp/out
40485   rm -f $tmp/in
40486   mv $tmp/out $tmp/in
40487 ' >>$CONFIG_STATUS
40488   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40489   rm -f conftest.defines
40490   mv conftest.tail conftest.defines
40491 done
40492 rm -f conftest.defines
40493 echo '  fi # grep' >>$CONFIG_STATUS
40494 echo >>$CONFIG_STATUS
40495
40496 # Break up conftest.undefs because some shells have a limit on the size
40497 # of here documents, and old seds have small limits too (100 cmds).
40498 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
40499 rm -f conftest.tail
40500 while grep . conftest.undefs >/dev/null
40501 do
40502   # Write a limited-size here document to $tmp/undefs.sed.
40503   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40504   # Speed up: don't consider the non `#undef'
40505   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
40506   # Work around the forget-to-reset-the-flag bug.
40507   echo 't clr' >>$CONFIG_STATUS
40508   echo ': clr' >>$CONFIG_STATUS
40509   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40510   echo 'CEOF
40511   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40512   rm -f $tmp/in
40513   mv $tmp/out $tmp/in
40514 ' >>$CONFIG_STATUS
40515   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40516   rm -f conftest.undefs
40517   mv conftest.tail conftest.undefs
40518 done
40519 rm -f conftest.undefs
40520
40521 cat >>$CONFIG_STATUS <<\_ACEOF
40522   # Let's still pretend it is `configure' which instantiates (i.e., don't
40523   # use $as_me), people would be surprised to read:
40524   #    /* config.h.  Generated by config.status.  */
40525   if test x"$ac_file" = x-; then
40526     echo "/* Generated by configure.  */" >$tmp/config.h
40527   else
40528     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
40529   fi
40530   cat $tmp/in >>$tmp/config.h
40531   rm -f $tmp/in
40532   if test x"$ac_file" != x-; then
40533     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40534       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40535 echo "$as_me: $ac_file is unchanged" >&6;}
40536     else
40537       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40538 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40539          X"$ac_file" : 'X\(//\)[^/]' \| \
40540          X"$ac_file" : 'X\(//\)$' \| \
40541          X"$ac_file" : 'X\(/\)' \| \
40542          .     : '\(.\)' 2>/dev/null ||
40543 echo X"$ac_file" |
40544     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40545           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40546           /^X\(\/\/\)$/{ s//\1/; q; }
40547           /^X\(\/\).*/{ s//\1/; q; }
40548           s/.*/./; q'`
40549       { if $as_mkdir_p; then
40550     mkdir -p "$ac_dir"
40551   else
40552     as_dir="$ac_dir"
40553     as_dirs=
40554     while test ! -d "$as_dir"; do
40555       as_dirs="$as_dir $as_dirs"
40556       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40558          X"$as_dir" : 'X\(//\)[^/]' \| \
40559          X"$as_dir" : 'X\(//\)$' \| \
40560          X"$as_dir" : 'X\(/\)' \| \
40561          .     : '\(.\)' 2>/dev/null ||
40562 echo X"$as_dir" |
40563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40564           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40565           /^X\(\/\/\)$/{ s//\1/; q; }
40566           /^X\(\/\).*/{ s//\1/; q; }
40567           s/.*/./; q'`
40568     done
40569     test ! -n "$as_dirs" || mkdir $as_dirs
40570   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40571 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40572    { (exit 1); exit 1; }; }; }
40573
40574       rm -f $ac_file
40575       mv $tmp/config.h $ac_file
40576     fi
40577   else
40578     cat $tmp/config.h
40579     rm -f $tmp/config.h
40580   fi
40581 # Compute $ac_file's index in $config_headers.
40582 _am_stamp_count=1
40583 for _am_header in $config_headers :; do
40584   case $_am_header in
40585     $ac_file | $ac_file:* )
40586       break ;;
40587     * )
40588       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40589   esac
40590 done
40591 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40592 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40593          X$ac_file : 'X\(//\)[^/]' \| \
40594          X$ac_file : 'X\(//\)$' \| \
40595          X$ac_file : 'X\(/\)' \| \
40596          .     : '\(.\)' 2>/dev/null ||
40597 echo X$ac_file |
40598     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40599           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40600           /^X\(\/\/\)$/{ s//\1/; q; }
40601           /^X\(\/\).*/{ s//\1/; q; }
40602           s/.*/./; q'`/stamp-h$_am_stamp_count
40603 done
40604 _ACEOF
40605 cat >>$CONFIG_STATUS <<\_ACEOF
40606
40607 #
40608 # CONFIG_COMMANDS section.
40609 #
40610 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40611   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40612   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40613   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40614 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40615          X"$ac_dest" : 'X\(//\)[^/]' \| \
40616          X"$ac_dest" : 'X\(//\)$' \| \
40617          X"$ac_dest" : 'X\(/\)' \| \
40618          .     : '\(.\)' 2>/dev/null ||
40619 echo X"$ac_dest" |
40620     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40621           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40622           /^X\(\/\/\)$/{ s//\1/; q; }
40623           /^X\(\/\).*/{ s//\1/; q; }
40624           s/.*/./; q'`
40625   ac_builddir=.
40626
40627 if test "$ac_dir" != .; then
40628   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40629   # A "../" for each directory in $ac_dir_suffix.
40630   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40631 else
40632   ac_dir_suffix= ac_top_builddir=
40633 fi
40634
40635 case $srcdir in
40636   .)  # No --srcdir option.  We are building in place.
40637     ac_srcdir=.
40638     if test -z "$ac_top_builddir"; then
40639        ac_top_srcdir=.
40640     else
40641        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40642     fi ;;
40643   [\\/]* | ?:[\\/]* )  # Absolute path.
40644     ac_srcdir=$srcdir$ac_dir_suffix;
40645     ac_top_srcdir=$srcdir ;;
40646   *) # Relative path.
40647     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40648     ac_top_srcdir=$ac_top_builddir$srcdir ;;
40649 esac
40650 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
40651 # absolute.
40652 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
40653 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
40654 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
40655 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
40656
40657
40658   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40659 echo "$as_me: executing $ac_dest commands" >&6;}
40660   case $ac_dest in
40661     default-1 )
40662 # Only add multilib support code if we just rebuilt the top-level
40663 # Makefile.
40664 case " $CONFIG_FILES " in
40665  *" Makefile "*)
40666    ac_file=Makefile . ${multi_basedir}/config-ml.in
40667    ;;
40668 esac ;;
40669     default ) if test -n "$CONFIG_FILES"; then
40670    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
40671    # that multilib installs will end up installed in the correct place.
40672    # The testsuite needs it for multilib-aware ABI baseline files.
40673    # To work around this not being passed down from config-ml.in ->
40674    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
40675    # append it here.  Only modify Makefiles that have just been created.
40676    for i in src libsupc++ testsuite; do
40677     case $CONFIG_FILES in
40678      *${i}/Makefile*)
40679        #echo "Adding MULTISUBDIR to $i/Makefile"
40680        grep '^MULTISUBDIR =' Makefile >> $i/Makefile
40681        ;;
40682     esac
40683    done
40684  fi
40685  (cd include && ${MAKE-make})
40686  ;;
40687   esac
40688 done
40689 _ACEOF
40690
40691 cat >>$CONFIG_STATUS <<\_ACEOF
40692
40693 { (exit 0); exit 0; }
40694 _ACEOF
40695 chmod +x $CONFIG_STATUS
40696 ac_clean_files=$ac_clean_files_save
40697
40698
40699 # configure is writing to config.log, and then calls config.status.
40700 # config.status does its own redirection, appending to config.log.
40701 # Unfortunately, on DOS this fails, as config.log is still kept open
40702 # by configure, so config.status won't be able to write to it; its
40703 # output is simply discarded.  So we exec the FD to /dev/null,
40704 # effectively closing config.log, so it can be properly (re)opened and
40705 # appended to by config.status.  When coming back to configure, we
40706 # need to make the FD available again.
40707 if test "$no_create" != yes; then
40708   ac_cs_success=:
40709   ac_config_status_args=
40710   test "$silent" = yes &&
40711     ac_config_status_args="$ac_config_status_args --quiet"
40712   exec 5>/dev/null
40713   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40714   exec 5>>config.log
40715   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40716   # would make configure fail if this is the last instruction.
40717   $ac_cs_success || { (exit 1); exit 1; }
40718 fi
40719