configure.ac: GCC_NO_EXECUTABLES was supposed to be commented in the patch from 3...
[official-gcc.git] / libstdc++-v3 / configure
blobcd5c331d1e36001787c4649838a39de770de3c27
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.
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 ## --------------------- ##
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
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"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
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`
248 exec 6>&1
251 # Initializations.
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}
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}
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=''
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"
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 WERROR SECTION_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS SYMVER_MAP port_specific_symbol_files GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE baseline_dir GLIBCXX_TEST_WCHAR_T_TRUE GLIBCXX_TEST_WCHAR_T_FALSE GLIBCXX_TEST_ABI_TRUE GLIBCXX_TEST_ABI_FALSE ATOMICITY_INC_SRCDIR FPOS_INC_SRCDIR OS_INC_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
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
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'
352 ac_prev=
353 for ac_option
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
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
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 ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
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 ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
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 ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
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 ;;
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 ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
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 ;;
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 ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
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 ;;
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 ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
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 ;;
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 ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
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'" ;;
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" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
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 ;;
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 ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
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 ;;
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}
648 esac
649 done
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; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
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
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
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
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
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
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
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=..
724 else
725 ac_srcdir_defaulted=no
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; }; }
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
766 # Report the --help message.
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.
774 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
779 Defaults for the options are specified in brackets.
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 \`..']
792 _ACEOF
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]
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'.
806 For better control, use the options below.
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
823 cat <<\_ACEOF
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
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
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
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
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
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
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.
917 _ACEOF
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=.
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=
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`
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
972 cd $ac_popdir
973 done
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
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
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.
994 It was created by package-unused $as_me version-unused, which was
995 generated by GNU Autoconf 2.57. Invocation command line was
997 $ $0 $@
999 _ACEOF
1001 cat <<_ASUNAME
1002 ## --------- ##
1003 ## Platform. ##
1004 ## --------- ##
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`
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`
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`
1023 _ASUNAME
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 for as_dir in $PATH
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031 done
1033 } >&5
1035 cat >&5 <<_ACEOF
1038 ## ----------- ##
1039 ## Core tests. ##
1040 ## ----------- ##
1042 _ACEOF
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
1057 for ac_arg
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'" ;;
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
1083 -* ) ac_must_keep_next=true ;;
1084 esac
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
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; }
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.
1104 echo
1106 cat <<\_ASBOX
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1110 _ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
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"
1122 sed -n \
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 esac;
1127 echo
1129 cat <<\_ASBOX
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1133 _ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
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
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
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
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
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
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
1185 # Predefined preprocessor variables.
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 _ACEOF
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 _ACEOF
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"
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"
1228 done
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
1241 else
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
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 ,);;
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
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; }; }
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
1331 ac_config_headers="$ac_config_headers config.h"
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
1340 # For libtool versioning info, format is CURRENT:REVISION:AGE
1341 libtool_VERSION=6:0:0
1344 # Find the rest of the source tree framework.
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
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.
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.."
1373 else
1374 multi_basedir="$srcdir/.."
1378 ac_config_commands="$ac_config_commands default-1"
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).
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
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; }; }
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.
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
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; }; }
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.
1446 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
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. :-)
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.
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; }; }
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; }; }
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/'`
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; }; }
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/'`
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; }; }
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/'`
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}
1544 # Handy for debugging:
1545 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1547 if test "$build" != "$host"; then
1548 # We are being configured with some form of cross compiler.
1549 GLIBCXX_IS_NATIVE=false
1550 # GCC_NO_EXECUTABLES
1551 else
1552 GLIBCXX_IS_NATIVE=true
1555 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1556 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1557 # 1.x: minimum required version
1558 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1559 # of other PACKAGE_* variables will, however, and there's nothing
1560 # we can do about that; they come from AC_INIT).
1561 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1562 # file in the top srcdir, etc, etc), so stop complaining.
1563 # no-dependencies: turns off auto dependency generation (just for now)
1564 # -Wall: turns on all automake warnings
1565 am__api_version="1.7"
1566 # Find a good install program. We prefer a C program (faster),
1567 # so one script is as good as another. But avoid the broken or
1568 # incompatible versions:
1569 # SysV /etc/install, /usr/sbin/install
1570 # SunOS /usr/etc/install
1571 # IRIX /sbin/install
1572 # AIX /bin/install
1573 # AmigaOS /C/install, which installs bootblocks on floppy discs
1574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1577 # ./install, which can be erroneously created by make from ./install.sh.
1578 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1579 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1580 if test -z "$INSTALL"; then
1581 if test "${ac_cv_path_install+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
1589 # Account for people who put trailing slashes in PATH elements.
1590 case $as_dir/ in
1591 ./ | .// | /cC/* | \
1592 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1593 /usr/ucb/* ) ;;
1595 # OSF1 and SCO ODT 3.0 have their own names for install.
1596 # Don't use installbsd from OSF since it installs stuff as root
1597 # by default.
1598 for ac_prog in ginstall scoinst install; do
1599 for ac_exec_ext in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1601 if test $ac_prog = install &&
1602 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1603 # AIX install. It has an incompatible calling convention.
1605 elif test $ac_prog = install &&
1606 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1607 # program-specific install script used by HP pwplus--don't use.
1609 else
1610 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1611 break 3
1614 done
1615 done
1617 esac
1618 done
1622 if test "${ac_cv_path_install+set}" = set; then
1623 INSTALL=$ac_cv_path_install
1624 else
1625 # As a last resort, use the slow shell script. We don't cache a
1626 # path for INSTALL within a source directory, because that will
1627 # break other packages using the cache if that directory is
1628 # removed, or if the path is relative.
1629 INSTALL=$ac_install_sh
1632 echo "$as_me:$LINENO: result: $INSTALL" >&5
1633 echo "${ECHO_T}$INSTALL" >&6
1635 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1636 # It thinks the first close brace ends the variable substitution.
1637 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1639 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1641 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1643 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1644 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1645 # Just in case
1646 sleep 1
1647 echo timestamp > conftest.file
1648 # Do `set' in a subshell so we don't clobber the current shell's
1649 # arguments. Must try -L first in case configure is actually a
1650 # symlink; some systems play weird games with the mod time of symlinks
1651 # (eg FreeBSD returns the mod time of the symlink's containing
1652 # directory).
1653 if (
1654 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1655 if test "$*" = "X"; then
1656 # -L didn't work.
1657 set X `ls -t $srcdir/configure conftest.file`
1659 rm -f conftest.file
1660 if test "$*" != "X $srcdir/configure conftest.file" \
1661 && test "$*" != "X conftest.file $srcdir/configure"; then
1663 # If neither matched, then we have a broken ls. This can happen
1664 # if, for instance, CONFIG_SHELL is bash and it inherits a
1665 # broken ls alias from the environment. This has actually
1666 # happened. Such a system could not be considered "sane".
1667 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1668 alias in your environment" >&5
1669 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1670 alias in your environment" >&2;}
1671 { (exit 1); exit 1; }; }
1674 test "$2" = conftest.file
1676 then
1677 # Ok.
1679 else
1680 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1681 Check your system clock" >&5
1682 echo "$as_me: error: newly created file is older than distributed files!
1683 Check your system clock" >&2;}
1684 { (exit 1); exit 1; }; }
1686 echo "$as_me:$LINENO: result: yes" >&5
1687 echo "${ECHO_T}yes" >&6
1688 test "$program_prefix" != NONE &&
1689 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1690 # Use a double $ so make ignores it.
1691 test "$program_suffix" != NONE &&
1692 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1693 # Double any \ or $. echo might interpret backslashes.
1694 # By default was `s,x,x', remove it if useless.
1695 cat <<\_ACEOF >conftest.sed
1696 s/[\\$]/&&/g;s/;s,x,x,$//
1697 _ACEOF
1698 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1699 rm conftest.sed
1702 # expand $ac_aux_dir to an absolute path
1703 am_aux_dir=`cd $ac_aux_dir && pwd`
1705 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1706 # Use eval to expand $SHELL
1707 if eval "$MISSING --run true"; then
1708 am_missing_run="$MISSING --run "
1709 else
1710 am_missing_run=
1711 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1712 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1715 for ac_prog in gawk mawk nawk awk
1717 # Extract the first word of "$ac_prog", so it can be a program name with args.
1718 set dummy $ac_prog; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_AWK+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724 if test -n "$AWK"; then
1725 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1726 else
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1730 IFS=$as_save_IFS
1731 test -z "$as_dir" && as_dir=.
1732 for ac_exec_ext in '' $ac_executable_extensions; do
1733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734 ac_cv_prog_AWK="$ac_prog"
1735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736 break 2
1738 done
1739 done
1743 AWK=$ac_cv_prog_AWK
1744 if test -n "$AWK"; then
1745 echo "$as_me:$LINENO: result: $AWK" >&5
1746 echo "${ECHO_T}$AWK" >&6
1747 else
1748 echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1752 test -n "$AWK" && break
1753 done
1755 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1756 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1757 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1758 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761 cat >conftest.make <<\_ACEOF
1762 all:
1763 @echo 'ac_maketemp="$(MAKE)"'
1764 _ACEOF
1765 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1766 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1767 if test -n "$ac_maketemp"; then
1768 eval ac_cv_prog_make_${ac_make}_set=yes
1769 else
1770 eval ac_cv_prog_make_${ac_make}_set=no
1772 rm -f conftest.make
1774 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1775 echo "$as_me:$LINENO: result: yes" >&5
1776 echo "${ECHO_T}yes" >&6
1777 SET_MAKE=
1778 else
1779 echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1781 SET_MAKE="MAKE=${MAKE-make}"
1784 rm -rf .tst 2>/dev/null
1785 mkdir .tst 2>/dev/null
1786 if test -d .tst; then
1787 am__leading_dot=.
1788 else
1789 am__leading_dot=_
1791 rmdir .tst 2>/dev/null
1793 # test to see if srcdir already configured
1794 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1795 test -f $srcdir/config.status; then
1796 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1797 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1798 { (exit 1); exit 1; }; }
1801 # test whether we have cygpath
1802 if test -z "$CYGPATH_W"; then
1803 if (cygpath --version) >/dev/null 2>/dev/null; then
1804 CYGPATH_W='cygpath -w'
1805 else
1806 CYGPATH_W=echo
1811 # Define the identity of the package.
1812 PACKAGE='libstdc++'
1813 VERSION='version-unused'
1816 # Some tools Automake needs.
1818 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1821 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1824 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1827 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1830 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1833 AMTAR=${AMTAR-"${am_missing_run}tar"}
1835 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1837 # Installed binaries are usually stripped using `strip' when the user
1838 # run `make install-strip'. However `strip' might not be the right
1839 # tool to use in cross-compilation environments, therefore Automake
1840 # will honor the `STRIP' environment variable to overrule this program.
1841 if test "$cross_compiling" != no; then
1842 if test -n "$ac_tool_prefix"; then
1843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1844 set dummy ${ac_tool_prefix}strip; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_STRIP+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850 if test -n "$STRIP"; then
1851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1852 else
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 for as_dir in $PATH
1856 IFS=$as_save_IFS
1857 test -z "$as_dir" && as_dir=.
1858 for ac_exec_ext in '' $ac_executable_extensions; do
1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 break 2
1864 done
1865 done
1869 STRIP=$ac_cv_prog_STRIP
1870 if test -n "$STRIP"; then
1871 echo "$as_me:$LINENO: result: $STRIP" >&5
1872 echo "${ECHO_T}$STRIP" >&6
1873 else
1874 echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1879 if test -z "$ac_cv_prog_STRIP"; then
1880 ac_ct_STRIP=$STRIP
1881 # Extract the first word of "strip", so it can be a program name with args.
1882 set dummy strip; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 if test -n "$ac_ct_STRIP"; then
1889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_ac_ct_STRIP="strip"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 break 2
1902 done
1903 done
1905 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1909 if test -n "$ac_ct_STRIP"; then
1910 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1911 echo "${ECHO_T}$ac_ct_STRIP" >&6
1912 else
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1917 STRIP=$ac_ct_STRIP
1918 else
1919 STRIP="$ac_cv_prog_STRIP"
1923 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1925 # We need awk for the "check" target. The system "awk" is bad on
1926 # some platforms.
1931 # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
1932 # up critical shell variables.
1935 # These need to be absolute paths, yet at the same time need to
1936 # canonicalize only relative paths, because then amd will not unmount
1937 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1938 glibcxx_builddir=`${PWDCMD-pwd}`
1939 case $srcdir in
1940 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
1941 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1942 esac
1943 toplevel_srcdir=${glibcxx_srcdir}/..
1948 # We use these options to decide which functions to include. They are
1949 # set from the top level.
1951 # Check whether --with-target-subdir or --without-target-subdir was given.
1952 if test "${with_target_subdir+set}" = set; then
1953 withval="$with_target_subdir"
1958 # Check whether --with-cross-host or --without-cross-host was given.
1959 if test "${with_cross_host+set}" = set; then
1960 withval="$with_cross_host"
1965 # Check whether --with-newlib or --without-newlib was given.
1966 if test "${with_newlib+set}" = set; then
1967 withval="$with_newlib"
1971 # We're almost certainly being configured before anything else which uses
1972 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
1973 # we not cache the value of CXX that we "discover" here, because it's set
1974 # to something unique for us and libjava. Other target libraries need to
1975 # find CXX for themselves. We yank the rug out from under the normal AC_*
1976 # process by sneakily renaming the cache variable. This also lets us debug
1977 # the value of "our" CXX in postmortems.
1979 # We must also force CXX to /not/ be a precious variable, otherwise the
1980 # wrong (non-multilib-adjusted) value will be used in multilibs. This
1981 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
1982 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
1983 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
1985 # -fno-builtin must be present here so that a non-conflicting form of
1986 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
1991 save_CXXFLAGS="$CXXFLAGS"
1992 CXXFLAGS="$CXXFLAGS -fno-builtin"
1993 ac_ext=c
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 if test -n "$ac_tool_prefix"; then
1999 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2000 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_CC+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006 if test -n "$CC"; then
2007 ac_cv_prog_CC="$CC" # Let the user override the test.
2008 else
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2012 IFS=$as_save_IFS
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 break 2
2020 done
2021 done
2025 CC=$ac_cv_prog_CC
2026 if test -n "$CC"; then
2027 echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6
2029 else
2030 echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2035 if test -z "$ac_cv_prog_CC"; then
2036 ac_ct_CC=$CC
2037 # Extract the first word of "gcc", so it can be a program name with args.
2038 set dummy gcc; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044 if test -n "$ac_ct_CC"; then
2045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2046 else
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054 ac_cv_prog_ac_ct_CC="gcc"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 break 2
2058 done
2059 done
2063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064 if test -n "$ac_ct_CC"; then
2065 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066 echo "${ECHO_T}$ac_ct_CC" >&6
2067 else
2068 echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2072 CC=$ac_ct_CC
2073 else
2074 CC="$ac_cv_prog_CC"
2077 if test -z "$CC"; then
2078 if test -n "$ac_tool_prefix"; then
2079 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2080 set dummy ${ac_tool_prefix}cc; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086 if test -n "$CC"; then
2087 ac_cv_prog_CC="$CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_CC="${ac_tool_prefix}cc"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2100 done
2101 done
2105 CC=$ac_cv_prog_CC
2106 if test -n "$CC"; then
2107 echo "$as_me:$LINENO: result: $CC" >&5
2108 echo "${ECHO_T}$CC" >&6
2109 else
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2115 if test -z "$ac_cv_prog_CC"; then
2116 ac_ct_CC=$CC
2117 # Extract the first word of "cc", so it can be a program name with args.
2118 set dummy cc; ac_word=$2
2119 echo "$as_me:$LINENO: checking for $ac_word" >&5
2120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124 if test -n "$ac_ct_CC"; then
2125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126 else
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 for ac_exec_ext in '' $ac_executable_extensions; do
2133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134 ac_cv_prog_ac_ct_CC="cc"
2135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 break 2
2138 done
2139 done
2143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144 if test -n "$ac_ct_CC"; then
2145 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146 echo "${ECHO_T}$ac_ct_CC" >&6
2147 else
2148 echo "$as_me:$LINENO: result: no" >&5
2149 echo "${ECHO_T}no" >&6
2152 CC=$ac_ct_CC
2153 else
2154 CC="$ac_cv_prog_CC"
2158 if test -z "$CC"; then
2159 # Extract the first word of "cc", so it can be a program name with args.
2160 set dummy cc; ac_word=$2
2161 echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163 if test "${ac_cv_prog_CC+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166 if test -n "$CC"; then
2167 ac_cv_prog_CC="$CC" # Let the user override the test.
2168 else
2169 ac_prog_rejected=no
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2178 ac_prog_rejected=yes
2179 continue
2181 ac_cv_prog_CC="cc"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 break 2
2185 done
2186 done
2188 if test $ac_prog_rejected = yes; then
2189 # We found a bogon in the path, so make sure we never use it.
2190 set dummy $ac_cv_prog_CC
2191 shift
2192 if test $# != 0; then
2193 # We chose a different compiler from the bogus one.
2194 # However, it has the same basename, so the bogon will be chosen
2195 # first if we set CC to just the basename; use the full file name.
2196 shift
2197 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2202 CC=$ac_cv_prog_CC
2203 if test -n "$CC"; then
2204 echo "$as_me:$LINENO: result: $CC" >&5
2205 echo "${ECHO_T}$CC" >&6
2206 else
2207 echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2212 if test -z "$CC"; then
2213 if test -n "$ac_tool_prefix"; then
2214 for ac_prog in cl
2216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2218 echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2220 if test "${ac_cv_prog_CC+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2225 else
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2229 IFS=$as_save_IFS
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2233 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 break 2
2237 done
2238 done
2242 CC=$ac_cv_prog_CC
2243 if test -n "$CC"; then
2244 echo "$as_me:$LINENO: result: $CC" >&5
2245 echo "${ECHO_T}$CC" >&6
2246 else
2247 echo "$as_me:$LINENO: result: no" >&5
2248 echo "${ECHO_T}no" >&6
2251 test -n "$CC" && break
2252 done
2254 if test -z "$CC"; then
2255 ac_ct_CC=$CC
2256 for ac_prog in cl
2258 # Extract the first word of "$ac_prog", so it can be a program name with args.
2259 set dummy $ac_prog; ac_word=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265 if test -n "$ac_ct_CC"; then
2266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2267 else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275 ac_cv_prog_ac_ct_CC="$ac_prog"
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 break 2
2279 done
2280 done
2284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2285 if test -n "$ac_ct_CC"; then
2286 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2287 echo "${ECHO_T}$ac_ct_CC" >&6
2288 else
2289 echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2293 test -n "$ac_ct_CC" && break
2294 done
2296 CC=$ac_ct_CC
2302 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: no acceptable C compiler found in \$PATH
2305 See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2308 # Provide some information about the compiler.
2309 echo "$as_me:$LINENO:" \
2310 "checking for C compiler version" >&5
2311 ac_compiler=`set X $ac_compile; echo $2`
2312 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2313 (eval $ac_compiler --version </dev/null >&5) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }
2317 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2318 (eval $ac_compiler -v </dev/null >&5) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }
2322 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2323 (eval $ac_compiler -V </dev/null >&5) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2328 cat >conftest.$ac_ext <<_ACEOF
2329 #line $LINENO "configure"
2330 /* confdefs.h. */
2331 _ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2337 main ()
2341 return 0;
2343 _ACEOF
2344 ac_clean_files_save=$ac_clean_files
2345 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2346 # Try to create an executable without -o first, disregard a.out.
2347 # It will help us diagnose broken compilers, and finding out an intuition
2348 # of exeext.
2349 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2350 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2351 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2352 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2353 (eval $ac_link_default) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
2357 # Find the output, starting from the most likely. This scheme is
2358 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2359 # resort.
2361 # Be careful to initialize this variable, since it used to be cached.
2362 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2363 ac_cv_exeext=
2364 # b.out is created by i960 compilers.
2365 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2367 test -f "$ac_file" || continue
2368 case $ac_file in
2369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2371 conftest.$ac_ext )
2372 # This is the source file.
2374 [ab].out )
2375 # We found the default executable, but exeext='' is most
2376 # certainly right.
2377 break;;
2378 *.* )
2379 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2380 # FIXME: I believe we export ac_cv_exeext for Libtool,
2381 # but it would be cool to find out if it's true. Does anybody
2382 # maintain Libtool? --akim.
2383 export ac_cv_exeext
2384 break;;
2386 break;;
2387 esac
2388 done
2389 else
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2393 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2394 See \`config.log' for more details." >&5
2395 echo "$as_me: error: C compiler cannot create executables
2396 See \`config.log' for more details." >&2;}
2397 { (exit 77); exit 77; }; }
2400 ac_exeext=$ac_cv_exeext
2401 echo "$as_me:$LINENO: result: $ac_file" >&5
2402 echo "${ECHO_T}$ac_file" >&6
2404 # Check the compiler produces executables we can run. If not, either
2405 # the compiler is broken, or we cross compile.
2406 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2407 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2408 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2409 # If not cross compiling, check that we can run a simple program.
2410 if test "$cross_compiling" != yes; then
2411 if { ac_try='./$ac_file'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2417 cross_compiling=no
2418 else
2419 if test "$cross_compiling" = maybe; then
2420 cross_compiling=yes
2421 else
2422 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2423 If you meant to cross compile, use \`--host'.
2424 See \`config.log' for more details." >&5
2425 echo "$as_me: error: cannot run C compiled programs.
2426 If you meant to cross compile, use \`--host'.
2427 See \`config.log' for more details." >&2;}
2428 { (exit 1); exit 1; }; }
2432 echo "$as_me:$LINENO: result: yes" >&5
2433 echo "${ECHO_T}yes" >&6
2435 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2436 ac_clean_files=$ac_clean_files_save
2437 # Check the compiler produces executables we can run. If not, either
2438 # the compiler is broken, or we cross compile.
2439 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2440 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2441 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2442 echo "${ECHO_T}$cross_compiling" >&6
2444 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2445 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447 (eval $ac_link) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; then
2451 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2452 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2453 # work properly (i.e., refer to `conftest.exe'), while it won't with
2454 # `rm'.
2455 for ac_file in conftest.exe conftest conftest.*; do
2456 test -f "$ac_file" || continue
2457 case $ac_file in
2458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2459 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2460 export ac_cv_exeext
2461 break;;
2462 * ) break;;
2463 esac
2464 done
2465 else
2466 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&2;}
2470 { (exit 1); exit 1; }; }
2473 rm -f conftest$ac_cv_exeext
2474 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2475 echo "${ECHO_T}$ac_cv_exeext" >&6
2477 rm -f conftest.$ac_ext
2478 EXEEXT=$ac_cv_exeext
2479 ac_exeext=$EXEEXT
2480 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2481 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2482 if test "${ac_cv_objext+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 cat >conftest.$ac_ext <<_ACEOF
2486 #line $LINENO "configure"
2487 /* confdefs.h. */
2488 _ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2494 main ()
2498 return 0;
2500 _ACEOF
2501 rm -f conftest.o conftest.obj
2502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503 (eval $ac_compile) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; then
2507 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2508 case $ac_file in
2509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2510 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2511 break;;
2512 esac
2513 done
2514 else
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2518 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2519 See \`config.log' for more details." >&5
2520 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2521 See \`config.log' for more details." >&2;}
2522 { (exit 1); exit 1; }; }
2525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2527 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2528 echo "${ECHO_T}$ac_cv_objext" >&6
2529 OBJEXT=$ac_cv_objext
2530 ac_objext=$OBJEXT
2531 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2532 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2533 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536 cat >conftest.$ac_ext <<_ACEOF
2537 #line $LINENO "configure"
2538 /* confdefs.h. */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2545 main ()
2547 #ifndef __GNUC__
2548 choke me
2549 #endif
2552 return 0;
2554 _ACEOF
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 ac_compiler_gnu=yes
2568 else
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2572 ac_compiler_gnu=no
2574 rm -f conftest.$ac_objext conftest.$ac_ext
2575 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2578 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2579 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2580 GCC=`test $ac_compiler_gnu = yes && echo yes`
2581 ac_test_CFLAGS=${CFLAGS+set}
2582 ac_save_CFLAGS=$CFLAGS
2583 CFLAGS="-g"
2584 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2585 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2586 if test "${ac_cv_prog_cc_g+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589 cat >conftest.$ac_ext <<_ACEOF
2590 #line $LINENO "configure"
2591 /* confdefs.h. */
2592 _ACEOF
2593 cat confdefs.h >>conftest.$ac_ext
2594 cat >>conftest.$ac_ext <<_ACEOF
2595 /* end confdefs.h. */
2598 main ()
2602 return 0;
2604 _ACEOF
2605 rm -f conftest.$ac_objext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2607 (eval $ac_compile) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try='test -s conftest.$ac_objext'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; }; then
2617 ac_cv_prog_cc_g=yes
2618 else
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2622 ac_cv_prog_cc_g=no
2624 rm -f conftest.$ac_objext conftest.$ac_ext
2626 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2627 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2628 if test "$ac_test_CFLAGS" = set; then
2629 CFLAGS=$ac_save_CFLAGS
2630 elif test $ac_cv_prog_cc_g = yes; then
2631 if test "$GCC" = yes; then
2632 CFLAGS="-g -O2"
2633 else
2634 CFLAGS="-g"
2636 else
2637 if test "$GCC" = yes; then
2638 CFLAGS="-O2"
2639 else
2640 CFLAGS=
2643 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2644 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2645 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 ac_cv_prog_cc_stdc=no
2649 ac_save_CC=$CC
2650 cat >conftest.$ac_ext <<_ACEOF
2651 #line $LINENO "configure"
2652 /* confdefs.h. */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2657 #include <stdarg.h>
2658 #include <stdio.h>
2659 #include <sys/types.h>
2660 #include <sys/stat.h>
2661 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2662 struct buf { int x; };
2663 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2664 static char *e (p, i)
2665 char **p;
2666 int i;
2668 return p[i];
2670 static char *f (char * (*g) (char **, int), char **p, ...)
2672 char *s;
2673 va_list v;
2674 va_start (v,p);
2675 s = g (p, va_arg (v,int));
2676 va_end (v);
2677 return s;
2679 int test (int i, double x);
2680 struct s1 {int (*f) (int a);};
2681 struct s2 {int (*f) (double a);};
2682 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2683 int argc;
2684 char **argv;
2686 main ()
2688 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2690 return 0;
2692 _ACEOF
2693 # Don't try gcc -ansi; that turns off useful extensions and
2694 # breaks some systems' header files.
2695 # AIX -qlanglvl=ansi
2696 # Ultrix and OSF/1 -std1
2697 # HP-UX 10.20 and later -Ae
2698 # HP-UX older versions -Aa -D_HPUX_SOURCE
2699 # SVR4 -Xc -D__EXTENSIONS__
2700 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702 CC="$ac_save_CC $ac_arg"
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 (eval $ac_try) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2715 ac_cv_prog_cc_stdc=$ac_arg
2716 break
2717 else
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2722 rm -f conftest.$ac_objext
2723 done
2724 rm -f conftest.$ac_ext conftest.$ac_objext
2725 CC=$ac_save_CC
2729 case "x$ac_cv_prog_cc_stdc" in
2730 x|xno)
2731 echo "$as_me:$LINENO: result: none needed" >&5
2732 echo "${ECHO_T}none needed" >&6 ;;
2734 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2735 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2736 CC="$CC $ac_cv_prog_cc_stdc" ;;
2737 esac
2739 # Some people use a C++ compiler to compile C. Since we use `exit',
2740 # in C++ we need to declare it. In case someone uses the same compiler
2741 # for both compiling C and C++ we need to have the C++ compiler decide
2742 # the declaration of exit, since it's the most demanding environment.
2743 cat >conftest.$ac_ext <<_ACEOF
2744 #ifndef __cplusplus
2745 choke me
2746 #endif
2747 _ACEOF
2748 rm -f conftest.$ac_objext
2749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750 (eval $ac_compile) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
2754 { ac_try='test -s conftest.$ac_objext'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2760 for ac_declaration in \
2761 '' \
2762 'extern "C" void std::exit (int) throw (); using std::exit;' \
2763 'extern "C" void std::exit (int); using std::exit;' \
2764 'extern "C" void exit (int) throw ();' \
2765 'extern "C" void exit (int);' \
2766 'void exit (int);'
2768 cat >conftest.$ac_ext <<_ACEOF
2769 #line $LINENO "configure"
2770 /* confdefs.h. */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2775 $ac_declaration
2776 #include <stdlib.h>
2778 main ()
2780 exit (42);
2782 return 0;
2784 _ACEOF
2785 rm -f conftest.$ac_objext
2786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2787 (eval $ac_compile) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2798 else
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 continue
2804 rm -f conftest.$ac_objext conftest.$ac_ext
2805 cat >conftest.$ac_ext <<_ACEOF
2806 #line $LINENO "configure"
2807 /* confdefs.h. */
2808 _ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2812 $ac_declaration
2814 main ()
2816 exit (42);
2818 return 0;
2820 _ACEOF
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try='test -s conftest.$ac_objext'
2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 (eval $ac_try) 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; }; then
2833 break
2834 else
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2839 rm -f conftest.$ac_objext conftest.$ac_ext
2840 done
2841 rm -f conftest*
2842 if test -n "$ac_declaration"; then
2843 echo '#ifdef __cplusplus' >>confdefs.h
2844 echo $ac_declaration >>confdefs.h
2845 echo '#endif' >>confdefs.h
2848 else
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2853 rm -f conftest.$ac_objext conftest.$ac_ext
2854 ac_ext=c
2855 ac_cpp='$CPP $CPPFLAGS'
2856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2860 ac_ext=cc
2861 ac_cpp='$CXXCPP $CPPFLAGS'
2862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2865 if test -n "$ac_tool_prefix"; then
2866 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2870 echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875 if test -n "$CXX"; then
2876 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2889 done
2890 done
2894 CXX=$glibcxx_cv_prog_CXX
2895 if test -n "$CXX"; then
2896 echo "$as_me:$LINENO: result: $CXX" >&5
2897 echo "${ECHO_T}$CXX" >&6
2898 else
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2903 test -n "$CXX" && break
2904 done
2906 if test -z "$CXX"; then
2907 ac_ct_CXX=$CXX
2908 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2910 # Extract the first word of "$ac_prog", so it can be a program name with args.
2911 set dummy $ac_prog; ac_word=$2
2912 echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 if test -n "$ac_ct_CXX"; then
2918 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_CXX="$ac_prog"
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2931 done
2932 done
2936 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2937 if test -n "$ac_ct_CXX"; then
2938 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2939 echo "${ECHO_T}$ac_ct_CXX" >&6
2940 else
2941 echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6
2945 test -n "$ac_ct_CXX" && break
2946 done
2947 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2949 CXX=$ac_ct_CXX
2953 # Provide some information about the compiler.
2954 echo "$as_me:$LINENO:" \
2955 "checking for C++ compiler version" >&5
2956 ac_compiler=`set X $ac_compile; echo $2`
2957 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2958 (eval $ac_compiler --version </dev/null >&5) 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }
2962 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2963 (eval $ac_compiler -v </dev/null >&5) 2>&5
2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }
2967 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2968 (eval $ac_compiler -V </dev/null >&5) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }
2973 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2974 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2975 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978 cat >conftest.$ac_ext <<_ACEOF
2979 #line $LINENO "configure"
2980 /* confdefs.h. */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2987 main ()
2989 #ifndef __GNUC__
2990 choke me
2991 #endif
2994 return 0;
2996 _ACEOF
2997 rm -f conftest.$ac_objext
2998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2999 (eval $ac_compile) 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005 (eval $ac_try) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; }; then
3009 ac_compiler_gnu=yes
3010 else
3011 echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3014 ac_compiler_gnu=no
3016 rm -f conftest.$ac_objext conftest.$ac_ext
3017 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3020 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3021 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3022 GXX=`test $ac_compiler_gnu = yes && echo yes`
3023 ac_test_CXXFLAGS=${CXXFLAGS+set}
3024 ac_save_CXXFLAGS=$CXXFLAGS
3025 CXXFLAGS="-g"
3026 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3027 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3028 if test "${ac_cv_prog_cxx_g+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 else
3031 cat >conftest.$ac_ext <<_ACEOF
3032 #line $LINENO "configure"
3033 /* confdefs.h. */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3040 main ()
3044 return 0;
3046 _ACEOF
3047 rm -f conftest.$ac_objext
3048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3049 (eval $ac_compile) 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -s conftest.$ac_objext'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 (eval $ac_try) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 ac_cv_prog_cxx_g=yes
3060 else
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3064 ac_cv_prog_cxx_g=no
3066 rm -f conftest.$ac_objext conftest.$ac_ext
3068 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3069 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3070 if test "$ac_test_CXXFLAGS" = set; then
3071 CXXFLAGS=$ac_save_CXXFLAGS
3072 elif test $ac_cv_prog_cxx_g = yes; then
3073 if test "$GXX" = yes; then
3074 CXXFLAGS="-g -O2"
3075 else
3076 CXXFLAGS="-g"
3078 else
3079 if test "$GXX" = yes; then
3080 CXXFLAGS="-O2"
3081 else
3082 CXXFLAGS=
3085 for ac_declaration in \
3086 '' \
3087 'extern "C" void std::exit (int) throw (); using std::exit;' \
3088 'extern "C" void std::exit (int); using std::exit;' \
3089 'extern "C" void exit (int) throw ();' \
3090 'extern "C" void exit (int);' \
3091 'void exit (int);'
3093 cat >conftest.$ac_ext <<_ACEOF
3094 #line $LINENO "configure"
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3100 $ac_declaration
3101 #include <stdlib.h>
3103 main ()
3105 exit (42);
3107 return 0;
3109 _ACEOF
3110 rm -f conftest.$ac_objext
3111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3112 (eval $ac_compile) 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } &&
3116 { ac_try='test -s conftest.$ac_objext'
3117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118 (eval $ac_try) 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; }; then
3123 else
3124 echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3127 continue
3129 rm -f conftest.$ac_objext conftest.$ac_ext
3130 cat >conftest.$ac_ext <<_ACEOF
3131 #line $LINENO "configure"
3132 /* confdefs.h. */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3137 $ac_declaration
3139 main ()
3141 exit (42);
3143 return 0;
3145 _ACEOF
3146 rm -f conftest.$ac_objext
3147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3148 (eval $ac_compile) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 (eval $ac_try) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 break
3159 else
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3164 rm -f conftest.$ac_objext conftest.$ac_ext
3165 done
3166 rm -f conftest*
3167 if test -n "$ac_declaration"; then
3168 echo '#ifdef __cplusplus' >>confdefs.h
3169 echo $ac_declaration >>confdefs.h
3170 echo '#endif' >>confdefs.h
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 CXXFLAGS="$save_CXXFLAGS"
3184 # For directory versioning (e.g., headers) and other variables.
3185 echo "$as_me:$LINENO: checking for GCC version number" >&5
3186 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3187 gcc_version=`$CXX -dumpversion`
3188 echo "$as_me:$LINENO: result: $gcc_version" >&5
3189 echo "${ECHO_T}$gcc_version" >&6
3191 # For some reason, gettext needs this.
3193 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3194 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3195 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198 ac_check_lib_save_LIBS=$LIBS
3199 LIBS="-lcposix $LIBS"
3200 cat >conftest.$ac_ext <<_ACEOF
3201 #line $LINENO "configure"
3202 /* confdefs.h. */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3208 /* Override any gcc2 internal prototype to avoid an error. */
3209 #ifdef __cplusplus
3210 extern "C"
3211 #endif
3212 /* We use char because int might match the return type of a gcc2
3213 builtin and then its argument prototype would still apply. */
3214 char strerror ();
3216 main ()
3218 strerror ();
3220 return 0;
3222 _ACEOF
3223 rm -f conftest.$ac_objext conftest$ac_exeext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3225 (eval $ac_link) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -s conftest$ac_exeext'
3230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 (eval $ac_try) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; }; then
3235 ac_cv_lib_cposix_strerror=yes
3236 else
3237 echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3240 ac_cv_lib_cposix_strerror=no
3242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3243 LIBS=$ac_check_lib_save_LIBS
3245 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3246 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3247 if test $ac_cv_lib_cposix_strerror = yes; then
3248 LIBS="$LIBS -lcposix"
3254 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3255 # available). Uncomment the next line to force a particular method.
3256 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3257 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3258 LN_S=$as_ln_s
3259 if test "$LN_S" = "ln -s"; then
3260 echo "$as_me:$LINENO: result: yes" >&5
3261 echo "${ECHO_T}yes" >&6
3262 else
3263 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3264 echo "${ECHO_T}no, using $LN_S" >&6
3267 #LN_S='cp -p'
3269 if test -n "$ac_tool_prefix"; then
3270 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3271 set dummy ${ac_tool_prefix}as; ac_word=$2
3272 echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3274 if test "${ac_cv_prog_AS+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277 if test -n "$AS"; then
3278 ac_cv_prog_AS="$AS" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_prog_AS="${ac_tool_prefix}as"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 break 2
3291 done
3292 done
3296 AS=$ac_cv_prog_AS
3297 if test -n "$AS"; then
3298 echo "$as_me:$LINENO: result: $AS" >&5
3299 echo "${ECHO_T}$AS" >&6
3300 else
3301 echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3306 if test -z "$ac_cv_prog_AS"; then
3307 ac_ct_AS=$AS
3308 # Extract the first word of "as", so it can be a program name with args.
3309 set dummy as; ac_word=$2
3310 echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 if test -n "$ac_ct_AS"; then
3316 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_ac_ct_AS="as"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3329 done
3330 done
3334 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3335 if test -n "$ac_ct_AS"; then
3336 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3337 echo "${ECHO_T}$ac_ct_AS" >&6
3338 else
3339 echo "$as_me:$LINENO: result: no" >&5
3340 echo "${ECHO_T}no" >&6
3343 AS=$ac_ct_AS
3344 else
3345 AS="$ac_cv_prog_AS"
3348 if test -n "$ac_tool_prefix"; then
3349 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3350 set dummy ${ac_tool_prefix}ar; ac_word=$2
3351 echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3353 if test "${ac_cv_prog_AR+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356 if test -n "$AR"; then
3357 ac_cv_prog_AR="$AR" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3362 IFS=$as_save_IFS
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366 ac_cv_prog_AR="${ac_tool_prefix}ar"
3367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 break 2
3370 done
3371 done
3375 AR=$ac_cv_prog_AR
3376 if test -n "$AR"; then
3377 echo "$as_me:$LINENO: result: $AR" >&5
3378 echo "${ECHO_T}$AR" >&6
3379 else
3380 echo "$as_me:$LINENO: result: no" >&5
3381 echo "${ECHO_T}no" >&6
3385 if test -z "$ac_cv_prog_AR"; then
3386 ac_ct_AR=$AR
3387 # Extract the first word of "ar", so it can be a program name with args.
3388 set dummy ar; ac_word=$2
3389 echo "$as_me:$LINENO: checking for $ac_word" >&5
3390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3391 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 if test -n "$ac_ct_AR"; then
3395 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404 ac_cv_prog_ac_ct_AR="ar"
3405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3408 done
3409 done
3413 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3414 if test -n "$ac_ct_AR"; then
3415 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3416 echo "${ECHO_T}$ac_ct_AR" >&6
3417 else
3418 echo "$as_me:$LINENO: result: no" >&5
3419 echo "${ECHO_T}no" >&6
3422 AR=$ac_ct_AR
3423 else
3424 AR="$ac_cv_prog_AR"
3427 if test -n "$ac_tool_prefix"; then
3428 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3429 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3430 echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3432 if test "${ac_cv_prog_RANLIB+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 if test -n "$RANLIB"; then
3436 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3437 else
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3441 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3445 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 break 2
3449 done
3450 done
3454 RANLIB=$ac_cv_prog_RANLIB
3455 if test -n "$RANLIB"; then
3456 echo "$as_me:$LINENO: result: $RANLIB" >&5
3457 echo "${ECHO_T}$RANLIB" >&6
3458 else
3459 echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3464 if test -z "$ac_cv_prog_RANLIB"; then
3465 ac_ct_RANLIB=$RANLIB
3466 # Extract the first word of "ranlib", so it can be a program name with args.
3467 set dummy ranlib; ac_word=$2
3468 echo "$as_me:$LINENO: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3470 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473 if test -n "$ac_ct_RANLIB"; then
3474 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_ac_ct_RANLIB="ranlib"
3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3487 done
3488 done
3490 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3493 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3494 if test -n "$ac_ct_RANLIB"; then
3495 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3496 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3497 else
3498 echo "$as_me:$LINENO: result: no" >&5
3499 echo "${ECHO_T}no" >&6
3502 RANLIB=$ac_ct_RANLIB
3503 else
3504 RANLIB="$ac_cv_prog_RANLIB"
3508 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3509 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3510 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3511 if test "${enable_maintainer_mode+set}" = set; then
3512 enableval="$enable_maintainer_mode"
3513 USE_MAINTAINER_MODE=$enableval
3514 else
3515 USE_MAINTAINER_MODE=no
3517 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3518 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3521 if test $USE_MAINTAINER_MODE = yes; then
3522 MAINTAINER_MODE_TRUE=
3523 MAINTAINER_MODE_FALSE='#'
3524 else
3525 MAINTAINER_MODE_TRUE='#'
3526 MAINTAINER_MODE_FALSE=
3529 MAINT=$MAINTAINER_MODE_TRUE
3533 # Set up safe default values for all subsequent AM_CONDITIONAL tests.
3534 need_libmath=no
3535 enable_wchar_t=no
3536 #enable_libstdcxx_debug=no
3537 #enable_libstdcxx_pch=no
3538 #enable_cheaders=c
3539 #c_compatibility=no
3540 #enable_abi_check=no
3541 #enable_symvers=no
3543 # Find platform-specific directories containing configuration info.
3544 # Also possibly modify flags used elsewhere, as needed by the platform.
3546 . $glibcxx_srcdir/configure.host
3547 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3548 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3549 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3550 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3554 #AC_MSG_NOTICE([====== Starting libtool configuration])
3556 # Check whether --enable-shared or --disable-shared was given.
3557 if test "${enable_shared+set}" = set; then
3558 enableval="$enable_shared"
3559 p=${PACKAGE-default}
3560 case $enableval in
3561 yes) enable_shared=yes ;;
3562 no) enable_shared=no ;;
3564 enable_shared=no
3565 # Look at the argument we got. We use all the common list separators.
3566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3567 for pkg in $enableval; do
3568 if test "X$pkg" = "X$p"; then
3569 enable_shared=yes
3571 done
3572 IFS="$ac_save_ifs"
3574 esac
3575 else
3576 enable_shared=yes
3578 # Check whether --enable-static or --disable-static was given.
3579 if test "${enable_static+set}" = set; then
3580 enableval="$enable_static"
3581 p=${PACKAGE-default}
3582 case $enableval in
3583 yes) enable_static=yes ;;
3584 no) enable_static=no ;;
3586 enable_static=no
3587 # Look at the argument we got. We use all the common list separators.
3588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3589 for pkg in $enableval; do
3590 if test "X$pkg" = "X$p"; then
3591 enable_static=yes
3593 done
3594 IFS="$ac_save_ifs"
3596 esac
3597 else
3598 enable_static=yes
3600 # Check whether --enable-fast-install or --disable-fast-install was given.
3601 if test "${enable_fast_install+set}" = set; then
3602 enableval="$enable_fast_install"
3603 p=${PACKAGE-default}
3604 case $enableval in
3605 yes) enable_fast_install=yes ;;
3606 no) enable_fast_install=no ;;
3608 enable_fast_install=no
3609 # Look at the argument we got. We use all the common list separators.
3610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3611 for pkg in $enableval; do
3612 if test "X$pkg" = "X$p"; then
3613 enable_fast_install=yes
3615 done
3616 IFS="$ac_save_ifs"
3618 esac
3619 else
3620 enable_fast_install=yes
3623 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3624 if test "${with_gnu_ld+set}" = set; then
3625 withval="$with_gnu_ld"
3626 test "$withval" = no || with_gnu_ld=yes
3627 else
3628 with_gnu_ld=no
3630 ac_prog=ld
3631 if test "$GCC" = yes; then
3632 # Check if gcc -print-prog-name=ld gives a path.
3633 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3634 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3635 case $host in
3636 *-*-mingw*)
3637 # gcc leaves a trailing carriage return which upsets mingw
3638 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3640 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3641 esac
3642 case $ac_prog in
3643 # Accept absolute paths.
3644 [\\/]* | [A-Za-z]:[\\/]*)
3645 re_direlt='/[^/][^/]*/\.\./'
3646 # Canonicalize the path of ld
3647 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3648 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3649 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3650 done
3651 test -z "$LD" && LD="$ac_prog"
3654 # If it fails, then pretend we aren't using GCC.
3655 ac_prog=ld
3658 # If it is relative, then search for the first ld in PATH.
3659 with_gnu_ld=unknown
3661 esac
3662 elif test "$with_gnu_ld" = yes; then
3663 echo "$as_me:$LINENO: checking for GNU ld" >&5
3664 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3665 else
3666 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3667 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3669 if test "${lt_cv_path_LD+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672 if test -z "$LD"; then
3673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3674 for ac_dir in $PATH; do
3675 test -z "$ac_dir" && ac_dir=.
3676 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3677 lt_cv_path_LD="$ac_dir/$ac_prog"
3678 # Check to see if the program is GNU ld. I'd rather use --version,
3679 # but apparently some GNU ld's only accept -v.
3680 # Break only if it was the GNU/non-GNU ld that we prefer.
3681 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3682 test "$with_gnu_ld" != no && break
3683 else
3684 test "$with_gnu_ld" != yes && break
3687 done
3688 IFS="$ac_save_ifs"
3689 else
3690 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3694 LD="$lt_cv_path_LD"
3695 if test -n "$LD"; then
3696 echo "$as_me:$LINENO: result: $LD" >&5
3697 echo "${ECHO_T}$LD" >&6
3698 else
3699 echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6
3702 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3703 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3704 { (exit 1); exit 1; }; }
3705 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3706 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3707 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3711 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3712 lt_cv_prog_gnu_ld=yes
3713 else
3714 lt_cv_prog_gnu_ld=no
3717 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3718 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3719 with_gnu_ld=$lt_cv_prog_gnu_ld
3722 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3723 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3724 if test "${lt_cv_ld_reload_flag+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727 lt_cv_ld_reload_flag='-r'
3729 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3730 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3731 reload_flag=$lt_cv_ld_reload_flag
3732 test -n "$reload_flag" && reload_flag=" $reload_flag"
3734 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3735 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3736 if test "${lt_cv_path_NM+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 if test -n "$NM"; then
3740 # Let the user override the test.
3741 lt_cv_path_NM="$NM"
3742 else
3743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3744 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3745 test -z "$ac_dir" && ac_dir=.
3746 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3747 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3748 # Check to see if the nm accepts a BSD-compat flag.
3749 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3750 # nm: unknown option "B" ignored
3751 # Tru64's nm complains that /dev/null is an invalid object file
3752 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3753 lt_cv_path_NM="$tmp_nm -B"
3754 break
3755 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3756 lt_cv_path_NM="$tmp_nm -p"
3757 break
3758 else
3759 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3760 continue # so that we can try to find one that supports BSD flags
3763 done
3764 IFS="$ac_save_ifs"
3765 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3769 NM="$lt_cv_path_NM"
3770 echo "$as_me:$LINENO: result: $NM" >&5
3771 echo "${ECHO_T}$NM" >&6
3773 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3774 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3775 if test "${lt_cv_deplibs_check_method+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778 lt_cv_file_magic_cmd='$MAGIC_CMD'
3779 lt_cv_file_magic_test_file=
3780 lt_cv_deplibs_check_method='unknown'
3781 # Need to set the preceding variable on all platforms that support
3782 # interlibrary dependencies.
3783 # 'none' -- dependencies not supported.
3784 # `unknown' -- same as none, but documents that we really don't know.
3785 # 'pass_all' -- all dependencies passed with no checks.
3786 # 'test_compile' -- check by making test program.
3787 # 'file_magic [regex]' -- check by looking for files in library path
3788 # which responds to the $file_magic_cmd with a given egrep regex.
3789 # If you have `file' or equivalent on your system and you're not sure
3790 # whether `pass_all' will *always* work, you probably want this one.
3792 case $host_os in
3793 aix*)
3794 lt_cv_deplibs_check_method=pass_all
3797 beos*)
3798 lt_cv_deplibs_check_method=pass_all
3801 bsdi4*)
3802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3803 lt_cv_file_magic_cmd='/usr/bin/file -L'
3804 lt_cv_file_magic_test_file=/shlib/libc.so
3807 cygwin* | mingw* |pw32*)
3808 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3809 lt_cv_file_magic_cmd='$OBJDUMP -f'
3812 darwin* | rhapsody*)
3813 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3814 lt_cv_file_magic_cmd='/usr/bin/file -L'
3815 case "$host_os" in
3816 rhapsody* | darwin1.012)
3817 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3819 *) # Darwin 1.3 on
3820 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3822 esac
3825 freebsd* )
3826 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3827 case $host_cpu in
3828 i*86 )
3829 # Not sure whether the presence of OpenBSD here was a mistake.
3830 # Let's accept both of them until this is cleared up.
3831 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3832 lt_cv_file_magic_cmd=/usr/bin/file
3833 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3835 esac
3836 else
3837 lt_cv_deplibs_check_method=pass_all
3841 gnu*)
3842 lt_cv_deplibs_check_method=pass_all
3845 hpux10.20*|hpux11*)
3846 case $host_cpu in
3847 hppa*)
3848 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3849 lt_cv_file_magic_cmd=/usr/bin/file
3850 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3852 ia64*)
3853 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3854 lt_cv_file_magic_cmd=/usr/bin/file
3855 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3857 esac
3860 irix5* | irix6*)
3861 case $host_os in
3862 irix5*)
3863 # this will be overridden with pass_all, but let us keep it just in case
3864 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3867 case $LD in
3868 *-32|*"-32 ") libmagic=32-bit;;
3869 *-n32|*"-n32 ") libmagic=N32;;
3870 *-64|*"-64 ") libmagic=64-bit;;
3871 *) libmagic=never-match;;
3872 esac
3873 # this will be overridden with pass_all, but let us keep it just in case
3874 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3876 esac
3877 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3878 lt_cv_deplibs_check_method=pass_all
3881 # This must be Linux ELF.
3882 linux-gnu*)
3883 case $host_cpu in
3884 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3885 lt_cv_deplibs_check_method=pass_all ;;
3887 # glibc up to 2.1.1 does not perform some relocations on ARM
3888 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3889 esac
3890 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3893 netbsd*)
3894 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3895 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3896 else
3897 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3901 newsos6)
3902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3903 lt_cv_file_magic_cmd=/usr/bin/file
3904 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3907 osf3* | osf4* | osf5*)
3908 # this will be overridden with pass_all, but let us keep it just in case
3909 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3910 lt_cv_file_magic_test_file=/shlib/libc.so
3911 lt_cv_deplibs_check_method=pass_all
3914 sco3.2v5*)
3915 lt_cv_deplibs_check_method=pass_all
3918 solaris*)
3919 lt_cv_deplibs_check_method=pass_all
3920 lt_cv_file_magic_test_file=/lib/libc.so
3923 sysv5uw[78]* | sysv4*uw2*)
3924 lt_cv_deplibs_check_method=pass_all
3927 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3928 case $host_vendor in
3929 ncr)
3930 lt_cv_deplibs_check_method=pass_all
3932 motorola)
3933 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]'
3934 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3936 esac
3938 esac
3941 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3942 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3943 file_magic_cmd=$lt_cv_file_magic_cmd
3944 deplibs_check_method=$lt_cv_deplibs_check_method
3949 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3951 # Only perform the check for file, if the check method requires it
3952 case $deplibs_check_method in
3953 file_magic*)
3954 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3955 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3956 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3957 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960 case $MAGIC_CMD in
3962 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3964 ?:/*)
3965 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3968 ac_save_MAGIC_CMD="$MAGIC_CMD"
3969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3970 ac_dummy="/usr/bin:$PATH"
3971 for ac_dir in $ac_dummy; do
3972 test -z "$ac_dir" && ac_dir=.
3973 if test -f $ac_dir/${ac_tool_prefix}file; then
3974 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3975 if test -n "$file_magic_test_file"; then
3976 case $deplibs_check_method in
3977 "file_magic "*)
3978 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3980 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3981 egrep "$file_magic_regex" > /dev/null; then
3983 else
3984 cat <<EOF 1>&2
3986 *** Warning: the command libtool uses to detect shared libraries,
3987 *** $file_magic_cmd, produces output that libtool cannot recognize.
3988 *** The result is that libtool may fail to recognize shared libraries
3989 *** as such. This will affect the creation of libtool libraries that
3990 *** depend on shared libraries, but programs linked with such libtool
3991 *** libraries will work regardless of this problem. Nevertheless, you
3992 *** may want to report the problem to your system manager and/or to
3993 *** bug-libtool@gnu.org
3996 fi ;;
3997 esac
3999 break
4001 done
4002 IFS="$ac_save_ifs"
4003 MAGIC_CMD="$ac_save_MAGIC_CMD"
4005 esac
4008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4009 if test -n "$MAGIC_CMD"; then
4010 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4011 echo "${ECHO_T}$MAGIC_CMD" >&6
4012 else
4013 echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6
4017 if test -z "$lt_cv_path_MAGIC_CMD"; then
4018 if test -n "$ac_tool_prefix"; then
4019 echo "$as_me:$LINENO: checking for file" >&5
4020 echo $ECHO_N "checking for file... $ECHO_C" >&6
4021 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024 case $MAGIC_CMD in
4026 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4028 ?:/*)
4029 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4032 ac_save_MAGIC_CMD="$MAGIC_CMD"
4033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4034 ac_dummy="/usr/bin:$PATH"
4035 for ac_dir in $ac_dummy; do
4036 test -z "$ac_dir" && ac_dir=.
4037 if test -f $ac_dir/file; then
4038 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4039 if test -n "$file_magic_test_file"; then
4040 case $deplibs_check_method in
4041 "file_magic "*)
4042 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4043 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4044 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4045 egrep "$file_magic_regex" > /dev/null; then
4047 else
4048 cat <<EOF 1>&2
4050 *** Warning: the command libtool uses to detect shared libraries,
4051 *** $file_magic_cmd, produces output that libtool cannot recognize.
4052 *** The result is that libtool may fail to recognize shared libraries
4053 *** as such. This will affect the creation of libtool libraries that
4054 *** depend on shared libraries, but programs linked with such libtool
4055 *** libraries will work regardless of this problem. Nevertheless, you
4056 *** may want to report the problem to your system manager and/or to
4057 *** bug-libtool@gnu.org
4060 fi ;;
4061 esac
4063 break
4065 done
4066 IFS="$ac_save_ifs"
4067 MAGIC_CMD="$ac_save_MAGIC_CMD"
4069 esac
4072 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4073 if test -n "$MAGIC_CMD"; then
4074 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4075 echo "${ECHO_T}$MAGIC_CMD" >&6
4076 else
4077 echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4081 else
4082 MAGIC_CMD=:
4088 esac
4090 if test -n "$ac_tool_prefix"; then
4091 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4092 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4093 echo "$as_me:$LINENO: checking for $ac_word" >&5
4094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4095 if test "${ac_cv_prog_RANLIB+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098 if test -n "$RANLIB"; then
4099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 break 2
4112 done
4113 done
4117 RANLIB=$ac_cv_prog_RANLIB
4118 if test -n "$RANLIB"; then
4119 echo "$as_me:$LINENO: result: $RANLIB" >&5
4120 echo "${ECHO_T}$RANLIB" >&6
4121 else
4122 echo "$as_me:$LINENO: result: no" >&5
4123 echo "${ECHO_T}no" >&6
4127 if test -z "$ac_cv_prog_RANLIB"; then
4128 ac_ct_RANLIB=$RANLIB
4129 # Extract the first word of "ranlib", so it can be a program name with args.
4130 set dummy ranlib; ac_word=$2
4131 echo "$as_me:$LINENO: checking for $ac_word" >&5
4132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4133 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 if test -n "$ac_ct_RANLIB"; then
4137 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146 ac_cv_prog_ac_ct_RANLIB="ranlib"
4147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4150 done
4151 done
4153 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4156 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4157 if test -n "$ac_ct_RANLIB"; then
4158 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4159 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4160 else
4161 echo "$as_me:$LINENO: result: no" >&5
4162 echo "${ECHO_T}no" >&6
4165 RANLIB=$ac_ct_RANLIB
4166 else
4167 RANLIB="$ac_cv_prog_RANLIB"
4170 if test -n "$ac_tool_prefix"; then
4171 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4172 set dummy ${ac_tool_prefix}strip; ac_word=$2
4173 echo "$as_me:$LINENO: checking for $ac_word" >&5
4174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4175 if test "${ac_cv_prog_STRIP+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178 if test -n "$STRIP"; then
4179 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4192 done
4193 done
4197 STRIP=$ac_cv_prog_STRIP
4198 if test -n "$STRIP"; then
4199 echo "$as_me:$LINENO: result: $STRIP" >&5
4200 echo "${ECHO_T}$STRIP" >&6
4201 else
4202 echo "$as_me:$LINENO: result: no" >&5
4203 echo "${ECHO_T}no" >&6
4207 if test -z "$ac_cv_prog_STRIP"; then
4208 ac_ct_STRIP=$STRIP
4209 # Extract the first word of "strip", so it can be a program name with args.
4210 set dummy strip; ac_word=$2
4211 echo "$as_me:$LINENO: checking for $ac_word" >&5
4212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4213 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216 if test -n "$ac_ct_STRIP"; then
4217 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_ac_ct_STRIP="strip"
4227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4230 done
4231 done
4233 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4236 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4237 if test -n "$ac_ct_STRIP"; then
4238 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4239 echo "${ECHO_T}$ac_ct_STRIP" >&6
4240 else
4241 echo "$as_me:$LINENO: result: no" >&5
4242 echo "${ECHO_T}no" >&6
4245 STRIP=$ac_ct_STRIP
4246 else
4247 STRIP="$ac_cv_prog_STRIP"
4251 # Check for any special flags to pass to ltconfig.
4252 libtool_flags="--cache-file=$cache_file"
4253 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4254 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4255 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4256 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4257 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4260 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4261 if test "${enable_libtool_lock+set}" = set; then
4262 enableval="$enable_libtool_lock"
4265 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4266 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4269 # Check whether --with-pic or --without-pic was given.
4270 if test "${with_pic+set}" = set; then
4271 withval="$with_pic"
4272 pic_mode="$withval"
4273 else
4274 pic_mode=default
4276 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4277 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4279 # Some flags need to be propagated to the compiler or linker for good
4280 # libtool support.
4281 case $host in
4282 *-*-irix6*)
4283 # Find out which ABI we are using.
4284 echo '#line 4284 "configure"' > conftest.$ac_ext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286 (eval $ac_compile) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; then
4290 if test "$lt_cv_prog_gnu_ld" = yes; then
4291 case `/usr/bin/file conftest.$ac_objext` in
4292 *32-bit*)
4293 LD="${LD-ld} -melf32bsmip"
4295 *N32*)
4296 LD="${LD-ld} -melf32bmipn32"
4298 *64-bit*)
4299 LD="${LD-ld} -melf64bmip"
4301 esac
4302 else
4303 case `/usr/bin/file conftest.$ac_objext` in
4304 *32-bit*)
4305 LD="${LD-ld} -32"
4307 *N32*)
4308 LD="${LD-ld} -n32"
4310 *64-bit*)
4311 LD="${LD-ld} -64"
4313 esac
4316 rm -rf conftest*
4319 ia64-*-hpux*)
4320 # Find out which ABI we are using.
4321 echo 'int i;' > conftest.$ac_ext
4322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4323 (eval $ac_compile) 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; then
4327 case "`/usr/bin/file conftest.o`" in
4328 *ELF-32*)
4329 HPUX_IA64_MODE="32"
4331 *ELF-64*)
4332 HPUX_IA64_MODE="64"
4334 esac
4336 rm -rf conftest*
4339 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4340 # Find out which ABI we are using.
4341 echo 'int i;' > conftest.$ac_ext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343 (eval $ac_compile) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; then
4347 case "`/usr/bin/file conftest.o`" in
4348 *32-bit*)
4349 case $host in
4350 x86_64-*linux*)
4351 LD="${LD-ld} -m elf_i386"
4353 ppc64-*linux*)
4354 LD="${LD-ld} -m elf32ppclinux"
4356 s390x-*linux*)
4357 LD="${LD-ld} -m elf_s390"
4359 sparc64-*linux*)
4360 LD="${LD-ld} -m elf32_sparc"
4362 esac
4364 *64-bit*)
4365 case $host in
4366 x86_64-*linux*)
4367 LD="${LD-ld} -m elf_x86_64"
4369 ppc*-*linux*|powerpc*-*linux*)
4370 LD="${LD-ld} -m elf64ppc"
4372 s390*-*linux*)
4373 LD="${LD-ld} -m elf64_s390"
4375 sparc*-*linux*)
4376 LD="${LD-ld} -m elf64_sparc"
4378 esac
4380 esac
4382 rm -rf conftest*
4385 *-*-sco3.2v5*)
4386 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4387 SAVE_CFLAGS="$CFLAGS"
4388 CFLAGS="$CFLAGS -belf"
4389 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4390 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4391 if test "${lt_cv_cc_needs_belf+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4396 ac_ext=c
4397 ac_cpp='$CPP $CPPFLAGS'
4398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402 cat >conftest.$ac_ext <<_ACEOF
4403 #line $LINENO "configure"
4404 /* confdefs.h. */
4405 _ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4411 main ()
4415 return 0;
4417 _ACEOF
4418 rm -f conftest.$ac_objext conftest$ac_exeext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4420 (eval $ac_link) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -s conftest$ac_exeext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4430 lt_cv_cc_needs_belf=yes
4431 else
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4435 lt_cv_cc_needs_belf=no
4437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4438 ac_ext=c
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4446 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4447 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4448 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4449 CFLAGS="$SAVE_CFLAGS"
4454 esac
4457 # Save cache, so that ltconfig can load it
4458 cat >confcache <<\_ACEOF
4459 # This file is a shell script that caches the results of configure
4460 # tests run on this system so they can be shared between configure
4461 # scripts and configure runs, see configure's option --config-cache.
4462 # It is not useful on other systems. If it contains results you don't
4463 # want to keep, you may remove or edit it.
4465 # config.status only pays attention to the cache file if you give it
4466 # the --recheck option to rerun configure.
4468 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4470 # following values.
4472 _ACEOF
4474 # The following way of writing the cache mishandles newlines in values,
4475 # but we know of no workaround that is simple, portable, and efficient.
4476 # So, don't put newlines in cache variables' values.
4477 # Ultrix sh set writes to stderr and can't be redirected directly,
4478 # and sets the high bit in the cache file unless we assign to the vars.
4480 (set) 2>&1 |
4481 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4482 *ac_space=\ *)
4483 # `set' does not quote correctly, so add quotes (double-quote
4484 # substitution turns \\\\ into \\, and sed turns \\ into \).
4485 sed -n \
4486 "s/'/'\\\\''/g;
4487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4490 # `set' quotes correctly as required by POSIX, so do not add quotes.
4491 sed -n \
4492 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4494 esac;
4496 sed '
4497 t clear
4498 : clear
4499 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4500 t end
4501 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4502 : end' >>confcache
4503 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4504 if test -w $cache_file; then
4505 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4506 cat confcache >$cache_file
4507 else
4508 echo "not updating unwritable cache $cache_file"
4511 rm -f confcache
4513 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4514 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4515 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4516 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4517 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4518 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4519 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4520 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4521 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4522 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4523 echo "$as_me: error: libtool configure failed" >&2;}
4524 { (exit 1); exit 1; }; }
4526 # Reload cache, that may have been modified by ltconfig
4527 if test -r "$cache_file"; then
4528 # Some versions of bash will fail to source /dev/null (special
4529 # files actually), so we avoid doing that.
4530 if test -f "$cache_file"; then
4531 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4532 echo "$as_me: loading cache $cache_file" >&6;}
4533 case $cache_file in
4534 [\\/]* | ?:[\\/]* ) . $cache_file;;
4535 *) . ./$cache_file;;
4536 esac
4538 else
4539 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4540 echo "$as_me: creating cache $cache_file" >&6;}
4541 >$cache_file
4545 # This can be used to rebuild libtool when needed
4546 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4548 # Always use our own libtool.
4549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4551 # Redirect the config.log output again, so that the ltconfig log is not
4552 # clobbered by the next message.
4553 exec 5>>./config.log
4555 ac_ext=cc
4556 ac_cpp='$CXXCPP $CPPFLAGS'
4557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4560 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4561 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4562 if test -z "$CXXCPP"; then
4563 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 else
4566 # Double quotes because CXXCPP needs to be expanded
4567 for CXXCPP in "$CXX -E" "/lib/cpp"
4569 ac_preproc_ok=false
4570 for ac_cxx_preproc_warn_flag in '' yes
4572 # Use a header file that comes with gcc, so configuring glibc
4573 # with a fresh cross-compiler works.
4574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4575 # <limits.h> exists even on freestanding compilers.
4576 # On the NeXT, cc -E runs the code through the compiler's parser,
4577 # not just through cpp. "Syntax error" is here to catch this case.
4578 cat >conftest.$ac_ext <<_ACEOF
4579 #line $LINENO "configure"
4580 /* confdefs.h. */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 #ifdef __STDC__
4586 # include <limits.h>
4587 #else
4588 # include <assert.h>
4589 #endif
4590 Syntax error
4591 _ACEOF
4592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4594 ac_status=$?
4595 grep -v '^ *+' conftest.er1 >conftest.err
4596 rm -f conftest.er1
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } >/dev/null; then
4600 if test -s conftest.err; then
4601 ac_cpp_err=$ac_cxx_preproc_warn_flag
4602 else
4603 ac_cpp_err=
4605 else
4606 ac_cpp_err=yes
4608 if test -z "$ac_cpp_err"; then
4610 else
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4614 # Broken: fails on valid input.
4615 continue
4617 rm -f conftest.err conftest.$ac_ext
4619 # OK, works on sane cases. Now check whether non-existent headers
4620 # can be detected and how.
4621 cat >conftest.$ac_ext <<_ACEOF
4622 #line $LINENO "configure"
4623 /* confdefs.h. */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4628 #include <ac_nonexistent.h>
4629 _ACEOF
4630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4632 ac_status=$?
4633 grep -v '^ *+' conftest.er1 >conftest.err
4634 rm -f conftest.er1
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } >/dev/null; then
4638 if test -s conftest.err; then
4639 ac_cpp_err=$ac_cxx_preproc_warn_flag
4640 else
4641 ac_cpp_err=
4643 else
4644 ac_cpp_err=yes
4646 if test -z "$ac_cpp_err"; then
4647 # Broken: success on invalid input.
4648 continue
4649 else
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 # Passes both tests.
4654 ac_preproc_ok=:
4655 break
4657 rm -f conftest.err conftest.$ac_ext
4659 done
4660 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4661 rm -f conftest.err conftest.$ac_ext
4662 if $ac_preproc_ok; then
4663 break
4666 done
4667 ac_cv_prog_CXXCPP=$CXXCPP
4670 CXXCPP=$ac_cv_prog_CXXCPP
4671 else
4672 ac_cv_prog_CXXCPP=$CXXCPP
4674 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4675 echo "${ECHO_T}$CXXCPP" >&6
4676 ac_preproc_ok=false
4677 for ac_cxx_preproc_warn_flag in '' yes
4679 # Use a header file that comes with gcc, so configuring glibc
4680 # with a fresh cross-compiler works.
4681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682 # <limits.h> exists even on freestanding compilers.
4683 # On the NeXT, cc -E runs the code through the compiler's parser,
4684 # not just through cpp. "Syntax error" is here to catch this case.
4685 cat >conftest.$ac_ext <<_ACEOF
4686 #line $LINENO "configure"
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 #ifdef __STDC__
4693 # include <limits.h>
4694 #else
4695 # include <assert.h>
4696 #endif
4697 Syntax error
4698 _ACEOF
4699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } >/dev/null; then
4707 if test -s conftest.err; then
4708 ac_cpp_err=$ac_cxx_preproc_warn_flag
4709 else
4710 ac_cpp_err=
4712 else
4713 ac_cpp_err=yes
4715 if test -z "$ac_cpp_err"; then
4717 else
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4721 # Broken: fails on valid input.
4722 continue
4724 rm -f conftest.err conftest.$ac_ext
4726 # OK, works on sane cases. Now check whether non-existent headers
4727 # can be detected and how.
4728 cat >conftest.$ac_ext <<_ACEOF
4729 #line $LINENO "configure"
4730 /* confdefs.h. */
4731 _ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4735 #include <ac_nonexistent.h>
4736 _ACEOF
4737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } >/dev/null; then
4745 if test -s conftest.err; then
4746 ac_cpp_err=$ac_cxx_preproc_warn_flag
4747 else
4748 ac_cpp_err=
4750 else
4751 ac_cpp_err=yes
4753 if test -z "$ac_cpp_err"; then
4754 # Broken: success on invalid input.
4755 continue
4756 else
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4760 # Passes both tests.
4761 ac_preproc_ok=:
4762 break
4764 rm -f conftest.err conftest.$ac_ext
4766 done
4767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4768 rm -f conftest.err conftest.$ac_ext
4769 if $ac_preproc_ok; then
4771 else
4772 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4773 See \`config.log' for more details." >&5
4774 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4775 See \`config.log' for more details." >&2;}
4776 { (exit 1); exit 1; }; }
4779 ac_ext=c
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4788 lt_save_CC="$CC"
4789 lt_save_CFLAGS="$CFLAGS"
4790 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4791 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4792 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4793 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4794 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4795 deplibs_check_method="$deplibs_check_method" \
4796 file_magic_cmd="$file_magic_cmd" \
4797 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4798 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4799 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4800 echo "$as_me: error: libtool tag configuration failed" >&2;}
4801 { (exit 1); exit 1; }; }
4802 CC="$lt_save_CC"
4803 CFLAGS="$lt_save_CFLAGS"
4805 # Redirect the config.log output again, so that the ltconfig log is not
4806 # clobbered by the next message.
4807 exec 5>>./config.log
4816 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4818 # Check for support bits and g++ features that don't require linking.
4820 echo "$as_me:$LINENO: checking for exception model to use" >&5
4821 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
4824 ac_ext=cc
4825 ac_cpp='$CXXCPP $CPPFLAGS'
4826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4830 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4831 if test "${enable_sjlj_exceptions+set}" = set; then
4832 enableval="$enable_sjlj_exceptions"
4834 case "$enableval" in
4835 yes|no|auto) ;;
4836 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
4837 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
4838 { (exit 1); exit 1; }; } ;;
4839 esac
4841 else
4842 enable_sjlj_exceptions=auto
4846 if test $enable_sjlj_exceptions = auto; then
4847 # Botheration. Now we've got to detect the exception model. Link tests
4848 # against libgcc.a are problematic since we've not been given proper -L
4849 # bits for single-tree newlib and libgloss.
4851 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
4852 cat > conftest.$ac_ext << EOF
4853 #line 4853 "configure"
4854 struct S { ~S(); };
4855 void bar();
4856 void foo()
4858 S s;
4859 bar();
4862 old_CXXFLAGS="$CXXFLAGS"
4863 CXXFLAGS=-S
4864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4865 (eval $ac_compile) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; then
4869 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4870 enable_sjlj_exceptions=yes
4871 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4872 enable_sjlj_exceptions=no
4875 CXXFLAGS="$old_CXXFLAGS"
4876 rm -f conftest*
4879 # This is a tad weird, for hysterical raisins. We have to map enable/disable
4880 # to two different models.
4881 case $enable_sjlj_exceptions in
4882 yes)
4884 cat >>confdefs.h <<\_ACEOF
4885 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
4886 _ACEOF
4888 ac_exception_model_name=sjlj
4891 ac_exception_model_name="call frame"
4894 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
4895 echo "$as_me: error: unable to detect exception model" >&2;}
4896 { (exit 1); exit 1; }; }
4898 esac
4899 ac_ext=c
4900 ac_cpp='$CPP $CPPFLAGS'
4901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4905 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
4906 echo "${ECHO_T}$ac_exception_model_name" >&6
4909 echo "$as_me:$LINENO: checking for use of libunwind" >&5
4910 echo $ECHO_N "checking for use of libunwind... $ECHO_C" >&6
4911 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4912 if test "${enable_libunwind_exceptions+set}" = set; then
4913 enableval="$enable_libunwind_exceptions"
4915 case "$enableval" in
4916 yes|no) ;;
4917 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&5
4918 echo "$as_me: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4920 esac
4922 else
4923 enable_libunwind_exceptions=no
4926 echo "$as_me:$LINENO: result: $use_libunwind_exceptions" >&5
4927 echo "${ECHO_T}$use_libunwind_exceptions" >&6
4928 if test $enable_libunwind_exceptions = yes; then
4929 LIBUNWIND_FLAG="-lunwind"
4930 else
4931 LIBUNWIND_FLAG=""
4936 echo "$as_me:$LINENO: checking for enabled PCH" >&5
4937 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
4938 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
4939 if test "${enable_libstdcxx_pch+set}" = set; then
4940 enableval="$enable_libstdcxx_pch"
4942 case "$enableval" in
4943 yes|no) ;;
4944 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
4945 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
4946 { (exit 1); exit 1; }; } ;;
4947 esac
4949 else
4950 enable_libstdcxx_pch=yes
4953 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
4954 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
4956 if test $enable_libstdcxx_pch = yes; then
4957 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
4958 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
4959 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962 ac_save_CXXFLAGS="$CXXFLAGS"
4963 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
4966 ac_ext=cc
4967 ac_cpp='$CXXCPP $CPPFLAGS'
4968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4972 echo '#include <math.h>' > conftest.h
4973 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
4974 -o conftest.h.gch 1>&5 2>&1 &&
4975 echo '#error "pch failed"' > conftest.h &&
4976 echo '#include "conftest.h"' > conftest.cc &&
4977 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
4978 then
4979 glibcxx_cv_prog_CXX_pch=yes
4980 else
4981 glibcxx_cv_prog_CXX_pch=no
4983 rm -f conftest*
4984 CXXFLAGS=$ac_save_CXXFLAGS
4985 ac_ext=c
4986 ac_cpp='$CPP $CPPFLAGS'
4987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4993 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
4994 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
4995 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
5000 if test $enable_libstdcxx_pch = yes; then
5001 GLIBCXX_BUILD_PCH_TRUE=
5002 GLIBCXX_BUILD_PCH_FALSE='#'
5003 else
5004 GLIBCXX_BUILD_PCH_TRUE='#'
5005 GLIBCXX_BUILD_PCH_FALSE=
5008 if test $enable_libstdcxx_pch = yes; then
5009 glibcxx_PCHFLAGS="-include bits/stdc++.h"
5010 else
5011 glibcxx_PCHFLAGS=""
5016 # Enable all the variable C++ runtime options.
5017 # NB: C_MBCHAR must come early.
5019 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5020 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5021 # Check whether --enable-cstdio or --disable-cstdio was given.
5022 if test "${enable_cstdio+set}" = set; then
5023 enableval="$enable_cstdio"
5025 case "$enableval" in
5026 stdio) ;;
5027 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5028 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5029 { (exit 1); exit 1; }; } ;;
5030 esac
5032 else
5033 enable_cstdio=stdio
5037 # Now that libio has been removed, you can have any color you want as long
5038 # as it's black. This is one big no-op until other packages are added, but
5039 # showing the framework never hurts.
5040 case ${enable_cstdio} in
5041 stdio)
5042 CSTDIO_H=config/io/c_io_stdio.h
5043 BASIC_FILE_H=config/io/basic_file_stdio.h
5044 BASIC_FILE_CC=config/io/basic_file_stdio.cc
5045 echo "$as_me:$LINENO: result: stdio" >&5
5046 echo "${ECHO_T}stdio" >&6
5048 esac
5050 FPOS_H=$fpos_include_dir
5057 ac_ext=c
5058 ac_cpp='$CPP $CPPFLAGS'
5059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5063 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5064 # On Suns, sometimes $CPP names a directory.
5065 if test -n "$CPP" && test -d "$CPP"; then
5066 CPP=
5068 if test -z "$CPP"; then
5069 if test "${ac_cv_prog_CPP+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 # Double quotes because CPP needs to be expanded
5073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5075 ac_preproc_ok=false
5076 for ac_c_preproc_warn_flag in '' yes
5078 # Use a header file that comes with gcc, so configuring glibc
5079 # with a fresh cross-compiler works.
5080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5081 # <limits.h> exists even on freestanding compilers.
5082 # On the NeXT, cc -E runs the code through the compiler's parser,
5083 # not just through cpp. "Syntax error" is here to catch this case.
5084 cat >conftest.$ac_ext <<_ACEOF
5085 #line $LINENO "configure"
5086 /* confdefs.h. */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5091 #ifdef __STDC__
5092 # include <limits.h>
5093 #else
5094 # include <assert.h>
5095 #endif
5096 Syntax error
5097 _ACEOF
5098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } >/dev/null; then
5106 if test -s conftest.err; then
5107 ac_cpp_err=$ac_c_preproc_warn_flag
5108 else
5109 ac_cpp_err=
5111 else
5112 ac_cpp_err=yes
5114 if test -z "$ac_cpp_err"; then
5116 else
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5120 # Broken: fails on valid input.
5121 continue
5123 rm -f conftest.err conftest.$ac_ext
5125 # OK, works on sane cases. Now check whether non-existent headers
5126 # can be detected and how.
5127 cat >conftest.$ac_ext <<_ACEOF
5128 #line $LINENO "configure"
5129 /* confdefs.h. */
5130 _ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5134 #include <ac_nonexistent.h>
5135 _ACEOF
5136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5138 ac_status=$?
5139 grep -v '^ *+' conftest.er1 >conftest.err
5140 rm -f conftest.er1
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } >/dev/null; then
5144 if test -s conftest.err; then
5145 ac_cpp_err=$ac_c_preproc_warn_flag
5146 else
5147 ac_cpp_err=
5149 else
5150 ac_cpp_err=yes
5152 if test -z "$ac_cpp_err"; then
5153 # Broken: success on invalid input.
5154 continue
5155 else
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5159 # Passes both tests.
5160 ac_preproc_ok=:
5161 break
5163 rm -f conftest.err conftest.$ac_ext
5165 done
5166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5167 rm -f conftest.err conftest.$ac_ext
5168 if $ac_preproc_ok; then
5169 break
5172 done
5173 ac_cv_prog_CPP=$CPP
5176 CPP=$ac_cv_prog_CPP
5177 else
5178 ac_cv_prog_CPP=$CPP
5180 echo "$as_me:$LINENO: result: $CPP" >&5
5181 echo "${ECHO_T}$CPP" >&6
5182 ac_preproc_ok=false
5183 for ac_c_preproc_warn_flag in '' yes
5185 # Use a header file that comes with gcc, so configuring glibc
5186 # with a fresh cross-compiler works.
5187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5188 # <limits.h> exists even on freestanding compilers.
5189 # On the NeXT, cc -E runs the code through the compiler's parser,
5190 # not just through cpp. "Syntax error" is here to catch this case.
5191 cat >conftest.$ac_ext <<_ACEOF
5192 #line $LINENO "configure"
5193 /* confdefs.h. */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5198 #ifdef __STDC__
5199 # include <limits.h>
5200 #else
5201 # include <assert.h>
5202 #endif
5203 Syntax error
5204 _ACEOF
5205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } >/dev/null; then
5213 if test -s conftest.err; then
5214 ac_cpp_err=$ac_c_preproc_warn_flag
5215 else
5216 ac_cpp_err=
5218 else
5219 ac_cpp_err=yes
5221 if test -z "$ac_cpp_err"; then
5223 else
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5227 # Broken: fails on valid input.
5228 continue
5230 rm -f conftest.err conftest.$ac_ext
5232 # OK, works on sane cases. Now check whether non-existent headers
5233 # can be detected and how.
5234 cat >conftest.$ac_ext <<_ACEOF
5235 #line $LINENO "configure"
5236 /* confdefs.h. */
5237 _ACEOF
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h. */
5241 #include <ac_nonexistent.h>
5242 _ACEOF
5243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev/null; then
5251 if test -s conftest.err; then
5252 ac_cpp_err=$ac_c_preproc_warn_flag
5253 else
5254 ac_cpp_err=
5256 else
5257 ac_cpp_err=yes
5259 if test -z "$ac_cpp_err"; then
5260 # Broken: success on invalid input.
5261 continue
5262 else
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5266 # Passes both tests.
5267 ac_preproc_ok=:
5268 break
5270 rm -f conftest.err conftest.$ac_ext
5272 done
5273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5274 rm -f conftest.err conftest.$ac_ext
5275 if $ac_preproc_ok; then
5277 else
5278 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5279 See \`config.log' for more details." >&5
5280 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5281 See \`config.log' for more details." >&2;}
5282 { (exit 1); exit 1; }; }
5285 ac_ext=c
5286 ac_cpp='$CPP $CPPFLAGS'
5287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5292 echo "$as_me:$LINENO: checking for egrep" >&5
5293 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5294 if test "${ac_cv_prog_egrep+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5298 then ac_cv_prog_egrep='grep -E'
5299 else ac_cv_prog_egrep='egrep'
5302 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5303 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5304 EGREP=$ac_cv_prog_egrep
5307 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5308 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5309 if test "${ac_cv_header_stdc+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312 cat >conftest.$ac_ext <<_ACEOF
5313 #line $LINENO "configure"
5314 /* confdefs.h. */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 #include <stdlib.h>
5320 #include <stdarg.h>
5321 #include <string.h>
5322 #include <float.h>
5325 main ()
5329 return 0;
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334 (eval $ac_compile) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_cv_header_stdc=yes
5345 else
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 ac_cv_header_stdc=no
5351 rm -f conftest.$ac_objext conftest.$ac_ext
5353 if test $ac_cv_header_stdc = yes; then
5354 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5355 cat >conftest.$ac_ext <<_ACEOF
5356 #line $LINENO "configure"
5357 /* confdefs.h. */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 #include <string.h>
5364 _ACEOF
5365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5366 $EGREP "memchr" >/dev/null 2>&1; then
5368 else
5369 ac_cv_header_stdc=no
5371 rm -f conftest*
5375 if test $ac_cv_header_stdc = yes; then
5376 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5377 cat >conftest.$ac_ext <<_ACEOF
5378 #line $LINENO "configure"
5379 /* confdefs.h. */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 #include <stdlib.h>
5386 _ACEOF
5387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5388 $EGREP "free" >/dev/null 2>&1; then
5390 else
5391 ac_cv_header_stdc=no
5393 rm -f conftest*
5397 if test $ac_cv_header_stdc = yes; then
5398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5399 if test "$cross_compiling" = yes; then
5401 else
5402 cat >conftest.$ac_ext <<_ACEOF
5403 #line $LINENO "configure"
5404 /* confdefs.h. */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 #include <ctype.h>
5410 #if ((' ' & 0x0FF) == 0x020)
5411 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5412 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5413 #else
5414 # define ISLOWER(c) \
5415 (('a' <= (c) && (c) <= 'i') \
5416 || ('j' <= (c) && (c) <= 'r') \
5417 || ('s' <= (c) && (c) <= 'z'))
5418 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5419 #endif
5421 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5423 main ()
5425 int i;
5426 for (i = 0; i < 256; i++)
5427 if (XOR (islower (i), ISLOWER (i))
5428 || toupper (i) != TOUPPER (i))
5429 exit(2);
5430 exit (0);
5432 _ACEOF
5433 rm -f conftest$ac_exeext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5435 (eval $ac_link) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5445 else
5446 echo "$as_me: program exited with status $ac_status" >&5
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 ( exit $ac_status )
5451 ac_cv_header_stdc=no
5453 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5457 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5458 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5459 if test $ac_cv_header_stdc = yes; then
5461 cat >>confdefs.h <<\_ACEOF
5462 #define STDC_HEADERS 1
5463 _ACEOF
5467 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5477 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5478 inttypes.h stdint.h unistd.h
5480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5481 echo "$as_me:$LINENO: checking for $ac_header" >&5
5482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486 cat >conftest.$ac_ext <<_ACEOF
5487 #line $LINENO "configure"
5488 /* confdefs.h. */
5489 _ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5493 $ac_includes_default
5495 #include <$ac_header>
5496 _ACEOF
5497 rm -f conftest.$ac_objext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5499 (eval $ac_compile) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } &&
5503 { ac_try='test -s conftest.$ac_objext'
5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 (eval $ac_try) 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; }; then
5509 eval "$as_ac_Header=yes"
5510 else
5511 echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5514 eval "$as_ac_Header=no"
5516 rm -f conftest.$ac_objext conftest.$ac_ext
5518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5521 cat >>confdefs.h <<_ACEOF
5522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5523 _ACEOF
5527 done
5531 echo "$as_me:$LINENO: checking for C locale to use" >&5
5532 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5533 # Check whether --enable-clocale or --disable-clocale was given.
5534 if test "${enable_clocale+set}" = set; then
5535 enableval="$enable_clocale"
5537 case "$enableval" in
5538 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5539 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5540 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5541 { (exit 1); exit 1; }; } ;;
5542 esac
5544 else
5545 enable_clocale=auto
5549 # If they didn't use this option switch, or if they specified --enable
5550 # with no specific model, we'll have to look for one. If they
5551 # specified --disable (???), do likewise.
5552 if test $enable_clocale = no || test $enable_clocale = yes; then
5553 enable_clocale=auto
5556 # Either a known package, or "auto"
5557 enable_clocale_flag=$enable_clocale
5559 # Probe for locale support if no specific model is specified.
5560 # Default to "generic".
5561 if test $enable_clocale_flag = auto; then
5562 case x${target_os} in
5563 xlinux* | xgnu*)
5564 cat >conftest.$ac_ext <<_ACEOF
5565 #line $LINENO "configure"
5566 /* confdefs.h. */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5572 #include <features.h>
5573 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5574 _GLIBCXX_ok
5575 #endif
5577 _ACEOF
5578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5579 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5580 enable_clocale_flag=gnu
5581 else
5582 enable_clocale_flag=generic
5584 rm -f conftest*
5587 # Test for bugs early in glibc-2.2.x series
5588 if test x$enable_clocale_flag = xgnu; then
5589 if test "$cross_compiling" = yes; then
5590 enable_clocale_flag=generic
5591 else
5592 cat >conftest.$ac_ext <<_ACEOF
5593 #line $LINENO "configure"
5594 /* confdefs.h. */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5600 #define _GNU_SOURCE 1
5601 #include <locale.h>
5602 #include <string.h>
5603 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5604 extern __typeof(newlocale) __newlocale;
5605 extern __typeof(duplocale) __duplocale;
5606 extern __typeof(strcoll_l) __strcoll_l;
5607 #endif
5608 int main()
5610 const char __one[] = "Äuglein Augmen";
5611 const char __two[] = "Äuglein";
5612 int i;
5613 int j;
5614 __locale_t loc;
5615 __locale_t loc_dup;
5616 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5617 loc_dup = __duplocale(loc);
5618 i = __strcoll_l(__one, __two, loc);
5619 j = __strcoll_l(__one, __two, loc_dup);
5620 return 0;
5623 _ACEOF
5624 rm -f conftest$ac_exeext
5625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5626 (eval $ac_link) 2>&5
5627 ac_status=$?
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 (eval $ac_try) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 enable_clocale_flag=gnu
5636 else
5637 echo "$as_me: program exited with status $ac_status" >&5
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5641 ( exit $ac_status )
5642 enable_clocale_flag=generic
5644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5648 # ... at some point put __strxfrm_l tests in as well.
5651 enable_clocale_flag=generic
5653 esac
5656 # Deal with gettext issues. Default to not using it (=no) until we detect
5657 # support for it later. Let the user turn it off via --e/d, but let that
5658 # default to on for easier handling.
5659 USE_NLS=no
5660 # Check whether --enable-nls or --disable-nls was given.
5661 if test "${enable_nls+set}" = set; then
5662 enableval="$enable_nls"
5664 else
5665 enable_nls=yes
5668 # Set configure bits for specified locale package
5669 case ${enable_clocale_flag} in
5670 generic)
5671 echo "$as_me:$LINENO: result: generic" >&5
5672 echo "${ECHO_T}generic" >&6
5674 CLOCALE_H=config/locale/generic/c_locale.h
5675 CLOCALE_CC=config/locale/generic/c_locale.cc
5676 CCODECVT_H=config/locale/generic/codecvt_specializations.h
5677 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5678 CCOLLATE_CC=config/locale/generic/collate_members.cc
5679 CCTYPE_CC=config/locale/generic/ctype_members.cc
5680 CMESSAGES_H=config/locale/generic/messages_members.h
5681 CMESSAGES_CC=config/locale/generic/messages_members.cc
5682 CMONEY_CC=config/locale/generic/monetary_members.cc
5683 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5684 CTIME_H=config/locale/generic/time_members.h
5685 CTIME_CC=config/locale/generic/time_members.cc
5686 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5688 gnu)
5689 echo "$as_me:$LINENO: result: gnu" >&5
5690 echo "${ECHO_T}gnu" >&6
5692 # Declare intention to use gettext, and add support for specific
5693 # languages.
5694 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5695 ALL_LINGUAS="de fr"
5697 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5698 # Extract the first word of "msgfmt", so it can be a program name with args.
5699 set dummy msgfmt; ac_word=$2
5700 echo "$as_me:$LINENO: checking for $ac_word" >&5
5701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5702 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705 if test -n "$check_msgfmt"; then
5706 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715 ac_cv_prog_check_msgfmt="yes"
5716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 break 2
5719 done
5720 done
5722 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5725 check_msgfmt=$ac_cv_prog_check_msgfmt
5726 if test -n "$check_msgfmt"; then
5727 echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5728 echo "${ECHO_T}$check_msgfmt" >&6
5729 else
5730 echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6
5734 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5735 USE_NLS=yes
5737 # Export the build objects.
5738 for ling in $ALL_LINGUAS; do \
5739 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5740 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5741 done
5745 CLOCALE_H=config/locale/gnu/c_locale.h
5746 CLOCALE_CC=config/locale/gnu/c_locale.cc
5747 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5748 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5749 CCOLLATE_CC=config/locale/gnu/collate_members.cc
5750 CCTYPE_CC=config/locale/gnu/ctype_members.cc
5751 CMESSAGES_H=config/locale/gnu/messages_members.h
5752 CMESSAGES_CC=config/locale/gnu/messages_members.cc
5753 CMONEY_CC=config/locale/gnu/monetary_members.cc
5754 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5755 CTIME_H=config/locale/gnu/time_members.h
5756 CTIME_CC=config/locale/gnu/time_members.cc
5757 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5759 ieee_1003.1-2001)
5760 echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5761 echo "${ECHO_T}IEEE 1003.1" >&6
5763 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5764 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5765 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5766 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5767 CCOLLATE_CC=config/locale/generic/collate_members.cc
5768 CCTYPE_CC=config/locale/generic/ctype_members.cc
5769 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5770 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5771 CMONEY_CC=config/locale/generic/monetary_members.cc
5772 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5773 CTIME_H=config/locale/generic/time_members.h
5774 CTIME_CC=config/locale/generic/time_members.cc
5775 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5777 esac
5779 # This is where the testsuite looks for locale catalogs, using the
5780 # -DLOCALEDIR define during testsuite compilation.
5781 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5784 # A standalone libintl (e.g., GNU libintl) may be in use.
5785 if test $USE_NLS = yes; then
5787 for ac_header in libintl.h
5789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5791 echo "$as_me:$LINENO: checking for $ac_header" >&5
5792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5798 else
5799 # Is the header compilable?
5800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5802 cat >conftest.$ac_ext <<_ACEOF
5803 #line $LINENO "configure"
5804 /* confdefs.h. */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 $ac_includes_default
5810 #include <$ac_header>
5811 _ACEOF
5812 rm -f conftest.$ac_objext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try='test -s conftest.$ac_objext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 ac_header_compiler=yes
5825 else
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 ac_header_compiler=no
5831 rm -f conftest.$ac_objext conftest.$ac_ext
5832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5833 echo "${ECHO_T}$ac_header_compiler" >&6
5835 # Is the header present?
5836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5838 cat >conftest.$ac_ext <<_ACEOF
5839 #line $LINENO "configure"
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 #include <$ac_header>
5846 _ACEOF
5847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } >/dev/null; then
5855 if test -s conftest.err; then
5856 ac_cpp_err=$ac_c_preproc_warn_flag
5857 else
5858 ac_cpp_err=
5860 else
5861 ac_cpp_err=yes
5863 if test -z "$ac_cpp_err"; then
5864 ac_header_preproc=yes
5865 else
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5869 ac_header_preproc=no
5871 rm -f conftest.err conftest.$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5873 echo "${ECHO_T}$ac_header_preproc" >&6
5875 # So? What about this header?
5876 case $ac_header_compiler:$ac_header_preproc in
5877 yes:no )
5878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5883 cat <<\_ASBOX
5884 ## ------------------------------------ ##
5885 ## Report this to bug-autoconf@gnu.org. ##
5886 ## ------------------------------------ ##
5887 _ASBOX
5889 sed "s/^/$as_me: WARNING: /" >&2
5891 no:yes )
5892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5899 cat <<\_ASBOX
5900 ## ------------------------------------ ##
5901 ## Report this to bug-autoconf@gnu.org. ##
5902 ## ------------------------------------ ##
5903 _ASBOX
5905 sed "s/^/$as_me: WARNING: /" >&2
5907 esac
5908 echo "$as_me:$LINENO: checking for $ac_header" >&5
5909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913 eval "$as_ac_Header=$ac_header_preproc"
5915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5920 cat >>confdefs.h <<_ACEOF
5921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5922 _ACEOF
5924 else
5925 USE_NLS=no
5928 done
5930 echo "$as_me:$LINENO: checking for library containing gettext" >&5
5931 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
5932 if test "${ac_cv_search_gettext+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935 ac_func_search_save_LIBS=$LIBS
5936 ac_cv_search_gettext=no
5937 cat >conftest.$ac_ext <<_ACEOF
5938 #line $LINENO "configure"
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5945 /* Override any gcc2 internal prototype to avoid an error. */
5946 #ifdef __cplusplus
5947 extern "C"
5948 #endif
5949 /* We use char because int might match the return type of a gcc2
5950 builtin and then its argument prototype would still apply. */
5951 char gettext ();
5953 main ()
5955 gettext ();
5957 return 0;
5959 _ACEOF
5960 rm -f conftest.$ac_objext conftest$ac_exeext
5961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5962 (eval $ac_link) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } &&
5966 { ac_try='test -s conftest$ac_exeext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5972 ac_cv_search_gettext="none required"
5973 else
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5979 if test "$ac_cv_search_gettext" = no; then
5980 for ac_lib in intl; do
5981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5982 cat >conftest.$ac_ext <<_ACEOF
5983 #line $LINENO "configure"
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5990 /* Override any gcc2 internal prototype to avoid an error. */
5991 #ifdef __cplusplus
5992 extern "C"
5993 #endif
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
5996 char gettext ();
5998 main ()
6000 gettext ();
6002 return 0;
6004 _ACEOF
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 (eval $ac_link) 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } &&
6011 { ac_try='test -s conftest$ac_exeext'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 (eval $ac_try) 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; }; then
6017 ac_cv_search_gettext="-l$ac_lib"
6018 break
6019 else
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6025 done
6027 LIBS=$ac_func_search_save_LIBS
6029 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6030 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6031 if test "$ac_cv_search_gettext" != no; then
6032 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6034 else
6035 USE_NLS=no
6039 if test $USE_NLS = yes; then
6040 cat >>confdefs.h <<\_ACEOF
6041 #define _GLIBCXX_USE_NLS 1
6042 _ACEOF
6062 # Check whether --enable-cheaders or --disable-cheaders was given.
6063 if test "${enable_cheaders+set}" = set; then
6064 enableval="$enable_cheaders"
6066 case "$enableval" in
6067 c|c_std) ;;
6068 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6069 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6070 { (exit 1); exit 1; }; } ;;
6071 esac
6073 else
6074 enable_cheaders=$c_model
6077 { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6078 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6080 C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6085 if test $enable_cheaders = c; then
6086 GLIBCXX_C_HEADERS_C_TRUE=
6087 GLIBCXX_C_HEADERS_C_FALSE='#'
6088 else
6089 GLIBCXX_C_HEADERS_C_TRUE='#'
6090 GLIBCXX_C_HEADERS_C_FALSE=
6095 if test $enable_cheaders = c_std; then
6096 GLIBCXX_C_HEADERS_C_STD_TRUE=
6097 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
6098 else
6099 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
6100 GLIBCXX_C_HEADERS_C_STD_FALSE=
6105 if test $c_compatibility = yes; then
6106 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
6107 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
6108 else
6109 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
6110 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
6114 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6115 if test "${enable_c_mbchar+set}" = set; then
6116 enableval="$enable_c_mbchar"
6118 case "$enableval" in
6119 yes|no) ;;
6120 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6121 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6122 { (exit 1); exit 1; }; } ;;
6123 esac
6125 else
6126 enable_c_mbchar=yes
6129 # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6133 # Check whether --enable-c99 or --disable-c99 was given.
6134 if test "${enable_c99+set}" = set; then
6135 enableval="$enable_c99"
6137 case "$enableval" in
6138 yes|no) ;;
6139 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6140 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6141 { (exit 1); exit 1; }; } ;;
6142 esac
6144 else
6145 enable_c99=yes
6151 ac_ext=cc
6152 ac_cpp='$CXXCPP $CPPFLAGS'
6153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6158 # Check for the existence of <math.h> functions used if C99 is enabled.
6159 ac_c99_math=yes;
6160 echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6161 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6162 cat >conftest.$ac_ext <<_ACEOF
6163 #line $LINENO "configure"
6164 /* confdefs.h. */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 #include <math.h>
6171 main ()
6173 fpclassify(0.0);
6175 return 0;
6177 _ACEOF
6178 rm -f conftest.$ac_objext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180 (eval $ac_compile) 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } &&
6184 { ac_try='test -s conftest.$ac_objext'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6191 else
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6195 ac_c99_math=no
6197 rm -f conftest.$ac_objext conftest.$ac_ext
6198 cat >conftest.$ac_ext <<_ACEOF
6199 #line $LINENO "configure"
6200 /* confdefs.h. */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6205 #include <math.h>
6207 main ()
6209 isfinite(0.0);
6211 return 0;
6213 _ACEOF
6214 rm -f conftest.$ac_objext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6216 (eval $ac_compile) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try='test -s conftest.$ac_objext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6227 else
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6231 ac_c99_math=no
6233 rm -f conftest.$ac_objext conftest.$ac_ext
6234 cat >conftest.$ac_ext <<_ACEOF
6235 #line $LINENO "configure"
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 #include <math.h>
6243 main ()
6245 isinf(0.0);
6247 return 0;
6249 _ACEOF
6250 rm -f conftest.$ac_objext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252 (eval $ac_compile) 2>&5
6253 ac_status=$?
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -s conftest.$ac_objext'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 (eval $ac_try) 2>&5
6259 ac_status=$?
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
6263 else
6264 echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.$ac_ext >&5
6267 ac_c99_math=no
6269 rm -f conftest.$ac_objext conftest.$ac_ext
6270 cat >conftest.$ac_ext <<_ACEOF
6271 #line $LINENO "configure"
6272 /* confdefs.h. */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 #include <math.h>
6279 main ()
6281 isnan(0.0);
6283 return 0;
6285 _ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288 (eval $ac_compile) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } &&
6292 { ac_try='test -s conftest.$ac_objext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6299 else
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 ac_c99_math=no
6305 rm -f conftest.$ac_objext conftest.$ac_ext
6306 cat >conftest.$ac_ext <<_ACEOF
6307 #line $LINENO "configure"
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 #include <math.h>
6315 main ()
6317 isnormal(0.0);
6319 return 0;
6321 _ACEOF
6322 rm -f conftest.$ac_objext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324 (eval $ac_compile) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try='test -s conftest.$ac_objext'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 (eval $ac_try) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; }; then
6335 else
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6339 ac_c99_math=no
6341 rm -f conftest.$ac_objext conftest.$ac_ext
6342 cat >conftest.$ac_ext <<_ACEOF
6343 #line $LINENO "configure"
6344 /* confdefs.h. */
6345 _ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6349 #include <math.h>
6351 main ()
6353 signbit(0.0);
6355 return 0;
6357 _ACEOF
6358 rm -f conftest.$ac_objext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6360 (eval $ac_compile) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -s conftest.$ac_objext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6371 else
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 ac_c99_math=no
6377 rm -f conftest.$ac_objext conftest.$ac_ext
6378 cat >conftest.$ac_ext <<_ACEOF
6379 #line $LINENO "configure"
6380 /* confdefs.h. */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6385 #include <math.h>
6387 main ()
6389 isgreater(0.0,0.0);
6391 return 0;
6393 _ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6396 (eval $ac_compile) 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } &&
6400 { ac_try='test -s conftest.$ac_objext'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 (eval $ac_try) 2>&5
6403 ac_status=$?
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; }; then
6407 else
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6411 ac_c99_math=no
6413 rm -f conftest.$ac_objext conftest.$ac_ext
6414 cat >conftest.$ac_ext <<_ACEOF
6415 #line $LINENO "configure"
6416 /* confdefs.h. */
6417 _ACEOF
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6421 #include <math.h>
6423 main ()
6425 isgreaterequal(0.0,0.0);
6427 return 0;
6429 _ACEOF
6430 rm -f conftest.$ac_objext
6431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6432 (eval $ac_compile) 2>&5
6433 ac_status=$?
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -s conftest.$ac_objext'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 (eval $ac_try) 2>&5
6439 ac_status=$?
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; }; then
6443 else
6444 echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6447 ac_c99_math=no
6449 rm -f conftest.$ac_objext conftest.$ac_ext
6450 cat >conftest.$ac_ext <<_ACEOF
6451 #line $LINENO "configure"
6452 /* confdefs.h. */
6453 _ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 #include <math.h>
6459 main ()
6461 isless(0.0,0.0);
6463 return 0;
6465 _ACEOF
6466 rm -f conftest.$ac_objext
6467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6468 (eval $ac_compile) 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -s conftest.$ac_objext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 (eval $ac_try) 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6479 else
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6483 ac_c99_math=no
6485 rm -f conftest.$ac_objext conftest.$ac_ext
6486 cat >conftest.$ac_ext <<_ACEOF
6487 #line $LINENO "configure"
6488 /* confdefs.h. */
6489 _ACEOF
6490 cat confdefs.h >>conftest.$ac_ext
6491 cat >>conftest.$ac_ext <<_ACEOF
6492 /* end confdefs.h. */
6493 #include <math.h>
6495 main ()
6497 islessequal(0.0,0.0);
6499 return 0;
6501 _ACEOF
6502 rm -f conftest.$ac_objext
6503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504 (eval $ac_compile) 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } &&
6508 { ac_try='test -s conftest.$ac_objext'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6515 else
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6519 ac_c99_math=no
6521 rm -f conftest.$ac_objext conftest.$ac_ext
6522 cat >conftest.$ac_ext <<_ACEOF
6523 #line $LINENO "configure"
6524 /* confdefs.h. */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 #include <math.h>
6531 main ()
6533 islessgreater(0.0,0.0);
6535 return 0;
6537 _ACEOF
6538 rm -f conftest.$ac_objext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6540 (eval $ac_compile) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 ac_c99_math=no
6557 rm -f conftest.$ac_objext conftest.$ac_ext
6558 cat >conftest.$ac_ext <<_ACEOF
6559 #line $LINENO "configure"
6560 /* confdefs.h. */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 #include <math.h>
6567 main ()
6569 isunordered(0.0,0.0);
6571 return 0;
6573 _ACEOF
6574 rm -f conftest.$ac_objext
6575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6576 (eval $ac_compile) 2>&5
6577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
6580 { ac_try='test -s conftest.$ac_objext'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 (eval $ac_try) 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
6587 else
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6591 ac_c99_math=no
6593 rm -f conftest.$ac_objext conftest.$ac_ext
6594 echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6595 echo "${ECHO_T}$ac_c99_math" >&6
6597 # Check for the existence in <stdio.h> of vscanf, et. al.
6598 ac_c99_stdio=yes;
6599 echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6600 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6601 cat >conftest.$ac_ext <<_ACEOF
6602 #line $LINENO "configure"
6603 /* confdefs.h. */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6608 #include <stdio.h>
6610 main ()
6612 snprintf("12", 0, "%i");
6614 return 0;
6616 _ACEOF
6617 rm -f conftest.$ac_objext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619 (eval $ac_compile) 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } &&
6623 { ac_try='test -s conftest.$ac_objext'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 (eval $ac_try) 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6630 else
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6634 ac_c99_stdio=no
6636 rm -f conftest.$ac_objext conftest.$ac_ext
6637 cat >conftest.$ac_ext <<_ACEOF
6638 #line $LINENO "configure"
6639 /* confdefs.h. */
6640 _ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6644 #include <stdio.h>
6645 #include <stdarg.h>
6646 void foo(char* fmt, ...)
6647 {va_list args; va_start(args, fmt);
6648 vfscanf(stderr, "%i", args);}
6650 main ()
6654 return 0;
6656 _ACEOF
6657 rm -f conftest.$ac_objext
6658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6659 (eval $ac_compile) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } &&
6663 { ac_try='test -s conftest.$ac_objext'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 (eval $ac_try) 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6670 else
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6674 ac_c99_stdio=no
6676 rm -f conftest.$ac_objext conftest.$ac_ext
6677 cat >conftest.$ac_ext <<_ACEOF
6678 #line $LINENO "configure"
6679 /* confdefs.h. */
6680 _ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 #include <stdio.h>
6685 #include <stdarg.h>
6686 void foo(char* fmt, ...)
6687 {va_list args; va_start(args, fmt);
6688 vscanf("%i", args);}
6690 main ()
6694 return 0;
6696 _ACEOF
6697 rm -f conftest.$ac_objext
6698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6699 (eval $ac_compile) 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } &&
6703 { ac_try='test -s conftest.$ac_objext'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 (eval $ac_try) 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; }; then
6710 else
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6714 ac_c99_stdio=no
6716 rm -f conftest.$ac_objext conftest.$ac_ext
6717 cat >conftest.$ac_ext <<_ACEOF
6718 #line $LINENO "configure"
6719 /* confdefs.h. */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 #include <stdio.h>
6725 #include <stdarg.h>
6726 void foo(char* fmt, ...)
6727 {va_list args; va_start(args, fmt);
6728 vsnprintf(fmt, 0, "%i", args);}
6730 main ()
6734 return 0;
6736 _ACEOF
6737 rm -f conftest.$ac_objext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739 (eval $ac_compile) 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } &&
6743 { ac_try='test -s conftest.$ac_objext'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 (eval $ac_try) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6750 else
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6754 ac_c99_stdio=no
6756 rm -f conftest.$ac_objext conftest.$ac_ext
6757 cat >conftest.$ac_ext <<_ACEOF
6758 #line $LINENO "configure"
6759 /* confdefs.h. */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 #include <stdio.h>
6765 #include <stdarg.h>
6766 void foo(char* fmt, ...)
6767 {va_list args; va_start(args, fmt);
6768 vsscanf(fmt, "%i", args);}
6770 main ()
6774 return 0;
6776 _ACEOF
6777 rm -f conftest.$ac_objext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6779 (eval $ac_compile) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } &&
6783 { ac_try='test -s conftest.$ac_objext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6790 else
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6794 ac_c99_stdio=no
6796 rm -f conftest.$ac_objext conftest.$ac_ext
6797 echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
6798 echo "${ECHO_T}$ac_c99_stdio" >&6
6800 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
6801 ac_c99_stdlib=yes;
6802 echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
6803 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
6804 if test "${ac_c99_lldiv_t+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6808 cat >conftest.$ac_ext <<_ACEOF
6809 #line $LINENO "configure"
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 #include <stdlib.h>
6817 main ()
6819 lldiv_t mydivt;
6821 return 0;
6823 _ACEOF
6824 rm -f conftest.$ac_objext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6826 (eval $ac_compile) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
6830 { ac_try='test -s conftest.$ac_objext'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6836 ac_c99_lldiv_t=yes
6837 else
6838 echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6841 ac_c99_lldiv_t=no
6843 rm -f conftest.$ac_objext conftest.$ac_ext
6847 echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
6848 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
6850 echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
6851 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
6852 cat >conftest.$ac_ext <<_ACEOF
6853 #line $LINENO "configure"
6854 /* confdefs.h. */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6859 #include <stdlib.h>
6861 main ()
6863 char* tmp; strtof("gnu", &tmp);
6865 return 0;
6867 _ACEOF
6868 rm -f conftest.$ac_objext
6869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6870 (eval $ac_compile) 2>&5
6871 ac_status=$?
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } &&
6874 { ac_try='test -s conftest.$ac_objext'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876 (eval $ac_try) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6881 else
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6885 ac_c99_stdlib=no
6887 rm -f conftest.$ac_objext conftest.$ac_ext
6888 cat >conftest.$ac_ext <<_ACEOF
6889 #line $LINENO "configure"
6890 /* confdefs.h. */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 #include <stdlib.h>
6897 main ()
6899 char* tmp; strtold("gnu", &tmp);
6901 return 0;
6903 _ACEOF
6904 rm -f conftest.$ac_objext
6905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6906 (eval $ac_compile) 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } &&
6910 { ac_try='test -s conftest.$ac_objext'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6917 else
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 ac_c99_stdlib=no
6923 rm -f conftest.$ac_objext conftest.$ac_ext
6924 cat >conftest.$ac_ext <<_ACEOF
6925 #line $LINENO "configure"
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 #include <stdlib.h>
6933 main ()
6935 llabs(10);
6937 return 0;
6939 _ACEOF
6940 rm -f conftest.$ac_objext
6941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6942 (eval $ac_compile) 2>&5
6943 ac_status=$?
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } &&
6946 { ac_try='test -s conftest.$ac_objext'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948 (eval $ac_try) 2>&5
6949 ac_status=$?
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; }; then
6953 else
6954 echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6957 ac_c99_stdlib=no
6959 rm -f conftest.$ac_objext conftest.$ac_ext
6960 cat >conftest.$ac_ext <<_ACEOF
6961 #line $LINENO "configure"
6962 /* confdefs.h. */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6967 #include <stdlib.h>
6969 main ()
6971 lldiv(10,1);
6973 return 0;
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978 (eval $ac_compile) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } &&
6982 { ac_try='test -s conftest.$ac_objext'
6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 (eval $ac_try) 2>&5
6985 ac_status=$?
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; }; then
6989 else
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6993 ac_c99_stdlib=no
6995 rm -f conftest.$ac_objext conftest.$ac_ext
6996 cat >conftest.$ac_ext <<_ACEOF
6997 #line $LINENO "configure"
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 #include <stdlib.h>
7005 main ()
7007 atoll("10");
7009 return 0;
7011 _ACEOF
7012 rm -f conftest.$ac_objext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7014 (eval $ac_compile) 2>&5
7015 ac_status=$?
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -s conftest.$ac_objext'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 (eval $ac_try) 2>&5
7021 ac_status=$?
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
7025 else
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_c99_stdlib=no
7031 rm -f conftest.$ac_objext conftest.$ac_ext
7032 cat >conftest.$ac_ext <<_ACEOF
7033 #line $LINENO "configure"
7034 /* confdefs.h. */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 #include <stdlib.h>
7041 main ()
7043 _Exit(0);
7045 return 0;
7047 _ACEOF
7048 rm -f conftest.$ac_objext
7049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7050 (eval $ac_compile) 2>&5
7051 ac_status=$?
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } &&
7054 { ac_try='test -s conftest.$ac_objext'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7061 else
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 ac_c99_stdlib=no
7067 rm -f conftest.$ac_objext conftest.$ac_ext
7068 if test x"$ac_c99_lldiv_t" = x"no"; then
7069 ac_c99_stdlib=no;
7071 echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7072 echo "${ECHO_T}$ac_c99_stdlib" >&6
7074 # Check for the existence of <wchar.h> functions used if C99 is enabled.
7075 # XXX the wchar.h checks should be rolled into the general C99 bits.
7076 ac_c99_wchar=yes;
7077 echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7078 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7079 cat >conftest.$ac_ext <<_ACEOF
7080 #line $LINENO "configure"
7081 /* confdefs.h. */
7082 _ACEOF
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7086 #include <wchar.h>
7088 main ()
7090 wcstold(L"10.0", NULL);
7092 return 0;
7094 _ACEOF
7095 rm -f conftest.$ac_objext
7096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7097 (eval $ac_compile) 2>&5
7098 ac_status=$?
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try='test -s conftest.$ac_objext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 (eval $ac_try) 2>&5
7104 ac_status=$?
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7108 else
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7112 ac_c99_wchar=no
7114 rm -f conftest.$ac_objext conftest.$ac_ext
7115 cat >conftest.$ac_ext <<_ACEOF
7116 #line $LINENO "configure"
7117 /* confdefs.h. */
7118 _ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 #include <wchar.h>
7124 main ()
7126 wcstoll(L"10", NULL, 10);
7128 return 0;
7130 _ACEOF
7131 rm -f conftest.$ac_objext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7133 (eval $ac_compile) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } &&
7137 { ac_try='test -s conftest.$ac_objext'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 (eval $ac_try) 2>&5
7140 ac_status=$?
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then
7144 else
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7148 ac_c99_wchar=no
7150 rm -f conftest.$ac_objext conftest.$ac_ext
7151 cat >conftest.$ac_ext <<_ACEOF
7152 #line $LINENO "configure"
7153 /* confdefs.h. */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 #include <wchar.h>
7160 main ()
7162 wcstoull(L"10", NULL, 10);
7164 return 0;
7166 _ACEOF
7167 rm -f conftest.$ac_objext
7168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7169 (eval $ac_compile) 2>&5
7170 ac_status=$?
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } &&
7173 { ac_try='test -s conftest.$ac_objext'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 (eval $ac_try) 2>&5
7176 ac_status=$?
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; }; then
7180 else
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7184 ac_c99_wchar=no
7186 rm -f conftest.$ac_objext conftest.$ac_ext
7187 echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7188 echo "${ECHO_T}$ac_c99_wchar" >&6
7190 echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7191 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7192 if test x"$ac_c99_math" = x"no" ||
7193 test x"$ac_c99_stdio" = x"no" ||
7194 test x"$ac_c99_stdlib" = x"no" ||
7195 test x"$ac_c99_wchar" = x"no"; then
7196 enable_c99=no;
7198 echo "$as_me:$LINENO: result: $enable_c99" >&5
7199 echo "${ECHO_T}$enable_c99" >&6
7201 # Option parsed, now set things appropriately
7202 if test x"$enable_c99" = x"yes"; then
7203 cat >>confdefs.h <<\_ACEOF
7204 #define _GLIBCXX_USE_C99 1
7205 _ACEOF
7209 ac_ext=c
7210 ac_cpp='$CPP $CPPFLAGS'
7211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7217 # Check whether --enable-long-long or --disable-long-long was given.
7218 if test "${enable_long_long+set}" = set; then
7219 enableval="$enable_long_long"
7221 case "$enableval" in
7222 yes|no) ;;
7223 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7224 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7225 { (exit 1); exit 1; }; } ;;
7226 esac
7228 else
7229 enable_long_long=yes
7235 ac_ext=cc
7236 ac_cpp='$CXXCPP $CPPFLAGS'
7237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7242 echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7243 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7244 # iostreams require strtoll, strtoull to compile
7245 cat >conftest.$ac_ext <<_ACEOF
7246 #line $LINENO "configure"
7247 /* confdefs.h. */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 #include <stdlib.h>
7254 main ()
7256 char* tmp; strtoll("gnu", &tmp, 10);
7258 return 0;
7260 _ACEOF
7261 rm -f conftest.$ac_objext
7262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7263 (eval $ac_compile) 2>&5
7264 ac_status=$?
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } &&
7267 { ac_try='test -s conftest.$ac_objext'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 (eval $ac_try) 2>&5
7270 ac_status=$?
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; }; then
7274 else
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7278 enable_long_long=no
7280 rm -f conftest.$ac_objext conftest.$ac_ext
7281 cat >conftest.$ac_ext <<_ACEOF
7282 #line $LINENO "configure"
7283 /* confdefs.h. */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 #include <stdlib.h>
7290 main ()
7292 char* tmp; strtoull("gnu", &tmp, 10);
7294 return 0;
7296 _ACEOF
7297 rm -f conftest.$ac_objext
7298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7299 (eval $ac_compile) 2>&5
7300 ac_status=$?
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } &&
7303 { ac_try='test -s conftest.$ac_objext'
7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 (eval $ac_try) 2>&5
7306 ac_status=$?
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; }; then
7310 else
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7314 enable_long_long=no
7316 rm -f conftest.$ac_objext conftest.$ac_ext
7318 # Option parsed, now set things appropriately
7319 if test $enable_long_long = yes; then
7320 cat >>confdefs.h <<\_ACEOF
7321 #define _GLIBCXX_USE_LONG_LONG 1
7322 _ACEOF
7325 echo "$as_me:$LINENO: result: $enable_long_long" >&5
7326 echo "${ECHO_T}$enable_long_long" >&6
7328 ac_ext=c
7329 ac_cpp='$CPP $CPPFLAGS'
7330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7336 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7337 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7338 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7339 echo "$as_me:$LINENO: result: $target_thread_file" >&5
7340 echo "${ECHO_T}$target_thread_file" >&6
7342 if test $target_thread_file != single; then
7343 cat >>confdefs.h <<\_ACEOF
7344 #define HAVE_GTHR_DEFAULT 1
7345 _ACEOF
7347 cat >>confdefs.h <<\_ACEOF
7348 #define _GLIBCXX_SUPPORTS_WEAK __GXX_WEAK__
7349 _ACEOF
7353 glibcxx_thread_h=gthr-$target_thread_file.h
7357 # Check whether --enable-concept-checks or --disable-concept-checks was given.
7358 if test "${enable_concept_checks+set}" = set; then
7359 enableval="$enable_concept_checks"
7361 case "$enableval" in
7362 yes|no) ;;
7363 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7364 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7365 { (exit 1); exit 1; }; } ;;
7366 esac
7368 else
7369 enable_concept_checks=no
7372 if test $enable_concept_checks = yes; then
7373 cat >>confdefs.h <<\_ACEOF
7374 #define _GLIBCXX_CONCEPT_CHECKS 1
7375 _ACEOF
7380 # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7381 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7382 enableval="$enable_libstdcxx_debug_flags"
7383 case "x$enable_libstdcxx_debug_flags" in
7384 xno | x) enable_libstdcxx_debug_flags= ;;
7385 x-*) ;;
7386 *) { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7387 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7388 { (exit 1); exit 1; }; } ;;
7389 esac
7390 else
7391 enable_libstdcxx_debug_flags="-g3 -O0"
7395 # Option parsed, now set things appropriately
7396 DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7399 { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7400 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7403 echo "$as_me:$LINENO: checking for additional debug build" >&5
7404 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7405 # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7406 if test "${enable_libstdcxx_debug+set}" = set; then
7407 enableval="$enable_libstdcxx_debug"
7409 case "$enableval" in
7410 yes|no) ;;
7411 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7412 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7413 { (exit 1); exit 1; }; } ;;
7414 esac
7416 else
7417 enable_libstdcxx_debug=no
7420 echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7421 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7424 if test $enable_libstdcxx_debug = yes; then
7425 GLIBCXX_BUILD_DEBUG_TRUE=
7426 GLIBCXX_BUILD_DEBUG_FALSE='#'
7427 else
7428 GLIBCXX_BUILD_DEBUG_TRUE='#'
7429 GLIBCXX_BUILD_DEBUG_FALSE=
7433 echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7434 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7435 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7436 if test "${enable_cxx_flags+set}" = set; then
7437 enableval="$enable_cxx_flags"
7438 case "x$enable_cxx_flags" in
7439 xno | x) enable_cxx_flags= ;;
7440 x-*) ;;
7441 *) { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7442 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7443 { (exit 1); exit 1; }; } ;;
7444 esac
7445 else
7446 enable_cxx_flags=
7450 # Run through flags (either default or command-line) and set anything
7451 # extra (e.g., #defines) that must accompany particular g++ options.
7452 if test -n "$enable_cxx_flags"; then
7453 for f in $enable_cxx_flags; do
7454 case "$f" in
7455 -fhonor-std) ;;
7456 -*) ;;
7457 *) # and we're trying to pass /what/ exactly?
7458 { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7459 echo "$as_me: error: compiler flags start with a -" >&2;}
7460 { (exit 1); exit 1; }; } ;;
7461 esac
7462 done
7465 EXTRA_CXX_FLAGS="$enable_cxx_flags"
7466 echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7467 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7471 # No surprises, no surprises...
7472 if test $atomicity_include_dir = cpu/generic ; then
7473 { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7474 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7475 if test $target_thread_file = single; then
7476 { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7477 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7478 { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7479 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7480 else
7481 { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7482 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7483 { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7484 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7489 if $GLIBCXX_IS_NATIVE; then
7491 # We can do more elaborate tests that assume a working linker.
7492 CANADIAN=no
7494 # Check for available headers.
7508 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
7509 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
7510 sys/types.h
7512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7514 echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7521 else
7522 # Is the header compilable?
7523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7525 cat >conftest.$ac_ext <<_ACEOF
7526 #line $LINENO "configure"
7527 /* confdefs.h. */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7532 $ac_includes_default
7533 #include <$ac_header>
7534 _ACEOF
7535 rm -f conftest.$ac_objext
7536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7537 (eval $ac_compile) 2>&5
7538 ac_status=$?
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try='test -s conftest.$ac_objext'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 (eval $ac_try) 2>&5
7544 ac_status=$?
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; }; then
7547 ac_header_compiler=yes
7548 else
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 ac_header_compiler=no
7554 rm -f conftest.$ac_objext conftest.$ac_ext
7555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7556 echo "${ECHO_T}$ac_header_compiler" >&6
7558 # Is the header present?
7559 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7561 cat >conftest.$ac_ext <<_ACEOF
7562 #line $LINENO "configure"
7563 /* confdefs.h. */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <$ac_header>
7569 _ACEOF
7570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7572 ac_status=$?
7573 grep -v '^ *+' conftest.er1 >conftest.err
7574 rm -f conftest.er1
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } >/dev/null; then
7578 if test -s conftest.err; then
7579 ac_cpp_err=$ac_c_preproc_warn_flag
7580 else
7581 ac_cpp_err=
7583 else
7584 ac_cpp_err=yes
7586 if test -z "$ac_cpp_err"; then
7587 ac_header_preproc=yes
7588 else
7589 echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7592 ac_header_preproc=no
7594 rm -f conftest.err conftest.$ac_ext
7595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7596 echo "${ECHO_T}$ac_header_preproc" >&6
7598 # So? What about this header?
7599 case $ac_header_compiler:$ac_header_preproc in
7600 yes:no )
7601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7606 cat <<\_ASBOX
7607 ## ------------------------------------ ##
7608 ## Report this to bug-autoconf@gnu.org. ##
7609 ## ------------------------------------ ##
7610 _ASBOX
7612 sed "s/^/$as_me: WARNING: /" >&2
7614 no:yes )
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7622 cat <<\_ASBOX
7623 ## ------------------------------------ ##
7624 ## Report this to bug-autoconf@gnu.org. ##
7625 ## ------------------------------------ ##
7626 _ASBOX
7628 sed "s/^/$as_me: WARNING: /" >&2
7630 esac
7631 echo "$as_me:$LINENO: checking for $ac_header" >&5
7632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636 eval "$as_ac_Header=$ac_header_preproc"
7638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7643 cat >>confdefs.h <<_ACEOF
7644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7645 _ACEOF
7649 done
7653 # All these tests are for C++; save the language and the compiler flags.
7654 # The CXXFLAGS thing is suspicious, but based on similar bits previously
7655 # found in GLIBCXX_CONFIGURE.
7658 ac_ext=cc
7659 ac_cpp='$CXXCPP $CPPFLAGS'
7660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7664 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7665 ac_save_CXXFLAGS="$CXXFLAGS"
7667 # Check for maintainer-mode bits.
7668 if test x"$USE_MAINTAINER_MODE" = xno; then
7669 WERROR=''
7670 else
7671 WERROR='-Werror'
7674 # Check for -ffunction-sections -fdata-sections
7675 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
7676 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
7677 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
7678 cat >conftest.$ac_ext <<_ACEOF
7679 #line $LINENO "configure"
7680 /* confdefs.h. */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7687 main ()
7689 int foo;
7691 return 0;
7693 _ACEOF
7694 rm -f conftest.$ac_objext
7695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7696 (eval $ac_compile) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } &&
7700 { ac_try='test -s conftest.$ac_objext'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 (eval $ac_try) 2>&5
7703 ac_status=$?
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7706 ac_fdsections=yes
7707 else
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7711 ac_fdsections=no
7713 rm -f conftest.$ac_objext conftest.$ac_ext
7714 if test "$ac_test_CXXFLAGS" = set; then
7715 CXXFLAGS="$ac_save_CXXFLAGS"
7716 else
7717 # this is the suspicious part
7718 CXXFLAGS=''
7720 if test x"$ac_fdsections" = x"yes"; then
7721 SECTION_FLAGS='-ffunction-sections -fdata-sections'
7723 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
7724 echo "${ECHO_T}$ac_fdsections" >&6
7726 ac_ext=c
7727 ac_cpp='$CPP $CPPFLAGS'
7728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7736 # If we're not using GNU ld, then there's no point in even trying these
7737 # tests. Check for that first. We should have already tested for gld
7738 # by now (in libtool), but require it now just to be safe...
7739 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7740 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7744 # The name set by libtool depends on the version of libtool. Shame on us
7745 # for depending on an impl detail, but c'est la vie. Older versions used
7746 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7747 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7748 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7749 # set (hence we're using an older libtool), then set it.
7750 if test x${with_gnu_ld+set} != xset; then
7751 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7752 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7753 with_gnu_ld=no
7754 else
7755 with_gnu_ld=$ac_cv_prog_gnu_ld
7759 # Start by getting the version number. I think the libtool test already
7760 # does some of this, but throws away the result.
7762 ldver=`$LD --version 2>/dev/null | head -1 | \
7763 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7765 glibcxx_gnu_ld_version=`echo $ldver | \
7766 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7768 # Set --gc-sections.
7769 if test "$with_gnu_ld" = "notbroken"; then
7770 # GNU ld it is! Joy and bunny rabbits!
7772 # All these tests are for C++; save the language and the compiler flags.
7773 # Need to do this so that g++ won't try to link in libstdc++
7774 ac_test_CFLAGS="${CFLAGS+set}"
7775 ac_save_CFLAGS="$CFLAGS"
7776 CFLAGS='-x c++ -Wl,--gc-sections'
7778 # Check for -Wl,--gc-sections
7779 # XXX This test is broken at the moment, as symbols required for linking
7780 # are now in libsupc++ (not built yet). In addition, this test has
7781 # cored on solaris in the past. In addition, --gc-sections doesn't
7782 # really work at the moment (keeps on discarding used sections, first
7783 # .eh_frame and now some of the glibc sections for iconv).
7784 # Bzzzzt. Thanks for playing, maybe next time.
7785 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
7786 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
7787 if test "$cross_compiling" = yes; then
7788 ac_sectionLDflags=yes
7789 else
7790 cat >conftest.$ac_ext <<_ACEOF
7791 #line $LINENO "configure"
7792 /* confdefs.h. */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7798 int main(void)
7800 try { throw 1; }
7801 catch (...) { };
7802 return 0;
7805 _ACEOF
7806 rm -f conftest$ac_exeext
7807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7808 (eval $ac_link) 2>&5
7809 ac_status=$?
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813 (eval $ac_try) 2>&5
7814 ac_status=$?
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); }; }; then
7817 ac_sectionLDflags=yes
7818 else
7819 echo "$as_me: program exited with status $ac_status" >&5
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7823 ( exit $ac_status )
7824 ac_sectionLDflags=no
7826 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7828 if test "$ac_test_CFLAGS" = set; then
7829 CFLAGS="$ac_save_CFLAGS"
7830 else
7831 # this is the suspicious part
7832 CFLAGS=''
7834 if test "$ac_sectionLDflags" = "yes"; then
7835 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7837 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
7838 echo "${ECHO_T}$ac_sectionLDflags" >&6
7841 # Set linker optimization flags.
7842 if test x"$with_gnu_ld" = x"yes"; then
7843 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7850 ac_test_CXXFLAGS="${CXXFLAGS+set}"
7851 ac_save_CXXFLAGS="$CXXFLAGS"
7852 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
7854 echo "$as_me:$LINENO: checking for sin in -lm" >&5
7855 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
7856 if test "${ac_cv_lib_m_sin+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859 ac_check_lib_save_LIBS=$LIBS
7860 LIBS="-lm $LIBS"
7861 cat >conftest.$ac_ext <<_ACEOF
7862 #line $LINENO "configure"
7863 /* confdefs.h. */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7869 /* Override any gcc2 internal prototype to avoid an error. */
7870 #ifdef __cplusplus
7871 extern "C"
7872 #endif
7873 /* We use char because int might match the return type of a gcc2
7874 builtin and then its argument prototype would still apply. */
7875 char sin ();
7877 main ()
7879 sin ();
7881 return 0;
7883 _ACEOF
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886 (eval $ac_link) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 ac_cv_lib_m_sin=yes
7897 else
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 ac_cv_lib_m_sin=no
7903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7904 LIBS=$ac_check_lib_save_LIBS
7906 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
7907 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
7908 if test $ac_cv_lib_m_sin = yes; then
7909 libm="-lm"
7912 ac_save_LIBS="$LIBS"
7913 LIBS="$LIBS $libm"
7917 echo "$as_me:$LINENO: checking for isinf declaration" >&5
7918 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
7919 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
7920 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7926 ac_ext=cc
7927 ac_cpp='$CXXCPP $CPPFLAGS'
7928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7932 cat >conftest.$ac_ext <<_ACEOF
7933 #line $LINENO "configure"
7934 /* confdefs.h. */
7935 _ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7939 #include <math.h>
7940 #ifdef HAVE_IEEEFP_H
7941 #include <ieeefp.h>
7942 #endif
7945 main ()
7947 isinf(0);
7949 return 0;
7951 _ACEOF
7952 rm -f conftest.$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954 (eval $ac_compile) 2>&5
7955 ac_status=$?
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -s conftest.$ac_objext'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 (eval $ac_try) 2>&5
7961 ac_status=$?
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7964 glibcxx_cv_func_isinf_use=yes
7965 else
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7969 glibcxx_cv_func_isinf_use=no
7971 rm -f conftest.$ac_objext conftest.$ac_ext
7972 ac_ext=c
7973 ac_cpp='$CPP $CPPFLAGS'
7974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7982 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
7983 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
7985 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
7987 for ac_func in isinf
7989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7990 echo "$as_me:$LINENO: checking for $ac_func" >&5
7991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7992 if eval "test \"\${$as_ac_var+set}\" = set"; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995 cat >conftest.$ac_ext <<_ACEOF
7996 #line $LINENO "configure"
7997 /* confdefs.h. */
7998 _ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8002 /* System header to define __stub macros and hopefully few prototypes,
8003 which can conflict with char $ac_func (); below.
8004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8005 <limits.h> exists even on freestanding compilers. */
8006 #ifdef __STDC__
8007 # include <limits.h>
8008 #else
8009 # include <assert.h>
8010 #endif
8011 /* Override any gcc2 internal prototype to avoid an error. */
8012 #ifdef __cplusplus
8013 extern "C"
8015 #endif
8016 /* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */
8018 char $ac_func ();
8019 /* The GNU C library defines this for functions which it implements
8020 to always fail with ENOSYS. Some functions are actually named
8021 something starting with __ and the normal name is an alias. */
8022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8023 choke me
8024 #else
8025 char (*f) () = $ac_func;
8026 #endif
8027 #ifdef __cplusplus
8029 #endif
8032 main ()
8034 return f != $ac_func;
8036 return 0;
8038 _ACEOF
8039 rm -f conftest.$ac_objext conftest$ac_exeext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8041 (eval $ac_link) 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -s conftest$ac_exeext'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 (eval $ac_try) 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 eval "$as_ac_var=yes"
8052 else
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8056 eval "$as_ac_var=no"
8058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8062 if test `eval echo '${'$as_ac_var'}'` = yes; then
8063 cat >>confdefs.h <<_ACEOF
8064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8065 _ACEOF
8068 done
8070 else
8072 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8073 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8074 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8075 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8081 ac_ext=cc
8082 ac_cpp='$CXXCPP $CPPFLAGS'
8083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8087 cat >conftest.$ac_ext <<_ACEOF
8088 #line $LINENO "configure"
8089 /* confdefs.h. */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 #include <math.h>
8095 #ifdef HAVE_IEEEFP_H
8096 #include <ieeefp.h>
8097 #endif
8100 main ()
8102 _isinf(0);
8104 return 0;
8106 _ACEOF
8107 rm -f conftest.$ac_objext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8109 (eval $ac_compile) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } &&
8113 { ac_try='test -s conftest.$ac_objext'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 (eval $ac_try) 2>&5
8116 ac_status=$?
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; }; then
8119 glibcxx_cv_func__isinf_use=yes
8120 else
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8124 glibcxx_cv_func__isinf_use=no
8126 rm -f conftest.$ac_objext conftest.$ac_ext
8127 ac_ext=c
8128 ac_cpp='$CPP $CPPFLAGS'
8129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8137 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8138 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8140 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8142 for ac_func in _isinf
8144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8145 echo "$as_me:$LINENO: checking for $ac_func" >&5
8146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8147 if eval "test \"\${$as_ac_var+set}\" = set"; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 else
8150 cat >conftest.$ac_ext <<_ACEOF
8151 #line $LINENO "configure"
8152 /* confdefs.h. */
8153 _ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8157 /* System header to define __stub macros and hopefully few prototypes,
8158 which can conflict with char $ac_func (); below.
8159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8160 <limits.h> exists even on freestanding compilers. */
8161 #ifdef __STDC__
8162 # include <limits.h>
8163 #else
8164 # include <assert.h>
8165 #endif
8166 /* Override any gcc2 internal prototype to avoid an error. */
8167 #ifdef __cplusplus
8168 extern "C"
8170 #endif
8171 /* We use char because int might match the return type of a gcc2
8172 builtin and then its argument prototype would still apply. */
8173 char $ac_func ();
8174 /* The GNU C library defines this for functions which it implements
8175 to always fail with ENOSYS. Some functions are actually named
8176 something starting with __ and the normal name is an alias. */
8177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8178 choke me
8179 #else
8180 char (*f) () = $ac_func;
8181 #endif
8182 #ifdef __cplusplus
8184 #endif
8187 main ()
8189 return f != $ac_func;
8191 return 0;
8193 _ACEOF
8194 rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8196 (eval $ac_link) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } &&
8200 { ac_try='test -s conftest$ac_exeext'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 (eval $ac_try) 2>&5
8203 ac_status=$?
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8206 eval "$as_ac_var=yes"
8207 else
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8211 eval "$as_ac_var=no"
8213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8217 if test `eval echo '${'$as_ac_var'}'` = yes; then
8218 cat >>confdefs.h <<_ACEOF
8219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8220 _ACEOF
8223 done
8230 echo "$as_me:$LINENO: checking for isnan declaration" >&5
8231 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8232 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8233 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8239 ac_ext=cc
8240 ac_cpp='$CXXCPP $CPPFLAGS'
8241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8245 cat >conftest.$ac_ext <<_ACEOF
8246 #line $LINENO "configure"
8247 /* confdefs.h. */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8252 #include <math.h>
8253 #ifdef HAVE_IEEEFP_H
8254 #include <ieeefp.h>
8255 #endif
8258 main ()
8260 isnan(0);
8262 return 0;
8264 _ACEOF
8265 rm -f conftest.$ac_objext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8267 (eval $ac_compile) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -s conftest.$ac_objext'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 (eval $ac_try) 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; }; then
8277 glibcxx_cv_func_isnan_use=yes
8278 else
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8282 glibcxx_cv_func_isnan_use=no
8284 rm -f conftest.$ac_objext conftest.$ac_ext
8285 ac_ext=c
8286 ac_cpp='$CPP $CPPFLAGS'
8287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8295 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8296 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8298 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8300 for ac_func in isnan
8302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8303 echo "$as_me:$LINENO: checking for $ac_func" >&5
8304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8305 if eval "test \"\${$as_ac_var+set}\" = set"; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308 cat >conftest.$ac_ext <<_ACEOF
8309 #line $LINENO "configure"
8310 /* confdefs.h. */
8311 _ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8315 /* System header to define __stub macros and hopefully few prototypes,
8316 which can conflict with char $ac_func (); below.
8317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8318 <limits.h> exists even on freestanding compilers. */
8319 #ifdef __STDC__
8320 # include <limits.h>
8321 #else
8322 # include <assert.h>
8323 #endif
8324 /* Override any gcc2 internal prototype to avoid an error. */
8325 #ifdef __cplusplus
8326 extern "C"
8328 #endif
8329 /* We use char because int might match the return type of a gcc2
8330 builtin and then its argument prototype would still apply. */
8331 char $ac_func ();
8332 /* The GNU C library defines this for functions which it implements
8333 to always fail with ENOSYS. Some functions are actually named
8334 something starting with __ and the normal name is an alias. */
8335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8336 choke me
8337 #else
8338 char (*f) () = $ac_func;
8339 #endif
8340 #ifdef __cplusplus
8342 #endif
8345 main ()
8347 return f != $ac_func;
8349 return 0;
8351 _ACEOF
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8354 (eval $ac_link) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -s conftest$ac_exeext'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 (eval $ac_try) 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 eval "$as_ac_var=yes"
8365 else
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 eval "$as_ac_var=no"
8371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8375 if test `eval echo '${'$as_ac_var'}'` = yes; then
8376 cat >>confdefs.h <<_ACEOF
8377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8378 _ACEOF
8381 done
8383 else
8385 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
8386 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
8387 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
8388 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 else
8394 ac_ext=cc
8395 ac_cpp='$CXXCPP $CPPFLAGS'
8396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8400 cat >conftest.$ac_ext <<_ACEOF
8401 #line $LINENO "configure"
8402 /* confdefs.h. */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 #include <math.h>
8408 #ifdef HAVE_IEEEFP_H
8409 #include <ieeefp.h>
8410 #endif
8413 main ()
8415 _isnan(0);
8417 return 0;
8419 _ACEOF
8420 rm -f conftest.$ac_objext
8421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8422 (eval $ac_compile) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } &&
8426 { ac_try='test -s conftest.$ac_objext'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 (eval $ac_try) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 glibcxx_cv_func__isnan_use=yes
8433 else
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8437 glibcxx_cv_func__isnan_use=no
8439 rm -f conftest.$ac_objext conftest.$ac_ext
8440 ac_ext=c
8441 ac_cpp='$CPP $CPPFLAGS'
8442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8450 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
8451 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
8453 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
8455 for ac_func in _isnan
8457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8458 echo "$as_me:$LINENO: checking for $ac_func" >&5
8459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8460 if eval "test \"\${$as_ac_var+set}\" = set"; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463 cat >conftest.$ac_ext <<_ACEOF
8464 #line $LINENO "configure"
8465 /* confdefs.h. */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 /* System header to define __stub macros and hopefully few prototypes,
8471 which can conflict with char $ac_func (); below.
8472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8473 <limits.h> exists even on freestanding compilers. */
8474 #ifdef __STDC__
8475 # include <limits.h>
8476 #else
8477 # include <assert.h>
8478 #endif
8479 /* Override any gcc2 internal prototype to avoid an error. */
8480 #ifdef __cplusplus
8481 extern "C"
8483 #endif
8484 /* We use char because int might match the return type of a gcc2
8485 builtin and then its argument prototype would still apply. */
8486 char $ac_func ();
8487 /* The GNU C library defines this for functions which it implements
8488 to always fail with ENOSYS. Some functions are actually named
8489 something starting with __ and the normal name is an alias. */
8490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8491 choke me
8492 #else
8493 char (*f) () = $ac_func;
8494 #endif
8495 #ifdef __cplusplus
8497 #endif
8500 main ()
8502 return f != $ac_func;
8504 return 0;
8506 _ACEOF
8507 rm -f conftest.$ac_objext conftest$ac_exeext
8508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8509 (eval $ac_link) 2>&5
8510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } &&
8513 { ac_try='test -s conftest$ac_exeext'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515 (eval $ac_try) 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 eval "$as_ac_var=yes"
8520 else
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 eval "$as_ac_var=no"
8526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8530 if test `eval echo '${'$as_ac_var'}'` = yes; then
8531 cat >>confdefs.h <<_ACEOF
8532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8533 _ACEOF
8536 done
8543 echo "$as_me:$LINENO: checking for finite declaration" >&5
8544 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
8545 if test x${glibcxx_cv_func_finite_use+set} != xset; then
8546 if test "${glibcxx_cv_func_finite_use+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8552 ac_ext=cc
8553 ac_cpp='$CXXCPP $CPPFLAGS'
8554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8558 cat >conftest.$ac_ext <<_ACEOF
8559 #line $LINENO "configure"
8560 /* confdefs.h. */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8565 #include <math.h>
8566 #ifdef HAVE_IEEEFP_H
8567 #include <ieeefp.h>
8568 #endif
8571 main ()
8573 finite(0);
8575 return 0;
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -s conftest.$ac_objext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 (eval $ac_try) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 glibcxx_cv_func_finite_use=yes
8591 else
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 glibcxx_cv_func_finite_use=no
8597 rm -f conftest.$ac_objext conftest.$ac_ext
8598 ac_ext=c
8599 ac_cpp='$CPP $CPPFLAGS'
8600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8608 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
8609 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
8611 if test x$glibcxx_cv_func_finite_use = x"yes"; then
8613 for ac_func in finite
8615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8616 echo "$as_me:$LINENO: checking for $ac_func" >&5
8617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8618 if eval "test \"\${$as_ac_var+set}\" = set"; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 else
8621 cat >conftest.$ac_ext <<_ACEOF
8622 #line $LINENO "configure"
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 /* System header to define __stub macros and hopefully few prototypes,
8629 which can conflict with char $ac_func (); below.
8630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8631 <limits.h> exists even on freestanding compilers. */
8632 #ifdef __STDC__
8633 # include <limits.h>
8634 #else
8635 # include <assert.h>
8636 #endif
8637 /* Override any gcc2 internal prototype to avoid an error. */
8638 #ifdef __cplusplus
8639 extern "C"
8641 #endif
8642 /* We use char because int might match the return type of a gcc2
8643 builtin and then its argument prototype would still apply. */
8644 char $ac_func ();
8645 /* The GNU C library defines this for functions which it implements
8646 to always fail with ENOSYS. Some functions are actually named
8647 something starting with __ and the normal name is an alias. */
8648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8649 choke me
8650 #else
8651 char (*f) () = $ac_func;
8652 #endif
8653 #ifdef __cplusplus
8655 #endif
8658 main ()
8660 return f != $ac_func;
8662 return 0;
8664 _ACEOF
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667 (eval $ac_link) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -s conftest$ac_exeext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 (eval $ac_try) 2>&5
8674 ac_status=$?
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 eval "$as_ac_var=yes"
8678 else
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 eval "$as_ac_var=no"
8684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8688 if test `eval echo '${'$as_ac_var'}'` = yes; then
8689 cat >>confdefs.h <<_ACEOF
8690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8691 _ACEOF
8694 done
8696 else
8698 echo "$as_me:$LINENO: checking for _finite declaration" >&5
8699 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
8700 if test x${glibcxx_cv_func__finite_use+set} != xset; then
8701 if test "${glibcxx_cv_func__finite_use+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 else
8707 ac_ext=cc
8708 ac_cpp='$CXXCPP $CPPFLAGS'
8709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8713 cat >conftest.$ac_ext <<_ACEOF
8714 #line $LINENO "configure"
8715 /* confdefs.h. */
8716 _ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h. */
8720 #include <math.h>
8721 #ifdef HAVE_IEEEFP_H
8722 #include <ieeefp.h>
8723 #endif
8726 main ()
8728 _finite(0);
8730 return 0;
8732 _ACEOF
8733 rm -f conftest.$ac_objext
8734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8735 (eval $ac_compile) 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } &&
8739 { ac_try='test -s conftest.$ac_objext'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 (eval $ac_try) 2>&5
8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; }; then
8745 glibcxx_cv_func__finite_use=yes
8746 else
8747 echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8750 glibcxx_cv_func__finite_use=no
8752 rm -f conftest.$ac_objext conftest.$ac_ext
8753 ac_ext=c
8754 ac_cpp='$CPP $CPPFLAGS'
8755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8763 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
8764 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
8766 if test x$glibcxx_cv_func__finite_use = x"yes"; then
8768 for ac_func in _finite
8770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8771 echo "$as_me:$LINENO: checking for $ac_func" >&5
8772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8773 if eval "test \"\${$as_ac_var+set}\" = set"; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776 cat >conftest.$ac_ext <<_ACEOF
8777 #line $LINENO "configure"
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 /* System header to define __stub macros and hopefully few prototypes,
8784 which can conflict with char $ac_func (); below.
8785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8786 <limits.h> exists even on freestanding compilers. */
8787 #ifdef __STDC__
8788 # include <limits.h>
8789 #else
8790 # include <assert.h>
8791 #endif
8792 /* Override any gcc2 internal prototype to avoid an error. */
8793 #ifdef __cplusplus
8794 extern "C"
8796 #endif
8797 /* We use char because int might match the return type of a gcc2
8798 builtin and then its argument prototype would still apply. */
8799 char $ac_func ();
8800 /* The GNU C library defines this for functions which it implements
8801 to always fail with ENOSYS. Some functions are actually named
8802 something starting with __ and the normal name is an alias. */
8803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8804 choke me
8805 #else
8806 char (*f) () = $ac_func;
8807 #endif
8808 #ifdef __cplusplus
8810 #endif
8813 main ()
8815 return f != $ac_func;
8817 return 0;
8819 _ACEOF
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822 (eval $ac_link) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -s conftest$ac_exeext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 eval "$as_ac_var=yes"
8833 else
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8837 eval "$as_ac_var=no"
8839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8843 if test `eval echo '${'$as_ac_var'}'` = yes; then
8844 cat >>confdefs.h <<_ACEOF
8845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8846 _ACEOF
8849 done
8856 echo "$as_me:$LINENO: checking for copysign declaration" >&5
8857 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
8858 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
8859 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8865 ac_ext=cc
8866 ac_cpp='$CXXCPP $CPPFLAGS'
8867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8871 cat >conftest.$ac_ext <<_ACEOF
8872 #line $LINENO "configure"
8873 /* confdefs.h. */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8878 #include <math.h>
8880 main ()
8882 copysign(0, 0);
8884 return 0;
8886 _ACEOF
8887 rm -f conftest.$ac_objext
8888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8889 (eval $ac_compile) 2>&5
8890 ac_status=$?
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } &&
8893 { ac_try='test -s conftest.$ac_objext'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 (eval $ac_try) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; }; then
8899 glibcxx_cv_func_copysign_use=yes
8900 else
8901 echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8904 glibcxx_cv_func_copysign_use=no
8906 rm -f conftest.$ac_objext conftest.$ac_ext
8907 ac_ext=c
8908 ac_cpp='$CPP $CPPFLAGS'
8909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8917 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
8918 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
8920 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
8922 for ac_func in copysign
8924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8925 echo "$as_me:$LINENO: checking for $ac_func" >&5
8926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8927 if eval "test \"\${$as_ac_var+set}\" = set"; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930 cat >conftest.$ac_ext <<_ACEOF
8931 #line $LINENO "configure"
8932 /* confdefs.h. */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 /* System header to define __stub macros and hopefully few prototypes,
8938 which can conflict with char $ac_func (); below.
8939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8940 <limits.h> exists even on freestanding compilers. */
8941 #ifdef __STDC__
8942 # include <limits.h>
8943 #else
8944 # include <assert.h>
8945 #endif
8946 /* Override any gcc2 internal prototype to avoid an error. */
8947 #ifdef __cplusplus
8948 extern "C"
8950 #endif
8951 /* We use char because int might match the return type of a gcc2
8952 builtin and then its argument prototype would still apply. */
8953 char $ac_func ();
8954 /* The GNU C library defines this for functions which it implements
8955 to always fail with ENOSYS. Some functions are actually named
8956 something starting with __ and the normal name is an alias. */
8957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8958 choke me
8959 #else
8960 char (*f) () = $ac_func;
8961 #endif
8962 #ifdef __cplusplus
8964 #endif
8967 main ()
8969 return f != $ac_func;
8971 return 0;
8973 _ACEOF
8974 rm -f conftest.$ac_objext conftest$ac_exeext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } &&
8980 { ac_try='test -s conftest$ac_exeext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 eval "$as_ac_var=yes"
8987 else
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8991 eval "$as_ac_var=no"
8993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8997 if test `eval echo '${'$as_ac_var'}'` = yes; then
8998 cat >>confdefs.h <<_ACEOF
8999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9000 _ACEOF
9003 done
9005 else
9007 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
9008 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
9009 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
9010 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9016 ac_ext=cc
9017 ac_cpp='$CXXCPP $CPPFLAGS'
9018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9022 cat >conftest.$ac_ext <<_ACEOF
9023 #line $LINENO "configure"
9024 /* confdefs.h. */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 #include <math.h>
9031 main ()
9033 _copysign(0, 0);
9035 return 0;
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 glibcxx_cv_func__copysign_use=yes
9051 else
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9055 glibcxx_cv_func__copysign_use=no
9057 rm -f conftest.$ac_objext conftest.$ac_ext
9058 ac_ext=c
9059 ac_cpp='$CPP $CPPFLAGS'
9060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9068 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
9069 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
9071 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
9073 for ac_func in _copysign
9075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9076 echo "$as_me:$LINENO: checking for $ac_func" >&5
9077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9078 if eval "test \"\${$as_ac_var+set}\" = set"; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 else
9081 cat >conftest.$ac_ext <<_ACEOF
9082 #line $LINENO "configure"
9083 /* confdefs.h. */
9084 _ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9088 /* System header to define __stub macros and hopefully few prototypes,
9089 which can conflict with char $ac_func (); below.
9090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9091 <limits.h> exists even on freestanding compilers. */
9092 #ifdef __STDC__
9093 # include <limits.h>
9094 #else
9095 # include <assert.h>
9096 #endif
9097 /* Override any gcc2 internal prototype to avoid an error. */
9098 #ifdef __cplusplus
9099 extern "C"
9101 #endif
9102 /* We use char because int might match the return type of a gcc2
9103 builtin and then its argument prototype would still apply. */
9104 char $ac_func ();
9105 /* The GNU C library defines this for functions which it implements
9106 to always fail with ENOSYS. Some functions are actually named
9107 something starting with __ and the normal name is an alias. */
9108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9109 choke me
9110 #else
9111 char (*f) () = $ac_func;
9112 #endif
9113 #ifdef __cplusplus
9115 #endif
9118 main ()
9120 return f != $ac_func;
9122 return 0;
9124 _ACEOF
9125 rm -f conftest.$ac_objext conftest$ac_exeext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9127 (eval $ac_link) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
9131 { ac_try='test -s conftest$ac_exeext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 (eval $ac_try) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 eval "$as_ac_var=yes"
9138 else
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9142 eval "$as_ac_var=no"
9144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9148 if test `eval echo '${'$as_ac_var'}'` = yes; then
9149 cat >>confdefs.h <<_ACEOF
9150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9151 _ACEOF
9154 done
9161 echo "$as_me:$LINENO: checking for sincos declaration" >&5
9162 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
9163 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
9164 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9170 ac_ext=cc
9171 ac_cpp='$CXXCPP $CPPFLAGS'
9172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9176 cat >conftest.$ac_ext <<_ACEOF
9177 #line $LINENO "configure"
9178 /* confdefs.h. */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9183 #include <math.h>
9185 main ()
9187 sincos(0, 0, 0);
9189 return 0;
9191 _ACEOF
9192 rm -f conftest.$ac_objext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9194 (eval $ac_compile) 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -s conftest.$ac_objext'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 glibcxx_cv_func_sincos_use=yes
9205 else
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9209 glibcxx_cv_func_sincos_use=no
9211 rm -f conftest.$ac_objext conftest.$ac_ext
9212 ac_ext=c
9213 ac_cpp='$CPP $CPPFLAGS'
9214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9222 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
9223 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
9225 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
9227 for ac_func in sincos
9229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9230 echo "$as_me:$LINENO: checking for $ac_func" >&5
9231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9232 if eval "test \"\${$as_ac_var+set}\" = set"; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235 cat >conftest.$ac_ext <<_ACEOF
9236 #line $LINENO "configure"
9237 /* confdefs.h. */
9238 _ACEOF
9239 cat confdefs.h >>conftest.$ac_ext
9240 cat >>conftest.$ac_ext <<_ACEOF
9241 /* end confdefs.h. */
9242 /* System header to define __stub macros and hopefully few prototypes,
9243 which can conflict with char $ac_func (); below.
9244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9245 <limits.h> exists even on freestanding compilers. */
9246 #ifdef __STDC__
9247 # include <limits.h>
9248 #else
9249 # include <assert.h>
9250 #endif
9251 /* Override any gcc2 internal prototype to avoid an error. */
9252 #ifdef __cplusplus
9253 extern "C"
9255 #endif
9256 /* We use char because int might match the return type of a gcc2
9257 builtin and then its argument prototype would still apply. */
9258 char $ac_func ();
9259 /* The GNU C library defines this for functions which it implements
9260 to always fail with ENOSYS. Some functions are actually named
9261 something starting with __ and the normal name is an alias. */
9262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9263 choke me
9264 #else
9265 char (*f) () = $ac_func;
9266 #endif
9267 #ifdef __cplusplus
9269 #endif
9272 main ()
9274 return f != $ac_func;
9276 return 0;
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281 (eval $ac_link) 2>&5
9282 ac_status=$?
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } &&
9285 { ac_try='test -s conftest$ac_exeext'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 (eval $ac_try) 2>&5
9288 ac_status=$?
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; }; then
9291 eval "$as_ac_var=yes"
9292 else
9293 echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9296 eval "$as_ac_var=no"
9298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9302 if test `eval echo '${'$as_ac_var'}'` = yes; then
9303 cat >>confdefs.h <<_ACEOF
9304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9305 _ACEOF
9308 done
9310 else
9312 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
9313 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
9314 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
9315 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9321 ac_ext=cc
9322 ac_cpp='$CXXCPP $CPPFLAGS'
9323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9327 cat >conftest.$ac_ext <<_ACEOF
9328 #line $LINENO "configure"
9329 /* confdefs.h. */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 #include <math.h>
9336 main ()
9338 _sincos(0, 0, 0);
9340 return 0;
9342 _ACEOF
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -s conftest.$ac_objext'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 (eval $ac_try) 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355 glibcxx_cv_func__sincos_use=yes
9356 else
9357 echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9360 glibcxx_cv_func__sincos_use=no
9362 rm -f conftest.$ac_objext conftest.$ac_ext
9363 ac_ext=c
9364 ac_cpp='$CPP $CPPFLAGS'
9365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9373 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
9374 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
9376 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
9378 for ac_func in _sincos
9380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9381 echo "$as_me:$LINENO: checking for $ac_func" >&5
9382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9383 if eval "test \"\${$as_ac_var+set}\" = set"; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 else
9386 cat >conftest.$ac_ext <<_ACEOF
9387 #line $LINENO "configure"
9388 /* confdefs.h. */
9389 _ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9393 /* System header to define __stub macros and hopefully few prototypes,
9394 which can conflict with char $ac_func (); below.
9395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9396 <limits.h> exists even on freestanding compilers. */
9397 #ifdef __STDC__
9398 # include <limits.h>
9399 #else
9400 # include <assert.h>
9401 #endif
9402 /* Override any gcc2 internal prototype to avoid an error. */
9403 #ifdef __cplusplus
9404 extern "C"
9406 #endif
9407 /* We use char because int might match the return type of a gcc2
9408 builtin and then its argument prototype would still apply. */
9409 char $ac_func ();
9410 /* The GNU C library defines this for functions which it implements
9411 to always fail with ENOSYS. Some functions are actually named
9412 something starting with __ and the normal name is an alias. */
9413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9414 choke me
9415 #else
9416 char (*f) () = $ac_func;
9417 #endif
9418 #ifdef __cplusplus
9420 #endif
9423 main ()
9425 return f != $ac_func;
9427 return 0;
9429 _ACEOF
9430 rm -f conftest.$ac_objext conftest$ac_exeext
9431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9432 (eval $ac_link) 2>&5
9433 ac_status=$?
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } &&
9436 { ac_try='test -s conftest$ac_exeext'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 (eval $ac_try) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 eval "$as_ac_var=yes"
9443 else
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 eval "$as_ac_var=no"
9449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9453 if test `eval echo '${'$as_ac_var'}'` = yes; then
9454 cat >>confdefs.h <<_ACEOF
9455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9456 _ACEOF
9459 done
9466 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
9467 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
9468 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
9469 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9475 ac_ext=cc
9476 ac_cpp='$CXXCPP $CPPFLAGS'
9477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9481 cat >conftest.$ac_ext <<_ACEOF
9482 #line $LINENO "configure"
9483 /* confdefs.h. */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9488 #include <math.h>
9489 #ifdef HAVE_IEEEFP_H
9490 #include <ieeefp.h>
9491 #endif
9494 main ()
9496 fpclass(0);
9498 return 0;
9500 _ACEOF
9501 rm -f conftest.$ac_objext
9502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9503 (eval $ac_compile) 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try='test -s conftest.$ac_objext'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 (eval $ac_try) 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
9513 glibcxx_cv_func_fpclass_use=yes
9514 else
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9518 glibcxx_cv_func_fpclass_use=no
9520 rm -f conftest.$ac_objext conftest.$ac_ext
9521 ac_ext=c
9522 ac_cpp='$CPP $CPPFLAGS'
9523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9531 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
9532 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
9534 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
9536 for ac_func in fpclass
9538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9539 echo "$as_me:$LINENO: checking for $ac_func" >&5
9540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9541 if eval "test \"\${$as_ac_var+set}\" = set"; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544 cat >conftest.$ac_ext <<_ACEOF
9545 #line $LINENO "configure"
9546 /* confdefs.h. */
9547 _ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9551 /* System header to define __stub macros and hopefully few prototypes,
9552 which can conflict with char $ac_func (); below.
9553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9554 <limits.h> exists even on freestanding compilers. */
9555 #ifdef __STDC__
9556 # include <limits.h>
9557 #else
9558 # include <assert.h>
9559 #endif
9560 /* Override any gcc2 internal prototype to avoid an error. */
9561 #ifdef __cplusplus
9562 extern "C"
9564 #endif
9565 /* We use char because int might match the return type of a gcc2
9566 builtin and then its argument prototype would still apply. */
9567 char $ac_func ();
9568 /* The GNU C library defines this for functions which it implements
9569 to always fail with ENOSYS. Some functions are actually named
9570 something starting with __ and the normal name is an alias. */
9571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9572 choke me
9573 #else
9574 char (*f) () = $ac_func;
9575 #endif
9576 #ifdef __cplusplus
9578 #endif
9581 main ()
9583 return f != $ac_func;
9585 return 0;
9587 _ACEOF
9588 rm -f conftest.$ac_objext conftest$ac_exeext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try='test -s conftest$ac_exeext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 (eval $ac_try) 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 eval "$as_ac_var=yes"
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 eval "$as_ac_var=no"
9607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9611 if test `eval echo '${'$as_ac_var'}'` = yes; then
9612 cat >>confdefs.h <<_ACEOF
9613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9614 _ACEOF
9617 done
9619 else
9621 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
9622 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
9623 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
9624 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9626 else
9630 ac_ext=cc
9631 ac_cpp='$CXXCPP $CPPFLAGS'
9632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9636 cat >conftest.$ac_ext <<_ACEOF
9637 #line $LINENO "configure"
9638 /* confdefs.h. */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 #include <math.h>
9644 #ifdef HAVE_IEEEFP_H
9645 #include <ieeefp.h>
9646 #endif
9649 main ()
9651 _fpclass(0);
9653 return 0;
9655 _ACEOF
9656 rm -f conftest.$ac_objext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9658 (eval $ac_compile) 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -s conftest.$ac_objext'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668 glibcxx_cv_func__fpclass_use=yes
9669 else
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9673 glibcxx_cv_func__fpclass_use=no
9675 rm -f conftest.$ac_objext conftest.$ac_ext
9676 ac_ext=c
9677 ac_cpp='$CPP $CPPFLAGS'
9678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9686 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
9687 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
9689 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
9691 for ac_func in _fpclass
9693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9694 echo "$as_me:$LINENO: checking for $ac_func" >&5
9695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9696 if eval "test \"\${$as_ac_var+set}\" = set"; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 else
9699 cat >conftest.$ac_ext <<_ACEOF
9700 #line $LINENO "configure"
9701 /* confdefs.h. */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706 /* System header to define __stub macros and hopefully few prototypes,
9707 which can conflict with char $ac_func (); below.
9708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9709 <limits.h> exists even on freestanding compilers. */
9710 #ifdef __STDC__
9711 # include <limits.h>
9712 #else
9713 # include <assert.h>
9714 #endif
9715 /* Override any gcc2 internal prototype to avoid an error. */
9716 #ifdef __cplusplus
9717 extern "C"
9719 #endif
9720 /* We use char because int might match the return type of a gcc2
9721 builtin and then its argument prototype would still apply. */
9722 char $ac_func ();
9723 /* The GNU C library defines this for functions which it implements
9724 to always fail with ENOSYS. Some functions are actually named
9725 something starting with __ and the normal name is an alias. */
9726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9727 choke me
9728 #else
9729 char (*f) () = $ac_func;
9730 #endif
9731 #ifdef __cplusplus
9733 #endif
9736 main ()
9738 return f != $ac_func;
9740 return 0;
9742 _ACEOF
9743 rm -f conftest.$ac_objext conftest$ac_exeext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745 (eval $ac_link) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 eval "$as_ac_var=yes"
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 eval "$as_ac_var=no"
9762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9766 if test `eval echo '${'$as_ac_var'}'` = yes; then
9767 cat >>confdefs.h <<_ACEOF
9768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9769 _ACEOF
9772 done
9779 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
9780 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
9781 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
9782 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9788 ac_ext=cc
9789 ac_cpp='$CXXCPP $CPPFLAGS'
9790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9794 cat >conftest.$ac_ext <<_ACEOF
9795 #line $LINENO "configure"
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 #include <math.h>
9802 #ifdef HAVE_IEEEFP_H
9803 #include <ieeefp.h>
9804 #endif
9807 main ()
9809 qfpclass(0);
9811 return 0;
9813 _ACEOF
9814 rm -f conftest.$ac_objext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816 (eval $ac_compile) 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
9820 { ac_try='test -s conftest.$ac_objext'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; }; then
9826 glibcxx_cv_func_qfpclass_use=yes
9827 else
9828 echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9831 glibcxx_cv_func_qfpclass_use=no
9833 rm -f conftest.$ac_objext conftest.$ac_ext
9834 ac_ext=c
9835 ac_cpp='$CPP $CPPFLAGS'
9836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9844 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
9845 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
9847 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
9849 for ac_func in qfpclass
9851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9852 echo "$as_me:$LINENO: checking for $ac_func" >&5
9853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9854 if eval "test \"\${$as_ac_var+set}\" = set"; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857 cat >conftest.$ac_ext <<_ACEOF
9858 #line $LINENO "configure"
9859 /* confdefs.h. */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9864 /* System header to define __stub macros and hopefully few prototypes,
9865 which can conflict with char $ac_func (); below.
9866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9867 <limits.h> exists even on freestanding compilers. */
9868 #ifdef __STDC__
9869 # include <limits.h>
9870 #else
9871 # include <assert.h>
9872 #endif
9873 /* Override any gcc2 internal prototype to avoid an error. */
9874 #ifdef __cplusplus
9875 extern "C"
9877 #endif
9878 /* We use char because int might match the return type of a gcc2
9879 builtin and then its argument prototype would still apply. */
9880 char $ac_func ();
9881 /* The GNU C library defines this for functions which it implements
9882 to always fail with ENOSYS. Some functions are actually named
9883 something starting with __ and the normal name is an alias. */
9884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9885 choke me
9886 #else
9887 char (*f) () = $ac_func;
9888 #endif
9889 #ifdef __cplusplus
9891 #endif
9894 main ()
9896 return f != $ac_func;
9898 return 0;
9900 _ACEOF
9901 rm -f conftest.$ac_objext conftest$ac_exeext
9902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9903 (eval $ac_link) 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -s conftest$ac_exeext'
9908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 (eval $ac_try) 2>&5
9910 ac_status=$?
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; }; then
9913 eval "$as_ac_var=yes"
9914 else
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 eval "$as_ac_var=no"
9920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9924 if test `eval echo '${'$as_ac_var'}'` = yes; then
9925 cat >>confdefs.h <<_ACEOF
9926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9927 _ACEOF
9930 done
9932 else
9934 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
9935 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
9936 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
9937 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9943 ac_ext=cc
9944 ac_cpp='$CXXCPP $CPPFLAGS'
9945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9949 cat >conftest.$ac_ext <<_ACEOF
9950 #line $LINENO "configure"
9951 /* confdefs.h. */
9952 _ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9956 #include <math.h>
9957 #ifdef HAVE_IEEEFP_H
9958 #include <ieeefp.h>
9959 #endif
9962 main ()
9964 _qfpclass(0);
9966 return 0;
9968 _ACEOF
9969 rm -f conftest.$ac_objext
9970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9971 (eval $ac_compile) 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -s conftest.$ac_objext'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 glibcxx_cv_func__qfpclass_use=yes
9982 else
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9986 glibcxx_cv_func__qfpclass_use=no
9988 rm -f conftest.$ac_objext conftest.$ac_ext
9989 ac_ext=c
9990 ac_cpp='$CPP $CPPFLAGS'
9991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9999 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
10000 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
10002 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
10004 for ac_func in _qfpclass
10006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10007 echo "$as_me:$LINENO: checking for $ac_func" >&5
10008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10009 if eval "test \"\${$as_ac_var+set}\" = set"; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10011 else
10012 cat >conftest.$ac_ext <<_ACEOF
10013 #line $LINENO "configure"
10014 /* confdefs.h. */
10015 _ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h. */
10019 /* System header to define __stub macros and hopefully few prototypes,
10020 which can conflict with char $ac_func (); below.
10021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10022 <limits.h> exists even on freestanding compilers. */
10023 #ifdef __STDC__
10024 # include <limits.h>
10025 #else
10026 # include <assert.h>
10027 #endif
10028 /* Override any gcc2 internal prototype to avoid an error. */
10029 #ifdef __cplusplus
10030 extern "C"
10032 #endif
10033 /* We use char because int might match the return type of a gcc2
10034 builtin and then its argument prototype would still apply. */
10035 char $ac_func ();
10036 /* The GNU C library defines this for functions which it implements
10037 to always fail with ENOSYS. Some functions are actually named
10038 something starting with __ and the normal name is an alias. */
10039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10040 choke me
10041 #else
10042 char (*f) () = $ac_func;
10043 #endif
10044 #ifdef __cplusplus
10046 #endif
10049 main ()
10051 return f != $ac_func;
10053 return 0;
10055 _ACEOF
10056 rm -f conftest.$ac_objext conftest$ac_exeext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10058 (eval $ac_link) 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -s conftest$ac_exeext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 eval "$as_ac_var=yes"
10069 else
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10073 eval "$as_ac_var=no"
10075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10079 if test `eval echo '${'$as_ac_var'}'` = yes; then
10080 cat >>confdefs.h <<_ACEOF
10081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10082 _ACEOF
10085 done
10092 echo "$as_me:$LINENO: checking for hypot declaration" >&5
10093 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
10094 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
10095 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10101 ac_ext=cc
10102 ac_cpp='$CXXCPP $CPPFLAGS'
10103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10107 cat >conftest.$ac_ext <<_ACEOF
10108 #line $LINENO "configure"
10109 /* confdefs.h. */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114 #include <math.h>
10116 main ()
10118 hypot(0, 0);
10120 return 0;
10122 _ACEOF
10123 rm -f conftest.$ac_objext
10124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10125 (eval $ac_compile) 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -s conftest.$ac_objext'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10135 glibcxx_cv_func_hypot_use=yes
10136 else
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10140 glibcxx_cv_func_hypot_use=no
10142 rm -f conftest.$ac_objext conftest.$ac_ext
10143 ac_ext=c
10144 ac_cpp='$CPP $CPPFLAGS'
10145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10153 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
10154 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
10156 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
10158 for ac_func in hypot
10160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10161 echo "$as_me:$LINENO: checking for $ac_func" >&5
10162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10163 if eval "test \"\${$as_ac_var+set}\" = set"; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 else
10166 cat >conftest.$ac_ext <<_ACEOF
10167 #line $LINENO "configure"
10168 /* confdefs.h. */
10169 _ACEOF
10170 cat confdefs.h >>conftest.$ac_ext
10171 cat >>conftest.$ac_ext <<_ACEOF
10172 /* end confdefs.h. */
10173 /* System header to define __stub macros and hopefully few prototypes,
10174 which can conflict with char $ac_func (); below.
10175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10176 <limits.h> exists even on freestanding compilers. */
10177 #ifdef __STDC__
10178 # include <limits.h>
10179 #else
10180 # include <assert.h>
10181 #endif
10182 /* Override any gcc2 internal prototype to avoid an error. */
10183 #ifdef __cplusplus
10184 extern "C"
10186 #endif
10187 /* We use char because int might match the return type of a gcc2
10188 builtin and then its argument prototype would still apply. */
10189 char $ac_func ();
10190 /* The GNU C library defines this for functions which it implements
10191 to always fail with ENOSYS. Some functions are actually named
10192 something starting with __ and the normal name is an alias. */
10193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10194 choke me
10195 #else
10196 char (*f) () = $ac_func;
10197 #endif
10198 #ifdef __cplusplus
10200 #endif
10203 main ()
10205 return f != $ac_func;
10207 return 0;
10209 _ACEOF
10210 rm -f conftest.$ac_objext conftest$ac_exeext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10212 (eval $ac_link) 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } &&
10216 { ac_try='test -s conftest$ac_exeext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 eval "$as_ac_var=yes"
10223 else
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 eval "$as_ac_var=no"
10229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10233 if test `eval echo '${'$as_ac_var'}'` = yes; then
10234 cat >>confdefs.h <<_ACEOF
10235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10236 _ACEOF
10239 done
10241 else
10243 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
10244 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
10245 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
10246 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10248 else
10252 ac_ext=cc
10253 ac_cpp='$CXXCPP $CPPFLAGS'
10254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10258 cat >conftest.$ac_ext <<_ACEOF
10259 #line $LINENO "configure"
10260 /* confdefs.h. */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10265 #include <math.h>
10267 main ()
10269 _hypot(0, 0);
10271 return 0;
10273 _ACEOF
10274 rm -f conftest.$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>&5
10277 ac_status=$?
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -s conftest.$ac_objext'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; }; then
10286 glibcxx_cv_func__hypot_use=yes
10287 else
10288 echo "$as_me: failed program was:" >&5
10289 sed 's/^/| /' conftest.$ac_ext >&5
10291 glibcxx_cv_func__hypot_use=no
10293 rm -f conftest.$ac_objext conftest.$ac_ext
10294 ac_ext=c
10295 ac_cpp='$CPP $CPPFLAGS'
10296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10304 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
10305 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
10307 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
10309 for ac_func in _hypot
10311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10312 echo "$as_me:$LINENO: checking for $ac_func" >&5
10313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10314 if eval "test \"\${$as_ac_var+set}\" = set"; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10316 else
10317 cat >conftest.$ac_ext <<_ACEOF
10318 #line $LINENO "configure"
10319 /* confdefs.h. */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 /* System header to define __stub macros and hopefully few prototypes,
10325 which can conflict with char $ac_func (); below.
10326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10327 <limits.h> exists even on freestanding compilers. */
10328 #ifdef __STDC__
10329 # include <limits.h>
10330 #else
10331 # include <assert.h>
10332 #endif
10333 /* Override any gcc2 internal prototype to avoid an error. */
10334 #ifdef __cplusplus
10335 extern "C"
10337 #endif
10338 /* We use char because int might match the return type of a gcc2
10339 builtin and then its argument prototype would still apply. */
10340 char $ac_func ();
10341 /* The GNU C library defines this for functions which it implements
10342 to always fail with ENOSYS. Some functions are actually named
10343 something starting with __ and the normal name is an alias. */
10344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10345 choke me
10346 #else
10347 char (*f) () = $ac_func;
10348 #endif
10349 #ifdef __cplusplus
10351 #endif
10354 main ()
10356 return f != $ac_func;
10358 return 0;
10360 _ACEOF
10361 rm -f conftest.$ac_objext conftest$ac_exeext
10362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10363 (eval $ac_link) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } &&
10367 { ac_try='test -s conftest$ac_exeext'
10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; }; then
10373 eval "$as_ac_var=yes"
10374 else
10375 echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10378 eval "$as_ac_var=no"
10380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10384 if test `eval echo '${'$as_ac_var'}'` = yes; then
10385 cat >>confdefs.h <<_ACEOF
10386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10387 _ACEOF
10390 done
10397 echo "$as_me:$LINENO: checking for float trig functions" >&5
10398 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
10399 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10405 ac_ext=cc
10406 ac_cpp='$CXXCPP $CPPFLAGS'
10407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10411 cat >conftest.$ac_ext <<_ACEOF
10412 #line $LINENO "configure"
10413 /* confdefs.h. */
10414 _ACEOF
10415 cat confdefs.h >>conftest.$ac_ext
10416 cat >>conftest.$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 #include <math.h>
10420 main ()
10422 `for x in acosf asinf atanf \
10423 cosf sinf tanf \
10424 coshf sinhf tanhf; do echo "$x (0);"; done`
10426 return 0;
10428 _ACEOF
10429 rm -f conftest.$ac_objext
10430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10431 (eval $ac_compile) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try='test -s conftest.$ac_objext'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 glibcxx_cv_func_float_trig_use=yes
10442 else
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10446 glibcxx_cv_func_float_trig_use=no
10448 rm -f conftest.$ac_objext conftest.$ac_ext
10449 ac_ext=c
10450 ac_cpp='$CPP $CPPFLAGS'
10451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10457 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
10458 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
10459 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
10469 for ac_func in acosf asinf atanf \
10470 cosf sinf tanf \
10471 coshf sinhf tanhf
10473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10474 echo "$as_me:$LINENO: checking for $ac_func" >&5
10475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10476 if eval "test \"\${$as_ac_var+set}\" = set"; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479 cat >conftest.$ac_ext <<_ACEOF
10480 #line $LINENO "configure"
10481 /* confdefs.h. */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10486 /* System header to define __stub macros and hopefully few prototypes,
10487 which can conflict with char $ac_func (); below.
10488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10489 <limits.h> exists even on freestanding compilers. */
10490 #ifdef __STDC__
10491 # include <limits.h>
10492 #else
10493 # include <assert.h>
10494 #endif
10495 /* Override any gcc2 internal prototype to avoid an error. */
10496 #ifdef __cplusplus
10497 extern "C"
10499 #endif
10500 /* We use char because int might match the return type of a gcc2
10501 builtin and then its argument prototype would still apply. */
10502 char $ac_func ();
10503 /* The GNU C library defines this for functions which it implements
10504 to always fail with ENOSYS. Some functions are actually named
10505 something starting with __ and the normal name is an alias. */
10506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10507 choke me
10508 #else
10509 char (*f) () = $ac_func;
10510 #endif
10511 #ifdef __cplusplus
10513 #endif
10516 main ()
10518 return f != $ac_func;
10520 return 0;
10522 _ACEOF
10523 rm -f conftest.$ac_objext conftest$ac_exeext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525 (eval $ac_link) 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -s conftest$ac_exeext'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 eval "$as_ac_var=yes"
10536 else
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10540 eval "$as_ac_var=no"
10542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10546 if test `eval echo '${'$as_ac_var'}'` = yes; then
10547 cat >>confdefs.h <<_ACEOF
10548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10549 _ACEOF
10552 done
10557 echo "$as_me:$LINENO: checking for float round functions" >&5
10558 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
10559 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 else
10565 ac_ext=cc
10566 ac_cpp='$CXXCPP $CPPFLAGS'
10567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10571 cat >conftest.$ac_ext <<_ACEOF
10572 #line $LINENO "configure"
10573 /* confdefs.h. */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 #include <math.h>
10580 main ()
10582 `for x in ceilf floorf; do echo "$x (0);"; done`
10584 return 0;
10586 _ACEOF
10587 rm -f conftest.$ac_objext
10588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10589 (eval $ac_compile) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } &&
10593 { ac_try='test -s conftest.$ac_objext'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
10599 glibcxx_cv_func_float_round_use=yes
10600 else
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10604 glibcxx_cv_func_float_round_use=no
10606 rm -f conftest.$ac_objext conftest.$ac_ext
10607 ac_ext=c
10608 ac_cpp='$CPP $CPPFLAGS'
10609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10615 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
10616 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
10617 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
10620 for ac_func in ceilf floorf
10622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10623 echo "$as_me:$LINENO: checking for $ac_func" >&5
10624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10625 if eval "test \"\${$as_ac_var+set}\" = set"; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10627 else
10628 cat >conftest.$ac_ext <<_ACEOF
10629 #line $LINENO "configure"
10630 /* confdefs.h. */
10631 _ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h. */
10635 /* System header to define __stub macros and hopefully few prototypes,
10636 which can conflict with char $ac_func (); below.
10637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10638 <limits.h> exists even on freestanding compilers. */
10639 #ifdef __STDC__
10640 # include <limits.h>
10641 #else
10642 # include <assert.h>
10643 #endif
10644 /* Override any gcc2 internal prototype to avoid an error. */
10645 #ifdef __cplusplus
10646 extern "C"
10648 #endif
10649 /* We use char because int might match the return type of a gcc2
10650 builtin and then its argument prototype would still apply. */
10651 char $ac_func ();
10652 /* The GNU C library defines this for functions which it implements
10653 to always fail with ENOSYS. Some functions are actually named
10654 something starting with __ and the normal name is an alias. */
10655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10656 choke me
10657 #else
10658 char (*f) () = $ac_func;
10659 #endif
10660 #ifdef __cplusplus
10662 #endif
10665 main ()
10667 return f != $ac_func;
10669 return 0;
10671 _ACEOF
10672 rm -f conftest.$ac_objext conftest$ac_exeext
10673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10674 (eval $ac_link) 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } &&
10678 { ac_try='test -s conftest$ac_exeext'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 eval "$as_ac_var=yes"
10685 else
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10689 eval "$as_ac_var=no"
10691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10695 if test `eval echo '${'$as_ac_var'}'` = yes; then
10696 cat >>confdefs.h <<_ACEOF
10697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10698 _ACEOF
10701 done
10707 echo "$as_me:$LINENO: checking for expf declaration" >&5
10708 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
10709 if test x${glibcxx_cv_func_expf_use+set} != xset; then
10710 if test "${glibcxx_cv_func_expf_use+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10716 ac_ext=cc
10717 ac_cpp='$CXXCPP $CPPFLAGS'
10718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10722 cat >conftest.$ac_ext <<_ACEOF
10723 #line $LINENO "configure"
10724 /* confdefs.h. */
10725 _ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10729 #include <math.h>
10730 #ifdef HAVE_IEEEFP_H
10731 #include <ieeefp.h>
10732 #endif
10735 main ()
10737 expf(0);
10739 return 0;
10741 _ACEOF
10742 rm -f conftest.$ac_objext
10743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10744 (eval $ac_compile) 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } &&
10748 { ac_try='test -s conftest.$ac_objext'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 glibcxx_cv_func_expf_use=yes
10755 else
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 glibcxx_cv_func_expf_use=no
10761 rm -f conftest.$ac_objext conftest.$ac_ext
10762 ac_ext=c
10763 ac_cpp='$CPP $CPPFLAGS'
10764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10772 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
10773 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
10775 if test x$glibcxx_cv_func_expf_use = x"yes"; then
10777 for ac_func in expf
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"
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
10819 #endif
10822 main ()
10824 return f != $ac_func;
10826 return 0;
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
10846 eval "$as_ac_var=no"
10848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
10858 done
10860 else
10862 echo "$as_me:$LINENO: checking for _expf declaration" >&5
10863 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
10864 if test x${glibcxx_cv_func__expf_use+set} != xset; then
10865 if test "${glibcxx_cv_func__expf_use+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10871 ac_ext=cc
10872 ac_cpp='$CXXCPP $CPPFLAGS'
10873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10877 cat >conftest.$ac_ext <<_ACEOF
10878 #line $LINENO "configure"
10879 /* confdefs.h. */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10884 #include <math.h>
10885 #ifdef HAVE_IEEEFP_H
10886 #include <ieeefp.h>
10887 #endif
10890 main ()
10892 _expf(0);
10894 return 0;
10896 _ACEOF
10897 rm -f conftest.$ac_objext
10898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10899 (eval $ac_compile) 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -s conftest.$ac_objext'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 glibcxx_cv_func__expf_use=yes
10910 else
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 glibcxx_cv_func__expf_use=no
10916 rm -f conftest.$ac_objext conftest.$ac_ext
10917 ac_ext=c
10918 ac_cpp='$CPP $CPPFLAGS'
10919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10927 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
10928 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
10930 if test x$glibcxx_cv_func__expf_use = x"yes"; then
10932 for ac_func in _expf
10934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10935 echo "$as_me:$LINENO: checking for $ac_func" >&5
10936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10937 if eval "test \"\${$as_ac_var+set}\" = set"; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940 cat >conftest.$ac_ext <<_ACEOF
10941 #line $LINENO "configure"
10942 /* confdefs.h. */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 /* System header to define __stub macros and hopefully few prototypes,
10948 which can conflict with char $ac_func (); below.
10949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10950 <limits.h> exists even on freestanding compilers. */
10951 #ifdef __STDC__
10952 # include <limits.h>
10953 #else
10954 # include <assert.h>
10955 #endif
10956 /* Override any gcc2 internal prototype to avoid an error. */
10957 #ifdef __cplusplus
10958 extern "C"
10960 #endif
10961 /* We use char because int might match the return type of a gcc2
10962 builtin and then its argument prototype would still apply. */
10963 char $ac_func ();
10964 /* The GNU C library defines this for functions which it implements
10965 to always fail with ENOSYS. Some functions are actually named
10966 something starting with __ and the normal name is an alias. */
10967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10968 choke me
10969 #else
10970 char (*f) () = $ac_func;
10971 #endif
10972 #ifdef __cplusplus
10974 #endif
10977 main ()
10979 return f != $ac_func;
10981 return 0;
10983 _ACEOF
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10986 (eval $ac_link) 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } &&
10990 { ac_try='test -s conftest$ac_exeext'
10991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992 (eval $ac_try) 2>&5
10993 ac_status=$?
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; }; then
10996 eval "$as_ac_var=yes"
10997 else
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 eval "$as_ac_var=no"
11003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11007 if test `eval echo '${'$as_ac_var'}'` = yes; then
11008 cat >>confdefs.h <<_ACEOF
11009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11010 _ACEOF
11013 done
11020 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
11021 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
11022 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
11023 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11029 ac_ext=cc
11030 ac_cpp='$CXXCPP $CPPFLAGS'
11031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11035 cat >conftest.$ac_ext <<_ACEOF
11036 #line $LINENO "configure"
11037 /* confdefs.h. */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 #include <math.h>
11043 #ifdef HAVE_IEEEFP_H
11044 #include <ieeefp.h>
11045 #endif
11048 main ()
11050 isnanf(0);
11052 return 0;
11054 _ACEOF
11055 rm -f conftest.$ac_objext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11057 (eval $ac_compile) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -s conftest.$ac_objext'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 glibcxx_cv_func_isnanf_use=yes
11068 else
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11072 glibcxx_cv_func_isnanf_use=no
11074 rm -f conftest.$ac_objext conftest.$ac_ext
11075 ac_ext=c
11076 ac_cpp='$CPP $CPPFLAGS'
11077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11085 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
11086 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
11088 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
11090 for ac_func in isnanf
11092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11093 echo "$as_me:$LINENO: checking for $ac_func" >&5
11094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11095 if eval "test \"\${$as_ac_var+set}\" = set"; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 cat >conftest.$ac_ext <<_ACEOF
11099 #line $LINENO "configure"
11100 /* confdefs.h. */
11101 _ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11105 /* System header to define __stub macros and hopefully few prototypes,
11106 which can conflict with char $ac_func (); below.
11107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11108 <limits.h> exists even on freestanding compilers. */
11109 #ifdef __STDC__
11110 # include <limits.h>
11111 #else
11112 # include <assert.h>
11113 #endif
11114 /* Override any gcc2 internal prototype to avoid an error. */
11115 #ifdef __cplusplus
11116 extern "C"
11118 #endif
11119 /* We use char because int might match the return type of a gcc2
11120 builtin and then its argument prototype would still apply. */
11121 char $ac_func ();
11122 /* The GNU C library defines this for functions which it implements
11123 to always fail with ENOSYS. Some functions are actually named
11124 something starting with __ and the normal name is an alias. */
11125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11126 choke me
11127 #else
11128 char (*f) () = $ac_func;
11129 #endif
11130 #ifdef __cplusplus
11132 #endif
11135 main ()
11137 return f != $ac_func;
11139 return 0;
11141 _ACEOF
11142 rm -f conftest.$ac_objext conftest$ac_exeext
11143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11144 (eval $ac_link) 2>&5
11145 ac_status=$?
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } &&
11148 { ac_try='test -s conftest$ac_exeext'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11154 eval "$as_ac_var=yes"
11155 else
11156 echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 eval "$as_ac_var=no"
11161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11165 if test `eval echo '${'$as_ac_var'}'` = yes; then
11166 cat >>confdefs.h <<_ACEOF
11167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11168 _ACEOF
11171 done
11173 else
11175 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
11176 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
11177 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
11178 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 else
11184 ac_ext=cc
11185 ac_cpp='$CXXCPP $CPPFLAGS'
11186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11190 cat >conftest.$ac_ext <<_ACEOF
11191 #line $LINENO "configure"
11192 /* confdefs.h. */
11193 _ACEOF
11194 cat confdefs.h >>conftest.$ac_ext
11195 cat >>conftest.$ac_ext <<_ACEOF
11196 /* end confdefs.h. */
11197 #include <math.h>
11198 #ifdef HAVE_IEEEFP_H
11199 #include <ieeefp.h>
11200 #endif
11203 main ()
11205 _isnanf(0);
11207 return 0;
11209 _ACEOF
11210 rm -f conftest.$ac_objext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11212 (eval $ac_compile) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } &&
11216 { ac_try='test -s conftest.$ac_objext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 glibcxx_cv_func__isnanf_use=yes
11223 else
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11227 glibcxx_cv_func__isnanf_use=no
11229 rm -f conftest.$ac_objext conftest.$ac_ext
11230 ac_ext=c
11231 ac_cpp='$CPP $CPPFLAGS'
11232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11240 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
11241 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
11243 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
11245 for ac_func in _isnanf
11247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11248 echo "$as_me:$LINENO: checking for $ac_func" >&5
11249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11250 if eval "test \"\${$as_ac_var+set}\" = set"; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11252 else
11253 cat >conftest.$ac_ext <<_ACEOF
11254 #line $LINENO "configure"
11255 /* confdefs.h. */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11260 /* System header to define __stub macros and hopefully few prototypes,
11261 which can conflict with char $ac_func (); below.
11262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11263 <limits.h> exists even on freestanding compilers. */
11264 #ifdef __STDC__
11265 # include <limits.h>
11266 #else
11267 # include <assert.h>
11268 #endif
11269 /* Override any gcc2 internal prototype to avoid an error. */
11270 #ifdef __cplusplus
11271 extern "C"
11273 #endif
11274 /* We use char because int might match the return type of a gcc2
11275 builtin and then its argument prototype would still apply. */
11276 char $ac_func ();
11277 /* The GNU C library defines this for functions which it implements
11278 to always fail with ENOSYS. Some functions are actually named
11279 something starting with __ and the normal name is an alias. */
11280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11281 choke me
11282 #else
11283 char (*f) () = $ac_func;
11284 #endif
11285 #ifdef __cplusplus
11287 #endif
11290 main ()
11292 return f != $ac_func;
11294 return 0;
11296 _ACEOF
11297 rm -f conftest.$ac_objext conftest$ac_exeext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11299 (eval $ac_link) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } &&
11303 { ac_try='test -s conftest$ac_exeext'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; }; then
11309 eval "$as_ac_var=yes"
11310 else
11311 echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11314 eval "$as_ac_var=no"
11316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11320 if test `eval echo '${'$as_ac_var'}'` = yes; then
11321 cat >>confdefs.h <<_ACEOF
11322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11323 _ACEOF
11326 done
11333 echo "$as_me:$LINENO: checking for isinff declaration" >&5
11334 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
11335 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
11336 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11342 ac_ext=cc
11343 ac_cpp='$CXXCPP $CPPFLAGS'
11344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11348 cat >conftest.$ac_ext <<_ACEOF
11349 #line $LINENO "configure"
11350 /* confdefs.h. */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 #include <math.h>
11356 #ifdef HAVE_IEEEFP_H
11357 #include <ieeefp.h>
11358 #endif
11361 main ()
11363 isinff(0);
11365 return 0;
11367 _ACEOF
11368 rm -f conftest.$ac_objext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11370 (eval $ac_compile) 2>&5
11371 ac_status=$?
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } &&
11374 { ac_try='test -s conftest.$ac_objext'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; }; then
11380 glibcxx_cv_func_isinff_use=yes
11381 else
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 glibcxx_cv_func_isinff_use=no
11387 rm -f conftest.$ac_objext conftest.$ac_ext
11388 ac_ext=c
11389 ac_cpp='$CPP $CPPFLAGS'
11390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11398 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
11399 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
11401 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
11403 for ac_func in isinff
11405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11406 echo "$as_me:$LINENO: checking for $ac_func" >&5
11407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11408 if eval "test \"\${$as_ac_var+set}\" = set"; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 else
11411 cat >conftest.$ac_ext <<_ACEOF
11412 #line $LINENO "configure"
11413 /* confdefs.h. */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 /* System header to define __stub macros and hopefully few prototypes,
11419 which can conflict with char $ac_func (); below.
11420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11421 <limits.h> exists even on freestanding compilers. */
11422 #ifdef __STDC__
11423 # include <limits.h>
11424 #else
11425 # include <assert.h>
11426 #endif
11427 /* Override any gcc2 internal prototype to avoid an error. */
11428 #ifdef __cplusplus
11429 extern "C"
11431 #endif
11432 /* We use char because int might match the return type of a gcc2
11433 builtin and then its argument prototype would still apply. */
11434 char $ac_func ();
11435 /* The GNU C library defines this for functions which it implements
11436 to always fail with ENOSYS. Some functions are actually named
11437 something starting with __ and the normal name is an alias. */
11438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11439 choke me
11440 #else
11441 char (*f) () = $ac_func;
11442 #endif
11443 #ifdef __cplusplus
11445 #endif
11448 main ()
11450 return f != $ac_func;
11452 return 0;
11454 _ACEOF
11455 rm -f conftest.$ac_objext conftest$ac_exeext
11456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11457 (eval $ac_link) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } &&
11461 { ac_try='test -s conftest$ac_exeext'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }; then
11467 eval "$as_ac_var=yes"
11468 else
11469 echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.$ac_ext >&5
11472 eval "$as_ac_var=no"
11474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11478 if test `eval echo '${'$as_ac_var'}'` = yes; then
11479 cat >>confdefs.h <<_ACEOF
11480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11481 _ACEOF
11484 done
11486 else
11488 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
11489 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
11490 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
11491 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 else
11497 ac_ext=cc
11498 ac_cpp='$CXXCPP $CPPFLAGS'
11499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11503 cat >conftest.$ac_ext <<_ACEOF
11504 #line $LINENO "configure"
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 #include <math.h>
11511 #ifdef HAVE_IEEEFP_H
11512 #include <ieeefp.h>
11513 #endif
11516 main ()
11518 _isinff(0);
11520 return 0;
11522 _ACEOF
11523 rm -f conftest.$ac_objext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11525 (eval $ac_compile) 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
11529 { ac_try='test -s conftest.$ac_objext'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; }; then
11535 glibcxx_cv_func__isinff_use=yes
11536 else
11537 echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11540 glibcxx_cv_func__isinff_use=no
11542 rm -f conftest.$ac_objext conftest.$ac_ext
11543 ac_ext=c
11544 ac_cpp='$CPP $CPPFLAGS'
11545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11553 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
11554 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
11556 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
11558 for ac_func in _isinff
11560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11561 echo "$as_me:$LINENO: checking for $ac_func" >&5
11562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11563 if eval "test \"\${$as_ac_var+set}\" = set"; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 else
11566 cat >conftest.$ac_ext <<_ACEOF
11567 #line $LINENO "configure"
11568 /* confdefs.h. */
11569 _ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11573 /* System header to define __stub macros and hopefully few prototypes,
11574 which can conflict with char $ac_func (); below.
11575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11576 <limits.h> exists even on freestanding compilers. */
11577 #ifdef __STDC__
11578 # include <limits.h>
11579 #else
11580 # include <assert.h>
11581 #endif
11582 /* Override any gcc2 internal prototype to avoid an error. */
11583 #ifdef __cplusplus
11584 extern "C"
11586 #endif
11587 /* We use char because int might match the return type of a gcc2
11588 builtin and then its argument prototype would still apply. */
11589 char $ac_func ();
11590 /* The GNU C library defines this for functions which it implements
11591 to always fail with ENOSYS. Some functions are actually named
11592 something starting with __ and the normal name is an alias. */
11593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11594 choke me
11595 #else
11596 char (*f) () = $ac_func;
11597 #endif
11598 #ifdef __cplusplus
11600 #endif
11603 main ()
11605 return f != $ac_func;
11607 return 0;
11609 _ACEOF
11610 rm -f conftest.$ac_objext conftest$ac_exeext
11611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11612 (eval $ac_link) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -s conftest$ac_exeext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 eval "$as_ac_var=yes"
11623 else
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 eval "$as_ac_var=no"
11629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11633 if test `eval echo '${'$as_ac_var'}'` = yes; then
11634 cat >>confdefs.h <<_ACEOF
11635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11636 _ACEOF
11639 done
11646 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
11647 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
11648 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
11649 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 else
11655 ac_ext=cc
11656 ac_cpp='$CXXCPP $CPPFLAGS'
11657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11661 cat >conftest.$ac_ext <<_ACEOF
11662 #line $LINENO "configure"
11663 /* confdefs.h. */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 #include <math.h>
11670 main ()
11672 atan2f(0, 0);
11674 return 0;
11676 _ACEOF
11677 rm -f conftest.$ac_objext
11678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11679 (eval $ac_compile) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } &&
11683 { ac_try='test -s conftest.$ac_objext'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }; then
11689 glibcxx_cv_func_atan2f_use=yes
11690 else
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11694 glibcxx_cv_func_atan2f_use=no
11696 rm -f conftest.$ac_objext conftest.$ac_ext
11697 ac_ext=c
11698 ac_cpp='$CPP $CPPFLAGS'
11699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11707 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
11708 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
11710 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
11712 for ac_func in atan2f
11714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11715 echo "$as_me:$LINENO: checking for $ac_func" >&5
11716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11717 if eval "test \"\${$as_ac_var+set}\" = set"; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 else
11720 cat >conftest.$ac_ext <<_ACEOF
11721 #line $LINENO "configure"
11722 /* confdefs.h. */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11727 /* System header to define __stub macros and hopefully few prototypes,
11728 which can conflict with char $ac_func (); below.
11729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730 <limits.h> exists even on freestanding compilers. */
11731 #ifdef __STDC__
11732 # include <limits.h>
11733 #else
11734 # include <assert.h>
11735 #endif
11736 /* Override any gcc2 internal prototype to avoid an error. */
11737 #ifdef __cplusplus
11738 extern "C"
11740 #endif
11741 /* We use char because int might match the return type of a gcc2
11742 builtin and then its argument prototype would still apply. */
11743 char $ac_func ();
11744 /* The GNU C library defines this for functions which it implements
11745 to always fail with ENOSYS. Some functions are actually named
11746 something starting with __ and the normal name is an alias. */
11747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11748 choke me
11749 #else
11750 char (*f) () = $ac_func;
11751 #endif
11752 #ifdef __cplusplus
11754 #endif
11757 main ()
11759 return f != $ac_func;
11761 return 0;
11763 _ACEOF
11764 rm -f conftest.$ac_objext conftest$ac_exeext
11765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11766 (eval $ac_link) 2>&5
11767 ac_status=$?
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -s conftest$ac_exeext'
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; }; then
11776 eval "$as_ac_var=yes"
11777 else
11778 echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11781 eval "$as_ac_var=no"
11783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11787 if test `eval echo '${'$as_ac_var'}'` = yes; then
11788 cat >>confdefs.h <<_ACEOF
11789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11790 _ACEOF
11793 done
11795 else
11797 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
11798 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
11799 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
11800 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11806 ac_ext=cc
11807 ac_cpp='$CXXCPP $CPPFLAGS'
11808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11812 cat >conftest.$ac_ext <<_ACEOF
11813 #line $LINENO "configure"
11814 /* confdefs.h. */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 #include <math.h>
11821 main ()
11823 _atan2f(0, 0);
11825 return 0;
11827 _ACEOF
11828 rm -f conftest.$ac_objext
11829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11830 (eval $ac_compile) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
11834 { ac_try='test -s conftest.$ac_objext'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 glibcxx_cv_func__atan2f_use=yes
11841 else
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 glibcxx_cv_func__atan2f_use=no
11847 rm -f conftest.$ac_objext conftest.$ac_ext
11848 ac_ext=c
11849 ac_cpp='$CPP $CPPFLAGS'
11850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11858 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
11859 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
11861 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
11863 for ac_func in _atan2f
11865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11866 echo "$as_me:$LINENO: checking for $ac_func" >&5
11867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11868 if eval "test \"\${$as_ac_var+set}\" = set"; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 else
11871 cat >conftest.$ac_ext <<_ACEOF
11872 #line $LINENO "configure"
11873 /* confdefs.h. */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 /* System header to define __stub macros and hopefully few prototypes,
11879 which can conflict with char $ac_func (); below.
11880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11881 <limits.h> exists even on freestanding compilers. */
11882 #ifdef __STDC__
11883 # include <limits.h>
11884 #else
11885 # include <assert.h>
11886 #endif
11887 /* Override any gcc2 internal prototype to avoid an error. */
11888 #ifdef __cplusplus
11889 extern "C"
11891 #endif
11892 /* We use char because int might match the return type of a gcc2
11893 builtin and then its argument prototype would still apply. */
11894 char $ac_func ();
11895 /* The GNU C library defines this for functions which it implements
11896 to always fail with ENOSYS. Some functions are actually named
11897 something starting with __ and the normal name is an alias. */
11898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11899 choke me
11900 #else
11901 char (*f) () = $ac_func;
11902 #endif
11903 #ifdef __cplusplus
11905 #endif
11908 main ()
11910 return f != $ac_func;
11912 return 0;
11914 _ACEOF
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11917 (eval $ac_link) 2>&5
11918 ac_status=$?
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
11921 { ac_try='test -s conftest$ac_exeext'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 eval "$as_ac_var=yes"
11928 else
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 eval "$as_ac_var=no"
11934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11938 if test `eval echo '${'$as_ac_var'}'` = yes; then
11939 cat >>confdefs.h <<_ACEOF
11940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11941 _ACEOF
11944 done
11951 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
11952 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
11953 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
11954 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 else
11960 ac_ext=cc
11961 ac_cpp='$CXXCPP $CPPFLAGS'
11962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11966 cat >conftest.$ac_ext <<_ACEOF
11967 #line $LINENO "configure"
11968 /* confdefs.h. */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 #include <math.h>
11974 #ifdef HAVE_IEEEFP_H
11975 #include <ieeefp.h>
11976 #endif
11979 main ()
11981 fabsf(0);
11983 return 0;
11985 _ACEOF
11986 rm -f conftest.$ac_objext
11987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11988 (eval $ac_compile) 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -s conftest.$ac_objext'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; }; then
11998 glibcxx_cv_func_fabsf_use=yes
11999 else
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12003 glibcxx_cv_func_fabsf_use=no
12005 rm -f conftest.$ac_objext conftest.$ac_ext
12006 ac_ext=c
12007 ac_cpp='$CPP $CPPFLAGS'
12008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12016 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
12017 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
12019 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
12021 for ac_func in fabsf
12023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12024 echo "$as_me:$LINENO: checking for $ac_func" >&5
12025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12026 if eval "test \"\${$as_ac_var+set}\" = set"; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029 cat >conftest.$ac_ext <<_ACEOF
12030 #line $LINENO "configure"
12031 /* confdefs.h. */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036 /* System header to define __stub macros and hopefully few prototypes,
12037 which can conflict with char $ac_func (); below.
12038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12039 <limits.h> exists even on freestanding compilers. */
12040 #ifdef __STDC__
12041 # include <limits.h>
12042 #else
12043 # include <assert.h>
12044 #endif
12045 /* Override any gcc2 internal prototype to avoid an error. */
12046 #ifdef __cplusplus
12047 extern "C"
12049 #endif
12050 /* We use char because int might match the return type of a gcc2
12051 builtin and then its argument prototype would still apply. */
12052 char $ac_func ();
12053 /* The GNU C library defines this for functions which it implements
12054 to always fail with ENOSYS. Some functions are actually named
12055 something starting with __ and the normal name is an alias. */
12056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12057 choke me
12058 #else
12059 char (*f) () = $ac_func;
12060 #endif
12061 #ifdef __cplusplus
12063 #endif
12066 main ()
12068 return f != $ac_func;
12070 return 0;
12072 _ACEOF
12073 rm -f conftest.$ac_objext conftest$ac_exeext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12075 (eval $ac_link) 2>&5
12076 ac_status=$?
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } &&
12079 { ac_try='test -s conftest$ac_exeext'
12080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12081 (eval $ac_try) 2>&5
12082 ac_status=$?
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); }; }; then
12085 eval "$as_ac_var=yes"
12086 else
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12090 eval "$as_ac_var=no"
12092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12095 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12096 if test `eval echo '${'$as_ac_var'}'` = yes; then
12097 cat >>confdefs.h <<_ACEOF
12098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12099 _ACEOF
12102 done
12104 else
12106 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
12107 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
12108 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
12109 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 else
12115 ac_ext=cc
12116 ac_cpp='$CXXCPP $CPPFLAGS'
12117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12121 cat >conftest.$ac_ext <<_ACEOF
12122 #line $LINENO "configure"
12123 /* confdefs.h. */
12124 _ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12128 #include <math.h>
12129 #ifdef HAVE_IEEEFP_H
12130 #include <ieeefp.h>
12131 #endif
12134 main ()
12136 _fabsf(0);
12138 return 0;
12140 _ACEOF
12141 rm -f conftest.$ac_objext
12142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12143 (eval $ac_compile) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } &&
12147 { ac_try='test -s conftest.$ac_objext'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12150 ac_status=$?
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12153 glibcxx_cv_func__fabsf_use=yes
12154 else
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12158 glibcxx_cv_func__fabsf_use=no
12160 rm -f conftest.$ac_objext conftest.$ac_ext
12161 ac_ext=c
12162 ac_cpp='$CPP $CPPFLAGS'
12163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12171 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
12172 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
12174 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
12176 for ac_func in _fabsf
12178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12179 echo "$as_me:$LINENO: checking for $ac_func" >&5
12180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12181 if eval "test \"\${$as_ac_var+set}\" = set"; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184 cat >conftest.$ac_ext <<_ACEOF
12185 #line $LINENO "configure"
12186 /* confdefs.h. */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191 /* System header to define __stub macros and hopefully few prototypes,
12192 which can conflict with char $ac_func (); below.
12193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12194 <limits.h> exists even on freestanding compilers. */
12195 #ifdef __STDC__
12196 # include <limits.h>
12197 #else
12198 # include <assert.h>
12199 #endif
12200 /* Override any gcc2 internal prototype to avoid an error. */
12201 #ifdef __cplusplus
12202 extern "C"
12204 #endif
12205 /* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12207 char $ac_func ();
12208 /* The GNU C library defines this for functions which it implements
12209 to always fail with ENOSYS. Some functions are actually named
12210 something starting with __ and the normal name is an alias. */
12211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12212 choke me
12213 #else
12214 char (*f) () = $ac_func;
12215 #endif
12216 #ifdef __cplusplus
12218 #endif
12221 main ()
12223 return f != $ac_func;
12225 return 0;
12227 _ACEOF
12228 rm -f conftest.$ac_objext conftest$ac_exeext
12229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12230 (eval $ac_link) 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } &&
12234 { ac_try='test -s conftest$ac_exeext'
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12237 ac_status=$?
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; }; then
12240 eval "$as_ac_var=yes"
12241 else
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12245 eval "$as_ac_var=no"
12247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12251 if test `eval echo '${'$as_ac_var'}'` = yes; then
12252 cat >>confdefs.h <<_ACEOF
12253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12254 _ACEOF
12257 done
12264 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
12265 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
12266 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
12267 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12269 else
12273 ac_ext=cc
12274 ac_cpp='$CXXCPP $CPPFLAGS'
12275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12279 cat >conftest.$ac_ext <<_ACEOF
12280 #line $LINENO "configure"
12281 /* confdefs.h. */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 #include <math.h>
12288 main ()
12290 fmodf(0, 0);
12292 return 0;
12294 _ACEOF
12295 rm -f conftest.$ac_objext
12296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12297 (eval $ac_compile) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try='test -s conftest.$ac_objext'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 glibcxx_cv_func_fmodf_use=yes
12308 else
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 glibcxx_cv_func_fmodf_use=no
12314 rm -f conftest.$ac_objext conftest.$ac_ext
12315 ac_ext=c
12316 ac_cpp='$CPP $CPPFLAGS'
12317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12325 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
12326 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
12328 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
12330 for ac_func in fmodf
12332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12333 echo "$as_me:$LINENO: checking for $ac_func" >&5
12334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12335 if eval "test \"\${$as_ac_var+set}\" = set"; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338 cat >conftest.$ac_ext <<_ACEOF
12339 #line $LINENO "configure"
12340 /* confdefs.h. */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12345 /* System header to define __stub macros and hopefully few prototypes,
12346 which can conflict with char $ac_func (); below.
12347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12348 <limits.h> exists even on freestanding compilers. */
12349 #ifdef __STDC__
12350 # include <limits.h>
12351 #else
12352 # include <assert.h>
12353 #endif
12354 /* Override any gcc2 internal prototype to avoid an error. */
12355 #ifdef __cplusplus
12356 extern "C"
12358 #endif
12359 /* We use char because int might match the return type of a gcc2
12360 builtin and then its argument prototype would still apply. */
12361 char $ac_func ();
12362 /* The GNU C library defines this for functions which it implements
12363 to always fail with ENOSYS. Some functions are actually named
12364 something starting with __ and the normal name is an alias. */
12365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12366 choke me
12367 #else
12368 char (*f) () = $ac_func;
12369 #endif
12370 #ifdef __cplusplus
12372 #endif
12375 main ()
12377 return f != $ac_func;
12379 return 0;
12381 _ACEOF
12382 rm -f conftest.$ac_objext conftest$ac_exeext
12383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384 (eval $ac_link) 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -s conftest$ac_exeext'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12391 ac_status=$?
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; }; then
12394 eval "$as_ac_var=yes"
12395 else
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12399 eval "$as_ac_var=no"
12401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12405 if test `eval echo '${'$as_ac_var'}'` = yes; then
12406 cat >>confdefs.h <<_ACEOF
12407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12408 _ACEOF
12411 done
12413 else
12415 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
12416 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
12417 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
12418 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 else
12424 ac_ext=cc
12425 ac_cpp='$CXXCPP $CPPFLAGS'
12426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12430 cat >conftest.$ac_ext <<_ACEOF
12431 #line $LINENO "configure"
12432 /* confdefs.h. */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12437 #include <math.h>
12439 main ()
12441 _fmodf(0, 0);
12443 return 0;
12445 _ACEOF
12446 rm -f conftest.$ac_objext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12448 (eval $ac_compile) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try='test -s conftest.$ac_objext'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12458 glibcxx_cv_func__fmodf_use=yes
12459 else
12460 echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12463 glibcxx_cv_func__fmodf_use=no
12465 rm -f conftest.$ac_objext conftest.$ac_ext
12466 ac_ext=c
12467 ac_cpp='$CPP $CPPFLAGS'
12468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12476 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
12477 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
12479 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
12481 for ac_func in _fmodf
12483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12484 echo "$as_me:$LINENO: checking for $ac_func" >&5
12485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12486 if eval "test \"\${$as_ac_var+set}\" = set"; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 else
12489 cat >conftest.$ac_ext <<_ACEOF
12490 #line $LINENO "configure"
12491 /* confdefs.h. */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12496 /* System header to define __stub macros and hopefully few prototypes,
12497 which can conflict with char $ac_func (); below.
12498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12499 <limits.h> exists even on freestanding compilers. */
12500 #ifdef __STDC__
12501 # include <limits.h>
12502 #else
12503 # include <assert.h>
12504 #endif
12505 /* Override any gcc2 internal prototype to avoid an error. */
12506 #ifdef __cplusplus
12507 extern "C"
12509 #endif
12510 /* We use char because int might match the return type of a gcc2
12511 builtin and then its argument prototype would still apply. */
12512 char $ac_func ();
12513 /* The GNU C library defines this for functions which it implements
12514 to always fail with ENOSYS. Some functions are actually named
12515 something starting with __ and the normal name is an alias. */
12516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12517 choke me
12518 #else
12519 char (*f) () = $ac_func;
12520 #endif
12521 #ifdef __cplusplus
12523 #endif
12526 main ()
12528 return f != $ac_func;
12530 return 0;
12532 _ACEOF
12533 rm -f conftest.$ac_objext conftest$ac_exeext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12535 (eval $ac_link) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 eval "$as_ac_var=yes"
12546 else
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 eval "$as_ac_var=no"
12552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12556 if test `eval echo '${'$as_ac_var'}'` = yes; then
12557 cat >>confdefs.h <<_ACEOF
12558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12559 _ACEOF
12562 done
12569 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
12570 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
12571 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
12572 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 else
12578 ac_ext=cc
12579 ac_cpp='$CXXCPP $CPPFLAGS'
12580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12584 cat >conftest.$ac_ext <<_ACEOF
12585 #line $LINENO "configure"
12586 /* confdefs.h. */
12587 _ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12591 #include <math.h>
12593 main ()
12595 frexpf(0, 0);
12597 return 0;
12599 _ACEOF
12600 rm -f conftest.$ac_objext
12601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602 (eval $ac_compile) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
12606 { ac_try='test -s conftest.$ac_objext'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612 glibcxx_cv_func_frexpf_use=yes
12613 else
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12617 glibcxx_cv_func_frexpf_use=no
12619 rm -f conftest.$ac_objext conftest.$ac_ext
12620 ac_ext=c
12621 ac_cpp='$CPP $CPPFLAGS'
12622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12630 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
12631 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
12633 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
12635 for ac_func in frexpf
12637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12638 echo "$as_me:$LINENO: checking for $ac_func" >&5
12639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12640 if eval "test \"\${$as_ac_var+set}\" = set"; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642 else
12643 cat >conftest.$ac_ext <<_ACEOF
12644 #line $LINENO "configure"
12645 /* confdefs.h. */
12646 _ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h. */
12650 /* System header to define __stub macros and hopefully few prototypes,
12651 which can conflict with char $ac_func (); below.
12652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12653 <limits.h> exists even on freestanding compilers. */
12654 #ifdef __STDC__
12655 # include <limits.h>
12656 #else
12657 # include <assert.h>
12658 #endif
12659 /* Override any gcc2 internal prototype to avoid an error. */
12660 #ifdef __cplusplus
12661 extern "C"
12663 #endif
12664 /* We use char because int might match the return type of a gcc2
12665 builtin and then its argument prototype would still apply. */
12666 char $ac_func ();
12667 /* The GNU C library defines this for functions which it implements
12668 to always fail with ENOSYS. Some functions are actually named
12669 something starting with __ and the normal name is an alias. */
12670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12671 choke me
12672 #else
12673 char (*f) () = $ac_func;
12674 #endif
12675 #ifdef __cplusplus
12677 #endif
12680 main ()
12682 return f != $ac_func;
12684 return 0;
12686 _ACEOF
12687 rm -f conftest.$ac_objext conftest$ac_exeext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12689 (eval $ac_link) 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } &&
12693 { ac_try='test -s conftest$ac_exeext'
12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695 (eval $ac_try) 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 eval "$as_ac_var=yes"
12700 else
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12704 eval "$as_ac_var=no"
12706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12710 if test `eval echo '${'$as_ac_var'}'` = yes; then
12711 cat >>confdefs.h <<_ACEOF
12712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12713 _ACEOF
12716 done
12718 else
12720 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
12721 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
12722 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
12723 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 else
12729 ac_ext=cc
12730 ac_cpp='$CXXCPP $CPPFLAGS'
12731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12735 cat >conftest.$ac_ext <<_ACEOF
12736 #line $LINENO "configure"
12737 /* confdefs.h. */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12742 #include <math.h>
12744 main ()
12746 _frexpf(0, 0);
12748 return 0;
12750 _ACEOF
12751 rm -f conftest.$ac_objext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12753 (eval $ac_compile) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } &&
12757 { ac_try='test -s conftest.$ac_objext'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; }; then
12763 glibcxx_cv_func__frexpf_use=yes
12764 else
12765 echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12768 glibcxx_cv_func__frexpf_use=no
12770 rm -f conftest.$ac_objext conftest.$ac_ext
12771 ac_ext=c
12772 ac_cpp='$CPP $CPPFLAGS'
12773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12781 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
12782 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
12784 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
12786 for ac_func in _frexpf
12788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12789 echo "$as_me:$LINENO: checking for $ac_func" >&5
12790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12791 if eval "test \"\${$as_ac_var+set}\" = set"; then
12792 echo $ECHO_N "(cached) $ECHO_C" >&6
12793 else
12794 cat >conftest.$ac_ext <<_ACEOF
12795 #line $LINENO "configure"
12796 /* confdefs.h. */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 /* System header to define __stub macros and hopefully few prototypes,
12802 which can conflict with char $ac_func (); below.
12803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12804 <limits.h> exists even on freestanding compilers. */
12805 #ifdef __STDC__
12806 # include <limits.h>
12807 #else
12808 # include <assert.h>
12809 #endif
12810 /* Override any gcc2 internal prototype to avoid an error. */
12811 #ifdef __cplusplus
12812 extern "C"
12814 #endif
12815 /* We use char because int might match the return type of a gcc2
12816 builtin and then its argument prototype would still apply. */
12817 char $ac_func ();
12818 /* The GNU C library defines this for functions which it implements
12819 to always fail with ENOSYS. Some functions are actually named
12820 something starting with __ and the normal name is an alias. */
12821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12822 choke me
12823 #else
12824 char (*f) () = $ac_func;
12825 #endif
12826 #ifdef __cplusplus
12828 #endif
12831 main ()
12833 return f != $ac_func;
12835 return 0;
12837 _ACEOF
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12840 (eval $ac_link) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
12844 { ac_try='test -s conftest$ac_exeext'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; }; then
12850 eval "$as_ac_var=yes"
12851 else
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12855 eval "$as_ac_var=no"
12857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12861 if test `eval echo '${'$as_ac_var'}'` = yes; then
12862 cat >>confdefs.h <<_ACEOF
12863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12864 _ACEOF
12867 done
12874 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
12875 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
12876 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
12877 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12879 else
12883 ac_ext=cc
12884 ac_cpp='$CXXCPP $CPPFLAGS'
12885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12889 cat >conftest.$ac_ext <<_ACEOF
12890 #line $LINENO "configure"
12891 /* confdefs.h. */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12896 #include <math.h>
12898 main ()
12900 hypotf(0, 0);
12902 return 0;
12904 _ACEOF
12905 rm -f conftest.$ac_objext
12906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12907 (eval $ac_compile) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try='test -s conftest.$ac_objext'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 glibcxx_cv_func_hypotf_use=yes
12918 else
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12922 glibcxx_cv_func_hypotf_use=no
12924 rm -f conftest.$ac_objext conftest.$ac_ext
12925 ac_ext=c
12926 ac_cpp='$CPP $CPPFLAGS'
12927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12935 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
12936 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
12938 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
12940 for ac_func in hypotf
12942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12943 echo "$as_me:$LINENO: checking for $ac_func" >&5
12944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12945 if eval "test \"\${$as_ac_var+set}\" = set"; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 else
12948 cat >conftest.$ac_ext <<_ACEOF
12949 #line $LINENO "configure"
12950 /* confdefs.h. */
12951 _ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12955 /* System header to define __stub macros and hopefully few prototypes,
12956 which can conflict with char $ac_func (); below.
12957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12958 <limits.h> exists even on freestanding compilers. */
12959 #ifdef __STDC__
12960 # include <limits.h>
12961 #else
12962 # include <assert.h>
12963 #endif
12964 /* Override any gcc2 internal prototype to avoid an error. */
12965 #ifdef __cplusplus
12966 extern "C"
12968 #endif
12969 /* We use char because int might match the return type of a gcc2
12970 builtin and then its argument prototype would still apply. */
12971 char $ac_func ();
12972 /* The GNU C library defines this for functions which it implements
12973 to always fail with ENOSYS. Some functions are actually named
12974 something starting with __ and the normal name is an alias. */
12975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12976 choke me
12977 #else
12978 char (*f) () = $ac_func;
12979 #endif
12980 #ifdef __cplusplus
12982 #endif
12985 main ()
12987 return f != $ac_func;
12989 return 0;
12991 _ACEOF
12992 rm -f conftest.$ac_objext conftest$ac_exeext
12993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12994 (eval $ac_link) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } &&
12998 { ac_try='test -s conftest$ac_exeext'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 eval "$as_ac_var=yes"
13005 else
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 eval "$as_ac_var=no"
13011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13015 if test `eval echo '${'$as_ac_var'}'` = yes; then
13016 cat >>confdefs.h <<_ACEOF
13017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13018 _ACEOF
13021 done
13023 else
13025 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
13026 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
13027 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
13028 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 else
13034 ac_ext=cc
13035 ac_cpp='$CXXCPP $CPPFLAGS'
13036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13040 cat >conftest.$ac_ext <<_ACEOF
13041 #line $LINENO "configure"
13042 /* confdefs.h. */
13043 _ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h. */
13047 #include <math.h>
13049 main ()
13051 _hypotf(0, 0);
13053 return 0;
13055 _ACEOF
13056 rm -f conftest.$ac_objext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13058 (eval $ac_compile) 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } &&
13062 { ac_try='test -s conftest.$ac_objext'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 glibcxx_cv_func__hypotf_use=yes
13069 else
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13073 glibcxx_cv_func__hypotf_use=no
13075 rm -f conftest.$ac_objext conftest.$ac_ext
13076 ac_ext=c
13077 ac_cpp='$CPP $CPPFLAGS'
13078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13086 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
13087 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
13089 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
13091 for ac_func in _hypotf
13093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13094 echo "$as_me:$LINENO: checking for $ac_func" >&5
13095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13096 if eval "test \"\${$as_ac_var+set}\" = set"; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099 cat >conftest.$ac_ext <<_ACEOF
13100 #line $LINENO "configure"
13101 /* confdefs.h. */
13102 _ACEOF
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h. */
13106 /* System header to define __stub macros and hopefully few prototypes,
13107 which can conflict with char $ac_func (); below.
13108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13109 <limits.h> exists even on freestanding compilers. */
13110 #ifdef __STDC__
13111 # include <limits.h>
13112 #else
13113 # include <assert.h>
13114 #endif
13115 /* Override any gcc2 internal prototype to avoid an error. */
13116 #ifdef __cplusplus
13117 extern "C"
13119 #endif
13120 /* We use char because int might match the return type of a gcc2
13121 builtin and then its argument prototype would still apply. */
13122 char $ac_func ();
13123 /* The GNU C library defines this for functions which it implements
13124 to always fail with ENOSYS. Some functions are actually named
13125 something starting with __ and the normal name is an alias. */
13126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13127 choke me
13128 #else
13129 char (*f) () = $ac_func;
13130 #endif
13131 #ifdef __cplusplus
13133 #endif
13136 main ()
13138 return f != $ac_func;
13140 return 0;
13142 _ACEOF
13143 rm -f conftest.$ac_objext conftest$ac_exeext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13145 (eval $ac_link) 2>&5
13146 ac_status=$?
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try='test -s conftest$ac_exeext'
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
13155 eval "$as_ac_var=yes"
13156 else
13157 echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13160 eval "$as_ac_var=no"
13162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13166 if test `eval echo '${'$as_ac_var'}'` = yes; then
13167 cat >>confdefs.h <<_ACEOF
13168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13169 _ACEOF
13172 done
13179 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
13180 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
13181 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
13182 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13188 ac_ext=cc
13189 ac_cpp='$CXXCPP $CPPFLAGS'
13190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13194 cat >conftest.$ac_ext <<_ACEOF
13195 #line $LINENO "configure"
13196 /* confdefs.h. */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13201 #include <math.h>
13203 main ()
13205 ldexpf(0, 0);
13207 return 0;
13209 _ACEOF
13210 rm -f conftest.$ac_objext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13212 (eval $ac_compile) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -s conftest.$ac_objext'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 glibcxx_cv_func_ldexpf_use=yes
13223 else
13224 echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13227 glibcxx_cv_func_ldexpf_use=no
13229 rm -f conftest.$ac_objext conftest.$ac_ext
13230 ac_ext=c
13231 ac_cpp='$CPP $CPPFLAGS'
13232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13240 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
13241 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
13243 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
13245 for ac_func in ldexpf
13247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13248 echo "$as_me:$LINENO: checking for $ac_func" >&5
13249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13250 if eval "test \"\${$as_ac_var+set}\" = set"; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 else
13253 cat >conftest.$ac_ext <<_ACEOF
13254 #line $LINENO "configure"
13255 /* confdefs.h. */
13256 _ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13260 /* System header to define __stub macros and hopefully few prototypes,
13261 which can conflict with char $ac_func (); below.
13262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13263 <limits.h> exists even on freestanding compilers. */
13264 #ifdef __STDC__
13265 # include <limits.h>
13266 #else
13267 # include <assert.h>
13268 #endif
13269 /* Override any gcc2 internal prototype to avoid an error. */
13270 #ifdef __cplusplus
13271 extern "C"
13273 #endif
13274 /* We use char because int might match the return type of a gcc2
13275 builtin and then its argument prototype would still apply. */
13276 char $ac_func ();
13277 /* The GNU C library defines this for functions which it implements
13278 to always fail with ENOSYS. Some functions are actually named
13279 something starting with __ and the normal name is an alias. */
13280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13281 choke me
13282 #else
13283 char (*f) () = $ac_func;
13284 #endif
13285 #ifdef __cplusplus
13287 #endif
13290 main ()
13292 return f != $ac_func;
13294 return 0;
13296 _ACEOF
13297 rm -f conftest.$ac_objext conftest$ac_exeext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13299 (eval $ac_link) 2>&5
13300 ac_status=$?
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } &&
13303 { ac_try='test -s conftest$ac_exeext'
13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13306 ac_status=$?
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; }; then
13309 eval "$as_ac_var=yes"
13310 else
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13314 eval "$as_ac_var=no"
13316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13320 if test `eval echo '${'$as_ac_var'}'` = yes; then
13321 cat >>confdefs.h <<_ACEOF
13322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13323 _ACEOF
13326 done
13328 else
13330 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
13331 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
13332 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
13333 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13339 ac_ext=cc
13340 ac_cpp='$CXXCPP $CPPFLAGS'
13341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13345 cat >conftest.$ac_ext <<_ACEOF
13346 #line $LINENO "configure"
13347 /* confdefs.h. */
13348 _ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13352 #include <math.h>
13354 main ()
13356 _ldexpf(0, 0);
13358 return 0;
13360 _ACEOF
13361 rm -f conftest.$ac_objext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13363 (eval $ac_compile) 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } &&
13367 { ac_try='test -s conftest.$ac_objext'
13368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369 (eval $ac_try) 2>&5
13370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; }; then
13373 glibcxx_cv_func__ldexpf_use=yes
13374 else
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 glibcxx_cv_func__ldexpf_use=no
13380 rm -f conftest.$ac_objext conftest.$ac_ext
13381 ac_ext=c
13382 ac_cpp='$CPP $CPPFLAGS'
13383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13391 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
13392 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
13394 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
13396 for ac_func in _ldexpf
13398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13399 echo "$as_me:$LINENO: checking for $ac_func" >&5
13400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13401 if eval "test \"\${$as_ac_var+set}\" = set"; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404 cat >conftest.$ac_ext <<_ACEOF
13405 #line $LINENO "configure"
13406 /* confdefs.h. */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 /* System header to define __stub macros and hopefully few prototypes,
13412 which can conflict with char $ac_func (); below.
13413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13414 <limits.h> exists even on freestanding compilers. */
13415 #ifdef __STDC__
13416 # include <limits.h>
13417 #else
13418 # include <assert.h>
13419 #endif
13420 /* Override any gcc2 internal prototype to avoid an error. */
13421 #ifdef __cplusplus
13422 extern "C"
13424 #endif
13425 /* We use char because int might match the return type of a gcc2
13426 builtin and then its argument prototype would still apply. */
13427 char $ac_func ();
13428 /* The GNU C library defines this for functions which it implements
13429 to always fail with ENOSYS. Some functions are actually named
13430 something starting with __ and the normal name is an alias. */
13431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13432 choke me
13433 #else
13434 char (*f) () = $ac_func;
13435 #endif
13436 #ifdef __cplusplus
13438 #endif
13441 main ()
13443 return f != $ac_func;
13445 return 0;
13447 _ACEOF
13448 rm -f conftest.$ac_objext conftest$ac_exeext
13449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13450 (eval $ac_link) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } &&
13454 { ac_try='test -s conftest$ac_exeext'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 eval "$as_ac_var=yes"
13461 else
13462 echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13465 eval "$as_ac_var=no"
13467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13471 if test `eval echo '${'$as_ac_var'}'` = yes; then
13472 cat >>confdefs.h <<_ACEOF
13473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13474 _ACEOF
13477 done
13484 echo "$as_me:$LINENO: checking for logf declaration" >&5
13485 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
13486 if test x${glibcxx_cv_func_logf_use+set} != xset; then
13487 if test "${glibcxx_cv_func_logf_use+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13493 ac_ext=cc
13494 ac_cpp='$CXXCPP $CPPFLAGS'
13495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13499 cat >conftest.$ac_ext <<_ACEOF
13500 #line $LINENO "configure"
13501 /* confdefs.h. */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13506 #include <math.h>
13507 #ifdef HAVE_IEEEFP_H
13508 #include <ieeefp.h>
13509 #endif
13512 main ()
13514 logf(0);
13516 return 0;
13518 _ACEOF
13519 rm -f conftest.$ac_objext
13520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13521 (eval $ac_compile) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 glibcxx_cv_func_logf_use=yes
13532 else
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13536 glibcxx_cv_func_logf_use=no
13538 rm -f conftest.$ac_objext conftest.$ac_ext
13539 ac_ext=c
13540 ac_cpp='$CPP $CPPFLAGS'
13541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13549 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
13550 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
13552 if test x$glibcxx_cv_func_logf_use = x"yes"; then
13554 for ac_func in logf
13556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13557 echo "$as_me:$LINENO: checking for $ac_func" >&5
13558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13559 if eval "test \"\${$as_ac_var+set}\" = set"; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 else
13562 cat >conftest.$ac_ext <<_ACEOF
13563 #line $LINENO "configure"
13564 /* confdefs.h. */
13565 _ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13569 /* System header to define __stub macros and hopefully few prototypes,
13570 which can conflict with char $ac_func (); below.
13571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13572 <limits.h> exists even on freestanding compilers. */
13573 #ifdef __STDC__
13574 # include <limits.h>
13575 #else
13576 # include <assert.h>
13577 #endif
13578 /* Override any gcc2 internal prototype to avoid an error. */
13579 #ifdef __cplusplus
13580 extern "C"
13582 #endif
13583 /* We use char because int might match the return type of a gcc2
13584 builtin and then its argument prototype would still apply. */
13585 char $ac_func ();
13586 /* The GNU C library defines this for functions which it implements
13587 to always fail with ENOSYS. Some functions are actually named
13588 something starting with __ and the normal name is an alias. */
13589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13590 choke me
13591 #else
13592 char (*f) () = $ac_func;
13593 #endif
13594 #ifdef __cplusplus
13596 #endif
13599 main ()
13601 return f != $ac_func;
13603 return 0;
13605 _ACEOF
13606 rm -f conftest.$ac_objext conftest$ac_exeext
13607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13608 (eval $ac_link) 2>&5
13609 ac_status=$?
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -s conftest$ac_exeext'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13618 eval "$as_ac_var=yes"
13619 else
13620 echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13623 eval "$as_ac_var=no"
13625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13629 if test `eval echo '${'$as_ac_var'}'` = yes; then
13630 cat >>confdefs.h <<_ACEOF
13631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13632 _ACEOF
13635 done
13637 else
13639 echo "$as_me:$LINENO: checking for _logf declaration" >&5
13640 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
13641 if test x${glibcxx_cv_func__logf_use+set} != xset; then
13642 if test "${glibcxx_cv_func__logf_use+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13644 else
13648 ac_ext=cc
13649 ac_cpp='$CXXCPP $CPPFLAGS'
13650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13654 cat >conftest.$ac_ext <<_ACEOF
13655 #line $LINENO "configure"
13656 /* confdefs.h. */
13657 _ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h. */
13661 #include <math.h>
13662 #ifdef HAVE_IEEEFP_H
13663 #include <ieeefp.h>
13664 #endif
13667 main ()
13669 _logf(0);
13671 return 0;
13673 _ACEOF
13674 rm -f conftest.$ac_objext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13676 (eval $ac_compile) 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } &&
13680 { ac_try='test -s conftest.$ac_objext'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13683 ac_status=$?
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13686 glibcxx_cv_func__logf_use=yes
13687 else
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13691 glibcxx_cv_func__logf_use=no
13693 rm -f conftest.$ac_objext conftest.$ac_ext
13694 ac_ext=c
13695 ac_cpp='$CPP $CPPFLAGS'
13696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13704 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
13705 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
13707 if test x$glibcxx_cv_func__logf_use = x"yes"; then
13709 for ac_func in _logf
13711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13712 echo "$as_me:$LINENO: checking for $ac_func" >&5
13713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13714 if eval "test \"\${$as_ac_var+set}\" = set"; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 else
13717 cat >conftest.$ac_ext <<_ACEOF
13718 #line $LINENO "configure"
13719 /* confdefs.h. */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h. */
13724 /* System header to define __stub macros and hopefully few prototypes,
13725 which can conflict with char $ac_func (); below.
13726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13727 <limits.h> exists even on freestanding compilers. */
13728 #ifdef __STDC__
13729 # include <limits.h>
13730 #else
13731 # include <assert.h>
13732 #endif
13733 /* Override any gcc2 internal prototype to avoid an error. */
13734 #ifdef __cplusplus
13735 extern "C"
13737 #endif
13738 /* We use char because int might match the return type of a gcc2
13739 builtin and then its argument prototype would still apply. */
13740 char $ac_func ();
13741 /* The GNU C library defines this for functions which it implements
13742 to always fail with ENOSYS. Some functions are actually named
13743 something starting with __ and the normal name is an alias. */
13744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13745 choke me
13746 #else
13747 char (*f) () = $ac_func;
13748 #endif
13749 #ifdef __cplusplus
13751 #endif
13754 main ()
13756 return f != $ac_func;
13758 return 0;
13760 _ACEOF
13761 rm -f conftest.$ac_objext conftest$ac_exeext
13762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13763 (eval $ac_link) 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -s conftest$ac_exeext'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 eval "$as_ac_var=yes"
13774 else
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13778 eval "$as_ac_var=no"
13780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13784 if test `eval echo '${'$as_ac_var'}'` = yes; then
13785 cat >>confdefs.h <<_ACEOF
13786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13787 _ACEOF
13790 done
13797 echo "$as_me:$LINENO: checking for log10f declaration" >&5
13798 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
13799 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
13800 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 else
13806 ac_ext=cc
13807 ac_cpp='$CXXCPP $CPPFLAGS'
13808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13812 cat >conftest.$ac_ext <<_ACEOF
13813 #line $LINENO "configure"
13814 /* confdefs.h. */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 #include <math.h>
13820 #ifdef HAVE_IEEEFP_H
13821 #include <ieeefp.h>
13822 #endif
13825 main ()
13827 log10f(0);
13829 return 0;
13831 _ACEOF
13832 rm -f conftest.$ac_objext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834 (eval $ac_compile) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } &&
13838 { ac_try='test -s conftest.$ac_objext'
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; }; then
13844 glibcxx_cv_func_log10f_use=yes
13845 else
13846 echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13849 glibcxx_cv_func_log10f_use=no
13851 rm -f conftest.$ac_objext conftest.$ac_ext
13852 ac_ext=c
13853 ac_cpp='$CPP $CPPFLAGS'
13854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13862 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
13863 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
13865 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
13867 for ac_func in log10f
13869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13870 echo "$as_me:$LINENO: checking for $ac_func" >&5
13871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13872 if eval "test \"\${$as_ac_var+set}\" = set"; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 else
13875 cat >conftest.$ac_ext <<_ACEOF
13876 #line $LINENO "configure"
13877 /* confdefs.h. */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13882 /* System header to define __stub macros and hopefully few prototypes,
13883 which can conflict with char $ac_func (); below.
13884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13885 <limits.h> exists even on freestanding compilers. */
13886 #ifdef __STDC__
13887 # include <limits.h>
13888 #else
13889 # include <assert.h>
13890 #endif
13891 /* Override any gcc2 internal prototype to avoid an error. */
13892 #ifdef __cplusplus
13893 extern "C"
13895 #endif
13896 /* We use char because int might match the return type of a gcc2
13897 builtin and then its argument prototype would still apply. */
13898 char $ac_func ();
13899 /* The GNU C library defines this for functions which it implements
13900 to always fail with ENOSYS. Some functions are actually named
13901 something starting with __ and the normal name is an alias. */
13902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13903 choke me
13904 #else
13905 char (*f) () = $ac_func;
13906 #endif
13907 #ifdef __cplusplus
13909 #endif
13912 main ()
13914 return f != $ac_func;
13916 return 0;
13918 _ACEOF
13919 rm -f conftest.$ac_objext conftest$ac_exeext
13920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13921 (eval $ac_link) 2>&5
13922 ac_status=$?
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } &&
13925 { ac_try='test -s conftest$ac_exeext'
13926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927 (eval $ac_try) 2>&5
13928 ac_status=$?
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; }; then
13931 eval "$as_ac_var=yes"
13932 else
13933 echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13936 eval "$as_ac_var=no"
13938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13942 if test `eval echo '${'$as_ac_var'}'` = yes; then
13943 cat >>confdefs.h <<_ACEOF
13944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13945 _ACEOF
13948 done
13950 else
13952 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
13953 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
13954 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
13955 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 else
13961 ac_ext=cc
13962 ac_cpp='$CXXCPP $CPPFLAGS'
13963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13967 cat >conftest.$ac_ext <<_ACEOF
13968 #line $LINENO "configure"
13969 /* confdefs.h. */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 #include <math.h>
13975 #ifdef HAVE_IEEEFP_H
13976 #include <ieeefp.h>
13977 #endif
13980 main ()
13982 _log10f(0);
13984 return 0;
13986 _ACEOF
13987 rm -f conftest.$ac_objext
13988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13989 (eval $ac_compile) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -s conftest.$ac_objext'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
13999 glibcxx_cv_func__log10f_use=yes
14000 else
14001 echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.$ac_ext >&5
14004 glibcxx_cv_func__log10f_use=no
14006 rm -f conftest.$ac_objext conftest.$ac_ext
14007 ac_ext=c
14008 ac_cpp='$CPP $CPPFLAGS'
14009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14017 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
14018 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
14020 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
14022 for ac_func in _log10f
14024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14025 echo "$as_me:$LINENO: checking for $ac_func" >&5
14026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14027 if eval "test \"\${$as_ac_var+set}\" = set"; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14029 else
14030 cat >conftest.$ac_ext <<_ACEOF
14031 #line $LINENO "configure"
14032 /* confdefs.h. */
14033 _ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 /* System header to define __stub macros and hopefully few prototypes,
14038 which can conflict with char $ac_func (); below.
14039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14040 <limits.h> exists even on freestanding compilers. */
14041 #ifdef __STDC__
14042 # include <limits.h>
14043 #else
14044 # include <assert.h>
14045 #endif
14046 /* Override any gcc2 internal prototype to avoid an error. */
14047 #ifdef __cplusplus
14048 extern "C"
14050 #endif
14051 /* We use char because int might match the return type of a gcc2
14052 builtin and then its argument prototype would still apply. */
14053 char $ac_func ();
14054 /* The GNU C library defines this for functions which it implements
14055 to always fail with ENOSYS. Some functions are actually named
14056 something starting with __ and the normal name is an alias. */
14057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14058 choke me
14059 #else
14060 char (*f) () = $ac_func;
14061 #endif
14062 #ifdef __cplusplus
14064 #endif
14067 main ()
14069 return f != $ac_func;
14071 return 0;
14073 _ACEOF
14074 rm -f conftest.$ac_objext conftest$ac_exeext
14075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14076 (eval $ac_link) 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } &&
14080 { ac_try='test -s conftest$ac_exeext'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
14086 eval "$as_ac_var=yes"
14087 else
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 eval "$as_ac_var=no"
14093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14097 if test `eval echo '${'$as_ac_var'}'` = yes; then
14098 cat >>confdefs.h <<_ACEOF
14099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14100 _ACEOF
14103 done
14110 echo "$as_me:$LINENO: checking for modff declaration" >&5
14111 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
14112 if test x${glibcxx_cv_func_modff_use+set} != xset; then
14113 if test "${glibcxx_cv_func_modff_use+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14119 ac_ext=cc
14120 ac_cpp='$CXXCPP $CPPFLAGS'
14121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14125 cat >conftest.$ac_ext <<_ACEOF
14126 #line $LINENO "configure"
14127 /* confdefs.h. */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14132 #include <math.h>
14134 main ()
14136 modff(0, 0);
14138 return 0;
14140 _ACEOF
14141 rm -f conftest.$ac_objext
14142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14143 (eval $ac_compile) 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try='test -s conftest.$ac_objext'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14153 glibcxx_cv_func_modff_use=yes
14154 else
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14158 glibcxx_cv_func_modff_use=no
14160 rm -f conftest.$ac_objext conftest.$ac_ext
14161 ac_ext=c
14162 ac_cpp='$CPP $CPPFLAGS'
14163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14171 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
14172 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
14174 if test x$glibcxx_cv_func_modff_use = x"yes"; then
14176 for ac_func in modff
14178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14179 echo "$as_me:$LINENO: checking for $ac_func" >&5
14180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14181 if eval "test \"\${$as_ac_var+set}\" = set"; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14183 else
14184 cat >conftest.$ac_ext <<_ACEOF
14185 #line $LINENO "configure"
14186 /* confdefs.h. */
14187 _ACEOF
14188 cat confdefs.h >>conftest.$ac_ext
14189 cat >>conftest.$ac_ext <<_ACEOF
14190 /* end confdefs.h. */
14191 /* System header to define __stub macros and hopefully few prototypes,
14192 which can conflict with char $ac_func (); below.
14193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14194 <limits.h> exists even on freestanding compilers. */
14195 #ifdef __STDC__
14196 # include <limits.h>
14197 #else
14198 # include <assert.h>
14199 #endif
14200 /* Override any gcc2 internal prototype to avoid an error. */
14201 #ifdef __cplusplus
14202 extern "C"
14204 #endif
14205 /* We use char because int might match the return type of a gcc2
14206 builtin and then its argument prototype would still apply. */
14207 char $ac_func ();
14208 /* The GNU C library defines this for functions which it implements
14209 to always fail with ENOSYS. Some functions are actually named
14210 something starting with __ and the normal name is an alias. */
14211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14212 choke me
14213 #else
14214 char (*f) () = $ac_func;
14215 #endif
14216 #ifdef __cplusplus
14218 #endif
14221 main ()
14223 return f != $ac_func;
14225 return 0;
14227 _ACEOF
14228 rm -f conftest.$ac_objext conftest$ac_exeext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14230 (eval $ac_link) 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try='test -s conftest$ac_exeext'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 eval "$as_ac_var=yes"
14241 else
14242 echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14245 eval "$as_ac_var=no"
14247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14251 if test `eval echo '${'$as_ac_var'}'` = yes; then
14252 cat >>confdefs.h <<_ACEOF
14253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14254 _ACEOF
14257 done
14259 else
14261 echo "$as_me:$LINENO: checking for _modff declaration" >&5
14262 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
14263 if test x${glibcxx_cv_func__modff_use+set} != xset; then
14264 if test "${glibcxx_cv_func__modff_use+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 else
14270 ac_ext=cc
14271 ac_cpp='$CXXCPP $CPPFLAGS'
14272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14276 cat >conftest.$ac_ext <<_ACEOF
14277 #line $LINENO "configure"
14278 /* confdefs.h. */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 #include <math.h>
14285 main ()
14287 _modff(0, 0);
14289 return 0;
14291 _ACEOF
14292 rm -f conftest.$ac_objext
14293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14294 (eval $ac_compile) 2>&5
14295 ac_status=$?
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } &&
14298 { ac_try='test -s conftest.$ac_objext'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14301 ac_status=$?
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; }; then
14304 glibcxx_cv_func__modff_use=yes
14305 else
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14309 glibcxx_cv_func__modff_use=no
14311 rm -f conftest.$ac_objext conftest.$ac_ext
14312 ac_ext=c
14313 ac_cpp='$CPP $CPPFLAGS'
14314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14322 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
14323 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
14325 if test x$glibcxx_cv_func__modff_use = x"yes"; then
14327 for ac_func in _modff
14329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14330 echo "$as_me:$LINENO: checking for $ac_func" >&5
14331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14332 if eval "test \"\${$as_ac_var+set}\" = set"; then
14333 echo $ECHO_N "(cached) $ECHO_C" >&6
14334 else
14335 cat >conftest.$ac_ext <<_ACEOF
14336 #line $LINENO "configure"
14337 /* confdefs.h. */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 /* System header to define __stub macros and hopefully few prototypes,
14343 which can conflict with char $ac_func (); below.
14344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14345 <limits.h> exists even on freestanding compilers. */
14346 #ifdef __STDC__
14347 # include <limits.h>
14348 #else
14349 # include <assert.h>
14350 #endif
14351 /* Override any gcc2 internal prototype to avoid an error. */
14352 #ifdef __cplusplus
14353 extern "C"
14355 #endif
14356 /* We use char because int might match the return type of a gcc2
14357 builtin and then its argument prototype would still apply. */
14358 char $ac_func ();
14359 /* The GNU C library defines this for functions which it implements
14360 to always fail with ENOSYS. Some functions are actually named
14361 something starting with __ and the normal name is an alias. */
14362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14363 choke me
14364 #else
14365 char (*f) () = $ac_func;
14366 #endif
14367 #ifdef __cplusplus
14369 #endif
14372 main ()
14374 return f != $ac_func;
14376 return 0;
14378 _ACEOF
14379 rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14381 (eval $ac_link) 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -s conftest$ac_exeext'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14391 eval "$as_ac_var=yes"
14392 else
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 eval "$as_ac_var=no"
14398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14402 if test `eval echo '${'$as_ac_var'}'` = yes; then
14403 cat >>confdefs.h <<_ACEOF
14404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14405 _ACEOF
14408 done
14415 echo "$as_me:$LINENO: checking for powf declaration" >&5
14416 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
14417 if test x${glibcxx_cv_func_powf_use+set} != xset; then
14418 if test "${glibcxx_cv_func_powf_use+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 else
14424 ac_ext=cc
14425 ac_cpp='$CXXCPP $CPPFLAGS'
14426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14430 cat >conftest.$ac_ext <<_ACEOF
14431 #line $LINENO "configure"
14432 /* confdefs.h. */
14433 _ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14437 #include <math.h>
14439 main ()
14441 powf(0, 0);
14443 return 0;
14445 _ACEOF
14446 rm -f conftest.$ac_objext
14447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14448 (eval $ac_compile) 2>&5
14449 ac_status=$?
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } &&
14452 { ac_try='test -s conftest.$ac_objext'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 glibcxx_cv_func_powf_use=yes
14459 else
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 glibcxx_cv_func_powf_use=no
14465 rm -f conftest.$ac_objext conftest.$ac_ext
14466 ac_ext=c
14467 ac_cpp='$CPP $CPPFLAGS'
14468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14476 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
14477 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
14479 if test x$glibcxx_cv_func_powf_use = x"yes"; then
14481 for ac_func in powf
14483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14484 echo "$as_me:$LINENO: checking for $ac_func" >&5
14485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14486 if eval "test \"\${$as_ac_var+set}\" = set"; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489 cat >conftest.$ac_ext <<_ACEOF
14490 #line $LINENO "configure"
14491 /* confdefs.h. */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 /* System header to define __stub macros and hopefully few prototypes,
14497 which can conflict with char $ac_func (); below.
14498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14499 <limits.h> exists even on freestanding compilers. */
14500 #ifdef __STDC__
14501 # include <limits.h>
14502 #else
14503 # include <assert.h>
14504 #endif
14505 /* Override any gcc2 internal prototype to avoid an error. */
14506 #ifdef __cplusplus
14507 extern "C"
14509 #endif
14510 /* We use char because int might match the return type of a gcc2
14511 builtin and then its argument prototype would still apply. */
14512 char $ac_func ();
14513 /* The GNU C library defines this for functions which it implements
14514 to always fail with ENOSYS. Some functions are actually named
14515 something starting with __ and the normal name is an alias. */
14516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14517 choke me
14518 #else
14519 char (*f) () = $ac_func;
14520 #endif
14521 #ifdef __cplusplus
14523 #endif
14526 main ()
14528 return f != $ac_func;
14530 return 0;
14532 _ACEOF
14533 rm -f conftest.$ac_objext conftest$ac_exeext
14534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14535 (eval $ac_link) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } &&
14539 { ac_try='test -s conftest$ac_exeext'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14542 ac_status=$?
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
14545 eval "$as_ac_var=yes"
14546 else
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 eval "$as_ac_var=no"
14552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14556 if test `eval echo '${'$as_ac_var'}'` = yes; then
14557 cat >>confdefs.h <<_ACEOF
14558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14559 _ACEOF
14562 done
14564 else
14566 echo "$as_me:$LINENO: checking for _powf declaration" >&5
14567 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
14568 if test x${glibcxx_cv_func__powf_use+set} != xset; then
14569 if test "${glibcxx_cv_func__powf_use+set}" = set; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 else
14575 ac_ext=cc
14576 ac_cpp='$CXXCPP $CPPFLAGS'
14577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14581 cat >conftest.$ac_ext <<_ACEOF
14582 #line $LINENO "configure"
14583 /* confdefs.h. */
14584 _ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14588 #include <math.h>
14590 main ()
14592 _powf(0, 0);
14594 return 0;
14596 _ACEOF
14597 rm -f conftest.$ac_objext
14598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14599 (eval $ac_compile) 2>&5
14600 ac_status=$?
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } &&
14603 { ac_try='test -s conftest.$ac_objext'
14604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605 (eval $ac_try) 2>&5
14606 ac_status=$?
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; }; then
14609 glibcxx_cv_func__powf_use=yes
14610 else
14611 echo "$as_me: failed program was:" >&5
14612 sed 's/^/| /' conftest.$ac_ext >&5
14614 glibcxx_cv_func__powf_use=no
14616 rm -f conftest.$ac_objext conftest.$ac_ext
14617 ac_ext=c
14618 ac_cpp='$CPP $CPPFLAGS'
14619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14627 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
14628 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
14630 if test x$glibcxx_cv_func__powf_use = x"yes"; then
14632 for ac_func in _powf
14634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14635 echo "$as_me:$LINENO: checking for $ac_func" >&5
14636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14637 if eval "test \"\${$as_ac_var+set}\" = set"; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640 cat >conftest.$ac_ext <<_ACEOF
14641 #line $LINENO "configure"
14642 /* confdefs.h. */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14647 /* System header to define __stub macros and hopefully few prototypes,
14648 which can conflict with char $ac_func (); below.
14649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14650 <limits.h> exists even on freestanding compilers. */
14651 #ifdef __STDC__
14652 # include <limits.h>
14653 #else
14654 # include <assert.h>
14655 #endif
14656 /* Override any gcc2 internal prototype to avoid an error. */
14657 #ifdef __cplusplus
14658 extern "C"
14660 #endif
14661 /* We use char because int might match the return type of a gcc2
14662 builtin and then its argument prototype would still apply. */
14663 char $ac_func ();
14664 /* The GNU C library defines this for functions which it implements
14665 to always fail with ENOSYS. Some functions are actually named
14666 something starting with __ and the normal name is an alias. */
14667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14668 choke me
14669 #else
14670 char (*f) () = $ac_func;
14671 #endif
14672 #ifdef __cplusplus
14674 #endif
14677 main ()
14679 return f != $ac_func;
14681 return 0;
14683 _ACEOF
14684 rm -f conftest.$ac_objext conftest$ac_exeext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14686 (eval $ac_link) 2>&5
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
14690 { ac_try='test -s conftest$ac_exeext'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14693 ac_status=$?
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14696 eval "$as_ac_var=yes"
14697 else
14698 echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14701 eval "$as_ac_var=no"
14703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14707 if test `eval echo '${'$as_ac_var'}'` = yes; then
14708 cat >>confdefs.h <<_ACEOF
14709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14710 _ACEOF
14713 done
14720 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
14721 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
14722 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
14723 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14725 else
14729 ac_ext=cc
14730 ac_cpp='$CXXCPP $CPPFLAGS'
14731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14735 cat >conftest.$ac_ext <<_ACEOF
14736 #line $LINENO "configure"
14737 /* confdefs.h. */
14738 _ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h. */
14742 #include <math.h>
14743 #ifdef HAVE_IEEEFP_H
14744 #include <ieeefp.h>
14745 #endif
14748 main ()
14750 sqrtf(0);
14752 return 0;
14754 _ACEOF
14755 rm -f conftest.$ac_objext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14757 (eval $ac_compile) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } &&
14761 { ac_try='test -s conftest.$ac_objext'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 glibcxx_cv_func_sqrtf_use=yes
14768 else
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 glibcxx_cv_func_sqrtf_use=no
14774 rm -f conftest.$ac_objext conftest.$ac_ext
14775 ac_ext=c
14776 ac_cpp='$CPP $CPPFLAGS'
14777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14785 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
14786 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
14788 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
14790 for ac_func in sqrtf
14792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14793 echo "$as_me:$LINENO: checking for $ac_func" >&5
14794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14795 if eval "test \"\${$as_ac_var+set}\" = set"; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 else
14798 cat >conftest.$ac_ext <<_ACEOF
14799 #line $LINENO "configure"
14800 /* confdefs.h. */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14805 /* System header to define __stub macros and hopefully few prototypes,
14806 which can conflict with char $ac_func (); below.
14807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14808 <limits.h> exists even on freestanding compilers. */
14809 #ifdef __STDC__
14810 # include <limits.h>
14811 #else
14812 # include <assert.h>
14813 #endif
14814 /* Override any gcc2 internal prototype to avoid an error. */
14815 #ifdef __cplusplus
14816 extern "C"
14818 #endif
14819 /* We use char because int might match the return type of a gcc2
14820 builtin and then its argument prototype would still apply. */
14821 char $ac_func ();
14822 /* The GNU C library defines this for functions which it implements
14823 to always fail with ENOSYS. Some functions are actually named
14824 something starting with __ and the normal name is an alias. */
14825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14826 choke me
14827 #else
14828 char (*f) () = $ac_func;
14829 #endif
14830 #ifdef __cplusplus
14832 #endif
14835 main ()
14837 return f != $ac_func;
14839 return 0;
14841 _ACEOF
14842 rm -f conftest.$ac_objext conftest$ac_exeext
14843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14844 (eval $ac_link) 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
14848 { ac_try='test -s conftest$ac_exeext'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 eval "$as_ac_var=yes"
14855 else
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 eval "$as_ac_var=no"
14861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14865 if test `eval echo '${'$as_ac_var'}'` = yes; then
14866 cat >>confdefs.h <<_ACEOF
14867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14868 _ACEOF
14871 done
14873 else
14875 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
14876 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
14877 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
14878 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 else
14884 ac_ext=cc
14885 ac_cpp='$CXXCPP $CPPFLAGS'
14886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14890 cat >conftest.$ac_ext <<_ACEOF
14891 #line $LINENO "configure"
14892 /* confdefs.h. */
14893 _ACEOF
14894 cat confdefs.h >>conftest.$ac_ext
14895 cat >>conftest.$ac_ext <<_ACEOF
14896 /* end confdefs.h. */
14897 #include <math.h>
14898 #ifdef HAVE_IEEEFP_H
14899 #include <ieeefp.h>
14900 #endif
14903 main ()
14905 _sqrtf(0);
14907 return 0;
14909 _ACEOF
14910 rm -f conftest.$ac_objext
14911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14912 (eval $ac_compile) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } &&
14916 { ac_try='test -s conftest.$ac_objext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 glibcxx_cv_func__sqrtf_use=yes
14923 else
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 glibcxx_cv_func__sqrtf_use=no
14929 rm -f conftest.$ac_objext conftest.$ac_ext
14930 ac_ext=c
14931 ac_cpp='$CPP $CPPFLAGS'
14932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14940 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
14941 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
14943 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
14945 for ac_func in _sqrtf
14947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14948 echo "$as_me:$LINENO: checking for $ac_func" >&5
14949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14950 if eval "test \"\${$as_ac_var+set}\" = set"; then
14951 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 else
14953 cat >conftest.$ac_ext <<_ACEOF
14954 #line $LINENO "configure"
14955 /* confdefs.h. */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960 /* System header to define __stub macros and hopefully few prototypes,
14961 which can conflict with char $ac_func (); below.
14962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14963 <limits.h> exists even on freestanding compilers. */
14964 #ifdef __STDC__
14965 # include <limits.h>
14966 #else
14967 # include <assert.h>
14968 #endif
14969 /* Override any gcc2 internal prototype to avoid an error. */
14970 #ifdef __cplusplus
14971 extern "C"
14973 #endif
14974 /* We use char because int might match the return type of a gcc2
14975 builtin and then its argument prototype would still apply. */
14976 char $ac_func ();
14977 /* The GNU C library defines this for functions which it implements
14978 to always fail with ENOSYS. Some functions are actually named
14979 something starting with __ and the normal name is an alias. */
14980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14981 choke me
14982 #else
14983 char (*f) () = $ac_func;
14984 #endif
14985 #ifdef __cplusplus
14987 #endif
14990 main ()
14992 return f != $ac_func;
14994 return 0;
14996 _ACEOF
14997 rm -f conftest.$ac_objext conftest$ac_exeext
14998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14999 (eval $ac_link) 2>&5
15000 ac_status=$?
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); } &&
15003 { ac_try='test -s conftest$ac_exeext'
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; }; then
15009 eval "$as_ac_var=yes"
15010 else
15011 echo "$as_me: failed program was:" >&5
15012 sed 's/^/| /' conftest.$ac_ext >&5
15014 eval "$as_ac_var=no"
15016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15020 if test `eval echo '${'$as_ac_var'}'` = yes; then
15021 cat >>confdefs.h <<_ACEOF
15022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15023 _ACEOF
15026 done
15033 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
15034 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
15035 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
15036 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
15037 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 else
15042 ac_ext=cc
15043 ac_cpp='$CXXCPP $CPPFLAGS'
15044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15048 cat >conftest.$ac_ext <<_ACEOF
15049 #line $LINENO "configure"
15050 /* confdefs.h. */
15051 _ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15055 #include <math.h>
15057 main ()
15059 sincosf(0, 0, 0);
15061 return 0;
15063 _ACEOF
15064 rm -f conftest.$ac_objext
15065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15066 (eval $ac_compile) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } &&
15070 { ac_try='test -s conftest.$ac_objext'
15071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072 (eval $ac_try) 2>&5
15073 ac_status=$?
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; }; then
15076 glibcxx_cv_func_sincosf_use=yes
15077 else
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15081 glibcxx_cv_func_sincosf_use=no
15083 rm -f conftest.$ac_objext conftest.$ac_ext
15084 ac_ext=c
15085 ac_cpp='$CPP $CPPFLAGS'
15086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15094 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
15095 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
15097 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
15099 for ac_func in sincosf
15101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15102 echo "$as_me:$LINENO: checking for $ac_func" >&5
15103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15104 if eval "test \"\${$as_ac_var+set}\" = set"; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 else
15107 cat >conftest.$ac_ext <<_ACEOF
15108 #line $LINENO "configure"
15109 /* confdefs.h. */
15110 _ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15114 /* System header to define __stub macros and hopefully few prototypes,
15115 which can conflict with char $ac_func (); below.
15116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15117 <limits.h> exists even on freestanding compilers. */
15118 #ifdef __STDC__
15119 # include <limits.h>
15120 #else
15121 # include <assert.h>
15122 #endif
15123 /* Override any gcc2 internal prototype to avoid an error. */
15124 #ifdef __cplusplus
15125 extern "C"
15127 #endif
15128 /* We use char because int might match the return type of a gcc2
15129 builtin and then its argument prototype would still apply. */
15130 char $ac_func ();
15131 /* The GNU C library defines this for functions which it implements
15132 to always fail with ENOSYS. Some functions are actually named
15133 something starting with __ and the normal name is an alias. */
15134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15135 choke me
15136 #else
15137 char (*f) () = $ac_func;
15138 #endif
15139 #ifdef __cplusplus
15141 #endif
15144 main ()
15146 return f != $ac_func;
15148 return 0;
15150 _ACEOF
15151 rm -f conftest.$ac_objext conftest$ac_exeext
15152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15153 (eval $ac_link) 2>&5
15154 ac_status=$?
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } &&
15157 { ac_try='test -s conftest$ac_exeext'
15158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15160 ac_status=$?
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }; then
15163 eval "$as_ac_var=yes"
15164 else
15165 echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15168 eval "$as_ac_var=no"
15170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15174 if test `eval echo '${'$as_ac_var'}'` = yes; then
15175 cat >>confdefs.h <<_ACEOF
15176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15177 _ACEOF
15180 done
15182 else
15184 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
15185 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
15186 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
15187 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15189 else
15193 ac_ext=cc
15194 ac_cpp='$CXXCPP $CPPFLAGS'
15195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15199 cat >conftest.$ac_ext <<_ACEOF
15200 #line $LINENO "configure"
15201 /* confdefs.h. */
15202 _ACEOF
15203 cat confdefs.h >>conftest.$ac_ext
15204 cat >>conftest.$ac_ext <<_ACEOF
15205 /* end confdefs.h. */
15206 #include <math.h>
15208 main ()
15210 _sincosf(0, 0, 0);
15212 return 0;
15214 _ACEOF
15215 rm -f conftest.$ac_objext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15217 (eval $ac_compile) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } &&
15221 { ac_try='test -s conftest.$ac_objext'
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }; then
15227 glibcxx_cv_func__sincosf_use=yes
15228 else
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15232 glibcxx_cv_func__sincosf_use=no
15234 rm -f conftest.$ac_objext conftest.$ac_ext
15235 ac_ext=c
15236 ac_cpp='$CPP $CPPFLAGS'
15237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15245 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
15246 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
15248 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
15250 for ac_func in _sincosf
15252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15253 echo "$as_me:$LINENO: checking for $ac_func" >&5
15254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15255 if eval "test \"\${$as_ac_var+set}\" = set"; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 else
15258 cat >conftest.$ac_ext <<_ACEOF
15259 #line $LINENO "configure"
15260 /* confdefs.h. */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15265 /* System header to define __stub macros and hopefully few prototypes,
15266 which can conflict with char $ac_func (); below.
15267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15268 <limits.h> exists even on freestanding compilers. */
15269 #ifdef __STDC__
15270 # include <limits.h>
15271 #else
15272 # include <assert.h>
15273 #endif
15274 /* Override any gcc2 internal prototype to avoid an error. */
15275 #ifdef __cplusplus
15276 extern "C"
15278 #endif
15279 /* We use char because int might match the return type of a gcc2
15280 builtin and then its argument prototype would still apply. */
15281 char $ac_func ();
15282 /* The GNU C library defines this for functions which it implements
15283 to always fail with ENOSYS. Some functions are actually named
15284 something starting with __ and the normal name is an alias. */
15285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15286 choke me
15287 #else
15288 char (*f) () = $ac_func;
15289 #endif
15290 #ifdef __cplusplus
15292 #endif
15295 main ()
15297 return f != $ac_func;
15299 return 0;
15301 _ACEOF
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15304 (eval $ac_link) 2>&5
15305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } &&
15308 { ac_try='test -s conftest$ac_exeext'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }; then
15314 eval "$as_ac_var=yes"
15315 else
15316 echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15319 eval "$as_ac_var=no"
15321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15325 if test `eval echo '${'$as_ac_var'}'` = yes; then
15326 cat >>confdefs.h <<_ACEOF
15327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15328 _ACEOF
15331 done
15338 echo "$as_me:$LINENO: checking for finitef declaration" >&5
15339 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
15340 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
15341 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 else
15347 ac_ext=cc
15348 ac_cpp='$CXXCPP $CPPFLAGS'
15349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15353 cat >conftest.$ac_ext <<_ACEOF
15354 #line $LINENO "configure"
15355 /* confdefs.h. */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15360 #include <math.h>
15361 #ifdef HAVE_IEEEFP_H
15362 #include <ieeefp.h>
15363 #endif
15366 main ()
15368 finitef(0);
15370 return 0;
15372 _ACEOF
15373 rm -f conftest.$ac_objext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15375 (eval $ac_compile) 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } &&
15379 { ac_try='test -s conftest.$ac_objext'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 glibcxx_cv_func_finitef_use=yes
15386 else
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 glibcxx_cv_func_finitef_use=no
15392 rm -f conftest.$ac_objext conftest.$ac_ext
15393 ac_ext=c
15394 ac_cpp='$CPP $CPPFLAGS'
15395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15403 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
15404 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
15406 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
15408 for ac_func in finitef
15410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15411 echo "$as_me:$LINENO: checking for $ac_func" >&5
15412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15413 if eval "test \"\${$as_ac_var+set}\" = set"; then
15414 echo $ECHO_N "(cached) $ECHO_C" >&6
15415 else
15416 cat >conftest.$ac_ext <<_ACEOF
15417 #line $LINENO "configure"
15418 /* confdefs.h. */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 /* System header to define __stub macros and hopefully few prototypes,
15424 which can conflict with char $ac_func (); below.
15425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15426 <limits.h> exists even on freestanding compilers. */
15427 #ifdef __STDC__
15428 # include <limits.h>
15429 #else
15430 # include <assert.h>
15431 #endif
15432 /* Override any gcc2 internal prototype to avoid an error. */
15433 #ifdef __cplusplus
15434 extern "C"
15436 #endif
15437 /* We use char because int might match the return type of a gcc2
15438 builtin and then its argument prototype would still apply. */
15439 char $ac_func ();
15440 /* The GNU C library defines this for functions which it implements
15441 to always fail with ENOSYS. Some functions are actually named
15442 something starting with __ and the normal name is an alias. */
15443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15444 choke me
15445 #else
15446 char (*f) () = $ac_func;
15447 #endif
15448 #ifdef __cplusplus
15450 #endif
15453 main ()
15455 return f != $ac_func;
15457 return 0;
15459 _ACEOF
15460 rm -f conftest.$ac_objext conftest$ac_exeext
15461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15462 (eval $ac_link) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
15466 { ac_try='test -s conftest$ac_exeext'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 eval "$as_ac_var=yes"
15473 else
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 eval "$as_ac_var=no"
15479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15483 if test `eval echo '${'$as_ac_var'}'` = yes; then
15484 cat >>confdefs.h <<_ACEOF
15485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15486 _ACEOF
15489 done
15491 else
15493 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
15494 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
15495 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
15496 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 else
15502 ac_ext=cc
15503 ac_cpp='$CXXCPP $CPPFLAGS'
15504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15508 cat >conftest.$ac_ext <<_ACEOF
15509 #line $LINENO "configure"
15510 /* confdefs.h. */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515 #include <math.h>
15516 #ifdef HAVE_IEEEFP_H
15517 #include <ieeefp.h>
15518 #endif
15521 main ()
15523 _finitef(0);
15525 return 0;
15527 _ACEOF
15528 rm -f conftest.$ac_objext
15529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15530 (eval $ac_compile) 2>&5
15531 ac_status=$?
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -s conftest.$ac_objext'
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; }; then
15540 glibcxx_cv_func__finitef_use=yes
15541 else
15542 echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15545 glibcxx_cv_func__finitef_use=no
15547 rm -f conftest.$ac_objext conftest.$ac_ext
15548 ac_ext=c
15549 ac_cpp='$CPP $CPPFLAGS'
15550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15558 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
15559 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
15561 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
15563 for ac_func in _finitef
15565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15566 echo "$as_me:$LINENO: checking for $ac_func" >&5
15567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15568 if eval "test \"\${$as_ac_var+set}\" = set"; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 else
15571 cat >conftest.$ac_ext <<_ACEOF
15572 #line $LINENO "configure"
15573 /* confdefs.h. */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h. */
15578 /* System header to define __stub macros and hopefully few prototypes,
15579 which can conflict with char $ac_func (); below.
15580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15581 <limits.h> exists even on freestanding compilers. */
15582 #ifdef __STDC__
15583 # include <limits.h>
15584 #else
15585 # include <assert.h>
15586 #endif
15587 /* Override any gcc2 internal prototype to avoid an error. */
15588 #ifdef __cplusplus
15589 extern "C"
15591 #endif
15592 /* We use char because int might match the return type of a gcc2
15593 builtin and then its argument prototype would still apply. */
15594 char $ac_func ();
15595 /* The GNU C library defines this for functions which it implements
15596 to always fail with ENOSYS. Some functions are actually named
15597 something starting with __ and the normal name is an alias. */
15598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15599 choke me
15600 #else
15601 char (*f) () = $ac_func;
15602 #endif
15603 #ifdef __cplusplus
15605 #endif
15608 main ()
15610 return f != $ac_func;
15612 return 0;
15614 _ACEOF
15615 rm -f conftest.$ac_objext conftest$ac_exeext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15617 (eval $ac_link) 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } &&
15621 { ac_try='test -s conftest$ac_exeext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15627 eval "$as_ac_var=yes"
15628 else
15629 echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15632 eval "$as_ac_var=no"
15634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15638 if test `eval echo '${'$as_ac_var'}'` = yes; then
15639 cat >>confdefs.h <<_ACEOF
15640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15641 _ACEOF
15644 done
15651 echo "$as_me:$LINENO: checking for long double trig functions" >&5
15652 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
15653 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15655 else
15659 ac_ext=cc
15660 ac_cpp='$CXXCPP $CPPFLAGS'
15661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15665 cat >conftest.$ac_ext <<_ACEOF
15666 #line $LINENO "configure"
15667 /* confdefs.h. */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15672 #include <math.h>
15674 main ()
15676 `for x in acosl asinl atanl \
15677 cosl sinl tanl \
15678 coshl sinhl tanhl; do echo "$x (0);"; done`
15680 return 0;
15682 _ACEOF
15683 rm -f conftest.$ac_objext
15684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15685 (eval $ac_compile) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); } &&
15689 { ac_try='test -s conftest.$ac_objext'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 glibcxx_cv_func_long_double_trig_use=yes
15696 else
15697 echo "$as_me: failed program was:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15700 glibcxx_cv_func_long_double_trig_use=no
15702 rm -f conftest.$ac_objext conftest.$ac_ext
15703 ac_ext=c
15704 ac_cpp='$CPP $CPPFLAGS'
15705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15711 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
15712 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
15713 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
15723 for ac_func in acosl asinl atanl \
15724 cosl sinl tanl \
15725 coshl sinhl tanhl
15727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15728 echo "$as_me:$LINENO: checking for $ac_func" >&5
15729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15730 if eval "test \"\${$as_ac_var+set}\" = set"; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 else
15733 cat >conftest.$ac_ext <<_ACEOF
15734 #line $LINENO "configure"
15735 /* confdefs.h. */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h. */
15740 /* System header to define __stub macros and hopefully few prototypes,
15741 which can conflict with char $ac_func (); below.
15742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15743 <limits.h> exists even on freestanding compilers. */
15744 #ifdef __STDC__
15745 # include <limits.h>
15746 #else
15747 # include <assert.h>
15748 #endif
15749 /* Override any gcc2 internal prototype to avoid an error. */
15750 #ifdef __cplusplus
15751 extern "C"
15753 #endif
15754 /* We use char because int might match the return type of a gcc2
15755 builtin and then its argument prototype would still apply. */
15756 char $ac_func ();
15757 /* The GNU C library defines this for functions which it implements
15758 to always fail with ENOSYS. Some functions are actually named
15759 something starting with __ and the normal name is an alias. */
15760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15761 choke me
15762 #else
15763 char (*f) () = $ac_func;
15764 #endif
15765 #ifdef __cplusplus
15767 #endif
15770 main ()
15772 return f != $ac_func;
15774 return 0;
15776 _ACEOF
15777 rm -f conftest.$ac_objext conftest$ac_exeext
15778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15779 (eval $ac_link) 2>&5
15780 ac_status=$?
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
15783 { ac_try='test -s conftest$ac_exeext'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15789 eval "$as_ac_var=yes"
15790 else
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15794 eval "$as_ac_var=no"
15796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15800 if test `eval echo '${'$as_ac_var'}'` = yes; then
15801 cat >>confdefs.h <<_ACEOF
15802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15803 _ACEOF
15806 done
15811 echo "$as_me:$LINENO: checking for long double round functions" >&5
15812 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
15813 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 else
15819 ac_ext=cc
15820 ac_cpp='$CXXCPP $CPPFLAGS'
15821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15825 cat >conftest.$ac_ext <<_ACEOF
15826 #line $LINENO "configure"
15827 /* confdefs.h. */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 #include <math.h>
15834 main ()
15836 `for x in ceill floorl; do echo "$x (0);"; done`
15838 return 0;
15840 _ACEOF
15841 rm -f conftest.$ac_objext
15842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15843 (eval $ac_compile) 2>&5
15844 ac_status=$?
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); } &&
15847 { ac_try='test -s conftest.$ac_objext'
15848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849 (eval $ac_try) 2>&5
15850 ac_status=$?
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; }; then
15853 glibcxx_cv_func_long_double_round_use=yes
15854 else
15855 echo "$as_me: failed program was:" >&5
15856 sed 's/^/| /' conftest.$ac_ext >&5
15858 glibcxx_cv_func_long_double_round_use=no
15860 rm -f conftest.$ac_objext conftest.$ac_ext
15861 ac_ext=c
15862 ac_cpp='$CPP $CPPFLAGS'
15863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15869 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
15870 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
15871 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
15874 for ac_func in ceill floorl
15876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15877 echo "$as_me:$LINENO: checking for $ac_func" >&5
15878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15879 if eval "test \"\${$as_ac_var+set}\" = set"; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 else
15882 cat >conftest.$ac_ext <<_ACEOF
15883 #line $LINENO "configure"
15884 /* confdefs.h. */
15885 _ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889 /* System header to define __stub macros and hopefully few prototypes,
15890 which can conflict with char $ac_func (); below.
15891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15892 <limits.h> exists even on freestanding compilers. */
15893 #ifdef __STDC__
15894 # include <limits.h>
15895 #else
15896 # include <assert.h>
15897 #endif
15898 /* Override any gcc2 internal prototype to avoid an error. */
15899 #ifdef __cplusplus
15900 extern "C"
15902 #endif
15903 /* We use char because int might match the return type of a gcc2
15904 builtin and then its argument prototype would still apply. */
15905 char $ac_func ();
15906 /* The GNU C library defines this for functions which it implements
15907 to always fail with ENOSYS. Some functions are actually named
15908 something starting with __ and the normal name is an alias. */
15909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15910 choke me
15911 #else
15912 char (*f) () = $ac_func;
15913 #endif
15914 #ifdef __cplusplus
15916 #endif
15919 main ()
15921 return f != $ac_func;
15923 return 0;
15925 _ACEOF
15926 rm -f conftest.$ac_objext conftest$ac_exeext
15927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15928 (eval $ac_link) 2>&5
15929 ac_status=$?
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } &&
15932 { ac_try='test -s conftest$ac_exeext'
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934 (eval $ac_try) 2>&5
15935 ac_status=$?
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; }; then
15938 eval "$as_ac_var=yes"
15939 else
15940 echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15943 eval "$as_ac_var=no"
15945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15949 if test `eval echo '${'$as_ac_var'}'` = yes; then
15950 cat >>confdefs.h <<_ACEOF
15951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15952 _ACEOF
15955 done
15961 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
15962 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
15963 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
15964 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15966 else
15970 ac_ext=cc
15971 ac_cpp='$CXXCPP $CPPFLAGS'
15972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15976 cat >conftest.$ac_ext <<_ACEOF
15977 #line $LINENO "configure"
15978 /* confdefs.h. */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15983 #include <math.h>
15984 #ifdef HAVE_IEEEFP_H
15985 #include <ieeefp.h>
15986 #endif
15989 main ()
15991 isnanl(0);
15993 return 0;
15995 _ACEOF
15996 rm -f conftest.$ac_objext
15997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15998 (eval $ac_compile) 2>&5
15999 ac_status=$?
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } &&
16002 { ac_try='test -s conftest.$ac_objext'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; }; then
16008 glibcxx_cv_func_isnanl_use=yes
16009 else
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 glibcxx_cv_func_isnanl_use=no
16015 rm -f conftest.$ac_objext conftest.$ac_ext
16016 ac_ext=c
16017 ac_cpp='$CPP $CPPFLAGS'
16018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16026 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
16027 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
16029 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
16031 for ac_func in isnanl
16033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16034 echo "$as_me:$LINENO: checking for $ac_func" >&5
16035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16036 if eval "test \"\${$as_ac_var+set}\" = set"; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 else
16039 cat >conftest.$ac_ext <<_ACEOF
16040 #line $LINENO "configure"
16041 /* confdefs.h. */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 /* System header to define __stub macros and hopefully few prototypes,
16047 which can conflict with char $ac_func (); below.
16048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16049 <limits.h> exists even on freestanding compilers. */
16050 #ifdef __STDC__
16051 # include <limits.h>
16052 #else
16053 # include <assert.h>
16054 #endif
16055 /* Override any gcc2 internal prototype to avoid an error. */
16056 #ifdef __cplusplus
16057 extern "C"
16059 #endif
16060 /* We use char because int might match the return type of a gcc2
16061 builtin and then its argument prototype would still apply. */
16062 char $ac_func ();
16063 /* The GNU C library defines this for functions which it implements
16064 to always fail with ENOSYS. Some functions are actually named
16065 something starting with __ and the normal name is an alias. */
16066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16067 choke me
16068 #else
16069 char (*f) () = $ac_func;
16070 #endif
16071 #ifdef __cplusplus
16073 #endif
16076 main ()
16078 return f != $ac_func;
16080 return 0;
16082 _ACEOF
16083 rm -f conftest.$ac_objext conftest$ac_exeext
16084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16085 (eval $ac_link) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } &&
16089 { ac_try='test -s conftest$ac_exeext'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16092 ac_status=$?
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095 eval "$as_ac_var=yes"
16096 else
16097 echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16100 eval "$as_ac_var=no"
16102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16106 if test `eval echo '${'$as_ac_var'}'` = yes; then
16107 cat >>confdefs.h <<_ACEOF
16108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16109 _ACEOF
16112 done
16114 else
16116 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
16117 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
16118 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
16119 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
16120 echo $ECHO_N "(cached) $ECHO_C" >&6
16121 else
16125 ac_ext=cc
16126 ac_cpp='$CXXCPP $CPPFLAGS'
16127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
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 #include <math.h>
16139 #ifdef HAVE_IEEEFP_H
16140 #include <ieeefp.h>
16141 #endif
16144 main ()
16146 _isnanl(0);
16148 return 0;
16150 _ACEOF
16151 rm -f conftest.$ac_objext
16152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16153 (eval $ac_compile) 2>&5
16154 ac_status=$?
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try='test -s conftest.$ac_objext'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }; then
16163 glibcxx_cv_func__isnanl_use=yes
16164 else
16165 echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16168 glibcxx_cv_func__isnanl_use=no
16170 rm -f conftest.$ac_objext conftest.$ac_ext
16171 ac_ext=c
16172 ac_cpp='$CPP $CPPFLAGS'
16173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16181 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
16182 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
16184 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
16186 for ac_func in _isnanl
16188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16189 echo "$as_me:$LINENO: checking for $ac_func" >&5
16190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16191 if eval "test \"\${$as_ac_var+set}\" = set"; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 else
16194 cat >conftest.$ac_ext <<_ACEOF
16195 #line $LINENO "configure"
16196 /* confdefs.h. */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 /* System header to define __stub macros and hopefully few prototypes,
16202 which can conflict with char $ac_func (); below.
16203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16204 <limits.h> exists even on freestanding compilers. */
16205 #ifdef __STDC__
16206 # include <limits.h>
16207 #else
16208 # include <assert.h>
16209 #endif
16210 /* Override any gcc2 internal prototype to avoid an error. */
16211 #ifdef __cplusplus
16212 extern "C"
16214 #endif
16215 /* We use char because int might match the return type of a gcc2
16216 builtin and then its argument prototype would still apply. */
16217 char $ac_func ();
16218 /* The GNU C library defines this for functions which it implements
16219 to always fail with ENOSYS. Some functions are actually named
16220 something starting with __ and the normal name is an alias. */
16221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16222 choke me
16223 #else
16224 char (*f) () = $ac_func;
16225 #endif
16226 #ifdef __cplusplus
16228 #endif
16231 main ()
16233 return f != $ac_func;
16235 return 0;
16237 _ACEOF
16238 rm -f conftest.$ac_objext conftest$ac_exeext
16239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16240 (eval $ac_link) 2>&5
16241 ac_status=$?
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } &&
16244 { ac_try='test -s conftest$ac_exeext'
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }; then
16250 eval "$as_ac_var=yes"
16251 else
16252 echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16255 eval "$as_ac_var=no"
16257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16261 if test `eval echo '${'$as_ac_var'}'` = yes; then
16262 cat >>confdefs.h <<_ACEOF
16263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16264 _ACEOF
16267 done
16274 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
16275 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
16276 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
16277 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 else
16283 ac_ext=cc
16284 ac_cpp='$CXXCPP $CPPFLAGS'
16285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16289 cat >conftest.$ac_ext <<_ACEOF
16290 #line $LINENO "configure"
16291 /* confdefs.h. */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 #include <math.h>
16297 #ifdef HAVE_IEEEFP_H
16298 #include <ieeefp.h>
16299 #endif
16302 main ()
16304 isinfl(0);
16306 return 0;
16308 _ACEOF
16309 rm -f conftest.$ac_objext
16310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16311 (eval $ac_compile) 2>&5
16312 ac_status=$?
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } &&
16315 { ac_try='test -s conftest.$ac_objext'
16316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317 (eval $ac_try) 2>&5
16318 ac_status=$?
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; }; then
16321 glibcxx_cv_func_isinfl_use=yes
16322 else
16323 echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16326 glibcxx_cv_func_isinfl_use=no
16328 rm -f conftest.$ac_objext conftest.$ac_ext
16329 ac_ext=c
16330 ac_cpp='$CPP $CPPFLAGS'
16331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16339 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
16340 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
16342 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
16344 for ac_func in isinfl
16346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16347 echo "$as_me:$LINENO: checking for $ac_func" >&5
16348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16349 if eval "test \"\${$as_ac_var+set}\" = set"; then
16350 echo $ECHO_N "(cached) $ECHO_C" >&6
16351 else
16352 cat >conftest.$ac_ext <<_ACEOF
16353 #line $LINENO "configure"
16354 /* confdefs.h. */
16355 _ACEOF
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h. */
16359 /* System header to define __stub macros and hopefully few prototypes,
16360 which can conflict with char $ac_func (); below.
16361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16362 <limits.h> exists even on freestanding compilers. */
16363 #ifdef __STDC__
16364 # include <limits.h>
16365 #else
16366 # include <assert.h>
16367 #endif
16368 /* Override any gcc2 internal prototype to avoid an error. */
16369 #ifdef __cplusplus
16370 extern "C"
16372 #endif
16373 /* We use char because int might match the return type of a gcc2
16374 builtin and then its argument prototype would still apply. */
16375 char $ac_func ();
16376 /* The GNU C library defines this for functions which it implements
16377 to always fail with ENOSYS. Some functions are actually named
16378 something starting with __ and the normal name is an alias. */
16379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16380 choke me
16381 #else
16382 char (*f) () = $ac_func;
16383 #endif
16384 #ifdef __cplusplus
16386 #endif
16389 main ()
16391 return f != $ac_func;
16393 return 0;
16395 _ACEOF
16396 rm -f conftest.$ac_objext conftest$ac_exeext
16397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16398 (eval $ac_link) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
16402 { ac_try='test -s conftest$ac_exeext'
16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; }; then
16408 eval "$as_ac_var=yes"
16409 else
16410 echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16413 eval "$as_ac_var=no"
16415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16419 if test `eval echo '${'$as_ac_var'}'` = yes; then
16420 cat >>confdefs.h <<_ACEOF
16421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16422 _ACEOF
16425 done
16427 else
16429 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
16430 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
16431 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
16432 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16434 else
16438 ac_ext=cc
16439 ac_cpp='$CXXCPP $CPPFLAGS'
16440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16444 cat >conftest.$ac_ext <<_ACEOF
16445 #line $LINENO "configure"
16446 /* confdefs.h. */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 #include <math.h>
16452 #ifdef HAVE_IEEEFP_H
16453 #include <ieeefp.h>
16454 #endif
16457 main ()
16459 _isinfl(0);
16461 return 0;
16463 _ACEOF
16464 rm -f conftest.$ac_objext
16465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16466 (eval $ac_compile) 2>&5
16467 ac_status=$?
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } &&
16470 { ac_try='test -s conftest.$ac_objext'
16471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472 (eval $ac_try) 2>&5
16473 ac_status=$?
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); }; }; then
16476 glibcxx_cv_func__isinfl_use=yes
16477 else
16478 echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16481 glibcxx_cv_func__isinfl_use=no
16483 rm -f conftest.$ac_objext conftest.$ac_ext
16484 ac_ext=c
16485 ac_cpp='$CPP $CPPFLAGS'
16486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16494 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
16495 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
16497 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
16499 for ac_func in _isinfl
16501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16502 echo "$as_me:$LINENO: checking for $ac_func" >&5
16503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16504 if eval "test \"\${$as_ac_var+set}\" = set"; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16506 else
16507 cat >conftest.$ac_ext <<_ACEOF
16508 #line $LINENO "configure"
16509 /* confdefs.h. */
16510 _ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16514 /* System header to define __stub macros and hopefully few prototypes,
16515 which can conflict with char $ac_func (); below.
16516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16517 <limits.h> exists even on freestanding compilers. */
16518 #ifdef __STDC__
16519 # include <limits.h>
16520 #else
16521 # include <assert.h>
16522 #endif
16523 /* Override any gcc2 internal prototype to avoid an error. */
16524 #ifdef __cplusplus
16525 extern "C"
16527 #endif
16528 /* We use char because int might match the return type of a gcc2
16529 builtin and then its argument prototype would still apply. */
16530 char $ac_func ();
16531 /* The GNU C library defines this for functions which it implements
16532 to always fail with ENOSYS. Some functions are actually named
16533 something starting with __ and the normal name is an alias. */
16534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16535 choke me
16536 #else
16537 char (*f) () = $ac_func;
16538 #endif
16539 #ifdef __cplusplus
16541 #endif
16544 main ()
16546 return f != $ac_func;
16548 return 0;
16550 _ACEOF
16551 rm -f conftest.$ac_objext conftest$ac_exeext
16552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16553 (eval $ac_link) 2>&5
16554 ac_status=$?
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } &&
16557 { ac_try='test -s conftest$ac_exeext'
16558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559 (eval $ac_try) 2>&5
16560 ac_status=$?
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; }; then
16563 eval "$as_ac_var=yes"
16564 else
16565 echo "$as_me: failed program was:" >&5
16566 sed 's/^/| /' conftest.$ac_ext >&5
16568 eval "$as_ac_var=no"
16570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16574 if test `eval echo '${'$as_ac_var'}'` = yes; then
16575 cat >>confdefs.h <<_ACEOF
16576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16577 _ACEOF
16580 done
16587 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
16588 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
16589 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
16590 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16592 else
16596 ac_ext=cc
16597 ac_cpp='$CXXCPP $CPPFLAGS'
16598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16602 cat >conftest.$ac_ext <<_ACEOF
16603 #line $LINENO "configure"
16604 /* confdefs.h. */
16605 _ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h. */
16609 #include <math.h>
16611 main ()
16613 copysignl(0, 0);
16615 return 0;
16617 _ACEOF
16618 rm -f conftest.$ac_objext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16620 (eval $ac_compile) 2>&5
16621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -s conftest.$ac_objext'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; }; then
16630 glibcxx_cv_func_copysignl_use=yes
16631 else
16632 echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16635 glibcxx_cv_func_copysignl_use=no
16637 rm -f conftest.$ac_objext conftest.$ac_ext
16638 ac_ext=c
16639 ac_cpp='$CPP $CPPFLAGS'
16640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16648 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
16649 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
16651 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
16653 for ac_func in copysignl
16655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16656 echo "$as_me:$LINENO: checking for $ac_func" >&5
16657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16658 if eval "test \"\${$as_ac_var+set}\" = set"; then
16659 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 else
16661 cat >conftest.$ac_ext <<_ACEOF
16662 #line $LINENO "configure"
16663 /* confdefs.h. */
16664 _ACEOF
16665 cat confdefs.h >>conftest.$ac_ext
16666 cat >>conftest.$ac_ext <<_ACEOF
16667 /* end confdefs.h. */
16668 /* System header to define __stub macros and hopefully few prototypes,
16669 which can conflict with char $ac_func (); below.
16670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16671 <limits.h> exists even on freestanding compilers. */
16672 #ifdef __STDC__
16673 # include <limits.h>
16674 #else
16675 # include <assert.h>
16676 #endif
16677 /* Override any gcc2 internal prototype to avoid an error. */
16678 #ifdef __cplusplus
16679 extern "C"
16681 #endif
16682 /* We use char because int might match the return type of a gcc2
16683 builtin and then its argument prototype would still apply. */
16684 char $ac_func ();
16685 /* The GNU C library defines this for functions which it implements
16686 to always fail with ENOSYS. Some functions are actually named
16687 something starting with __ and the normal name is an alias. */
16688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16689 choke me
16690 #else
16691 char (*f) () = $ac_func;
16692 #endif
16693 #ifdef __cplusplus
16695 #endif
16698 main ()
16700 return f != $ac_func;
16702 return 0;
16704 _ACEOF
16705 rm -f conftest.$ac_objext conftest$ac_exeext
16706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16707 (eval $ac_link) 2>&5
16708 ac_status=$?
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -s conftest$ac_exeext'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
16717 eval "$as_ac_var=yes"
16718 else
16719 echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16722 eval "$as_ac_var=no"
16724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16728 if test `eval echo '${'$as_ac_var'}'` = yes; then
16729 cat >>confdefs.h <<_ACEOF
16730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16731 _ACEOF
16734 done
16736 else
16738 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
16739 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
16740 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
16741 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
16742 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 else
16747 ac_ext=cc
16748 ac_cpp='$CXXCPP $CPPFLAGS'
16749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16753 cat >conftest.$ac_ext <<_ACEOF
16754 #line $LINENO "configure"
16755 /* confdefs.h. */
16756 _ACEOF
16757 cat confdefs.h >>conftest.$ac_ext
16758 cat >>conftest.$ac_ext <<_ACEOF
16759 /* end confdefs.h. */
16760 #include <math.h>
16762 main ()
16764 _copysignl(0, 0);
16766 return 0;
16768 _ACEOF
16769 rm -f conftest.$ac_objext
16770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16771 (eval $ac_compile) 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } &&
16775 { ac_try='test -s conftest.$ac_objext'
16776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777 (eval $ac_try) 2>&5
16778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; }; then
16781 glibcxx_cv_func__copysignl_use=yes
16782 else
16783 echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16786 glibcxx_cv_func__copysignl_use=no
16788 rm -f conftest.$ac_objext conftest.$ac_ext
16789 ac_ext=c
16790 ac_cpp='$CPP $CPPFLAGS'
16791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16799 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
16800 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
16802 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
16804 for ac_func in _copysignl
16806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16807 echo "$as_me:$LINENO: checking for $ac_func" >&5
16808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16809 if eval "test \"\${$as_ac_var+set}\" = set"; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16811 else
16812 cat >conftest.$ac_ext <<_ACEOF
16813 #line $LINENO "configure"
16814 /* confdefs.h. */
16815 _ACEOF
16816 cat confdefs.h >>conftest.$ac_ext
16817 cat >>conftest.$ac_ext <<_ACEOF
16818 /* end confdefs.h. */
16819 /* System header to define __stub macros and hopefully few prototypes,
16820 which can conflict with char $ac_func (); below.
16821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16822 <limits.h> exists even on freestanding compilers. */
16823 #ifdef __STDC__
16824 # include <limits.h>
16825 #else
16826 # include <assert.h>
16827 #endif
16828 /* Override any gcc2 internal prototype to avoid an error. */
16829 #ifdef __cplusplus
16830 extern "C"
16832 #endif
16833 /* We use char because int might match the return type of a gcc2
16834 builtin and then its argument prototype would still apply. */
16835 char $ac_func ();
16836 /* The GNU C library defines this for functions which it implements
16837 to always fail with ENOSYS. Some functions are actually named
16838 something starting with __ and the normal name is an alias. */
16839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16840 choke me
16841 #else
16842 char (*f) () = $ac_func;
16843 #endif
16844 #ifdef __cplusplus
16846 #endif
16849 main ()
16851 return f != $ac_func;
16853 return 0;
16855 _ACEOF
16856 rm -f conftest.$ac_objext conftest$ac_exeext
16857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16858 (eval $ac_link) 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } &&
16862 { ac_try='test -s conftest$ac_exeext'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 eval "$as_ac_var=yes"
16869 else
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16873 eval "$as_ac_var=no"
16875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16879 if test `eval echo '${'$as_ac_var'}'` = yes; then
16880 cat >>confdefs.h <<_ACEOF
16881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16882 _ACEOF
16885 done
16892 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
16893 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
16894 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
16895 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
16896 echo $ECHO_N "(cached) $ECHO_C" >&6
16897 else
16901 ac_ext=cc
16902 ac_cpp='$CXXCPP $CPPFLAGS'
16903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16907 cat >conftest.$ac_ext <<_ACEOF
16908 #line $LINENO "configure"
16909 /* confdefs.h. */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16914 #include <math.h>
16916 main ()
16918 atan2l(0, 0);
16920 return 0;
16922 _ACEOF
16923 rm -f conftest.$ac_objext
16924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16925 (eval $ac_compile) 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } &&
16929 { ac_try='test -s conftest.$ac_objext'
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16932 ac_status=$?
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; }; then
16935 glibcxx_cv_func_atan2l_use=yes
16936 else
16937 echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16940 glibcxx_cv_func_atan2l_use=no
16942 rm -f conftest.$ac_objext conftest.$ac_ext
16943 ac_ext=c
16944 ac_cpp='$CPP $CPPFLAGS'
16945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16953 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
16954 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
16956 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
16958 for ac_func in atan2l
16960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16961 echo "$as_me:$LINENO: checking for $ac_func" >&5
16962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16963 if eval "test \"\${$as_ac_var+set}\" = set"; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 else
16966 cat >conftest.$ac_ext <<_ACEOF
16967 #line $LINENO "configure"
16968 /* confdefs.h. */
16969 _ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h. */
16973 /* System header to define __stub macros and hopefully few prototypes,
16974 which can conflict with char $ac_func (); below.
16975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16976 <limits.h> exists even on freestanding compilers. */
16977 #ifdef __STDC__
16978 # include <limits.h>
16979 #else
16980 # include <assert.h>
16981 #endif
16982 /* Override any gcc2 internal prototype to avoid an error. */
16983 #ifdef __cplusplus
16984 extern "C"
16986 #endif
16987 /* We use char because int might match the return type of a gcc2
16988 builtin and then its argument prototype would still apply. */
16989 char $ac_func ();
16990 /* The GNU C library defines this for functions which it implements
16991 to always fail with ENOSYS. Some functions are actually named
16992 something starting with __ and the normal name is an alias. */
16993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16994 choke me
16995 #else
16996 char (*f) () = $ac_func;
16997 #endif
16998 #ifdef __cplusplus
17000 #endif
17003 main ()
17005 return f != $ac_func;
17007 return 0;
17009 _ACEOF
17010 rm -f conftest.$ac_objext conftest$ac_exeext
17011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17012 (eval $ac_link) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try='test -s conftest$ac_exeext'
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 eval "$as_ac_var=yes"
17023 else
17024 echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17027 eval "$as_ac_var=no"
17029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17033 if test `eval echo '${'$as_ac_var'}'` = yes; then
17034 cat >>confdefs.h <<_ACEOF
17035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17036 _ACEOF
17039 done
17041 else
17043 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
17044 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
17045 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
17046 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17048 else
17052 ac_ext=cc
17053 ac_cpp='$CXXCPP $CPPFLAGS'
17054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17058 cat >conftest.$ac_ext <<_ACEOF
17059 #line $LINENO "configure"
17060 /* confdefs.h. */
17061 _ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h. */
17065 #include <math.h>
17067 main ()
17069 _atan2l(0, 0);
17071 return 0;
17073 _ACEOF
17074 rm -f conftest.$ac_objext
17075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17076 (eval $ac_compile) 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
17080 { ac_try='test -s conftest.$ac_objext'
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; }; then
17086 glibcxx_cv_func__atan2l_use=yes
17087 else
17088 echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17091 glibcxx_cv_func__atan2l_use=no
17093 rm -f conftest.$ac_objext conftest.$ac_ext
17094 ac_ext=c
17095 ac_cpp='$CPP $CPPFLAGS'
17096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17104 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
17105 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
17107 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
17109 for ac_func in _atan2l
17111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17112 echo "$as_me:$LINENO: checking for $ac_func" >&5
17113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17114 if eval "test \"\${$as_ac_var+set}\" = set"; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 else
17117 cat >conftest.$ac_ext <<_ACEOF
17118 #line $LINENO "configure"
17119 /* confdefs.h. */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17124 /* System header to define __stub macros and hopefully few prototypes,
17125 which can conflict with char $ac_func (); below.
17126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17127 <limits.h> exists even on freestanding compilers. */
17128 #ifdef __STDC__
17129 # include <limits.h>
17130 #else
17131 # include <assert.h>
17132 #endif
17133 /* Override any gcc2 internal prototype to avoid an error. */
17134 #ifdef __cplusplus
17135 extern "C"
17137 #endif
17138 /* We use char because int might match the return type of a gcc2
17139 builtin and then its argument prototype would still apply. */
17140 char $ac_func ();
17141 /* The GNU C library defines this for functions which it implements
17142 to always fail with ENOSYS. Some functions are actually named
17143 something starting with __ and the normal name is an alias. */
17144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17145 choke me
17146 #else
17147 char (*f) () = $ac_func;
17148 #endif
17149 #ifdef __cplusplus
17151 #endif
17154 main ()
17156 return f != $ac_func;
17158 return 0;
17160 _ACEOF
17161 rm -f conftest.$ac_objext conftest$ac_exeext
17162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17163 (eval $ac_link) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } &&
17167 { ac_try='test -s conftest$ac_exeext'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 eval "$as_ac_var=yes"
17174 else
17175 echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17178 eval "$as_ac_var=no"
17180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17184 if test `eval echo '${'$as_ac_var'}'` = yes; then
17185 cat >>confdefs.h <<_ACEOF
17186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17187 _ACEOF
17190 done
17197 echo "$as_me:$LINENO: checking for expl declaration" >&5
17198 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
17199 if test x${glibcxx_cv_func_expl_use+set} != xset; then
17200 if test "${glibcxx_cv_func_expl_use+set}" = set; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17202 else
17206 ac_ext=cc
17207 ac_cpp='$CXXCPP $CPPFLAGS'
17208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17212 cat >conftest.$ac_ext <<_ACEOF
17213 #line $LINENO "configure"
17214 /* confdefs.h. */
17215 _ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17219 #include <math.h>
17220 #ifdef HAVE_IEEEFP_H
17221 #include <ieeefp.h>
17222 #endif
17225 main ()
17227 expl(0);
17229 return 0;
17231 _ACEOF
17232 rm -f conftest.$ac_objext
17233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17234 (eval $ac_compile) 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } &&
17238 { ac_try='test -s conftest.$ac_objext'
17239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240 (eval $ac_try) 2>&5
17241 ac_status=$?
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; }; then
17244 glibcxx_cv_func_expl_use=yes
17245 else
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 glibcxx_cv_func_expl_use=no
17251 rm -f conftest.$ac_objext conftest.$ac_ext
17252 ac_ext=c
17253 ac_cpp='$CPP $CPPFLAGS'
17254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17262 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
17263 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
17265 if test x$glibcxx_cv_func_expl_use = x"yes"; then
17267 for ac_func in expl
17269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17270 echo "$as_me:$LINENO: checking for $ac_func" >&5
17271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17272 if eval "test \"\${$as_ac_var+set}\" = set"; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17274 else
17275 cat >conftest.$ac_ext <<_ACEOF
17276 #line $LINENO "configure"
17277 /* confdefs.h. */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17282 /* System header to define __stub macros and hopefully few prototypes,
17283 which can conflict with char $ac_func (); below.
17284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17285 <limits.h> exists even on freestanding compilers. */
17286 #ifdef __STDC__
17287 # include <limits.h>
17288 #else
17289 # include <assert.h>
17290 #endif
17291 /* Override any gcc2 internal prototype to avoid an error. */
17292 #ifdef __cplusplus
17293 extern "C"
17295 #endif
17296 /* We use char because int might match the return type of a gcc2
17297 builtin and then its argument prototype would still apply. */
17298 char $ac_func ();
17299 /* The GNU C library defines this for functions which it implements
17300 to always fail with ENOSYS. Some functions are actually named
17301 something starting with __ and the normal name is an alias. */
17302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17303 choke me
17304 #else
17305 char (*f) () = $ac_func;
17306 #endif
17307 #ifdef __cplusplus
17309 #endif
17312 main ()
17314 return f != $ac_func;
17316 return 0;
17318 _ACEOF
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17321 (eval $ac_link) 2>&5
17322 ac_status=$?
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try='test -s conftest$ac_exeext'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17328 ac_status=$?
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; }; then
17331 eval "$as_ac_var=yes"
17332 else
17333 echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17336 eval "$as_ac_var=no"
17338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17342 if test `eval echo '${'$as_ac_var'}'` = yes; then
17343 cat >>confdefs.h <<_ACEOF
17344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17345 _ACEOF
17348 done
17350 else
17352 echo "$as_me:$LINENO: checking for _expl declaration" >&5
17353 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
17354 if test x${glibcxx_cv_func__expl_use+set} != xset; then
17355 if test "${glibcxx_cv_func__expl_use+set}" = set; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17357 else
17361 ac_ext=cc
17362 ac_cpp='$CXXCPP $CPPFLAGS'
17363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17367 cat >conftest.$ac_ext <<_ACEOF
17368 #line $LINENO "configure"
17369 /* confdefs.h. */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 #include <math.h>
17375 #ifdef HAVE_IEEEFP_H
17376 #include <ieeefp.h>
17377 #endif
17380 main ()
17382 _expl(0);
17384 return 0;
17386 _ACEOF
17387 rm -f conftest.$ac_objext
17388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17389 (eval $ac_compile) 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
17393 { ac_try='test -s conftest.$ac_objext'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 glibcxx_cv_func__expl_use=yes
17400 else
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17404 glibcxx_cv_func__expl_use=no
17406 rm -f conftest.$ac_objext conftest.$ac_ext
17407 ac_ext=c
17408 ac_cpp='$CPP $CPPFLAGS'
17409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17417 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
17418 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
17420 if test x$glibcxx_cv_func__expl_use = x"yes"; then
17422 for ac_func in _expl
17424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17425 echo "$as_me:$LINENO: checking for $ac_func" >&5
17426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17427 if eval "test \"\${$as_ac_var+set}\" = set"; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 else
17430 cat >conftest.$ac_ext <<_ACEOF
17431 #line $LINENO "configure"
17432 /* confdefs.h. */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17437 /* System header to define __stub macros and hopefully few prototypes,
17438 which can conflict with char $ac_func (); below.
17439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17440 <limits.h> exists even on freestanding compilers. */
17441 #ifdef __STDC__
17442 # include <limits.h>
17443 #else
17444 # include <assert.h>
17445 #endif
17446 /* Override any gcc2 internal prototype to avoid an error. */
17447 #ifdef __cplusplus
17448 extern "C"
17450 #endif
17451 /* We use char because int might match the return type of a gcc2
17452 builtin and then its argument prototype would still apply. */
17453 char $ac_func ();
17454 /* The GNU C library defines this for functions which it implements
17455 to always fail with ENOSYS. Some functions are actually named
17456 something starting with __ and the normal name is an alias. */
17457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17458 choke me
17459 #else
17460 char (*f) () = $ac_func;
17461 #endif
17462 #ifdef __cplusplus
17464 #endif
17467 main ()
17469 return f != $ac_func;
17471 return 0;
17473 _ACEOF
17474 rm -f conftest.$ac_objext conftest$ac_exeext
17475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17476 (eval $ac_link) 2>&5
17477 ac_status=$?
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try='test -s conftest$ac_exeext'
17481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17482 (eval $ac_try) 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; }; then
17486 eval "$as_ac_var=yes"
17487 else
17488 echo "$as_me: failed program was:" >&5
17489 sed 's/^/| /' conftest.$ac_ext >&5
17491 eval "$as_ac_var=no"
17493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17497 if test `eval echo '${'$as_ac_var'}'` = yes; then
17498 cat >>confdefs.h <<_ACEOF
17499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17500 _ACEOF
17503 done
17510 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
17511 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
17512 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
17513 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
17514 echo $ECHO_N "(cached) $ECHO_C" >&6
17515 else
17519 ac_ext=cc
17520 ac_cpp='$CXXCPP $CPPFLAGS'
17521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17525 cat >conftest.$ac_ext <<_ACEOF
17526 #line $LINENO "configure"
17527 /* confdefs.h. */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 #include <math.h>
17533 #ifdef HAVE_IEEEFP_H
17534 #include <ieeefp.h>
17535 #endif
17538 main ()
17540 fabsl(0);
17542 return 0;
17544 _ACEOF
17545 rm -f conftest.$ac_objext
17546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17547 (eval $ac_compile) 2>&5
17548 ac_status=$?
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
17551 { ac_try='test -s conftest.$ac_objext'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; }; then
17557 glibcxx_cv_func_fabsl_use=yes
17558 else
17559 echo "$as_me: failed program was:" >&5
17560 sed 's/^/| /' conftest.$ac_ext >&5
17562 glibcxx_cv_func_fabsl_use=no
17564 rm -f conftest.$ac_objext conftest.$ac_ext
17565 ac_ext=c
17566 ac_cpp='$CPP $CPPFLAGS'
17567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17575 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
17576 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
17578 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
17580 for ac_func in fabsl
17582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17583 echo "$as_me:$LINENO: checking for $ac_func" >&5
17584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17585 if eval "test \"\${$as_ac_var+set}\" = set"; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 else
17588 cat >conftest.$ac_ext <<_ACEOF
17589 #line $LINENO "configure"
17590 /* confdefs.h. */
17591 _ACEOF
17592 cat confdefs.h >>conftest.$ac_ext
17593 cat >>conftest.$ac_ext <<_ACEOF
17594 /* end confdefs.h. */
17595 /* System header to define __stub macros and hopefully few prototypes,
17596 which can conflict with char $ac_func (); below.
17597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17598 <limits.h> exists even on freestanding compilers. */
17599 #ifdef __STDC__
17600 # include <limits.h>
17601 #else
17602 # include <assert.h>
17603 #endif
17604 /* Override any gcc2 internal prototype to avoid an error. */
17605 #ifdef __cplusplus
17606 extern "C"
17608 #endif
17609 /* We use char because int might match the return type of a gcc2
17610 builtin and then its argument prototype would still apply. */
17611 char $ac_func ();
17612 /* The GNU C library defines this for functions which it implements
17613 to always fail with ENOSYS. Some functions are actually named
17614 something starting with __ and the normal name is an alias. */
17615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17616 choke me
17617 #else
17618 char (*f) () = $ac_func;
17619 #endif
17620 #ifdef __cplusplus
17622 #endif
17625 main ()
17627 return f != $ac_func;
17629 return 0;
17631 _ACEOF
17632 rm -f conftest.$ac_objext conftest$ac_exeext
17633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17634 (eval $ac_link) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
17638 { ac_try='test -s conftest$ac_exeext'
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 eval "$as_ac_var=yes"
17645 else
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 eval "$as_ac_var=no"
17651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17655 if test `eval echo '${'$as_ac_var'}'` = yes; then
17656 cat >>confdefs.h <<_ACEOF
17657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17658 _ACEOF
17661 done
17663 else
17665 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
17666 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
17667 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
17668 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17670 else
17674 ac_ext=cc
17675 ac_cpp='$CXXCPP $CPPFLAGS'
17676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17680 cat >conftest.$ac_ext <<_ACEOF
17681 #line $LINENO "configure"
17682 /* confdefs.h. */
17683 _ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 #include <math.h>
17688 #ifdef HAVE_IEEEFP_H
17689 #include <ieeefp.h>
17690 #endif
17693 main ()
17695 _fabsl(0);
17697 return 0;
17699 _ACEOF
17700 rm -f conftest.$ac_objext
17701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17702 (eval $ac_compile) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } &&
17706 { ac_try='test -s conftest.$ac_objext'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 glibcxx_cv_func__fabsl_use=yes
17713 else
17714 echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17717 glibcxx_cv_func__fabsl_use=no
17719 rm -f conftest.$ac_objext conftest.$ac_ext
17720 ac_ext=c
17721 ac_cpp='$CPP $CPPFLAGS'
17722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17730 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
17731 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
17733 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
17735 for ac_func in _fabsl
17737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17738 echo "$as_me:$LINENO: checking for $ac_func" >&5
17739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17740 if eval "test \"\${$as_ac_var+set}\" = set"; then
17741 echo $ECHO_N "(cached) $ECHO_C" >&6
17742 else
17743 cat >conftest.$ac_ext <<_ACEOF
17744 #line $LINENO "configure"
17745 /* confdefs.h. */
17746 _ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17750 /* System header to define __stub macros and hopefully few prototypes,
17751 which can conflict with char $ac_func (); below.
17752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17753 <limits.h> exists even on freestanding compilers. */
17754 #ifdef __STDC__
17755 # include <limits.h>
17756 #else
17757 # include <assert.h>
17758 #endif
17759 /* Override any gcc2 internal prototype to avoid an error. */
17760 #ifdef __cplusplus
17761 extern "C"
17763 #endif
17764 /* We use char because int might match the return type of a gcc2
17765 builtin and then its argument prototype would still apply. */
17766 char $ac_func ();
17767 /* The GNU C library defines this for functions which it implements
17768 to always fail with ENOSYS. Some functions are actually named
17769 something starting with __ and the normal name is an alias. */
17770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17771 choke me
17772 #else
17773 char (*f) () = $ac_func;
17774 #endif
17775 #ifdef __cplusplus
17777 #endif
17780 main ()
17782 return f != $ac_func;
17784 return 0;
17786 _ACEOF
17787 rm -f conftest.$ac_objext conftest$ac_exeext
17788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17789 (eval $ac_link) 2>&5
17790 ac_status=$?
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try='test -s conftest$ac_exeext'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799 eval "$as_ac_var=yes"
17800 else
17801 echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17804 eval "$as_ac_var=no"
17806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17810 if test `eval echo '${'$as_ac_var'}'` = yes; then
17811 cat >>confdefs.h <<_ACEOF
17812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17813 _ACEOF
17816 done
17823 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
17824 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
17825 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
17826 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
17827 echo $ECHO_N "(cached) $ECHO_C" >&6
17828 else
17832 ac_ext=cc
17833 ac_cpp='$CXXCPP $CPPFLAGS'
17834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17838 cat >conftest.$ac_ext <<_ACEOF
17839 #line $LINENO "configure"
17840 /* confdefs.h. */
17841 _ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h. */
17845 #include <math.h>
17847 main ()
17849 fmodl(0, 0);
17851 return 0;
17853 _ACEOF
17854 rm -f conftest.$ac_objext
17855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17856 (eval $ac_compile) 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } &&
17860 { ac_try='test -s conftest.$ac_objext'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17863 ac_status=$?
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17866 glibcxx_cv_func_fmodl_use=yes
17867 else
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17871 glibcxx_cv_func_fmodl_use=no
17873 rm -f conftest.$ac_objext conftest.$ac_ext
17874 ac_ext=c
17875 ac_cpp='$CPP $CPPFLAGS'
17876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17884 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
17885 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
17887 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
17889 for ac_func in fmodl
17891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17892 echo "$as_me:$LINENO: checking for $ac_func" >&5
17893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17894 if eval "test \"\${$as_ac_var+set}\" = set"; then
17895 echo $ECHO_N "(cached) $ECHO_C" >&6
17896 else
17897 cat >conftest.$ac_ext <<_ACEOF
17898 #line $LINENO "configure"
17899 /* confdefs.h. */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 /* System header to define __stub macros and hopefully few prototypes,
17905 which can conflict with char $ac_func (); below.
17906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17907 <limits.h> exists even on freestanding compilers. */
17908 #ifdef __STDC__
17909 # include <limits.h>
17910 #else
17911 # include <assert.h>
17912 #endif
17913 /* Override any gcc2 internal prototype to avoid an error. */
17914 #ifdef __cplusplus
17915 extern "C"
17917 #endif
17918 /* We use char because int might match the return type of a gcc2
17919 builtin and then its argument prototype would still apply. */
17920 char $ac_func ();
17921 /* The GNU C library defines this for functions which it implements
17922 to always fail with ENOSYS. Some functions are actually named
17923 something starting with __ and the normal name is an alias. */
17924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17925 choke me
17926 #else
17927 char (*f) () = $ac_func;
17928 #endif
17929 #ifdef __cplusplus
17931 #endif
17934 main ()
17936 return f != $ac_func;
17938 return 0;
17940 _ACEOF
17941 rm -f conftest.$ac_objext conftest$ac_exeext
17942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17943 (eval $ac_link) 2>&5
17944 ac_status=$?
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } &&
17947 { ac_try='test -s conftest$ac_exeext'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
17953 eval "$as_ac_var=yes"
17954 else
17955 echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17958 eval "$as_ac_var=no"
17960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17964 if test `eval echo '${'$as_ac_var'}'` = yes; then
17965 cat >>confdefs.h <<_ACEOF
17966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17967 _ACEOF
17970 done
17972 else
17974 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
17975 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
17976 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
17977 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 else
17983 ac_ext=cc
17984 ac_cpp='$CXXCPP $CPPFLAGS'
17985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17989 cat >conftest.$ac_ext <<_ACEOF
17990 #line $LINENO "configure"
17991 /* confdefs.h. */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 #include <math.h>
17998 main ()
18000 _fmodl(0, 0);
18002 return 0;
18004 _ACEOF
18005 rm -f conftest.$ac_objext
18006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18007 (eval $ac_compile) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try='test -s conftest.$ac_objext'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 glibcxx_cv_func__fmodl_use=yes
18018 else
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 glibcxx_cv_func__fmodl_use=no
18024 rm -f conftest.$ac_objext conftest.$ac_ext
18025 ac_ext=c
18026 ac_cpp='$CPP $CPPFLAGS'
18027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18035 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
18036 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
18038 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
18040 for ac_func in _fmodl
18042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18043 echo "$as_me:$LINENO: checking for $ac_func" >&5
18044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18045 if eval "test \"\${$as_ac_var+set}\" = set"; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048 cat >conftest.$ac_ext <<_ACEOF
18049 #line $LINENO "configure"
18050 /* confdefs.h. */
18051 _ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18055 /* System header to define __stub macros and hopefully few prototypes,
18056 which can conflict with char $ac_func (); below.
18057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18058 <limits.h> exists even on freestanding compilers. */
18059 #ifdef __STDC__
18060 # include <limits.h>
18061 #else
18062 # include <assert.h>
18063 #endif
18064 /* Override any gcc2 internal prototype to avoid an error. */
18065 #ifdef __cplusplus
18066 extern "C"
18068 #endif
18069 /* We use char because int might match the return type of a gcc2
18070 builtin and then its argument prototype would still apply. */
18071 char $ac_func ();
18072 /* The GNU C library defines this for functions which it implements
18073 to always fail with ENOSYS. Some functions are actually named
18074 something starting with __ and the normal name is an alias. */
18075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18076 choke me
18077 #else
18078 char (*f) () = $ac_func;
18079 #endif
18080 #ifdef __cplusplus
18082 #endif
18085 main ()
18087 return f != $ac_func;
18089 return 0;
18091 _ACEOF
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18094 (eval $ac_link) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } &&
18098 { ac_try='test -s conftest$ac_exeext'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18101 ac_status=$?
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 eval "$as_ac_var=yes"
18105 else
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 eval "$as_ac_var=no"
18111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18115 if test `eval echo '${'$as_ac_var'}'` = yes; then
18116 cat >>confdefs.h <<_ACEOF
18117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18118 _ACEOF
18121 done
18128 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
18129 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
18130 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
18131 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18133 else
18137 ac_ext=cc
18138 ac_cpp='$CXXCPP $CPPFLAGS'
18139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18143 cat >conftest.$ac_ext <<_ACEOF
18144 #line $LINENO "configure"
18145 /* confdefs.h. */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150 #include <math.h>
18152 main ()
18154 frexpl(0, 0);
18156 return 0;
18158 _ACEOF
18159 rm -f conftest.$ac_objext
18160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18161 (eval $ac_compile) 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -s conftest.$ac_objext'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; }; then
18171 glibcxx_cv_func_frexpl_use=yes
18172 else
18173 echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18176 glibcxx_cv_func_frexpl_use=no
18178 rm -f conftest.$ac_objext conftest.$ac_ext
18179 ac_ext=c
18180 ac_cpp='$CPP $CPPFLAGS'
18181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18189 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
18190 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
18192 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
18194 for ac_func in frexpl
18196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18197 echo "$as_me:$LINENO: checking for $ac_func" >&5
18198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18199 if eval "test \"\${$as_ac_var+set}\" = set"; then
18200 echo $ECHO_N "(cached) $ECHO_C" >&6
18201 else
18202 cat >conftest.$ac_ext <<_ACEOF
18203 #line $LINENO "configure"
18204 /* confdefs.h. */
18205 _ACEOF
18206 cat confdefs.h >>conftest.$ac_ext
18207 cat >>conftest.$ac_ext <<_ACEOF
18208 /* end confdefs.h. */
18209 /* System header to define __stub macros and hopefully few prototypes,
18210 which can conflict with char $ac_func (); below.
18211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18212 <limits.h> exists even on freestanding compilers. */
18213 #ifdef __STDC__
18214 # include <limits.h>
18215 #else
18216 # include <assert.h>
18217 #endif
18218 /* Override any gcc2 internal prototype to avoid an error. */
18219 #ifdef __cplusplus
18220 extern "C"
18222 #endif
18223 /* We use char because int might match the return type of a gcc2
18224 builtin and then its argument prototype would still apply. */
18225 char $ac_func ();
18226 /* The GNU C library defines this for functions which it implements
18227 to always fail with ENOSYS. Some functions are actually named
18228 something starting with __ and the normal name is an alias. */
18229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18230 choke me
18231 #else
18232 char (*f) () = $ac_func;
18233 #endif
18234 #ifdef __cplusplus
18236 #endif
18239 main ()
18241 return f != $ac_func;
18243 return 0;
18245 _ACEOF
18246 rm -f conftest.$ac_objext conftest$ac_exeext
18247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18248 (eval $ac_link) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try='test -s conftest$ac_exeext'
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; }; then
18258 eval "$as_ac_var=yes"
18259 else
18260 echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18263 eval "$as_ac_var=no"
18265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18269 if test `eval echo '${'$as_ac_var'}'` = yes; then
18270 cat >>confdefs.h <<_ACEOF
18271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18272 _ACEOF
18275 done
18277 else
18279 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
18280 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
18281 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
18282 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
18283 echo $ECHO_N "(cached) $ECHO_C" >&6
18284 else
18288 ac_ext=cc
18289 ac_cpp='$CXXCPP $CPPFLAGS'
18290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18294 cat >conftest.$ac_ext <<_ACEOF
18295 #line $LINENO "configure"
18296 /* confdefs.h. */
18297 _ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h. */
18301 #include <math.h>
18303 main ()
18305 _frexpl(0, 0);
18307 return 0;
18309 _ACEOF
18310 rm -f conftest.$ac_objext
18311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18312 (eval $ac_compile) 2>&5
18313 ac_status=$?
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } &&
18316 { ac_try='test -s conftest.$ac_objext'
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18322 glibcxx_cv_func__frexpl_use=yes
18323 else
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18327 glibcxx_cv_func__frexpl_use=no
18329 rm -f conftest.$ac_objext conftest.$ac_ext
18330 ac_ext=c
18331 ac_cpp='$CPP $CPPFLAGS'
18332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18340 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
18341 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
18343 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
18345 for ac_func in _frexpl
18347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18348 echo "$as_me:$LINENO: checking for $ac_func" >&5
18349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18350 if eval "test \"\${$as_ac_var+set}\" = set"; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18352 else
18353 cat >conftest.$ac_ext <<_ACEOF
18354 #line $LINENO "configure"
18355 /* confdefs.h. */
18356 _ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h. */
18360 /* System header to define __stub macros and hopefully few prototypes,
18361 which can conflict with char $ac_func (); below.
18362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18363 <limits.h> exists even on freestanding compilers. */
18364 #ifdef __STDC__
18365 # include <limits.h>
18366 #else
18367 # include <assert.h>
18368 #endif
18369 /* Override any gcc2 internal prototype to avoid an error. */
18370 #ifdef __cplusplus
18371 extern "C"
18373 #endif
18374 /* We use char because int might match the return type of a gcc2
18375 builtin and then its argument prototype would still apply. */
18376 char $ac_func ();
18377 /* The GNU C library defines this for functions which it implements
18378 to always fail with ENOSYS. Some functions are actually named
18379 something starting with __ and the normal name is an alias. */
18380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18381 choke me
18382 #else
18383 char (*f) () = $ac_func;
18384 #endif
18385 #ifdef __cplusplus
18387 #endif
18390 main ()
18392 return f != $ac_func;
18394 return 0;
18396 _ACEOF
18397 rm -f conftest.$ac_objext conftest$ac_exeext
18398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18399 (eval $ac_link) 2>&5
18400 ac_status=$?
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } &&
18403 { ac_try='test -s conftest$ac_exeext'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 eval "$as_ac_var=yes"
18410 else
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 eval "$as_ac_var=no"
18416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18420 if test `eval echo '${'$as_ac_var'}'` = yes; then
18421 cat >>confdefs.h <<_ACEOF
18422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18423 _ACEOF
18426 done
18433 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
18434 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
18435 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
18436 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18438 else
18442 ac_ext=cc
18443 ac_cpp='$CXXCPP $CPPFLAGS'
18444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18448 cat >conftest.$ac_ext <<_ACEOF
18449 #line $LINENO "configure"
18450 /* confdefs.h. */
18451 _ACEOF
18452 cat confdefs.h >>conftest.$ac_ext
18453 cat >>conftest.$ac_ext <<_ACEOF
18454 /* end confdefs.h. */
18455 #include <math.h>
18457 main ()
18459 hypotl(0, 0);
18461 return 0;
18463 _ACEOF
18464 rm -f conftest.$ac_objext
18465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18466 (eval $ac_compile) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
18470 { ac_try='test -s conftest.$ac_objext'
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 glibcxx_cv_func_hypotl_use=yes
18477 else
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481 glibcxx_cv_func_hypotl_use=no
18483 rm -f conftest.$ac_objext conftest.$ac_ext
18484 ac_ext=c
18485 ac_cpp='$CPP $CPPFLAGS'
18486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18494 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
18495 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
18497 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
18499 for ac_func in hypotl
18501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18502 echo "$as_me:$LINENO: checking for $ac_func" >&5
18503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18504 if eval "test \"\${$as_ac_var+set}\" = set"; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507 cat >conftest.$ac_ext <<_ACEOF
18508 #line $LINENO "configure"
18509 /* confdefs.h. */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 /* System header to define __stub macros and hopefully few prototypes,
18515 which can conflict with char $ac_func (); below.
18516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18517 <limits.h> exists even on freestanding compilers. */
18518 #ifdef __STDC__
18519 # include <limits.h>
18520 #else
18521 # include <assert.h>
18522 #endif
18523 /* Override any gcc2 internal prototype to avoid an error. */
18524 #ifdef __cplusplus
18525 extern "C"
18527 #endif
18528 /* We use char because int might match the return type of a gcc2
18529 builtin and then its argument prototype would still apply. */
18530 char $ac_func ();
18531 /* The GNU C library defines this for functions which it implements
18532 to always fail with ENOSYS. Some functions are actually named
18533 something starting with __ and the normal name is an alias. */
18534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18535 choke me
18536 #else
18537 char (*f) () = $ac_func;
18538 #endif
18539 #ifdef __cplusplus
18541 #endif
18544 main ()
18546 return f != $ac_func;
18548 return 0;
18550 _ACEOF
18551 rm -f conftest.$ac_objext conftest$ac_exeext
18552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18553 (eval $ac_link) 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try='test -s conftest$ac_exeext'
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 eval "$as_ac_var=yes"
18564 else
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18568 eval "$as_ac_var=no"
18570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18574 if test `eval echo '${'$as_ac_var'}'` = yes; then
18575 cat >>confdefs.h <<_ACEOF
18576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18577 _ACEOF
18580 done
18582 else
18584 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
18585 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
18586 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
18587 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 else
18593 ac_ext=cc
18594 ac_cpp='$CXXCPP $CPPFLAGS'
18595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18599 cat >conftest.$ac_ext <<_ACEOF
18600 #line $LINENO "configure"
18601 /* confdefs.h. */
18602 _ACEOF
18603 cat confdefs.h >>conftest.$ac_ext
18604 cat >>conftest.$ac_ext <<_ACEOF
18605 /* end confdefs.h. */
18606 #include <math.h>
18608 main ()
18610 _hypotl(0, 0);
18612 return 0;
18614 _ACEOF
18615 rm -f conftest.$ac_objext
18616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18617 (eval $ac_compile) 2>&5
18618 ac_status=$?
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } &&
18621 { ac_try='test -s conftest.$ac_objext'
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; }; then
18627 glibcxx_cv_func__hypotl_use=yes
18628 else
18629 echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18632 glibcxx_cv_func__hypotl_use=no
18634 rm -f conftest.$ac_objext conftest.$ac_ext
18635 ac_ext=c
18636 ac_cpp='$CPP $CPPFLAGS'
18637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18645 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
18646 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
18648 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
18650 for ac_func in _hypotl
18652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18653 echo "$as_me:$LINENO: checking for $ac_func" >&5
18654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18655 if eval "test \"\${$as_ac_var+set}\" = set"; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 else
18658 cat >conftest.$ac_ext <<_ACEOF
18659 #line $LINENO "configure"
18660 /* confdefs.h. */
18661 _ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18665 /* System header to define __stub macros and hopefully few prototypes,
18666 which can conflict with char $ac_func (); below.
18667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18668 <limits.h> exists even on freestanding compilers. */
18669 #ifdef __STDC__
18670 # include <limits.h>
18671 #else
18672 # include <assert.h>
18673 #endif
18674 /* Override any gcc2 internal prototype to avoid an error. */
18675 #ifdef __cplusplus
18676 extern "C"
18678 #endif
18679 /* We use char because int might match the return type of a gcc2
18680 builtin and then its argument prototype would still apply. */
18681 char $ac_func ();
18682 /* The GNU C library defines this for functions which it implements
18683 to always fail with ENOSYS. Some functions are actually named
18684 something starting with __ and the normal name is an alias. */
18685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18686 choke me
18687 #else
18688 char (*f) () = $ac_func;
18689 #endif
18690 #ifdef __cplusplus
18692 #endif
18695 main ()
18697 return f != $ac_func;
18699 return 0;
18701 _ACEOF
18702 rm -f conftest.$ac_objext conftest$ac_exeext
18703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18704 (eval $ac_link) 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } &&
18708 { ac_try='test -s conftest$ac_exeext'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18714 eval "$as_ac_var=yes"
18715 else
18716 echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18719 eval "$as_ac_var=no"
18721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18725 if test `eval echo '${'$as_ac_var'}'` = yes; then
18726 cat >>confdefs.h <<_ACEOF
18727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18728 _ACEOF
18731 done
18738 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
18739 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
18740 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
18741 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18743 else
18747 ac_ext=cc
18748 ac_cpp='$CXXCPP $CPPFLAGS'
18749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18753 cat >conftest.$ac_ext <<_ACEOF
18754 #line $LINENO "configure"
18755 /* confdefs.h. */
18756 _ACEOF
18757 cat confdefs.h >>conftest.$ac_ext
18758 cat >>conftest.$ac_ext <<_ACEOF
18759 /* end confdefs.h. */
18760 #include <math.h>
18762 main ()
18764 ldexpl(0, 0);
18766 return 0;
18768 _ACEOF
18769 rm -f conftest.$ac_objext
18770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18771 (eval $ac_compile) 2>&5
18772 ac_status=$?
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } &&
18775 { ac_try='test -s conftest.$ac_objext'
18776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777 (eval $ac_try) 2>&5
18778 ac_status=$?
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); }; }; then
18781 glibcxx_cv_func_ldexpl_use=yes
18782 else
18783 echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18786 glibcxx_cv_func_ldexpl_use=no
18788 rm -f conftest.$ac_objext conftest.$ac_ext
18789 ac_ext=c
18790 ac_cpp='$CPP $CPPFLAGS'
18791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18799 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
18800 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
18802 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
18804 for ac_func in ldexpl
18806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18807 echo "$as_me:$LINENO: checking for $ac_func" >&5
18808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18809 if eval "test \"\${$as_ac_var+set}\" = set"; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18811 else
18812 cat >conftest.$ac_ext <<_ACEOF
18813 #line $LINENO "configure"
18814 /* confdefs.h. */
18815 _ACEOF
18816 cat confdefs.h >>conftest.$ac_ext
18817 cat >>conftest.$ac_ext <<_ACEOF
18818 /* end confdefs.h. */
18819 /* System header to define __stub macros and hopefully few prototypes,
18820 which can conflict with char $ac_func (); below.
18821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18822 <limits.h> exists even on freestanding compilers. */
18823 #ifdef __STDC__
18824 # include <limits.h>
18825 #else
18826 # include <assert.h>
18827 #endif
18828 /* Override any gcc2 internal prototype to avoid an error. */
18829 #ifdef __cplusplus
18830 extern "C"
18832 #endif
18833 /* We use char because int might match the return type of a gcc2
18834 builtin and then its argument prototype would still apply. */
18835 char $ac_func ();
18836 /* The GNU C library defines this for functions which it implements
18837 to always fail with ENOSYS. Some functions are actually named
18838 something starting with __ and the normal name is an alias. */
18839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18840 choke me
18841 #else
18842 char (*f) () = $ac_func;
18843 #endif
18844 #ifdef __cplusplus
18846 #endif
18849 main ()
18851 return f != $ac_func;
18853 return 0;
18855 _ACEOF
18856 rm -f conftest.$ac_objext conftest$ac_exeext
18857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18858 (eval $ac_link) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } &&
18862 { ac_try='test -s conftest$ac_exeext'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868 eval "$as_ac_var=yes"
18869 else
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 eval "$as_ac_var=no"
18875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18879 if test `eval echo '${'$as_ac_var'}'` = yes; then
18880 cat >>confdefs.h <<_ACEOF
18881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18882 _ACEOF
18885 done
18887 else
18889 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
18890 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
18891 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
18892 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18894 else
18898 ac_ext=cc
18899 ac_cpp='$CXXCPP $CPPFLAGS'
18900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18904 cat >conftest.$ac_ext <<_ACEOF
18905 #line $LINENO "configure"
18906 /* confdefs.h. */
18907 _ACEOF
18908 cat confdefs.h >>conftest.$ac_ext
18909 cat >>conftest.$ac_ext <<_ACEOF
18910 /* end confdefs.h. */
18911 #include <math.h>
18913 main ()
18915 _ldexpl(0, 0);
18917 return 0;
18919 _ACEOF
18920 rm -f conftest.$ac_objext
18921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18922 (eval $ac_compile) 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); } &&
18926 { ac_try='test -s conftest.$ac_objext'
18927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18928 (eval $ac_try) 2>&5
18929 ac_status=$?
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; }; then
18932 glibcxx_cv_func__ldexpl_use=yes
18933 else
18934 echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18937 glibcxx_cv_func__ldexpl_use=no
18939 rm -f conftest.$ac_objext conftest.$ac_ext
18940 ac_ext=c
18941 ac_cpp='$CPP $CPPFLAGS'
18942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18950 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
18951 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
18953 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
18955 for ac_func in _ldexpl
18957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18958 echo "$as_me:$LINENO: checking for $ac_func" >&5
18959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18960 if eval "test \"\${$as_ac_var+set}\" = set"; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18962 else
18963 cat >conftest.$ac_ext <<_ACEOF
18964 #line $LINENO "configure"
18965 /* confdefs.h. */
18966 _ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h. */
18970 /* System header to define __stub macros and hopefully few prototypes,
18971 which can conflict with char $ac_func (); below.
18972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18973 <limits.h> exists even on freestanding compilers. */
18974 #ifdef __STDC__
18975 # include <limits.h>
18976 #else
18977 # include <assert.h>
18978 #endif
18979 /* Override any gcc2 internal prototype to avoid an error. */
18980 #ifdef __cplusplus
18981 extern "C"
18983 #endif
18984 /* We use char because int might match the return type of a gcc2
18985 builtin and then its argument prototype would still apply. */
18986 char $ac_func ();
18987 /* The GNU C library defines this for functions which it implements
18988 to always fail with ENOSYS. Some functions are actually named
18989 something starting with __ and the normal name is an alias. */
18990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18991 choke me
18992 #else
18993 char (*f) () = $ac_func;
18994 #endif
18995 #ifdef __cplusplus
18997 #endif
19000 main ()
19002 return f != $ac_func;
19004 return 0;
19006 _ACEOF
19007 rm -f conftest.$ac_objext conftest$ac_exeext
19008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19009 (eval $ac_link) 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } &&
19013 { ac_try='test -s conftest$ac_exeext'
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 eval "$as_ac_var=yes"
19020 else
19021 echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.$ac_ext >&5
19024 eval "$as_ac_var=no"
19026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19030 if test `eval echo '${'$as_ac_var'}'` = yes; then
19031 cat >>confdefs.h <<_ACEOF
19032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19033 _ACEOF
19036 done
19043 echo "$as_me:$LINENO: checking for logl declaration" >&5
19044 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
19045 if test x${glibcxx_cv_func_logl_use+set} != xset; then
19046 if test "${glibcxx_cv_func_logl_use+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 else
19052 ac_ext=cc
19053 ac_cpp='$CXXCPP $CPPFLAGS'
19054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19058 cat >conftest.$ac_ext <<_ACEOF
19059 #line $LINENO "configure"
19060 /* confdefs.h. */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19065 #include <math.h>
19066 #ifdef HAVE_IEEEFP_H
19067 #include <ieeefp.h>
19068 #endif
19071 main ()
19073 logl(0);
19075 return 0;
19077 _ACEOF
19078 rm -f conftest.$ac_objext
19079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19080 (eval $ac_compile) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } &&
19084 { ac_try='test -s conftest.$ac_objext'
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; }; then
19090 glibcxx_cv_func_logl_use=yes
19091 else
19092 echo "$as_me: failed program was:" >&5
19093 sed 's/^/| /' conftest.$ac_ext >&5
19095 glibcxx_cv_func_logl_use=no
19097 rm -f conftest.$ac_objext conftest.$ac_ext
19098 ac_ext=c
19099 ac_cpp='$CPP $CPPFLAGS'
19100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19108 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
19109 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
19111 if test x$glibcxx_cv_func_logl_use = x"yes"; then
19113 for ac_func in logl
19115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19116 echo "$as_me:$LINENO: checking for $ac_func" >&5
19117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19118 if eval "test \"\${$as_ac_var+set}\" = set"; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19120 else
19121 cat >conftest.$ac_ext <<_ACEOF
19122 #line $LINENO "configure"
19123 /* confdefs.h. */
19124 _ACEOF
19125 cat confdefs.h >>conftest.$ac_ext
19126 cat >>conftest.$ac_ext <<_ACEOF
19127 /* end confdefs.h. */
19128 /* System header to define __stub macros and hopefully few prototypes,
19129 which can conflict with char $ac_func (); below.
19130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19131 <limits.h> exists even on freestanding compilers. */
19132 #ifdef __STDC__
19133 # include <limits.h>
19134 #else
19135 # include <assert.h>
19136 #endif
19137 /* Override any gcc2 internal prototype to avoid an error. */
19138 #ifdef __cplusplus
19139 extern "C"
19141 #endif
19142 /* We use char because int might match the return type of a gcc2
19143 builtin and then its argument prototype would still apply. */
19144 char $ac_func ();
19145 /* The GNU C library defines this for functions which it implements
19146 to always fail with ENOSYS. Some functions are actually named
19147 something starting with __ and the normal name is an alias. */
19148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19149 choke me
19150 #else
19151 char (*f) () = $ac_func;
19152 #endif
19153 #ifdef __cplusplus
19155 #endif
19158 main ()
19160 return f != $ac_func;
19162 return 0;
19164 _ACEOF
19165 rm -f conftest.$ac_objext conftest$ac_exeext
19166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19167 (eval $ac_link) 2>&5
19168 ac_status=$?
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } &&
19171 { ac_try='test -s conftest$ac_exeext'
19172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173 (eval $ac_try) 2>&5
19174 ac_status=$?
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; }; then
19177 eval "$as_ac_var=yes"
19178 else
19179 echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19182 eval "$as_ac_var=no"
19184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19188 if test `eval echo '${'$as_ac_var'}'` = yes; then
19189 cat >>confdefs.h <<_ACEOF
19190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19191 _ACEOF
19194 done
19196 else
19198 echo "$as_me:$LINENO: checking for _logl declaration" >&5
19199 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
19200 if test x${glibcxx_cv_func__logl_use+set} != xset; then
19201 if test "${glibcxx_cv_func__logl_use+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
19203 else
19207 ac_ext=cc
19208 ac_cpp='$CXXCPP $CPPFLAGS'
19209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19213 cat >conftest.$ac_ext <<_ACEOF
19214 #line $LINENO "configure"
19215 /* confdefs.h. */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h. */
19220 #include <math.h>
19221 #ifdef HAVE_IEEEFP_H
19222 #include <ieeefp.h>
19223 #endif
19226 main ()
19228 _logl(0);
19230 return 0;
19232 _ACEOF
19233 rm -f conftest.$ac_objext
19234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19235 (eval $ac_compile) 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
19239 { ac_try='test -s conftest.$ac_objext'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
19245 glibcxx_cv_func__logl_use=yes
19246 else
19247 echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19250 glibcxx_cv_func__logl_use=no
19252 rm -f conftest.$ac_objext conftest.$ac_ext
19253 ac_ext=c
19254 ac_cpp='$CPP $CPPFLAGS'
19255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19263 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
19264 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
19266 if test x$glibcxx_cv_func__logl_use = x"yes"; then
19268 for ac_func in _logl
19270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19271 echo "$as_me:$LINENO: checking for $ac_func" >&5
19272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19273 if eval "test \"\${$as_ac_var+set}\" = set"; then
19274 echo $ECHO_N "(cached) $ECHO_C" >&6
19275 else
19276 cat >conftest.$ac_ext <<_ACEOF
19277 #line $LINENO "configure"
19278 /* confdefs.h. */
19279 _ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h. */
19283 /* System header to define __stub macros and hopefully few prototypes,
19284 which can conflict with char $ac_func (); below.
19285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19286 <limits.h> exists even on freestanding compilers. */
19287 #ifdef __STDC__
19288 # include <limits.h>
19289 #else
19290 # include <assert.h>
19291 #endif
19292 /* Override any gcc2 internal prototype to avoid an error. */
19293 #ifdef __cplusplus
19294 extern "C"
19296 #endif
19297 /* We use char because int might match the return type of a gcc2
19298 builtin and then its argument prototype would still apply. */
19299 char $ac_func ();
19300 /* The GNU C library defines this for functions which it implements
19301 to always fail with ENOSYS. Some functions are actually named
19302 something starting with __ and the normal name is an alias. */
19303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19304 choke me
19305 #else
19306 char (*f) () = $ac_func;
19307 #endif
19308 #ifdef __cplusplus
19310 #endif
19313 main ()
19315 return f != $ac_func;
19317 return 0;
19319 _ACEOF
19320 rm -f conftest.$ac_objext conftest$ac_exeext
19321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19322 (eval $ac_link) 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } &&
19326 { ac_try='test -s conftest$ac_exeext'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19332 eval "$as_ac_var=yes"
19333 else
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 eval "$as_ac_var=no"
19339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19343 if test `eval echo '${'$as_ac_var'}'` = yes; then
19344 cat >>confdefs.h <<_ACEOF
19345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19346 _ACEOF
19349 done
19356 echo "$as_me:$LINENO: checking for log10l declaration" >&5
19357 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
19358 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
19359 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19365 ac_ext=cc
19366 ac_cpp='$CXXCPP $CPPFLAGS'
19367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19371 cat >conftest.$ac_ext <<_ACEOF
19372 #line $LINENO "configure"
19373 /* confdefs.h. */
19374 _ACEOF
19375 cat confdefs.h >>conftest.$ac_ext
19376 cat >>conftest.$ac_ext <<_ACEOF
19377 /* end confdefs.h. */
19378 #include <math.h>
19379 #ifdef HAVE_IEEEFP_H
19380 #include <ieeefp.h>
19381 #endif
19384 main ()
19386 log10l(0);
19388 return 0;
19390 _ACEOF
19391 rm -f conftest.$ac_objext
19392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19393 (eval $ac_compile) 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); } &&
19397 { ac_try='test -s conftest.$ac_objext'
19398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; }; then
19403 glibcxx_cv_func_log10l_use=yes
19404 else
19405 echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19408 glibcxx_cv_func_log10l_use=no
19410 rm -f conftest.$ac_objext conftest.$ac_ext
19411 ac_ext=c
19412 ac_cpp='$CPP $CPPFLAGS'
19413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19421 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
19422 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
19424 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
19426 for ac_func in log10l
19428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19429 echo "$as_me:$LINENO: checking for $ac_func" >&5
19430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19431 if eval "test \"\${$as_ac_var+set}\" = set"; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19433 else
19434 cat >conftest.$ac_ext <<_ACEOF
19435 #line $LINENO "configure"
19436 /* confdefs.h. */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h. */
19441 /* System header to define __stub macros and hopefully few prototypes,
19442 which can conflict with char $ac_func (); below.
19443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19444 <limits.h> exists even on freestanding compilers. */
19445 #ifdef __STDC__
19446 # include <limits.h>
19447 #else
19448 # include <assert.h>
19449 #endif
19450 /* Override any gcc2 internal prototype to avoid an error. */
19451 #ifdef __cplusplus
19452 extern "C"
19454 #endif
19455 /* We use char because int might match the return type of a gcc2
19456 builtin and then its argument prototype would still apply. */
19457 char $ac_func ();
19458 /* The GNU C library defines this for functions which it implements
19459 to always fail with ENOSYS. Some functions are actually named
19460 something starting with __ and the normal name is an alias. */
19461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19462 choke me
19463 #else
19464 char (*f) () = $ac_func;
19465 #endif
19466 #ifdef __cplusplus
19468 #endif
19471 main ()
19473 return f != $ac_func;
19475 return 0;
19477 _ACEOF
19478 rm -f conftest.$ac_objext conftest$ac_exeext
19479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19480 (eval $ac_link) 2>&5
19481 ac_status=$?
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } &&
19484 { ac_try='test -s conftest$ac_exeext'
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; }; then
19490 eval "$as_ac_var=yes"
19491 else
19492 echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19495 eval "$as_ac_var=no"
19497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19501 if test `eval echo '${'$as_ac_var'}'` = yes; then
19502 cat >>confdefs.h <<_ACEOF
19503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19504 _ACEOF
19507 done
19509 else
19511 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
19512 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
19513 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
19514 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19516 else
19520 ac_ext=cc
19521 ac_cpp='$CXXCPP $CPPFLAGS'
19522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19526 cat >conftest.$ac_ext <<_ACEOF
19527 #line $LINENO "configure"
19528 /* confdefs.h. */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 #include <math.h>
19534 #ifdef HAVE_IEEEFP_H
19535 #include <ieeefp.h>
19536 #endif
19539 main ()
19541 _log10l(0);
19543 return 0;
19545 _ACEOF
19546 rm -f conftest.$ac_objext
19547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19548 (eval $ac_compile) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
19552 { ac_try='test -s conftest.$ac_objext'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19558 glibcxx_cv_func__log10l_use=yes
19559 else
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19563 glibcxx_cv_func__log10l_use=no
19565 rm -f conftest.$ac_objext conftest.$ac_ext
19566 ac_ext=c
19567 ac_cpp='$CPP $CPPFLAGS'
19568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19576 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
19577 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
19579 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
19581 for ac_func in _log10l
19583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19584 echo "$as_me:$LINENO: checking for $ac_func" >&5
19585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19586 if eval "test \"\${$as_ac_var+set}\" = set"; then
19587 echo $ECHO_N "(cached) $ECHO_C" >&6
19588 else
19589 cat >conftest.$ac_ext <<_ACEOF
19590 #line $LINENO "configure"
19591 /* confdefs.h. */
19592 _ACEOF
19593 cat confdefs.h >>conftest.$ac_ext
19594 cat >>conftest.$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19596 /* System header to define __stub macros and hopefully few prototypes,
19597 which can conflict with char $ac_func (); below.
19598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19599 <limits.h> exists even on freestanding compilers. */
19600 #ifdef __STDC__
19601 # include <limits.h>
19602 #else
19603 # include <assert.h>
19604 #endif
19605 /* Override any gcc2 internal prototype to avoid an error. */
19606 #ifdef __cplusplus
19607 extern "C"
19609 #endif
19610 /* We use char because int might match the return type of a gcc2
19611 builtin and then its argument prototype would still apply. */
19612 char $ac_func ();
19613 /* The GNU C library defines this for functions which it implements
19614 to always fail with ENOSYS. Some functions are actually named
19615 something starting with __ and the normal name is an alias. */
19616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19617 choke me
19618 #else
19619 char (*f) () = $ac_func;
19620 #endif
19621 #ifdef __cplusplus
19623 #endif
19626 main ()
19628 return f != $ac_func;
19630 return 0;
19632 _ACEOF
19633 rm -f conftest.$ac_objext conftest$ac_exeext
19634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19635 (eval $ac_link) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
19639 { ac_try='test -s conftest$ac_exeext'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; }; then
19645 eval "$as_ac_var=yes"
19646 else
19647 echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19650 eval "$as_ac_var=no"
19652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19656 if test `eval echo '${'$as_ac_var'}'` = yes; then
19657 cat >>confdefs.h <<_ACEOF
19658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19659 _ACEOF
19662 done
19669 echo "$as_me:$LINENO: checking for modfl declaration" >&5
19670 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
19671 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
19672 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19678 ac_ext=cc
19679 ac_cpp='$CXXCPP $CPPFLAGS'
19680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19684 cat >conftest.$ac_ext <<_ACEOF
19685 #line $LINENO "configure"
19686 /* confdefs.h. */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 #include <math.h>
19693 main ()
19695 modfl(0, 0);
19697 return 0;
19699 _ACEOF
19700 rm -f conftest.$ac_objext
19701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19702 (eval $ac_compile) 2>&5
19703 ac_status=$?
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } &&
19706 { ac_try='test -s conftest.$ac_objext'
19707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708 (eval $ac_try) 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; }; then
19712 glibcxx_cv_func_modfl_use=yes
19713 else
19714 echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19717 glibcxx_cv_func_modfl_use=no
19719 rm -f conftest.$ac_objext conftest.$ac_ext
19720 ac_ext=c
19721 ac_cpp='$CPP $CPPFLAGS'
19722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19730 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
19731 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
19733 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
19735 for ac_func in modfl
19737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19738 echo "$as_me:$LINENO: checking for $ac_func" >&5
19739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19740 if eval "test \"\${$as_ac_var+set}\" = set"; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19742 else
19743 cat >conftest.$ac_ext <<_ACEOF
19744 #line $LINENO "configure"
19745 /* confdefs.h. */
19746 _ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h. */
19750 /* System header to define __stub macros and hopefully few prototypes,
19751 which can conflict with char $ac_func (); below.
19752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19753 <limits.h> exists even on freestanding compilers. */
19754 #ifdef __STDC__
19755 # include <limits.h>
19756 #else
19757 # include <assert.h>
19758 #endif
19759 /* Override any gcc2 internal prototype to avoid an error. */
19760 #ifdef __cplusplus
19761 extern "C"
19763 #endif
19764 /* We use char because int might match the return type of a gcc2
19765 builtin and then its argument prototype would still apply. */
19766 char $ac_func ();
19767 /* The GNU C library defines this for functions which it implements
19768 to always fail with ENOSYS. Some functions are actually named
19769 something starting with __ and the normal name is an alias. */
19770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19771 choke me
19772 #else
19773 char (*f) () = $ac_func;
19774 #endif
19775 #ifdef __cplusplus
19777 #endif
19780 main ()
19782 return f != $ac_func;
19784 return 0;
19786 _ACEOF
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19789 (eval $ac_link) 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } &&
19793 { ac_try='test -s conftest$ac_exeext'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 eval "$as_ac_var=yes"
19800 else
19801 echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19804 eval "$as_ac_var=no"
19806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19810 if test `eval echo '${'$as_ac_var'}'` = yes; then
19811 cat >>confdefs.h <<_ACEOF
19812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19813 _ACEOF
19816 done
19818 else
19820 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
19821 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
19822 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
19823 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
19824 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 else
19829 ac_ext=cc
19830 ac_cpp='$CXXCPP $CPPFLAGS'
19831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19835 cat >conftest.$ac_ext <<_ACEOF
19836 #line $LINENO "configure"
19837 /* confdefs.h. */
19838 _ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19842 #include <math.h>
19844 main ()
19846 _modfl(0, 0);
19848 return 0;
19850 _ACEOF
19851 rm -f conftest.$ac_objext
19852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19853 (eval $ac_compile) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } &&
19857 { ac_try='test -s conftest.$ac_objext'
19858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859 (eval $ac_try) 2>&5
19860 ac_status=$?
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; }; then
19863 glibcxx_cv_func__modfl_use=yes
19864 else
19865 echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19868 glibcxx_cv_func__modfl_use=no
19870 rm -f conftest.$ac_objext conftest.$ac_ext
19871 ac_ext=c
19872 ac_cpp='$CPP $CPPFLAGS'
19873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19881 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
19882 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
19884 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
19886 for ac_func in _modfl
19888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19889 echo "$as_me:$LINENO: checking for $ac_func" >&5
19890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19891 if eval "test \"\${$as_ac_var+set}\" = set"; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19893 else
19894 cat >conftest.$ac_ext <<_ACEOF
19895 #line $LINENO "configure"
19896 /* confdefs.h. */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h. */
19901 /* System header to define __stub macros and hopefully few prototypes,
19902 which can conflict with char $ac_func (); below.
19903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19904 <limits.h> exists even on freestanding compilers. */
19905 #ifdef __STDC__
19906 # include <limits.h>
19907 #else
19908 # include <assert.h>
19909 #endif
19910 /* Override any gcc2 internal prototype to avoid an error. */
19911 #ifdef __cplusplus
19912 extern "C"
19914 #endif
19915 /* We use char because int might match the return type of a gcc2
19916 builtin and then its argument prototype would still apply. */
19917 char $ac_func ();
19918 /* The GNU C library defines this for functions which it implements
19919 to always fail with ENOSYS. Some functions are actually named
19920 something starting with __ and the normal name is an alias. */
19921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19922 choke me
19923 #else
19924 char (*f) () = $ac_func;
19925 #endif
19926 #ifdef __cplusplus
19928 #endif
19931 main ()
19933 return f != $ac_func;
19935 return 0;
19937 _ACEOF
19938 rm -f conftest.$ac_objext conftest$ac_exeext
19939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19940 (eval $ac_link) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
19944 { ac_try='test -s conftest$ac_exeext'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19947 ac_status=$?
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; }; then
19950 eval "$as_ac_var=yes"
19951 else
19952 echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19955 eval "$as_ac_var=no"
19957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19961 if test `eval echo '${'$as_ac_var'}'` = yes; then
19962 cat >>confdefs.h <<_ACEOF
19963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19964 _ACEOF
19967 done
19974 echo "$as_me:$LINENO: checking for powl declaration" >&5
19975 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
19976 if test x${glibcxx_cv_func_powl_use+set} != xset; then
19977 if test "${glibcxx_cv_func_powl_use+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19979 else
19983 ac_ext=cc
19984 ac_cpp='$CXXCPP $CPPFLAGS'
19985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19989 cat >conftest.$ac_ext <<_ACEOF
19990 #line $LINENO "configure"
19991 /* confdefs.h. */
19992 _ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h. */
19996 #include <math.h>
19998 main ()
20000 powl(0, 0);
20002 return 0;
20004 _ACEOF
20005 rm -f conftest.$ac_objext
20006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20007 (eval $ac_compile) 2>&5
20008 ac_status=$?
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } &&
20011 { ac_try='test -s conftest.$ac_objext'
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20017 glibcxx_cv_func_powl_use=yes
20018 else
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20022 glibcxx_cv_func_powl_use=no
20024 rm -f conftest.$ac_objext conftest.$ac_ext
20025 ac_ext=c
20026 ac_cpp='$CPP $CPPFLAGS'
20027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20035 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
20036 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
20038 if test x$glibcxx_cv_func_powl_use = x"yes"; then
20040 for ac_func in powl
20042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20043 echo "$as_me:$LINENO: checking for $ac_func" >&5
20044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20045 if eval "test \"\${$as_ac_var+set}\" = set"; then
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
20047 else
20048 cat >conftest.$ac_ext <<_ACEOF
20049 #line $LINENO "configure"
20050 /* confdefs.h. */
20051 _ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h. */
20055 /* System header to define __stub macros and hopefully few prototypes,
20056 which can conflict with char $ac_func (); below.
20057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20058 <limits.h> exists even on freestanding compilers. */
20059 #ifdef __STDC__
20060 # include <limits.h>
20061 #else
20062 # include <assert.h>
20063 #endif
20064 /* Override any gcc2 internal prototype to avoid an error. */
20065 #ifdef __cplusplus
20066 extern "C"
20068 #endif
20069 /* We use char because int might match the return type of a gcc2
20070 builtin and then its argument prototype would still apply. */
20071 char $ac_func ();
20072 /* The GNU C library defines this for functions which it implements
20073 to always fail with ENOSYS. Some functions are actually named
20074 something starting with __ and the normal name is an alias. */
20075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20076 choke me
20077 #else
20078 char (*f) () = $ac_func;
20079 #endif
20080 #ifdef __cplusplus
20082 #endif
20085 main ()
20087 return f != $ac_func;
20089 return 0;
20091 _ACEOF
20092 rm -f conftest.$ac_objext conftest$ac_exeext
20093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20094 (eval $ac_link) 2>&5
20095 ac_status=$?
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } &&
20098 { ac_try='test -s conftest$ac_exeext'
20099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100 (eval $ac_try) 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; }; then
20104 eval "$as_ac_var=yes"
20105 else
20106 echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20109 eval "$as_ac_var=no"
20111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20115 if test `eval echo '${'$as_ac_var'}'` = yes; then
20116 cat >>confdefs.h <<_ACEOF
20117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20118 _ACEOF
20121 done
20123 else
20125 echo "$as_me:$LINENO: checking for _powl declaration" >&5
20126 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
20127 if test x${glibcxx_cv_func__powl_use+set} != xset; then
20128 if test "${glibcxx_cv_func__powl_use+set}" = set; then
20129 echo $ECHO_N "(cached) $ECHO_C" >&6
20130 else
20134 ac_ext=cc
20135 ac_cpp='$CXXCPP $CPPFLAGS'
20136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20140 cat >conftest.$ac_ext <<_ACEOF
20141 #line $LINENO "configure"
20142 /* confdefs.h. */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147 #include <math.h>
20149 main ()
20151 _powl(0, 0);
20153 return 0;
20155 _ACEOF
20156 rm -f conftest.$ac_objext
20157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20158 (eval $ac_compile) 2>&5
20159 ac_status=$?
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } &&
20162 { ac_try='test -s conftest.$ac_objext'
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20165 ac_status=$?
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; }; then
20168 glibcxx_cv_func__powl_use=yes
20169 else
20170 echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20173 glibcxx_cv_func__powl_use=no
20175 rm -f conftest.$ac_objext conftest.$ac_ext
20176 ac_ext=c
20177 ac_cpp='$CPP $CPPFLAGS'
20178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20186 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
20187 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
20189 if test x$glibcxx_cv_func__powl_use = x"yes"; then
20191 for ac_func in _powl
20193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20194 echo "$as_me:$LINENO: checking for $ac_func" >&5
20195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20196 if eval "test \"\${$as_ac_var+set}\" = set"; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 else
20199 cat >conftest.$ac_ext <<_ACEOF
20200 #line $LINENO "configure"
20201 /* confdefs.h. */
20202 _ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h. */
20206 /* System header to define __stub macros and hopefully few prototypes,
20207 which can conflict with char $ac_func (); below.
20208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20209 <limits.h> exists even on freestanding compilers. */
20210 #ifdef __STDC__
20211 # include <limits.h>
20212 #else
20213 # include <assert.h>
20214 #endif
20215 /* Override any gcc2 internal prototype to avoid an error. */
20216 #ifdef __cplusplus
20217 extern "C"
20219 #endif
20220 /* We use char because int might match the return type of a gcc2
20221 builtin and then its argument prototype would still apply. */
20222 char $ac_func ();
20223 /* The GNU C library defines this for functions which it implements
20224 to always fail with ENOSYS. Some functions are actually named
20225 something starting with __ and the normal name is an alias. */
20226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20227 choke me
20228 #else
20229 char (*f) () = $ac_func;
20230 #endif
20231 #ifdef __cplusplus
20233 #endif
20236 main ()
20238 return f != $ac_func;
20240 return 0;
20242 _ACEOF
20243 rm -f conftest.$ac_objext conftest$ac_exeext
20244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20245 (eval $ac_link) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } &&
20249 { ac_try='test -s conftest$ac_exeext'
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 eval "$as_ac_var=yes"
20256 else
20257 echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20260 eval "$as_ac_var=no"
20262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20266 if test `eval echo '${'$as_ac_var'}'` = yes; then
20267 cat >>confdefs.h <<_ACEOF
20268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20269 _ACEOF
20272 done
20279 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
20280 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
20281 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
20282 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20284 else
20288 ac_ext=cc
20289 ac_cpp='$CXXCPP $CPPFLAGS'
20290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20294 cat >conftest.$ac_ext <<_ACEOF
20295 #line $LINENO "configure"
20296 /* confdefs.h. */
20297 _ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20301 #include <math.h>
20302 #ifdef HAVE_IEEEFP_H
20303 #include <ieeefp.h>
20304 #endif
20307 main ()
20309 sqrtl(0);
20311 return 0;
20313 _ACEOF
20314 rm -f conftest.$ac_objext
20315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20316 (eval $ac_compile) 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } &&
20320 { ac_try='test -s conftest.$ac_objext'
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20323 ac_status=$?
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; }; then
20326 glibcxx_cv_func_sqrtl_use=yes
20327 else
20328 echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20331 glibcxx_cv_func_sqrtl_use=no
20333 rm -f conftest.$ac_objext conftest.$ac_ext
20334 ac_ext=c
20335 ac_cpp='$CPP $CPPFLAGS'
20336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20344 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
20345 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
20347 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
20349 for ac_func in sqrtl
20351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20352 echo "$as_me:$LINENO: checking for $ac_func" >&5
20353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20354 if eval "test \"\${$as_ac_var+set}\" = set"; then
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20356 else
20357 cat >conftest.$ac_ext <<_ACEOF
20358 #line $LINENO "configure"
20359 /* confdefs.h. */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h. */
20364 /* System header to define __stub macros and hopefully few prototypes,
20365 which can conflict with char $ac_func (); below.
20366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20367 <limits.h> exists even on freestanding compilers. */
20368 #ifdef __STDC__
20369 # include <limits.h>
20370 #else
20371 # include <assert.h>
20372 #endif
20373 /* Override any gcc2 internal prototype to avoid an error. */
20374 #ifdef __cplusplus
20375 extern "C"
20377 #endif
20378 /* We use char because int might match the return type of a gcc2
20379 builtin and then its argument prototype would still apply. */
20380 char $ac_func ();
20381 /* The GNU C library defines this for functions which it implements
20382 to always fail with ENOSYS. Some functions are actually named
20383 something starting with __ and the normal name is an alias. */
20384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20385 choke me
20386 #else
20387 char (*f) () = $ac_func;
20388 #endif
20389 #ifdef __cplusplus
20391 #endif
20394 main ()
20396 return f != $ac_func;
20398 return 0;
20400 _ACEOF
20401 rm -f conftest.$ac_objext conftest$ac_exeext
20402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20403 (eval $ac_link) 2>&5
20404 ac_status=$?
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); } &&
20407 { ac_try='test -s conftest$ac_exeext'
20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
20410 ac_status=$?
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; }; then
20413 eval "$as_ac_var=yes"
20414 else
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20418 eval "$as_ac_var=no"
20420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20424 if test `eval echo '${'$as_ac_var'}'` = yes; then
20425 cat >>confdefs.h <<_ACEOF
20426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20427 _ACEOF
20430 done
20432 else
20434 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
20435 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
20436 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
20437 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20439 else
20443 ac_ext=cc
20444 ac_cpp='$CXXCPP $CPPFLAGS'
20445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20449 cat >conftest.$ac_ext <<_ACEOF
20450 #line $LINENO "configure"
20451 /* confdefs.h. */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20456 #include <math.h>
20457 #ifdef HAVE_IEEEFP_H
20458 #include <ieeefp.h>
20459 #endif
20462 main ()
20464 _sqrtl(0);
20466 return 0;
20468 _ACEOF
20469 rm -f conftest.$ac_objext
20470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20471 (eval $ac_compile) 2>&5
20472 ac_status=$?
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } &&
20475 { ac_try='test -s conftest.$ac_objext'
20476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477 (eval $ac_try) 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; }; then
20481 glibcxx_cv_func__sqrtl_use=yes
20482 else
20483 echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20486 glibcxx_cv_func__sqrtl_use=no
20488 rm -f conftest.$ac_objext conftest.$ac_ext
20489 ac_ext=c
20490 ac_cpp='$CPP $CPPFLAGS'
20491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20499 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
20500 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
20502 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
20504 for ac_func in _sqrtl
20506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20507 echo "$as_me:$LINENO: checking for $ac_func" >&5
20508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20509 if eval "test \"\${$as_ac_var+set}\" = set"; then
20510 echo $ECHO_N "(cached) $ECHO_C" >&6
20511 else
20512 cat >conftest.$ac_ext <<_ACEOF
20513 #line $LINENO "configure"
20514 /* confdefs.h. */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519 /* System header to define __stub macros and hopefully few prototypes,
20520 which can conflict with char $ac_func (); below.
20521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20522 <limits.h> exists even on freestanding compilers. */
20523 #ifdef __STDC__
20524 # include <limits.h>
20525 #else
20526 # include <assert.h>
20527 #endif
20528 /* Override any gcc2 internal prototype to avoid an error. */
20529 #ifdef __cplusplus
20530 extern "C"
20532 #endif
20533 /* We use char because int might match the return type of a gcc2
20534 builtin and then its argument prototype would still apply. */
20535 char $ac_func ();
20536 /* The GNU C library defines this for functions which it implements
20537 to always fail with ENOSYS. Some functions are actually named
20538 something starting with __ and the normal name is an alias. */
20539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20540 choke me
20541 #else
20542 char (*f) () = $ac_func;
20543 #endif
20544 #ifdef __cplusplus
20546 #endif
20549 main ()
20551 return f != $ac_func;
20553 return 0;
20555 _ACEOF
20556 rm -f conftest.$ac_objext conftest$ac_exeext
20557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20558 (eval $ac_link) 2>&5
20559 ac_status=$?
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } &&
20562 { ac_try='test -s conftest$ac_exeext'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 eval "$as_ac_var=yes"
20569 else
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20573 eval "$as_ac_var=no"
20575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20579 if test `eval echo '${'$as_ac_var'}'` = yes; then
20580 cat >>confdefs.h <<_ACEOF
20581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20582 _ACEOF
20585 done
20592 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
20593 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
20594 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
20595 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
20596 echo $ECHO_N "(cached) $ECHO_C" >&6
20597 else
20601 ac_ext=cc
20602 ac_cpp='$CXXCPP $CPPFLAGS'
20603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20607 cat >conftest.$ac_ext <<_ACEOF
20608 #line $LINENO "configure"
20609 /* confdefs.h. */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20614 #include <math.h>
20616 main ()
20618 sincosl(0, 0, 0);
20620 return 0;
20622 _ACEOF
20623 rm -f conftest.$ac_objext
20624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20625 (eval $ac_compile) 2>&5
20626 ac_status=$?
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
20629 { ac_try='test -s conftest.$ac_objext'
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 glibcxx_cv_func_sincosl_use=yes
20636 else
20637 echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20640 glibcxx_cv_func_sincosl_use=no
20642 rm -f conftest.$ac_objext conftest.$ac_ext
20643 ac_ext=c
20644 ac_cpp='$CPP $CPPFLAGS'
20645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20653 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
20654 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
20656 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
20658 for ac_func in sincosl
20660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20661 echo "$as_me:$LINENO: checking for $ac_func" >&5
20662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20663 if eval "test \"\${$as_ac_var+set}\" = set"; then
20664 echo $ECHO_N "(cached) $ECHO_C" >&6
20665 else
20666 cat >conftest.$ac_ext <<_ACEOF
20667 #line $LINENO "configure"
20668 /* confdefs.h. */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20673 /* System header to define __stub macros and hopefully few prototypes,
20674 which can conflict with char $ac_func (); below.
20675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20676 <limits.h> exists even on freestanding compilers. */
20677 #ifdef __STDC__
20678 # include <limits.h>
20679 #else
20680 # include <assert.h>
20681 #endif
20682 /* Override any gcc2 internal prototype to avoid an error. */
20683 #ifdef __cplusplus
20684 extern "C"
20686 #endif
20687 /* We use char because int might match the return type of a gcc2
20688 builtin and then its argument prototype would still apply. */
20689 char $ac_func ();
20690 /* The GNU C library defines this for functions which it implements
20691 to always fail with ENOSYS. Some functions are actually named
20692 something starting with __ and the normal name is an alias. */
20693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20694 choke me
20695 #else
20696 char (*f) () = $ac_func;
20697 #endif
20698 #ifdef __cplusplus
20700 #endif
20703 main ()
20705 return f != $ac_func;
20707 return 0;
20709 _ACEOF
20710 rm -f conftest.$ac_objext conftest$ac_exeext
20711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20712 (eval $ac_link) 2>&5
20713 ac_status=$?
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } &&
20716 { ac_try='test -s conftest$ac_exeext'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; }; then
20722 eval "$as_ac_var=yes"
20723 else
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20727 eval "$as_ac_var=no"
20729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20733 if test `eval echo '${'$as_ac_var'}'` = yes; then
20734 cat >>confdefs.h <<_ACEOF
20735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20736 _ACEOF
20739 done
20741 else
20743 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
20744 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
20745 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
20746 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20748 else
20752 ac_ext=cc
20753 ac_cpp='$CXXCPP $CPPFLAGS'
20754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20758 cat >conftest.$ac_ext <<_ACEOF
20759 #line $LINENO "configure"
20760 /* confdefs.h. */
20761 _ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h. */
20765 #include <math.h>
20767 main ()
20769 _sincosl(0, 0, 0);
20771 return 0;
20773 _ACEOF
20774 rm -f conftest.$ac_objext
20775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20776 (eval $ac_compile) 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } &&
20780 { ac_try='test -s conftest.$ac_objext'
20781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782 (eval $ac_try) 2>&5
20783 ac_status=$?
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; }; then
20786 glibcxx_cv_func__sincosl_use=yes
20787 else
20788 echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20791 glibcxx_cv_func__sincosl_use=no
20793 rm -f conftest.$ac_objext conftest.$ac_ext
20794 ac_ext=c
20795 ac_cpp='$CPP $CPPFLAGS'
20796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20804 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
20805 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
20807 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
20809 for ac_func in _sincosl
20811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20812 echo "$as_me:$LINENO: checking for $ac_func" >&5
20813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20814 if eval "test \"\${$as_ac_var+set}\" = set"; then
20815 echo $ECHO_N "(cached) $ECHO_C" >&6
20816 else
20817 cat >conftest.$ac_ext <<_ACEOF
20818 #line $LINENO "configure"
20819 /* confdefs.h. */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824 /* System header to define __stub macros and hopefully few prototypes,
20825 which can conflict with char $ac_func (); below.
20826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20827 <limits.h> exists even on freestanding compilers. */
20828 #ifdef __STDC__
20829 # include <limits.h>
20830 #else
20831 # include <assert.h>
20832 #endif
20833 /* Override any gcc2 internal prototype to avoid an error. */
20834 #ifdef __cplusplus
20835 extern "C"
20837 #endif
20838 /* We use char because int might match the return type of a gcc2
20839 builtin and then its argument prototype would still apply. */
20840 char $ac_func ();
20841 /* The GNU C library defines this for functions which it implements
20842 to always fail with ENOSYS. Some functions are actually named
20843 something starting with __ and the normal name is an alias. */
20844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20845 choke me
20846 #else
20847 char (*f) () = $ac_func;
20848 #endif
20849 #ifdef __cplusplus
20851 #endif
20854 main ()
20856 return f != $ac_func;
20858 return 0;
20860 _ACEOF
20861 rm -f conftest.$ac_objext conftest$ac_exeext
20862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20863 (eval $ac_link) 2>&5
20864 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } &&
20867 { ac_try='test -s conftest$ac_exeext'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20870 ac_status=$?
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; }; then
20873 eval "$as_ac_var=yes"
20874 else
20875 echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20878 eval "$as_ac_var=no"
20880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20884 if test `eval echo '${'$as_ac_var'}'` = yes; then
20885 cat >>confdefs.h <<_ACEOF
20886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20887 _ACEOF
20890 done
20897 echo "$as_me:$LINENO: checking for finitel declaration" >&5
20898 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
20899 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
20900 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
20901 echo $ECHO_N "(cached) $ECHO_C" >&6
20902 else
20906 ac_ext=cc
20907 ac_cpp='$CXXCPP $CPPFLAGS'
20908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20912 cat >conftest.$ac_ext <<_ACEOF
20913 #line $LINENO "configure"
20914 /* confdefs.h. */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 #include <math.h>
20920 #ifdef HAVE_IEEEFP_H
20921 #include <ieeefp.h>
20922 #endif
20925 main ()
20927 finitel(0);
20929 return 0;
20931 _ACEOF
20932 rm -f conftest.$ac_objext
20933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20934 (eval $ac_compile) 2>&5
20935 ac_status=$?
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
20938 { ac_try='test -s conftest.$ac_objext'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; }; then
20944 glibcxx_cv_func_finitel_use=yes
20945 else
20946 echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20949 glibcxx_cv_func_finitel_use=no
20951 rm -f conftest.$ac_objext conftest.$ac_ext
20952 ac_ext=c
20953 ac_cpp='$CPP $CPPFLAGS'
20954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20962 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
20963 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
20965 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
20967 for ac_func in finitel
20969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20970 echo "$as_me:$LINENO: checking for $ac_func" >&5
20971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20972 if eval "test \"\${$as_ac_var+set}\" = set"; then
20973 echo $ECHO_N "(cached) $ECHO_C" >&6
20974 else
20975 cat >conftest.$ac_ext <<_ACEOF
20976 #line $LINENO "configure"
20977 /* confdefs.h. */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h. */
20982 /* System header to define __stub macros and hopefully few prototypes,
20983 which can conflict with char $ac_func (); below.
20984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20985 <limits.h> exists even on freestanding compilers. */
20986 #ifdef __STDC__
20987 # include <limits.h>
20988 #else
20989 # include <assert.h>
20990 #endif
20991 /* Override any gcc2 internal prototype to avoid an error. */
20992 #ifdef __cplusplus
20993 extern "C"
20995 #endif
20996 /* We use char because int might match the return type of a gcc2
20997 builtin and then its argument prototype would still apply. */
20998 char $ac_func ();
20999 /* The GNU C library defines this for functions which it implements
21000 to always fail with ENOSYS. Some functions are actually named
21001 something starting with __ and the normal name is an alias. */
21002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21003 choke me
21004 #else
21005 char (*f) () = $ac_func;
21006 #endif
21007 #ifdef __cplusplus
21009 #endif
21012 main ()
21014 return f != $ac_func;
21016 return 0;
21018 _ACEOF
21019 rm -f conftest.$ac_objext conftest$ac_exeext
21020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21021 (eval $ac_link) 2>&5
21022 ac_status=$?
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } &&
21025 { ac_try='test -s conftest$ac_exeext'
21026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027 (eval $ac_try) 2>&5
21028 ac_status=$?
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; }; then
21031 eval "$as_ac_var=yes"
21032 else
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21036 eval "$as_ac_var=no"
21038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21042 if test `eval echo '${'$as_ac_var'}'` = yes; then
21043 cat >>confdefs.h <<_ACEOF
21044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21045 _ACEOF
21048 done
21050 else
21052 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
21053 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
21054 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
21055 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
21056 echo $ECHO_N "(cached) $ECHO_C" >&6
21057 else
21061 ac_ext=cc
21062 ac_cpp='$CXXCPP $CPPFLAGS'
21063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21067 cat >conftest.$ac_ext <<_ACEOF
21068 #line $LINENO "configure"
21069 /* confdefs.h. */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21074 #include <math.h>
21075 #ifdef HAVE_IEEEFP_H
21076 #include <ieeefp.h>
21077 #endif
21080 main ()
21082 _finitel(0);
21084 return 0;
21086 _ACEOF
21087 rm -f conftest.$ac_objext
21088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21089 (eval $ac_compile) 2>&5
21090 ac_status=$?
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); } &&
21093 { ac_try='test -s conftest.$ac_objext'
21094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095 (eval $ac_try) 2>&5
21096 ac_status=$?
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; }; then
21099 glibcxx_cv_func__finitel_use=yes
21100 else
21101 echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21104 glibcxx_cv_func__finitel_use=no
21106 rm -f conftest.$ac_objext conftest.$ac_ext
21107 ac_ext=c
21108 ac_cpp='$CPP $CPPFLAGS'
21109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21117 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
21118 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
21120 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
21122 for ac_func in _finitel
21124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21125 echo "$as_me:$LINENO: checking for $ac_func" >&5
21126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21127 if eval "test \"\${$as_ac_var+set}\" = set"; then
21128 echo $ECHO_N "(cached) $ECHO_C" >&6
21129 else
21130 cat >conftest.$ac_ext <<_ACEOF
21131 #line $LINENO "configure"
21132 /* confdefs.h. */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 /* System header to define __stub macros and hopefully few prototypes,
21138 which can conflict with char $ac_func (); below.
21139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21140 <limits.h> exists even on freestanding compilers. */
21141 #ifdef __STDC__
21142 # include <limits.h>
21143 #else
21144 # include <assert.h>
21145 #endif
21146 /* Override any gcc2 internal prototype to avoid an error. */
21147 #ifdef __cplusplus
21148 extern "C"
21150 #endif
21151 /* We use char because int might match the return type of a gcc2
21152 builtin and then its argument prototype would still apply. */
21153 char $ac_func ();
21154 /* The GNU C library defines this for functions which it implements
21155 to always fail with ENOSYS. Some functions are actually named
21156 something starting with __ and the normal name is an alias. */
21157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21158 choke me
21159 #else
21160 char (*f) () = $ac_func;
21161 #endif
21162 #ifdef __cplusplus
21164 #endif
21167 main ()
21169 return f != $ac_func;
21171 return 0;
21173 _ACEOF
21174 rm -f conftest.$ac_objext conftest$ac_exeext
21175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21176 (eval $ac_link) 2>&5
21177 ac_status=$?
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } &&
21180 { ac_try='test -s conftest$ac_exeext'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186 eval "$as_ac_var=yes"
21187 else
21188 echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21191 eval "$as_ac_var=no"
21193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21197 if test `eval echo '${'$as_ac_var'}'` = yes; then
21198 cat >>confdefs.h <<_ACEOF
21199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21200 _ACEOF
21203 done
21211 echo "$as_me:$LINENO: checking for _float trig functions" >&5
21212 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
21213 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21215 else
21219 ac_ext=cc
21220 ac_cpp='$CXXCPP $CPPFLAGS'
21221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21225 cat >conftest.$ac_ext <<_ACEOF
21226 #line $LINENO "configure"
21227 /* confdefs.h. */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 #include <math.h>
21234 main ()
21236 `for x in _acosf _asinf _atanf \
21237 _cosf _sinf _tanf \
21238 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
21240 return 0;
21242 _ACEOF
21243 rm -f conftest.$ac_objext
21244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21245 (eval $ac_compile) 2>&5
21246 ac_status=$?
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } &&
21249 { ac_try='test -s conftest.$ac_objext'
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; }; then
21255 glibcxx_cv_func__float_trig_use=yes
21256 else
21257 echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21260 glibcxx_cv_func__float_trig_use=no
21262 rm -f conftest.$ac_objext conftest.$ac_ext
21263 ac_ext=c
21264 ac_cpp='$CPP $CPPFLAGS'
21265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21271 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
21272 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
21273 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
21283 for ac_func in _acosf _asinf _atanf \
21284 _cosf _sinf _tanf \
21285 _coshf _sinhf _tanhf
21287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21288 echo "$as_me:$LINENO: checking for $ac_func" >&5
21289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21290 if eval "test \"\${$as_ac_var+set}\" = set"; then
21291 echo $ECHO_N "(cached) $ECHO_C" >&6
21292 else
21293 cat >conftest.$ac_ext <<_ACEOF
21294 #line $LINENO "configure"
21295 /* confdefs.h. */
21296 _ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h. */
21300 /* System header to define __stub macros and hopefully few prototypes,
21301 which can conflict with char $ac_func (); below.
21302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21303 <limits.h> exists even on freestanding compilers. */
21304 #ifdef __STDC__
21305 # include <limits.h>
21306 #else
21307 # include <assert.h>
21308 #endif
21309 /* Override any gcc2 internal prototype to avoid an error. */
21310 #ifdef __cplusplus
21311 extern "C"
21313 #endif
21314 /* We use char because int might match the return type of a gcc2
21315 builtin and then its argument prototype would still apply. */
21316 char $ac_func ();
21317 /* The GNU C library defines this for functions which it implements
21318 to always fail with ENOSYS. Some functions are actually named
21319 something starting with __ and the normal name is an alias. */
21320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21321 choke me
21322 #else
21323 char (*f) () = $ac_func;
21324 #endif
21325 #ifdef __cplusplus
21327 #endif
21330 main ()
21332 return f != $ac_func;
21334 return 0;
21336 _ACEOF
21337 rm -f conftest.$ac_objext conftest$ac_exeext
21338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21339 (eval $ac_link) 2>&5
21340 ac_status=$?
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } &&
21343 { ac_try='test -s conftest$ac_exeext'
21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345 (eval $ac_try) 2>&5
21346 ac_status=$?
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); }; }; then
21349 eval "$as_ac_var=yes"
21350 else
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21354 eval "$as_ac_var=no"
21356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21360 if test `eval echo '${'$as_ac_var'}'` = yes; then
21361 cat >>confdefs.h <<_ACEOF
21362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21363 _ACEOF
21366 done
21371 echo "$as_me:$LINENO: checking for _float round functions" >&5
21372 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
21373 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
21374 echo $ECHO_N "(cached) $ECHO_C" >&6
21375 else
21379 ac_ext=cc
21380 ac_cpp='$CXXCPP $CPPFLAGS'
21381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21385 cat >conftest.$ac_ext <<_ACEOF
21386 #line $LINENO "configure"
21387 /* confdefs.h. */
21388 _ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h. */
21392 #include <math.h>
21394 main ()
21396 `for x in _ceilf _floorf; do echo "$x (0);"; done`
21398 return 0;
21400 _ACEOF
21401 rm -f conftest.$ac_objext
21402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21403 (eval $ac_compile) 2>&5
21404 ac_status=$?
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } &&
21407 { ac_try='test -s conftest.$ac_objext'
21408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409 (eval $ac_try) 2>&5
21410 ac_status=$?
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; }; then
21413 glibcxx_cv_func__float_round_use=yes
21414 else
21415 echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21418 glibcxx_cv_func__float_round_use=no
21420 rm -f conftest.$ac_objext conftest.$ac_ext
21421 ac_ext=c
21422 ac_cpp='$CPP $CPPFLAGS'
21423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21429 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
21430 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
21431 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
21434 for ac_func in _ceilf _floorf
21436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21437 echo "$as_me:$LINENO: checking for $ac_func" >&5
21438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21439 if eval "test \"\${$as_ac_var+set}\" = set"; then
21440 echo $ECHO_N "(cached) $ECHO_C" >&6
21441 else
21442 cat >conftest.$ac_ext <<_ACEOF
21443 #line $LINENO "configure"
21444 /* confdefs.h. */
21445 _ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h. */
21449 /* System header to define __stub macros and hopefully few prototypes,
21450 which can conflict with char $ac_func (); below.
21451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21452 <limits.h> exists even on freestanding compilers. */
21453 #ifdef __STDC__
21454 # include <limits.h>
21455 #else
21456 # include <assert.h>
21457 #endif
21458 /* Override any gcc2 internal prototype to avoid an error. */
21459 #ifdef __cplusplus
21460 extern "C"
21462 #endif
21463 /* We use char because int might match the return type of a gcc2
21464 builtin and then its argument prototype would still apply. */
21465 char $ac_func ();
21466 /* The GNU C library defines this for functions which it implements
21467 to always fail with ENOSYS. Some functions are actually named
21468 something starting with __ and the normal name is an alias. */
21469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21470 choke me
21471 #else
21472 char (*f) () = $ac_func;
21473 #endif
21474 #ifdef __cplusplus
21476 #endif
21479 main ()
21481 return f != $ac_func;
21483 return 0;
21485 _ACEOF
21486 rm -f conftest.$ac_objext conftest$ac_exeext
21487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21488 (eval $ac_link) 2>&5
21489 ac_status=$?
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } &&
21492 { ac_try='test -s conftest$ac_exeext'
21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; }; then
21498 eval "$as_ac_var=yes"
21499 else
21500 echo "$as_me: failed program was:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21503 eval "$as_ac_var=no"
21505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21509 if test `eval echo '${'$as_ac_var'}'` = yes; then
21510 cat >>confdefs.h <<_ACEOF
21511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21512 _ACEOF
21515 done
21521 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
21522 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
21523 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21525 else
21529 ac_ext=cc
21530 ac_cpp='$CXXCPP $CPPFLAGS'
21531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21535 cat >conftest.$ac_ext <<_ACEOF
21536 #line $LINENO "configure"
21537 /* confdefs.h. */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21542 #include <math.h>
21544 main ()
21546 `for x in _acosl _asinl _atanl \
21547 _cosl _sinl _tanl \
21548 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
21550 return 0;
21552 _ACEOF
21553 rm -f conftest.$ac_objext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21555 (eval $ac_compile) 2>&5
21556 ac_status=$?
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } &&
21559 { ac_try='test -s conftest.$ac_objext'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; }; then
21565 glibcxx_cv_func__long_double_trig_use=yes
21566 else
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 glibcxx_cv_func__long_double_trig_use=no
21572 rm -f conftest.$ac_objext conftest.$ac_ext
21573 ac_ext=c
21574 ac_cpp='$CPP $CPPFLAGS'
21575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21581 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
21582 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
21583 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
21593 for ac_func in _acosl _asinl _atanl \
21594 _cosl _sinl _tanl \
21595 _coshl _sinhl _tanhl
21597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21598 echo "$as_me:$LINENO: checking for $ac_func" >&5
21599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21600 if eval "test \"\${$as_ac_var+set}\" = set"; then
21601 echo $ECHO_N "(cached) $ECHO_C" >&6
21602 else
21603 cat >conftest.$ac_ext <<_ACEOF
21604 #line $LINENO "configure"
21605 /* confdefs.h. */
21606 _ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21610 /* System header to define __stub macros and hopefully few prototypes,
21611 which can conflict with char $ac_func (); below.
21612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21613 <limits.h> exists even on freestanding compilers. */
21614 #ifdef __STDC__
21615 # include <limits.h>
21616 #else
21617 # include <assert.h>
21618 #endif
21619 /* Override any gcc2 internal prototype to avoid an error. */
21620 #ifdef __cplusplus
21621 extern "C"
21623 #endif
21624 /* We use char because int might match the return type of a gcc2
21625 builtin and then its argument prototype would still apply. */
21626 char $ac_func ();
21627 /* The GNU C library defines this for functions which it implements
21628 to always fail with ENOSYS. Some functions are actually named
21629 something starting with __ and the normal name is an alias. */
21630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21631 choke me
21632 #else
21633 char (*f) () = $ac_func;
21634 #endif
21635 #ifdef __cplusplus
21637 #endif
21640 main ()
21642 return f != $ac_func;
21644 return 0;
21646 _ACEOF
21647 rm -f conftest.$ac_objext conftest$ac_exeext
21648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21649 (eval $ac_link) 2>&5
21650 ac_status=$?
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } &&
21653 { ac_try='test -s conftest$ac_exeext'
21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655 (eval $ac_try) 2>&5
21656 ac_status=$?
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; }; then
21659 eval "$as_ac_var=yes"
21660 else
21661 echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21664 eval "$as_ac_var=no"
21666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21670 if test `eval echo '${'$as_ac_var'}'` = yes; then
21671 cat >>confdefs.h <<_ACEOF
21672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21673 _ACEOF
21676 done
21681 echo "$as_me:$LINENO: checking for _long double round functions" >&5
21682 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
21683 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
21684 echo $ECHO_N "(cached) $ECHO_C" >&6
21685 else
21689 ac_ext=cc
21690 ac_cpp='$CXXCPP $CPPFLAGS'
21691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21695 cat >conftest.$ac_ext <<_ACEOF
21696 #line $LINENO "configure"
21697 /* confdefs.h. */
21698 _ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h. */
21702 #include <math.h>
21704 main ()
21706 `for x in _ceill _floorl; do echo "$x (0);"; done`
21708 return 0;
21710 _ACEOF
21711 rm -f conftest.$ac_objext
21712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21713 (eval $ac_compile) 2>&5
21714 ac_status=$?
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } &&
21717 { ac_try='test -s conftest.$ac_objext'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21723 glibcxx_cv_func__long_double_round_use=yes
21724 else
21725 echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21728 glibcxx_cv_func__long_double_round_use=no
21730 rm -f conftest.$ac_objext conftest.$ac_ext
21731 ac_ext=c
21732 ac_cpp='$CPP $CPPFLAGS'
21733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21739 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
21740 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
21741 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
21744 for ac_func in _ceill _floorl
21746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21747 echo "$as_me:$LINENO: checking for $ac_func" >&5
21748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21749 if eval "test \"\${$as_ac_var+set}\" = set"; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 else
21752 cat >conftest.$ac_ext <<_ACEOF
21753 #line $LINENO "configure"
21754 /* confdefs.h. */
21755 _ACEOF
21756 cat confdefs.h >>conftest.$ac_ext
21757 cat >>conftest.$ac_ext <<_ACEOF
21758 /* end confdefs.h. */
21759 /* System header to define __stub macros and hopefully few prototypes,
21760 which can conflict with char $ac_func (); below.
21761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21762 <limits.h> exists even on freestanding compilers. */
21763 #ifdef __STDC__
21764 # include <limits.h>
21765 #else
21766 # include <assert.h>
21767 #endif
21768 /* Override any gcc2 internal prototype to avoid an error. */
21769 #ifdef __cplusplus
21770 extern "C"
21772 #endif
21773 /* We use char because int might match the return type of a gcc2
21774 builtin and then its argument prototype would still apply. */
21775 char $ac_func ();
21776 /* The GNU C library defines this for functions which it implements
21777 to always fail with ENOSYS. Some functions are actually named
21778 something starting with __ and the normal name is an alias. */
21779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21780 choke me
21781 #else
21782 char (*f) () = $ac_func;
21783 #endif
21784 #ifdef __cplusplus
21786 #endif
21789 main ()
21791 return f != $ac_func;
21793 return 0;
21795 _ACEOF
21796 rm -f conftest.$ac_objext conftest$ac_exeext
21797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21798 (eval $ac_link) 2>&5
21799 ac_status=$?
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } &&
21802 { ac_try='test -s conftest$ac_exeext'
21803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804 (eval $ac_try) 2>&5
21805 ac_status=$?
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); }; }; then
21808 eval "$as_ac_var=yes"
21809 else
21810 echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21813 eval "$as_ac_var=no"
21815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21819 if test `eval echo '${'$as_ac_var'}'` = yes; then
21820 cat >>confdefs.h <<_ACEOF
21821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21822 _ACEOF
21825 done
21830 LIBS="$ac_save_LIBS"
21831 CXXFLAGS="$ac_save_CXXFLAGS"
21835 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
21836 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
21837 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
21838 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21844 ac_ext=cc
21845 ac_cpp='$CXXCPP $CPPFLAGS'
21846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21850 cat >conftest.$ac_ext <<_ACEOF
21851 #line $LINENO "configure"
21852 /* confdefs.h. */
21853 _ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h. */
21857 #include <math.h>
21859 main ()
21861 __builtin_abs(0);
21863 return 0;
21865 _ACEOF
21866 rm -f conftest.$ac_objext
21867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21868 (eval $ac_compile) 2>&5
21869 ac_status=$?
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } &&
21872 { ac_try='test -s conftest.$ac_objext'
21873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874 (eval $ac_try) 2>&5
21875 ac_status=$?
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); }; }; then
21878 glibcxx_cv_func___builtin_abs_use=yes
21879 else
21880 echo "$as_me: failed program was:" >&5
21881 sed 's/^/| /' conftest.$ac_ext >&5
21883 glibcxx_cv_func___builtin_abs_use=no
21885 rm -f conftest.$ac_objext conftest.$ac_ext
21886 ac_ext=c
21887 ac_cpp='$CPP $CPPFLAGS'
21888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21896 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
21897 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
21898 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
21899 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
21900 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
21901 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
21902 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
21903 echo $ECHO_N "(cached) $ECHO_C" >&6
21904 else
21906 cat >conftest.$ac_ext <<_ACEOF
21907 #line $LINENO "configure"
21908 /* confdefs.h. */
21909 _ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h. */
21913 #include <math.h>
21915 main ()
21917 __builtin_abs(0);
21919 return 0;
21921 _ACEOF
21922 rm -f conftest.$ac_objext conftest$ac_exeext
21923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21924 (eval $ac_link) 2>&5
21925 ac_status=$?
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } &&
21928 { ac_try='test -s conftest$ac_exeext'
21929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21931 ac_status=$?
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; }; then
21934 glibcxx_cv_func___builtin_abs_link=yes
21935 else
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21939 glibcxx_cv_func___builtin_abs_link=no
21941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21946 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
21947 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
21948 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
21949 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21950 cat >>confdefs.h <<_ACEOF
21951 #define ${ac_tr_func} 1
21952 _ACEOF
21958 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
21959 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
21960 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
21961 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21963 else
21967 ac_ext=cc
21968 ac_cpp='$CXXCPP $CPPFLAGS'
21969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21973 cat >conftest.$ac_ext <<_ACEOF
21974 #line $LINENO "configure"
21975 /* confdefs.h. */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21980 #include <math.h>
21982 main ()
21984 __builtin_fabsf(0);
21986 return 0;
21988 _ACEOF
21989 rm -f conftest.$ac_objext
21990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21991 (eval $ac_compile) 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } &&
21995 { ac_try='test -s conftest.$ac_objext'
21996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997 (eval $ac_try) 2>&5
21998 ac_status=$?
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; }; then
22001 glibcxx_cv_func___builtin_fabsf_use=yes
22002 else
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22006 glibcxx_cv_func___builtin_fabsf_use=no
22008 rm -f conftest.$ac_objext conftest.$ac_ext
22009 ac_ext=c
22010 ac_cpp='$CPP $CPPFLAGS'
22011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22019 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
22020 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
22021 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
22022 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
22023 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
22024 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
22025 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
22026 echo $ECHO_N "(cached) $ECHO_C" >&6
22027 else
22029 cat >conftest.$ac_ext <<_ACEOF
22030 #line $LINENO "configure"
22031 /* confdefs.h. */
22032 _ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22036 #include <math.h>
22038 main ()
22040 __builtin_fabsf(0);
22042 return 0;
22044 _ACEOF
22045 rm -f conftest.$ac_objext conftest$ac_exeext
22046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22047 (eval $ac_link) 2>&5
22048 ac_status=$?
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } &&
22051 { ac_try='test -s conftest$ac_exeext'
22052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053 (eval $ac_try) 2>&5
22054 ac_status=$?
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; }; then
22057 glibcxx_cv_func___builtin_fabsf_link=yes
22058 else
22059 echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22062 glibcxx_cv_func___builtin_fabsf_link=no
22064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22069 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
22070 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
22071 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
22072 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22073 cat >>confdefs.h <<_ACEOF
22074 #define ${ac_tr_func} 1
22075 _ACEOF
22081 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
22082 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
22083 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
22084 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
22085 echo $ECHO_N "(cached) $ECHO_C" >&6
22086 else
22090 ac_ext=cc
22091 ac_cpp='$CXXCPP $CPPFLAGS'
22092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22096 cat >conftest.$ac_ext <<_ACEOF
22097 #line $LINENO "configure"
22098 /* confdefs.h. */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103 #include <math.h>
22105 main ()
22107 __builtin_fabs(0);
22109 return 0;
22111 _ACEOF
22112 rm -f conftest.$ac_objext
22113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22114 (eval $ac_compile) 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } &&
22118 { ac_try='test -s conftest.$ac_objext'
22119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22120 (eval $ac_try) 2>&5
22121 ac_status=$?
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; }; then
22124 glibcxx_cv_func___builtin_fabs_use=yes
22125 else
22126 echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22129 glibcxx_cv_func___builtin_fabs_use=no
22131 rm -f conftest.$ac_objext conftest.$ac_ext
22132 ac_ext=c
22133 ac_cpp='$CPP $CPPFLAGS'
22134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22142 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
22143 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
22144 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
22145 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
22146 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
22147 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
22148 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
22149 echo $ECHO_N "(cached) $ECHO_C" >&6
22150 else
22152 cat >conftest.$ac_ext <<_ACEOF
22153 #line $LINENO "configure"
22154 /* confdefs.h. */
22155 _ACEOF
22156 cat confdefs.h >>conftest.$ac_ext
22157 cat >>conftest.$ac_ext <<_ACEOF
22158 /* end confdefs.h. */
22159 #include <math.h>
22161 main ()
22163 __builtin_fabs(0);
22165 return 0;
22167 _ACEOF
22168 rm -f conftest.$ac_objext conftest$ac_exeext
22169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22170 (eval $ac_link) 2>&5
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); } &&
22174 { ac_try='test -s conftest$ac_exeext'
22175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22176 (eval $ac_try) 2>&5
22177 ac_status=$?
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); }; }; then
22180 glibcxx_cv_func___builtin_fabs_link=yes
22181 else
22182 echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22185 glibcxx_cv_func___builtin_fabs_link=no
22187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22192 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
22193 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
22194 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
22195 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22196 cat >>confdefs.h <<_ACEOF
22197 #define ${ac_tr_func} 1
22198 _ACEOF
22204 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
22205 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
22206 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
22207 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
22208 echo $ECHO_N "(cached) $ECHO_C" >&6
22209 else
22213 ac_ext=cc
22214 ac_cpp='$CXXCPP $CPPFLAGS'
22215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22219 cat >conftest.$ac_ext <<_ACEOF
22220 #line $LINENO "configure"
22221 /* confdefs.h. */
22222 _ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h. */
22226 #include <math.h>
22228 main ()
22230 __builtin_fabsl(0);
22232 return 0;
22234 _ACEOF
22235 rm -f conftest.$ac_objext
22236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22237 (eval $ac_compile) 2>&5
22238 ac_status=$?
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } &&
22241 { ac_try='test -s conftest.$ac_objext'
22242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243 (eval $ac_try) 2>&5
22244 ac_status=$?
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); }; }; then
22247 glibcxx_cv_func___builtin_fabsl_use=yes
22248 else
22249 echo "$as_me: failed program was:" >&5
22250 sed 's/^/| /' conftest.$ac_ext >&5
22252 glibcxx_cv_func___builtin_fabsl_use=no
22254 rm -f conftest.$ac_objext conftest.$ac_ext
22255 ac_ext=c
22256 ac_cpp='$CPP $CPPFLAGS'
22257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22265 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
22266 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
22267 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
22268 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
22269 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
22270 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
22271 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
22272 echo $ECHO_N "(cached) $ECHO_C" >&6
22273 else
22275 cat >conftest.$ac_ext <<_ACEOF
22276 #line $LINENO "configure"
22277 /* confdefs.h. */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h. */
22282 #include <math.h>
22284 main ()
22286 __builtin_fabsl(0);
22288 return 0;
22290 _ACEOF
22291 rm -f conftest.$ac_objext conftest$ac_exeext
22292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22293 (eval $ac_link) 2>&5
22294 ac_status=$?
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } &&
22297 { ac_try='test -s conftest$ac_exeext'
22298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299 (eval $ac_try) 2>&5
22300 ac_status=$?
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); }; }; then
22303 glibcxx_cv_func___builtin_fabsl_link=yes
22304 else
22305 echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22308 glibcxx_cv_func___builtin_fabsl_link=no
22310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22315 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
22316 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
22317 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
22318 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22319 cat >>confdefs.h <<_ACEOF
22320 #define ${ac_tr_func} 1
22321 _ACEOF
22327 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
22328 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
22329 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
22330 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
22331 echo $ECHO_N "(cached) $ECHO_C" >&6
22332 else
22336 ac_ext=cc
22337 ac_cpp='$CXXCPP $CPPFLAGS'
22338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22342 cat >conftest.$ac_ext <<_ACEOF
22343 #line $LINENO "configure"
22344 /* confdefs.h. */
22345 _ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h. */
22349 #include <math.h>
22351 main ()
22353 __builtin_labs(0);
22355 return 0;
22357 _ACEOF
22358 rm -f conftest.$ac_objext
22359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22360 (eval $ac_compile) 2>&5
22361 ac_status=$?
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); } &&
22364 { ac_try='test -s conftest.$ac_objext'
22365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22366 (eval $ac_try) 2>&5
22367 ac_status=$?
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); }; }; then
22370 glibcxx_cv_func___builtin_labs_use=yes
22371 else
22372 echo "$as_me: failed program was:" >&5
22373 sed 's/^/| /' conftest.$ac_ext >&5
22375 glibcxx_cv_func___builtin_labs_use=no
22377 rm -f conftest.$ac_objext conftest.$ac_ext
22378 ac_ext=c
22379 ac_cpp='$CPP $CPPFLAGS'
22380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22388 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
22389 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
22390 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
22391 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
22392 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
22393 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
22394 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
22395 echo $ECHO_N "(cached) $ECHO_C" >&6
22396 else
22398 cat >conftest.$ac_ext <<_ACEOF
22399 #line $LINENO "configure"
22400 /* confdefs.h. */
22401 _ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22405 #include <math.h>
22407 main ()
22409 __builtin_labs(0);
22411 return 0;
22413 _ACEOF
22414 rm -f conftest.$ac_objext conftest$ac_exeext
22415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22416 (eval $ac_link) 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); } &&
22420 { ac_try='test -s conftest$ac_exeext'
22421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22422 (eval $ac_try) 2>&5
22423 ac_status=$?
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); }; }; then
22426 glibcxx_cv_func___builtin_labs_link=yes
22427 else
22428 echo "$as_me: failed program was:" >&5
22429 sed 's/^/| /' conftest.$ac_ext >&5
22431 glibcxx_cv_func___builtin_labs_link=no
22433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22438 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
22439 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
22440 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
22441 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22442 cat >>confdefs.h <<_ACEOF
22443 #define ${ac_tr_func} 1
22444 _ACEOF
22451 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
22452 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
22453 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
22454 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
22455 echo $ECHO_N "(cached) $ECHO_C" >&6
22456 else
22460 ac_ext=cc
22461 ac_cpp='$CXXCPP $CPPFLAGS'
22462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22466 cat >conftest.$ac_ext <<_ACEOF
22467 #line $LINENO "configure"
22468 /* confdefs.h. */
22469 _ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h. */
22473 #include <math.h>
22475 main ()
22477 __builtin_sqrtf(0);
22479 return 0;
22481 _ACEOF
22482 rm -f conftest.$ac_objext
22483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22484 (eval $ac_compile) 2>&5
22485 ac_status=$?
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } &&
22488 { ac_try='test -s conftest.$ac_objext'
22489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490 (eval $ac_try) 2>&5
22491 ac_status=$?
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); }; }; then
22494 glibcxx_cv_func___builtin_sqrtf_use=yes
22495 else
22496 echo "$as_me: failed program was:" >&5
22497 sed 's/^/| /' conftest.$ac_ext >&5
22499 glibcxx_cv_func___builtin_sqrtf_use=no
22501 rm -f conftest.$ac_objext conftest.$ac_ext
22502 ac_ext=c
22503 ac_cpp='$CPP $CPPFLAGS'
22504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22512 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
22513 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
22514 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
22515 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
22516 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
22517 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
22518 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
22519 echo $ECHO_N "(cached) $ECHO_C" >&6
22520 else
22522 cat >conftest.$ac_ext <<_ACEOF
22523 #line $LINENO "configure"
22524 /* confdefs.h. */
22525 _ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h. */
22529 #include <math.h>
22531 main ()
22533 __builtin_sqrtf(0);
22535 return 0;
22537 _ACEOF
22538 rm -f conftest.$ac_objext conftest$ac_exeext
22539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22540 (eval $ac_link) 2>&5
22541 ac_status=$?
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); } &&
22544 { ac_try='test -s conftest$ac_exeext'
22545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22546 (eval $ac_try) 2>&5
22547 ac_status=$?
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; }; then
22550 glibcxx_cv_func___builtin_sqrtf_link=yes
22551 else
22552 echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22555 glibcxx_cv_func___builtin_sqrtf_link=no
22557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22562 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
22563 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
22564 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
22565 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22566 cat >>confdefs.h <<_ACEOF
22567 #define ${ac_tr_func} 1
22568 _ACEOF
22574 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
22575 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
22576 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
22577 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
22578 echo $ECHO_N "(cached) $ECHO_C" >&6
22579 else
22583 ac_ext=cc
22584 ac_cpp='$CXXCPP $CPPFLAGS'
22585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22589 cat >conftest.$ac_ext <<_ACEOF
22590 #line $LINENO "configure"
22591 /* confdefs.h. */
22592 _ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h. */
22596 #include <math.h>
22598 main ()
22600 __builtin_sqrt(0);
22602 return 0;
22604 _ACEOF
22605 rm -f conftest.$ac_objext
22606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22607 (eval $ac_compile) 2>&5
22608 ac_status=$?
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } &&
22611 { ac_try='test -s conftest.$ac_objext'
22612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613 (eval $ac_try) 2>&5
22614 ac_status=$?
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); }; }; then
22617 glibcxx_cv_func___builtin_sqrt_use=yes
22618 else
22619 echo "$as_me: failed program was:" >&5
22620 sed 's/^/| /' conftest.$ac_ext >&5
22622 glibcxx_cv_func___builtin_sqrt_use=no
22624 rm -f conftest.$ac_objext conftest.$ac_ext
22625 ac_ext=c
22626 ac_cpp='$CPP $CPPFLAGS'
22627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22635 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
22636 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
22637 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
22638 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
22639 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
22640 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
22641 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
22642 echo $ECHO_N "(cached) $ECHO_C" >&6
22643 else
22645 cat >conftest.$ac_ext <<_ACEOF
22646 #line $LINENO "configure"
22647 /* confdefs.h. */
22648 _ACEOF
22649 cat confdefs.h >>conftest.$ac_ext
22650 cat >>conftest.$ac_ext <<_ACEOF
22651 /* end confdefs.h. */
22652 #include <math.h>
22654 main ()
22656 __builtin_sqrt(0);
22658 return 0;
22660 _ACEOF
22661 rm -f conftest.$ac_objext conftest$ac_exeext
22662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22663 (eval $ac_link) 2>&5
22664 ac_status=$?
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); } &&
22667 { ac_try='test -s conftest$ac_exeext'
22668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669 (eval $ac_try) 2>&5
22670 ac_status=$?
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); }; }; then
22673 glibcxx_cv_func___builtin_sqrt_link=yes
22674 else
22675 echo "$as_me: failed program was:" >&5
22676 sed 's/^/| /' conftest.$ac_ext >&5
22678 glibcxx_cv_func___builtin_sqrt_link=no
22680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22685 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
22686 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
22687 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
22688 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22689 cat >>confdefs.h <<_ACEOF
22690 #define ${ac_tr_func} 1
22691 _ACEOF
22697 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
22698 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
22699 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
22700 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
22701 echo $ECHO_N "(cached) $ECHO_C" >&6
22702 else
22706 ac_ext=cc
22707 ac_cpp='$CXXCPP $CPPFLAGS'
22708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22712 cat >conftest.$ac_ext <<_ACEOF
22713 #line $LINENO "configure"
22714 /* confdefs.h. */
22715 _ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h. */
22719 #include <math.h>
22721 main ()
22723 __builtin_sqrtl(0);
22725 return 0;
22727 _ACEOF
22728 rm -f conftest.$ac_objext
22729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22730 (eval $ac_compile) 2>&5
22731 ac_status=$?
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } &&
22734 { ac_try='test -s conftest.$ac_objext'
22735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22736 (eval $ac_try) 2>&5
22737 ac_status=$?
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); }; }; then
22740 glibcxx_cv_func___builtin_sqrtl_use=yes
22741 else
22742 echo "$as_me: failed program was:" >&5
22743 sed 's/^/| /' conftest.$ac_ext >&5
22745 glibcxx_cv_func___builtin_sqrtl_use=no
22747 rm -f conftest.$ac_objext conftest.$ac_ext
22748 ac_ext=c
22749 ac_cpp='$CPP $CPPFLAGS'
22750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22758 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
22759 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
22760 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
22761 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
22762 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
22763 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
22764 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
22765 echo $ECHO_N "(cached) $ECHO_C" >&6
22766 else
22768 cat >conftest.$ac_ext <<_ACEOF
22769 #line $LINENO "configure"
22770 /* confdefs.h. */
22771 _ACEOF
22772 cat confdefs.h >>conftest.$ac_ext
22773 cat >>conftest.$ac_ext <<_ACEOF
22774 /* end confdefs.h. */
22775 #include <math.h>
22777 main ()
22779 __builtin_sqrtl(0);
22781 return 0;
22783 _ACEOF
22784 rm -f conftest.$ac_objext conftest$ac_exeext
22785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22786 (eval $ac_link) 2>&5
22787 ac_status=$?
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); } &&
22790 { ac_try='test -s conftest$ac_exeext'
22791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22792 (eval $ac_try) 2>&5
22793 ac_status=$?
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); }; }; then
22796 glibcxx_cv_func___builtin_sqrtl_link=yes
22797 else
22798 echo "$as_me: failed program was:" >&5
22799 sed 's/^/| /' conftest.$ac_ext >&5
22801 glibcxx_cv_func___builtin_sqrtl_link=no
22803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22808 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
22809 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
22810 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
22811 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22812 cat >>confdefs.h <<_ACEOF
22813 #define ${ac_tr_func} 1
22814 _ACEOF
22821 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
22822 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
22823 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
22824 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
22825 echo $ECHO_N "(cached) $ECHO_C" >&6
22826 else
22830 ac_ext=cc
22831 ac_cpp='$CXXCPP $CPPFLAGS'
22832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22836 cat >conftest.$ac_ext <<_ACEOF
22837 #line $LINENO "configure"
22838 /* confdefs.h. */
22839 _ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h. */
22843 #include <math.h>
22845 main ()
22847 __builtin_sinf(0);
22849 return 0;
22851 _ACEOF
22852 rm -f conftest.$ac_objext
22853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22854 (eval $ac_compile) 2>&5
22855 ac_status=$?
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); } &&
22858 { ac_try='test -s conftest.$ac_objext'
22859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860 (eval $ac_try) 2>&5
22861 ac_status=$?
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }; }; then
22864 glibcxx_cv_func___builtin_sinf_use=yes
22865 else
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22869 glibcxx_cv_func___builtin_sinf_use=no
22871 rm -f conftest.$ac_objext conftest.$ac_ext
22872 ac_ext=c
22873 ac_cpp='$CPP $CPPFLAGS'
22874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22882 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
22883 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
22884 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
22885 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
22886 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
22887 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
22888 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
22889 echo $ECHO_N "(cached) $ECHO_C" >&6
22890 else
22892 cat >conftest.$ac_ext <<_ACEOF
22893 #line $LINENO "configure"
22894 /* confdefs.h. */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22899 #include <math.h>
22901 main ()
22903 __builtin_sinf(0);
22905 return 0;
22907 _ACEOF
22908 rm -f conftest.$ac_objext conftest$ac_exeext
22909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22910 (eval $ac_link) 2>&5
22911 ac_status=$?
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); } &&
22914 { ac_try='test -s conftest$ac_exeext'
22915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22916 (eval $ac_try) 2>&5
22917 ac_status=$?
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); }; }; then
22920 glibcxx_cv_func___builtin_sinf_link=yes
22921 else
22922 echo "$as_me: failed program was:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22925 glibcxx_cv_func___builtin_sinf_link=no
22927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22932 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
22933 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
22934 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
22935 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22936 cat >>confdefs.h <<_ACEOF
22937 #define ${ac_tr_func} 1
22938 _ACEOF
22944 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
22945 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
22946 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
22947 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
22948 echo $ECHO_N "(cached) $ECHO_C" >&6
22949 else
22953 ac_ext=cc
22954 ac_cpp='$CXXCPP $CPPFLAGS'
22955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22959 cat >conftest.$ac_ext <<_ACEOF
22960 #line $LINENO "configure"
22961 /* confdefs.h. */
22962 _ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h. */
22966 #include <math.h>
22968 main ()
22970 __builtin_sin(0);
22972 return 0;
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___builtin_sin_use=yes
22988 else
22989 echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22992 glibcxx_cv_func___builtin_sin_use=no
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
23005 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
23006 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
23007 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
23008 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
23009 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
23010 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
23011 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
23012 echo $ECHO_N "(cached) $ECHO_C" >&6
23013 else
23015 cat >conftest.$ac_ext <<_ACEOF
23016 #line $LINENO "configure"
23017 /* confdefs.h. */
23018 _ACEOF
23019 cat confdefs.h >>conftest.$ac_ext
23020 cat >>conftest.$ac_ext <<_ACEOF
23021 /* end confdefs.h. */
23022 #include <math.h>
23024 main ()
23026 __builtin_sin(0);
23028 return 0;
23030 _ACEOF
23031 rm -f conftest.$ac_objext conftest$ac_exeext
23032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23033 (eval $ac_link) 2>&5
23034 ac_status=$?
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); } &&
23037 { ac_try='test -s conftest$ac_exeext'
23038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23039 (eval $ac_try) 2>&5
23040 ac_status=$?
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); }; }; then
23043 glibcxx_cv_func___builtin_sin_link=yes
23044 else
23045 echo "$as_me: failed program was:" >&5
23046 sed 's/^/| /' conftest.$ac_ext >&5
23048 glibcxx_cv_func___builtin_sin_link=no
23050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23055 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
23056 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
23057 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
23058 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23059 cat >>confdefs.h <<_ACEOF
23060 #define ${ac_tr_func} 1
23061 _ACEOF
23067 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
23068 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
23069 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
23070 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
23071 echo $ECHO_N "(cached) $ECHO_C" >&6
23072 else
23076 ac_ext=cc
23077 ac_cpp='$CXXCPP $CPPFLAGS'
23078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23082 cat >conftest.$ac_ext <<_ACEOF
23083 #line $LINENO "configure"
23084 /* confdefs.h. */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 #include <math.h>
23091 main ()
23093 __builtin_sinl(0);
23095 return 0;
23097 _ACEOF
23098 rm -f conftest.$ac_objext
23099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23100 (eval $ac_compile) 2>&5
23101 ac_status=$?
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } &&
23104 { ac_try='test -s conftest.$ac_objext'
23105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23106 (eval $ac_try) 2>&5
23107 ac_status=$?
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); }; }; then
23110 glibcxx_cv_func___builtin_sinl_use=yes
23111 else
23112 echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23115 glibcxx_cv_func___builtin_sinl_use=no
23117 rm -f conftest.$ac_objext conftest.$ac_ext
23118 ac_ext=c
23119 ac_cpp='$CPP $CPPFLAGS'
23120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23128 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
23129 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
23130 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
23131 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
23132 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
23133 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
23134 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
23135 echo $ECHO_N "(cached) $ECHO_C" >&6
23136 else
23138 cat >conftest.$ac_ext <<_ACEOF
23139 #line $LINENO "configure"
23140 /* confdefs.h. */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23145 #include <math.h>
23147 main ()
23149 __builtin_sinl(0);
23151 return 0;
23153 _ACEOF
23154 rm -f conftest.$ac_objext conftest$ac_exeext
23155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23156 (eval $ac_link) 2>&5
23157 ac_status=$?
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); } &&
23160 { ac_try='test -s conftest$ac_exeext'
23161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162 (eval $ac_try) 2>&5
23163 ac_status=$?
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 glibcxx_cv_func___builtin_sinl_link=yes
23167 else
23168 echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23171 glibcxx_cv_func___builtin_sinl_link=no
23173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23178 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
23179 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
23180 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
23181 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23182 cat >>confdefs.h <<_ACEOF
23183 #define ${ac_tr_func} 1
23184 _ACEOF
23191 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
23192 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
23193 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
23194 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
23195 echo $ECHO_N "(cached) $ECHO_C" >&6
23196 else
23200 ac_ext=cc
23201 ac_cpp='$CXXCPP $CPPFLAGS'
23202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23206 cat >conftest.$ac_ext <<_ACEOF
23207 #line $LINENO "configure"
23208 /* confdefs.h. */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23213 #include <math.h>
23215 main ()
23217 __builtin_cosf(0);
23219 return 0;
23221 _ACEOF
23222 rm -f conftest.$ac_objext
23223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23224 (eval $ac_compile) 2>&5
23225 ac_status=$?
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } &&
23228 { ac_try='test -s conftest.$ac_objext'
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23231 ac_status=$?
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 glibcxx_cv_func___builtin_cosf_use=yes
23235 else
23236 echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23239 glibcxx_cv_func___builtin_cosf_use=no
23241 rm -f conftest.$ac_objext conftest.$ac_ext
23242 ac_ext=c
23243 ac_cpp='$CPP $CPPFLAGS'
23244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23252 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
23253 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
23254 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
23255 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
23256 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
23257 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
23258 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
23259 echo $ECHO_N "(cached) $ECHO_C" >&6
23260 else
23262 cat >conftest.$ac_ext <<_ACEOF
23263 #line $LINENO "configure"
23264 /* confdefs.h. */
23265 _ACEOF
23266 cat confdefs.h >>conftest.$ac_ext
23267 cat >>conftest.$ac_ext <<_ACEOF
23268 /* end confdefs.h. */
23269 #include <math.h>
23271 main ()
23273 __builtin_cosf(0);
23275 return 0;
23277 _ACEOF
23278 rm -f conftest.$ac_objext conftest$ac_exeext
23279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23280 (eval $ac_link) 2>&5
23281 ac_status=$?
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); } &&
23284 { ac_try='test -s conftest$ac_exeext'
23285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286 (eval $ac_try) 2>&5
23287 ac_status=$?
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; }; then
23290 glibcxx_cv_func___builtin_cosf_link=yes
23291 else
23292 echo "$as_me: failed program was:" >&5
23293 sed 's/^/| /' conftest.$ac_ext >&5
23295 glibcxx_cv_func___builtin_cosf_link=no
23297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23302 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
23303 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
23304 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
23305 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23306 cat >>confdefs.h <<_ACEOF
23307 #define ${ac_tr_func} 1
23308 _ACEOF
23314 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
23315 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
23316 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
23317 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
23318 echo $ECHO_N "(cached) $ECHO_C" >&6
23319 else
23323 ac_ext=cc
23324 ac_cpp='$CXXCPP $CPPFLAGS'
23325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23329 cat >conftest.$ac_ext <<_ACEOF
23330 #line $LINENO "configure"
23331 /* confdefs.h. */
23332 _ACEOF
23333 cat confdefs.h >>conftest.$ac_ext
23334 cat >>conftest.$ac_ext <<_ACEOF
23335 /* end confdefs.h. */
23336 #include <math.h>
23338 main ()
23340 __builtin_cos(0);
23342 return 0;
23344 _ACEOF
23345 rm -f conftest.$ac_objext
23346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23347 (eval $ac_compile) 2>&5
23348 ac_status=$?
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } &&
23351 { ac_try='test -s conftest.$ac_objext'
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23354 ac_status=$?
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; }; then
23357 glibcxx_cv_func___builtin_cos_use=yes
23358 else
23359 echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23362 glibcxx_cv_func___builtin_cos_use=no
23364 rm -f conftest.$ac_objext conftest.$ac_ext
23365 ac_ext=c
23366 ac_cpp='$CPP $CPPFLAGS'
23367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23375 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
23376 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
23377 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
23378 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
23379 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
23380 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
23381 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
23382 echo $ECHO_N "(cached) $ECHO_C" >&6
23383 else
23385 cat >conftest.$ac_ext <<_ACEOF
23386 #line $LINENO "configure"
23387 /* confdefs.h. */
23388 _ACEOF
23389 cat confdefs.h >>conftest.$ac_ext
23390 cat >>conftest.$ac_ext <<_ACEOF
23391 /* end confdefs.h. */
23392 #include <math.h>
23394 main ()
23396 __builtin_cos(0);
23398 return 0;
23400 _ACEOF
23401 rm -f conftest.$ac_objext conftest$ac_exeext
23402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23403 (eval $ac_link) 2>&5
23404 ac_status=$?
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); } &&
23407 { ac_try='test -s conftest$ac_exeext'
23408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23409 (eval $ac_try) 2>&5
23410 ac_status=$?
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); }; }; then
23413 glibcxx_cv_func___builtin_cos_link=yes
23414 else
23415 echo "$as_me: failed program was:" >&5
23416 sed 's/^/| /' conftest.$ac_ext >&5
23418 glibcxx_cv_func___builtin_cos_link=no
23420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23425 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
23426 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
23427 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
23428 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23429 cat >>confdefs.h <<_ACEOF
23430 #define ${ac_tr_func} 1
23431 _ACEOF
23437 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
23438 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
23439 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
23440 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23442 else
23446 ac_ext=cc
23447 ac_cpp='$CXXCPP $CPPFLAGS'
23448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23452 cat >conftest.$ac_ext <<_ACEOF
23453 #line $LINENO "configure"
23454 /* confdefs.h. */
23455 _ACEOF
23456 cat confdefs.h >>conftest.$ac_ext
23457 cat >>conftest.$ac_ext <<_ACEOF
23458 /* end confdefs.h. */
23459 #include <math.h>
23461 main ()
23463 __builtin_cosl(0);
23465 return 0;
23467 _ACEOF
23468 rm -f conftest.$ac_objext
23469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23470 (eval $ac_compile) 2>&5
23471 ac_status=$?
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } &&
23474 { ac_try='test -s conftest.$ac_objext'
23475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476 (eval $ac_try) 2>&5
23477 ac_status=$?
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; }; then
23480 glibcxx_cv_func___builtin_cosl_use=yes
23481 else
23482 echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23485 glibcxx_cv_func___builtin_cosl_use=no
23487 rm -f conftest.$ac_objext conftest.$ac_ext
23488 ac_ext=c
23489 ac_cpp='$CPP $CPPFLAGS'
23490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23498 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
23499 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
23500 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
23501 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
23502 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
23503 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
23504 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
23505 echo $ECHO_N "(cached) $ECHO_C" >&6
23506 else
23508 cat >conftest.$ac_ext <<_ACEOF
23509 #line $LINENO "configure"
23510 /* confdefs.h. */
23511 _ACEOF
23512 cat confdefs.h >>conftest.$ac_ext
23513 cat >>conftest.$ac_ext <<_ACEOF
23514 /* end confdefs.h. */
23515 #include <math.h>
23517 main ()
23519 __builtin_cosl(0);
23521 return 0;
23523 _ACEOF
23524 rm -f conftest.$ac_objext conftest$ac_exeext
23525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23526 (eval $ac_link) 2>&5
23527 ac_status=$?
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); } &&
23530 { ac_try='test -s conftest$ac_exeext'
23531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23532 (eval $ac_try) 2>&5
23533 ac_status=$?
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); }; }; then
23536 glibcxx_cv_func___builtin_cosl_link=yes
23537 else
23538 echo "$as_me: failed program was:" >&5
23539 sed 's/^/| /' conftest.$ac_ext >&5
23541 glibcxx_cv_func___builtin_cosl_link=no
23543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23548 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
23549 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
23550 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
23551 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23552 cat >>confdefs.h <<_ACEOF
23553 #define ${ac_tr_func} 1
23554 _ACEOF
23560 dummyvar=no
23561 if test x$dummyvar = x"yes"; then
23562 cat >>confdefs.h <<\_ACEOF
23563 #define HAVE___BUILTIN_ABS 1
23564 _ACEOF
23566 cat >>confdefs.h <<\_ACEOF
23567 #define HAVE___BUILTIN_LABS 1
23568 _ACEOF
23570 cat >>confdefs.h <<\_ACEOF
23571 #define HAVE___BUILTIN_COS 1
23572 _ACEOF
23574 cat >>confdefs.h <<\_ACEOF
23575 #define HAVE___BUILTIN_COSF 1
23576 _ACEOF
23578 cat >>confdefs.h <<\_ACEOF
23579 #define HAVE___BUILTIN_COSL 1
23580 _ACEOF
23582 cat >>confdefs.h <<\_ACEOF
23583 #define HAVE___BUILTIN_FABS 1
23584 _ACEOF
23586 cat >>confdefs.h <<\_ACEOF
23587 #define HAVE___BUILTIN_FABSF 1
23588 _ACEOF
23590 cat >>confdefs.h <<\_ACEOF
23591 #define HAVE___BUILTIN_FABSL 1
23592 _ACEOF
23594 cat >>confdefs.h <<\_ACEOF
23595 #define HAVE___BUILTIN_SIN 1
23596 _ACEOF
23598 cat >>confdefs.h <<\_ACEOF
23599 #define HAVE___BUILTIN_SINF 1
23600 _ACEOF
23602 cat >>confdefs.h <<\_ACEOF
23603 #define HAVE___BUILTIN_SINL 1
23604 _ACEOF
23606 cat >>confdefs.h <<\_ACEOF
23607 #define HAVE___BUILTIN_SQRT 1
23608 _ACEOF
23610 cat >>confdefs.h <<\_ACEOF
23611 #define HAVE___BUILTIN_SQRTF 1
23612 _ACEOF
23614 cat >>confdefs.h <<\_ACEOF
23615 #define HAVE___BUILTIN_SQRTL 1
23616 _ACEOF
23622 echo "$as_me:$LINENO: checking for main in -lm" >&5
23623 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
23624 if test "${ac_cv_lib_m_main+set}" = set; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23626 else
23627 ac_check_lib_save_LIBS=$LIBS
23628 LIBS="-lm $LIBS"
23629 cat >conftest.$ac_ext <<_ACEOF
23630 #line $LINENO "configure"
23631 /* confdefs.h. */
23632 _ACEOF
23633 cat confdefs.h >>conftest.$ac_ext
23634 cat >>conftest.$ac_ext <<_ACEOF
23635 /* end confdefs.h. */
23639 main ()
23641 main ();
23643 return 0;
23645 _ACEOF
23646 rm -f conftest.$ac_objext conftest$ac_exeext
23647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23648 (eval $ac_link) 2>&5
23649 ac_status=$?
23650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); } &&
23652 { ac_try='test -s conftest$ac_exeext'
23653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23654 (eval $ac_try) 2>&5
23655 ac_status=$?
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); }; }; then
23658 ac_cv_lib_m_main=yes
23659 else
23660 echo "$as_me: failed program was:" >&5
23661 sed 's/^/| /' conftest.$ac_ext >&5
23663 ac_cv_lib_m_main=no
23665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23666 LIBS=$ac_check_lib_save_LIBS
23668 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
23669 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
23670 if test $ac_cv_lib_m_main = yes; then
23671 cat >>confdefs.h <<_ACEOF
23672 #define HAVE_LIBM 1
23673 _ACEOF
23675 LIBS="-lm $LIBS"
23681 for ac_func in nan copysignf
23683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23684 echo "$as_me:$LINENO: checking for $ac_func" >&5
23685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23686 if eval "test \"\${$as_ac_var+set}\" = set"; then
23687 echo $ECHO_N "(cached) $ECHO_C" >&6
23688 else
23689 cat >conftest.$ac_ext <<_ACEOF
23690 #line $LINENO "configure"
23691 /* confdefs.h. */
23692 _ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h. */
23696 /* System header to define __stub macros and hopefully few prototypes,
23697 which can conflict with char $ac_func (); below.
23698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23699 <limits.h> exists even on freestanding compilers. */
23700 #ifdef __STDC__
23701 # include <limits.h>
23702 #else
23703 # include <assert.h>
23704 #endif
23705 /* Override any gcc2 internal prototype to avoid an error. */
23706 #ifdef __cplusplus
23707 extern "C"
23709 #endif
23710 /* We use char because int might match the return type of a gcc2
23711 builtin and then its argument prototype would still apply. */
23712 char $ac_func ();
23713 /* The GNU C library defines this for functions which it implements
23714 to always fail with ENOSYS. Some functions are actually named
23715 something starting with __ and the normal name is an alias. */
23716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23717 choke me
23718 #else
23719 char (*f) () = $ac_func;
23720 #endif
23721 #ifdef __cplusplus
23723 #endif
23726 main ()
23728 return f != $ac_func;
23730 return 0;
23732 _ACEOF
23733 rm -f conftest.$ac_objext conftest$ac_exeext
23734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23735 (eval $ac_link) 2>&5
23736 ac_status=$?
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); } &&
23739 { ac_try='test -s conftest$ac_exeext'
23740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23741 (eval $ac_try) 2>&5
23742 ac_status=$?
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); }; }; then
23745 eval "$as_ac_var=yes"
23746 else
23747 echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23750 eval "$as_ac_var=no"
23752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23756 if test `eval echo '${'$as_ac_var'}'` = yes; then
23757 cat >>confdefs.h <<_ACEOF
23758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23759 _ACEOF
23761 else
23762 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
23764 done
23768 for ac_func in __signbit
23770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23771 echo "$as_me:$LINENO: checking for $ac_func" >&5
23772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23773 if eval "test \"\${$as_ac_var+set}\" = set"; then
23774 echo $ECHO_N "(cached) $ECHO_C" >&6
23775 else
23776 cat >conftest.$ac_ext <<_ACEOF
23777 #line $LINENO "configure"
23778 /* confdefs.h. */
23779 _ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h. */
23783 /* System header to define __stub macros and hopefully few prototypes,
23784 which can conflict with char $ac_func (); below.
23785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23786 <limits.h> exists even on freestanding compilers. */
23787 #ifdef __STDC__
23788 # include <limits.h>
23789 #else
23790 # include <assert.h>
23791 #endif
23792 /* Override any gcc2 internal prototype to avoid an error. */
23793 #ifdef __cplusplus
23794 extern "C"
23796 #endif
23797 /* We use char because int might match the return type of a gcc2
23798 builtin and then its argument prototype would still apply. */
23799 char $ac_func ();
23800 /* The GNU C library defines this for functions which it implements
23801 to always fail with ENOSYS. Some functions are actually named
23802 something starting with __ and the normal name is an alias. */
23803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23804 choke me
23805 #else
23806 char (*f) () = $ac_func;
23807 #endif
23808 #ifdef __cplusplus
23810 #endif
23813 main ()
23815 return f != $ac_func;
23817 return 0;
23819 _ACEOF
23820 rm -f conftest.$ac_objext conftest$ac_exeext
23821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23822 (eval $ac_link) 2>&5
23823 ac_status=$?
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); } &&
23826 { ac_try='test -s conftest$ac_exeext'
23827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23828 (eval $ac_try) 2>&5
23829 ac_status=$?
23830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831 (exit $ac_status); }; }; then
23832 eval "$as_ac_var=yes"
23833 else
23834 echo "$as_me: failed program was:" >&5
23835 sed 's/^/| /' conftest.$ac_ext >&5
23837 eval "$as_ac_var=no"
23839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23843 if test `eval echo '${'$as_ac_var'}'` = yes; then
23844 cat >>confdefs.h <<_ACEOF
23845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23846 _ACEOF
23848 else
23849 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
23851 done
23854 for ac_func in __signbitf
23856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23857 echo "$as_me:$LINENO: checking for $ac_func" >&5
23858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23859 if eval "test \"\${$as_ac_var+set}\" = set"; then
23860 echo $ECHO_N "(cached) $ECHO_C" >&6
23861 else
23862 cat >conftest.$ac_ext <<_ACEOF
23863 #line $LINENO "configure"
23864 /* confdefs.h. */
23865 _ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h. */
23869 /* System header to define __stub macros and hopefully few prototypes,
23870 which can conflict with char $ac_func (); below.
23871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23872 <limits.h> exists even on freestanding compilers. */
23873 #ifdef __STDC__
23874 # include <limits.h>
23875 #else
23876 # include <assert.h>
23877 #endif
23878 /* Override any gcc2 internal prototype to avoid an error. */
23879 #ifdef __cplusplus
23880 extern "C"
23882 #endif
23883 /* We use char because int might match the return type of a gcc2
23884 builtin and then its argument prototype would still apply. */
23885 char $ac_func ();
23886 /* The GNU C library defines this for functions which it implements
23887 to always fail with ENOSYS. Some functions are actually named
23888 something starting with __ and the normal name is an alias. */
23889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23890 choke me
23891 #else
23892 char (*f) () = $ac_func;
23893 #endif
23894 #ifdef __cplusplus
23896 #endif
23899 main ()
23901 return f != $ac_func;
23903 return 0;
23905 _ACEOF
23906 rm -f conftest.$ac_objext conftest$ac_exeext
23907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23908 (eval $ac_link) 2>&5
23909 ac_status=$?
23910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); } &&
23912 { ac_try='test -s conftest$ac_exeext'
23913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23914 (eval $ac_try) 2>&5
23915 ac_status=$?
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); }; }; then
23918 eval "$as_ac_var=yes"
23919 else
23920 echo "$as_me: failed program was:" >&5
23921 sed 's/^/| /' conftest.$ac_ext >&5
23923 eval "$as_ac_var=no"
23925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23929 if test `eval echo '${'$as_ac_var'}'` = yes; then
23930 cat >>confdefs.h <<_ACEOF
23931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23932 _ACEOF
23934 else
23935 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
23937 done
23940 if test x$ac_cv_func_copysignl = x"yes"; then
23942 for ac_func in __signbitl
23944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23945 echo "$as_me:$LINENO: checking for $ac_func" >&5
23946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23947 if eval "test \"\${$as_ac_var+set}\" = set"; then
23948 echo $ECHO_N "(cached) $ECHO_C" >&6
23949 else
23950 cat >conftest.$ac_ext <<_ACEOF
23951 #line $LINENO "configure"
23952 /* confdefs.h. */
23953 _ACEOF
23954 cat confdefs.h >>conftest.$ac_ext
23955 cat >>conftest.$ac_ext <<_ACEOF
23956 /* end confdefs.h. */
23957 /* System header to define __stub macros and hopefully few prototypes,
23958 which can conflict with char $ac_func (); below.
23959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23960 <limits.h> exists even on freestanding compilers. */
23961 #ifdef __STDC__
23962 # include <limits.h>
23963 #else
23964 # include <assert.h>
23965 #endif
23966 /* Override any gcc2 internal prototype to avoid an error. */
23967 #ifdef __cplusplus
23968 extern "C"
23970 #endif
23971 /* We use char because int might match the return type of a gcc2
23972 builtin and then its argument prototype would still apply. */
23973 char $ac_func ();
23974 /* The GNU C library defines this for functions which it implements
23975 to always fail with ENOSYS. Some functions are actually named
23976 something starting with __ and the normal name is an alias. */
23977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23978 choke me
23979 #else
23980 char (*f) () = $ac_func;
23981 #endif
23982 #ifdef __cplusplus
23984 #endif
23987 main ()
23989 return f != $ac_func;
23991 return 0;
23993 _ACEOF
23994 rm -f conftest.$ac_objext conftest$ac_exeext
23995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23996 (eval $ac_link) 2>&5
23997 ac_status=$?
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } &&
24000 { ac_try='test -s conftest$ac_exeext'
24001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002 (eval $ac_try) 2>&5
24003 ac_status=$?
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); }; }; then
24006 eval "$as_ac_var=yes"
24007 else
24008 echo "$as_me: failed program was:" >&5
24009 sed 's/^/| /' conftest.$ac_ext >&5
24011 eval "$as_ac_var=no"
24013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24017 if test `eval echo '${'$as_ac_var'}'` = yes; then
24018 cat >>confdefs.h <<_ACEOF
24019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24020 _ACEOF
24022 else
24023 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
24025 done
24029 # XXX Review this. Nothing uses it.
24030 if test -n "$LIBMATHOBJS"; then
24031 need_libmath=yes
24036 # Test wchar.h for mbstate_t, which is needed for char_traits and
24037 # others even if wchar_t support is not on.
24038 echo "$as_me:$LINENO: checking for mbstate_t" >&5
24039 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
24040 cat >conftest.$ac_ext <<_ACEOF
24041 #line $LINENO "configure"
24042 /* confdefs.h. */
24043 _ACEOF
24044 cat confdefs.h >>conftest.$ac_ext
24045 cat >>conftest.$ac_ext <<_ACEOF
24046 /* end confdefs.h. */
24047 #include <wchar.h>
24049 main ()
24051 mbstate_t teststate;
24053 return 0;
24055 _ACEOF
24056 rm -f conftest.$ac_objext
24057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24058 (eval $ac_compile) 2>&5
24059 ac_status=$?
24060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); } &&
24062 { ac_try='test -s conftest.$ac_objext'
24063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064 (eval $ac_try) 2>&5
24065 ac_status=$?
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); }; }; then
24068 have_mbstate_t=yes
24069 else
24070 echo "$as_me: failed program was:" >&5
24071 sed 's/^/| /' conftest.$ac_ext >&5
24073 have_mbstate_t=no
24075 rm -f conftest.$ac_objext conftest.$ac_ext
24076 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
24077 echo "${ECHO_T}$have_mbstate_t" >&6
24078 if test x"$have_mbstate_t" = xyes; then
24079 cat >>confdefs.h <<\_ACEOF
24080 #define HAVE_MBSTATE_T 1
24081 _ACEOF
24085 # Sanity check for existence of ISO C99 headers for extended encoding.
24087 for ac_header in wchar.h
24089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24091 echo "$as_me:$LINENO: checking for $ac_header" >&5
24092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24094 echo $ECHO_N "(cached) $ECHO_C" >&6
24096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24098 else
24099 # Is the header compilable?
24100 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24102 cat >conftest.$ac_ext <<_ACEOF
24103 #line $LINENO "configure"
24104 /* confdefs.h. */
24105 _ACEOF
24106 cat confdefs.h >>conftest.$ac_ext
24107 cat >>conftest.$ac_ext <<_ACEOF
24108 /* end confdefs.h. */
24109 $ac_includes_default
24110 #include <$ac_header>
24111 _ACEOF
24112 rm -f conftest.$ac_objext
24113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24114 (eval $ac_compile) 2>&5
24115 ac_status=$?
24116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); } &&
24118 { ac_try='test -s conftest.$ac_objext'
24119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24120 (eval $ac_try) 2>&5
24121 ac_status=$?
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); }; }; then
24124 ac_header_compiler=yes
24125 else
24126 echo "$as_me: failed program was:" >&5
24127 sed 's/^/| /' conftest.$ac_ext >&5
24129 ac_header_compiler=no
24131 rm -f conftest.$ac_objext conftest.$ac_ext
24132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24133 echo "${ECHO_T}$ac_header_compiler" >&6
24135 # Is the header present?
24136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24138 cat >conftest.$ac_ext <<_ACEOF
24139 #line $LINENO "configure"
24140 /* confdefs.h. */
24141 _ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h. */
24145 #include <$ac_header>
24146 _ACEOF
24147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24149 ac_status=$?
24150 grep -v '^ *+' conftest.er1 >conftest.err
24151 rm -f conftest.er1
24152 cat conftest.err >&5
24153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); } >/dev/null; then
24155 if test -s conftest.err; then
24156 ac_cpp_err=$ac_c_preproc_warn_flag
24157 else
24158 ac_cpp_err=
24160 else
24161 ac_cpp_err=yes
24163 if test -z "$ac_cpp_err"; then
24164 ac_header_preproc=yes
24165 else
24166 echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24169 ac_header_preproc=no
24171 rm -f conftest.err conftest.$ac_ext
24172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24173 echo "${ECHO_T}$ac_header_preproc" >&6
24175 # So? What about this header?
24176 case $ac_header_compiler:$ac_header_preproc in
24177 yes:no )
24178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24183 cat <<\_ASBOX
24184 ## ------------------------------------ ##
24185 ## Report this to bug-autoconf@gnu.org. ##
24186 ## ------------------------------------ ##
24187 _ASBOX
24189 sed "s/^/$as_me: WARNING: /" >&2
24191 no:yes )
24192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24199 cat <<\_ASBOX
24200 ## ------------------------------------ ##
24201 ## Report this to bug-autoconf@gnu.org. ##
24202 ## ------------------------------------ ##
24203 _ASBOX
24205 sed "s/^/$as_me: WARNING: /" >&2
24207 esac
24208 echo "$as_me:$LINENO: checking for $ac_header" >&5
24209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24211 echo $ECHO_N "(cached) $ECHO_C" >&6
24212 else
24213 eval "$as_ac_Header=$ac_header_preproc"
24215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24220 cat >>confdefs.h <<_ACEOF
24221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24222 _ACEOF
24223 ac_has_wchar_h=yes
24224 else
24225 ac_has_wchar_h=no
24228 done
24231 for ac_header in wctype.h
24233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24235 echo "$as_me:$LINENO: checking for $ac_header" >&5
24236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24238 echo $ECHO_N "(cached) $ECHO_C" >&6
24240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24242 else
24243 # Is the header compilable?
24244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24246 cat >conftest.$ac_ext <<_ACEOF
24247 #line $LINENO "configure"
24248 /* confdefs.h. */
24249 _ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h. */
24253 $ac_includes_default
24254 #include <$ac_header>
24255 _ACEOF
24256 rm -f conftest.$ac_objext
24257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24258 (eval $ac_compile) 2>&5
24259 ac_status=$?
24260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); } &&
24262 { ac_try='test -s conftest.$ac_objext'
24263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24264 (eval $ac_try) 2>&5
24265 ac_status=$?
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); }; }; then
24268 ac_header_compiler=yes
24269 else
24270 echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24273 ac_header_compiler=no
24275 rm -f conftest.$ac_objext conftest.$ac_ext
24276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24277 echo "${ECHO_T}$ac_header_compiler" >&6
24279 # Is the header present?
24280 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24282 cat >conftest.$ac_ext <<_ACEOF
24283 #line $LINENO "configure"
24284 /* confdefs.h. */
24285 _ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h. */
24289 #include <$ac_header>
24290 _ACEOF
24291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24293 ac_status=$?
24294 grep -v '^ *+' conftest.er1 >conftest.err
24295 rm -f conftest.er1
24296 cat conftest.err >&5
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } >/dev/null; then
24299 if test -s conftest.err; then
24300 ac_cpp_err=$ac_c_preproc_warn_flag
24301 else
24302 ac_cpp_err=
24304 else
24305 ac_cpp_err=yes
24307 if test -z "$ac_cpp_err"; then
24308 ac_header_preproc=yes
24309 else
24310 echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.$ac_ext >&5
24313 ac_header_preproc=no
24315 rm -f conftest.err conftest.$ac_ext
24316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24317 echo "${ECHO_T}$ac_header_preproc" >&6
24319 # So? What about this header?
24320 case $ac_header_compiler:$ac_header_preproc in
24321 yes:no )
24322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24327 cat <<\_ASBOX
24328 ## ------------------------------------ ##
24329 ## Report this to bug-autoconf@gnu.org. ##
24330 ## ------------------------------------ ##
24331 _ASBOX
24333 sed "s/^/$as_me: WARNING: /" >&2
24335 no:yes )
24336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24343 cat <<\_ASBOX
24344 ## ------------------------------------ ##
24345 ## Report this to bug-autoconf@gnu.org. ##
24346 ## ------------------------------------ ##
24347 _ASBOX
24349 sed "s/^/$as_me: WARNING: /" >&2
24351 esac
24352 echo "$as_me:$LINENO: checking for $ac_header" >&5
24353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24355 echo $ECHO_N "(cached) $ECHO_C" >&6
24356 else
24357 eval "$as_ac_Header=$ac_header_preproc"
24359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24364 cat >>confdefs.h <<_ACEOF
24365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24366 _ACEOF
24367 ac_has_wctype_h=yes
24368 else
24369 ac_has_wctype_h=no
24372 done
24375 # Only continue checking if the ISO C99 headers exist and support is on.
24376 if test x"$ac_has_wchar_h" = xyes &&
24377 test x"$ac_has_wctype_h" = xyes &&
24378 test x"$enable_c_mbchar" != xno; then
24380 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
24381 # numeric_limits can instantiate type_traits<wchar_t>
24382 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
24383 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
24384 cat >conftest.$ac_ext <<_ACEOF
24385 #line $LINENO "configure"
24386 /* confdefs.h. */
24387 _ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h. */
24391 #include <wchar.h>
24393 main ()
24395 int i = WCHAR_MIN; int j = WCHAR_MAX;
24397 return 0;
24399 _ACEOF
24400 rm -f conftest.$ac_objext
24401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24402 (eval $ac_compile) 2>&5
24403 ac_status=$?
24404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405 (exit $ac_status); } &&
24406 { ac_try='test -s conftest.$ac_objext'
24407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24408 (eval $ac_try) 2>&5
24409 ac_status=$?
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); }; }; then
24412 has_wchar_minmax=yes
24413 else
24414 echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.$ac_ext >&5
24417 has_wchar_minmax=no
24419 rm -f conftest.$ac_objext conftest.$ac_ext
24420 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
24421 echo "${ECHO_T}$has_wchar_minmax" >&6
24423 # Test wchar.h for WEOF, which is what we use to determine whether
24424 # to specialize for char_traits<wchar_t> or not.
24425 echo "$as_me:$LINENO: checking for WEOF" >&5
24426 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
24427 cat >conftest.$ac_ext <<_ACEOF
24428 #line $LINENO "configure"
24429 /* confdefs.h. */
24430 _ACEOF
24431 cat confdefs.h >>conftest.$ac_ext
24432 cat >>conftest.$ac_ext <<_ACEOF
24433 /* end confdefs.h. */
24435 #include <wchar.h>
24436 #include <stddef.h>
24438 main ()
24440 wint_t i = WEOF;
24442 return 0;
24444 _ACEOF
24445 rm -f conftest.$ac_objext
24446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24447 (eval $ac_compile) 2>&5
24448 ac_status=$?
24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 (exit $ac_status); } &&
24451 { ac_try='test -s conftest.$ac_objext'
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 has_weof=yes
24458 else
24459 echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24462 has_weof=no
24464 rm -f conftest.$ac_objext conftest.$ac_ext
24465 echo "$as_me:$LINENO: result: $has_weof" >&5
24466 echo "${ECHO_T}$has_weof" >&6
24468 # Tests for wide character functions used in char_traits<wchar_t>.
24469 ac_wfuncs=yes
24476 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
24478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24479 echo "$as_me:$LINENO: checking for $ac_func" >&5
24480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24481 if eval "test \"\${$as_ac_var+set}\" = set"; then
24482 echo $ECHO_N "(cached) $ECHO_C" >&6
24483 else
24484 cat >conftest.$ac_ext <<_ACEOF
24485 #line $LINENO "configure"
24486 /* confdefs.h. */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 /* System header to define __stub macros and hopefully few prototypes,
24492 which can conflict with char $ac_func (); below.
24493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24494 <limits.h> exists even on freestanding compilers. */
24495 #ifdef __STDC__
24496 # include <limits.h>
24497 #else
24498 # include <assert.h>
24499 #endif
24500 /* Override any gcc2 internal prototype to avoid an error. */
24501 #ifdef __cplusplus
24502 extern "C"
24504 #endif
24505 /* We use char because int might match the return type of a gcc2
24506 builtin and then its argument prototype would still apply. */
24507 char $ac_func ();
24508 /* The GNU C library defines this for functions which it implements
24509 to always fail with ENOSYS. Some functions are actually named
24510 something starting with __ and the normal name is an alias. */
24511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24512 choke me
24513 #else
24514 char (*f) () = $ac_func;
24515 #endif
24516 #ifdef __cplusplus
24518 #endif
24521 main ()
24523 return f != $ac_func;
24525 return 0;
24527 _ACEOF
24528 rm -f conftest.$ac_objext conftest$ac_exeext
24529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24530 (eval $ac_link) 2>&5
24531 ac_status=$?
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); } &&
24534 { ac_try='test -s conftest$ac_exeext'
24535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24536 (eval $ac_try) 2>&5
24537 ac_status=$?
24538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); }; }; then
24540 eval "$as_ac_var=yes"
24541 else
24542 echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24545 eval "$as_ac_var=no"
24547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24551 if test `eval echo '${'$as_ac_var'}'` = yes; then
24552 cat >>confdefs.h <<_ACEOF
24553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24554 _ACEOF
24556 else
24557 ac_wfuncs=no
24559 done
24562 # Checks for names injected into std:: by the c_std headers.
24613 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
24614 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
24615 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
24616 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
24617 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
24618 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
24620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24621 echo "$as_me:$LINENO: checking for $ac_func" >&5
24622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24623 if eval "test \"\${$as_ac_var+set}\" = set"; then
24624 echo $ECHO_N "(cached) $ECHO_C" >&6
24625 else
24626 cat >conftest.$ac_ext <<_ACEOF
24627 #line $LINENO "configure"
24628 /* confdefs.h. */
24629 _ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h. */
24633 /* System header to define __stub macros and hopefully few prototypes,
24634 which can conflict with char $ac_func (); below.
24635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24636 <limits.h> exists even on freestanding compilers. */
24637 #ifdef __STDC__
24638 # include <limits.h>
24639 #else
24640 # include <assert.h>
24641 #endif
24642 /* Override any gcc2 internal prototype to avoid an error. */
24643 #ifdef __cplusplus
24644 extern "C"
24646 #endif
24647 /* We use char because int might match the return type of a gcc2
24648 builtin and then its argument prototype would still apply. */
24649 char $ac_func ();
24650 /* The GNU C library defines this for functions which it implements
24651 to always fail with ENOSYS. Some functions are actually named
24652 something starting with __ and the normal name is an alias. */
24653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24654 choke me
24655 #else
24656 char (*f) () = $ac_func;
24657 #endif
24658 #ifdef __cplusplus
24660 #endif
24663 main ()
24665 return f != $ac_func;
24667 return 0;
24669 _ACEOF
24670 rm -f conftest.$ac_objext conftest$ac_exeext
24671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24672 (eval $ac_link) 2>&5
24673 ac_status=$?
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); } &&
24676 { ac_try='test -s conftest$ac_exeext'
24677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24678 (eval $ac_try) 2>&5
24679 ac_status=$?
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); }; }; then
24682 eval "$as_ac_var=yes"
24683 else
24684 echo "$as_me: failed program was:" >&5
24685 sed 's/^/| /' conftest.$ac_ext >&5
24687 eval "$as_ac_var=no"
24689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24693 if test `eval echo '${'$as_ac_var'}'` = yes; then
24694 cat >>confdefs.h <<_ACEOF
24695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24696 _ACEOF
24698 else
24699 ac_wfuncs=no
24701 done
24704 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
24705 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
24706 if test x"$has_weof" = xyes &&
24707 test x"$has_wchar_minmax" = xyes &&
24708 test x"$ac_wfuncs" = xyes;
24709 then
24710 ac_isoC99_wchar_t=yes
24711 else
24712 ac_isoC99_wchar_t=no
24714 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
24715 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
24717 # Use iconv for wchar_t to char conversions. As such, check for
24718 # X/Open Portability Guide, version 2 features (XPG2).
24719 if test "${ac_cv_header_iconv_h+set}" = set; then
24720 echo "$as_me:$LINENO: checking for iconv.h" >&5
24721 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
24722 if test "${ac_cv_header_iconv_h+set}" = set; then
24723 echo $ECHO_N "(cached) $ECHO_C" >&6
24725 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
24726 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
24727 else
24728 # Is the header compilable?
24729 echo "$as_me:$LINENO: checking iconv.h usability" >&5
24730 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
24731 cat >conftest.$ac_ext <<_ACEOF
24732 #line $LINENO "configure"
24733 /* confdefs.h. */
24734 _ACEOF
24735 cat confdefs.h >>conftest.$ac_ext
24736 cat >>conftest.$ac_ext <<_ACEOF
24737 /* end confdefs.h. */
24738 $ac_includes_default
24739 #include <iconv.h>
24740 _ACEOF
24741 rm -f conftest.$ac_objext
24742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24743 (eval $ac_compile) 2>&5
24744 ac_status=$?
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } &&
24747 { ac_try='test -s conftest.$ac_objext'
24748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24749 (eval $ac_try) 2>&5
24750 ac_status=$?
24751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752 (exit $ac_status); }; }; then
24753 ac_header_compiler=yes
24754 else
24755 echo "$as_me: failed program was:" >&5
24756 sed 's/^/| /' conftest.$ac_ext >&5
24758 ac_header_compiler=no
24760 rm -f conftest.$ac_objext conftest.$ac_ext
24761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24762 echo "${ECHO_T}$ac_header_compiler" >&6
24764 # Is the header present?
24765 echo "$as_me:$LINENO: checking iconv.h presence" >&5
24766 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
24767 cat >conftest.$ac_ext <<_ACEOF
24768 #line $LINENO "configure"
24769 /* confdefs.h. */
24770 _ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h. */
24774 #include <iconv.h>
24775 _ACEOF
24776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24778 ac_status=$?
24779 grep -v '^ *+' conftest.er1 >conftest.err
24780 rm -f conftest.er1
24781 cat conftest.err >&5
24782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783 (exit $ac_status); } >/dev/null; then
24784 if test -s conftest.err; then
24785 ac_cpp_err=$ac_c_preproc_warn_flag
24786 else
24787 ac_cpp_err=
24789 else
24790 ac_cpp_err=yes
24792 if test -z "$ac_cpp_err"; then
24793 ac_header_preproc=yes
24794 else
24795 echo "$as_me: failed program was:" >&5
24796 sed 's/^/| /' conftest.$ac_ext >&5
24798 ac_header_preproc=no
24800 rm -f conftest.err conftest.$ac_ext
24801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24802 echo "${ECHO_T}$ac_header_preproc" >&6
24804 # So? What about this header?
24805 case $ac_header_compiler:$ac_header_preproc in
24806 yes:no )
24807 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
24808 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24809 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
24810 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
24812 cat <<\_ASBOX
24813 ## ------------------------------------ ##
24814 ## Report this to bug-autoconf@gnu.org. ##
24815 ## ------------------------------------ ##
24816 _ASBOX
24818 sed "s/^/$as_me: WARNING: /" >&2
24820 no:yes )
24821 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
24822 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
24823 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
24824 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
24825 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
24826 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
24828 cat <<\_ASBOX
24829 ## ------------------------------------ ##
24830 ## Report this to bug-autoconf@gnu.org. ##
24831 ## ------------------------------------ ##
24832 _ASBOX
24834 sed "s/^/$as_me: WARNING: /" >&2
24836 esac
24837 echo "$as_me:$LINENO: checking for iconv.h" >&5
24838 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
24839 if test "${ac_cv_header_iconv_h+set}" = set; then
24840 echo $ECHO_N "(cached) $ECHO_C" >&6
24841 else
24842 ac_cv_header_iconv_h=$ac_header_preproc
24844 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
24845 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
24848 if test $ac_cv_header_iconv_h = yes; then
24849 ac_has_iconv_h=yes
24850 else
24851 ac_has_iconv_h=no
24855 if test "${ac_cv_header_langinfo_h+set}" = set; then
24856 echo "$as_me:$LINENO: checking for langinfo.h" >&5
24857 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
24858 if test "${ac_cv_header_langinfo_h+set}" = set; then
24859 echo $ECHO_N "(cached) $ECHO_C" >&6
24861 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
24862 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
24863 else
24864 # Is the header compilable?
24865 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
24866 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
24867 cat >conftest.$ac_ext <<_ACEOF
24868 #line $LINENO "configure"
24869 /* confdefs.h. */
24870 _ACEOF
24871 cat confdefs.h >>conftest.$ac_ext
24872 cat >>conftest.$ac_ext <<_ACEOF
24873 /* end confdefs.h. */
24874 $ac_includes_default
24875 #include <langinfo.h>
24876 _ACEOF
24877 rm -f conftest.$ac_objext
24878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24879 (eval $ac_compile) 2>&5
24880 ac_status=$?
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); } &&
24883 { ac_try='test -s conftest.$ac_objext'
24884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24885 (eval $ac_try) 2>&5
24886 ac_status=$?
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); }; }; then
24889 ac_header_compiler=yes
24890 else
24891 echo "$as_me: failed program was:" >&5
24892 sed 's/^/| /' conftest.$ac_ext >&5
24894 ac_header_compiler=no
24896 rm -f conftest.$ac_objext conftest.$ac_ext
24897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24898 echo "${ECHO_T}$ac_header_compiler" >&6
24900 # Is the header present?
24901 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
24902 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
24903 cat >conftest.$ac_ext <<_ACEOF
24904 #line $LINENO "configure"
24905 /* confdefs.h. */
24906 _ACEOF
24907 cat confdefs.h >>conftest.$ac_ext
24908 cat >>conftest.$ac_ext <<_ACEOF
24909 /* end confdefs.h. */
24910 #include <langinfo.h>
24911 _ACEOF
24912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24914 ac_status=$?
24915 grep -v '^ *+' conftest.er1 >conftest.err
24916 rm -f conftest.er1
24917 cat conftest.err >&5
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); } >/dev/null; then
24920 if test -s conftest.err; then
24921 ac_cpp_err=$ac_c_preproc_warn_flag
24922 else
24923 ac_cpp_err=
24925 else
24926 ac_cpp_err=yes
24928 if test -z "$ac_cpp_err"; then
24929 ac_header_preproc=yes
24930 else
24931 echo "$as_me: failed program was:" >&5
24932 sed 's/^/| /' conftest.$ac_ext >&5
24934 ac_header_preproc=no
24936 rm -f conftest.err conftest.$ac_ext
24937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24938 echo "${ECHO_T}$ac_header_preproc" >&6
24940 # So? What about this header?
24941 case $ac_header_compiler:$ac_header_preproc in
24942 yes:no )
24943 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
24944 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24945 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
24946 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
24948 cat <<\_ASBOX
24949 ## ------------------------------------ ##
24950 ## Report this to bug-autoconf@gnu.org. ##
24951 ## ------------------------------------ ##
24952 _ASBOX
24954 sed "s/^/$as_me: WARNING: /" >&2
24956 no:yes )
24957 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
24958 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
24959 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
24960 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
24961 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
24962 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
24964 cat <<\_ASBOX
24965 ## ------------------------------------ ##
24966 ## Report this to bug-autoconf@gnu.org. ##
24967 ## ------------------------------------ ##
24968 _ASBOX
24970 sed "s/^/$as_me: WARNING: /" >&2
24972 esac
24973 echo "$as_me:$LINENO: checking for langinfo.h" >&5
24974 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
24975 if test "${ac_cv_header_langinfo_h+set}" = set; then
24976 echo $ECHO_N "(cached) $ECHO_C" >&6
24977 else
24978 ac_cv_header_langinfo_h=$ac_header_preproc
24980 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
24981 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
24984 if test $ac_cv_header_langinfo_h = yes; then
24985 ac_has_langinfo_h=yes
24986 else
24987 ac_has_langinfo_h=no
24992 # Check for existence of libiconv.a providing XPG2 wchar_t support.
24993 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
24994 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
24995 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
24996 echo $ECHO_N "(cached) $ECHO_C" >&6
24997 else
24998 ac_check_lib_save_LIBS=$LIBS
24999 LIBS="-liconv $LIBS"
25000 cat >conftest.$ac_ext <<_ACEOF
25001 #line $LINENO "configure"
25002 /* confdefs.h. */
25003 _ACEOF
25004 cat confdefs.h >>conftest.$ac_ext
25005 cat >>conftest.$ac_ext <<_ACEOF
25006 /* end confdefs.h. */
25008 /* Override any gcc2 internal prototype to avoid an error. */
25009 #ifdef __cplusplus
25010 extern "C"
25011 #endif
25012 /* We use char because int might match the return type of a gcc2
25013 builtin and then its argument prototype would still apply. */
25014 char iconv ();
25016 main ()
25018 iconv ();
25020 return 0;
25022 _ACEOF
25023 rm -f conftest.$ac_objext conftest$ac_exeext
25024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25025 (eval $ac_link) 2>&5
25026 ac_status=$?
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); } &&
25029 { ac_try='test -s conftest$ac_exeext'
25030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031 (eval $ac_try) 2>&5
25032 ac_status=$?
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); }; }; then
25035 ac_cv_lib_iconv_iconv=yes
25036 else
25037 echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25040 ac_cv_lib_iconv_iconv=no
25042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25043 LIBS=$ac_check_lib_save_LIBS
25045 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
25046 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
25047 if test $ac_cv_lib_iconv_iconv = yes; then
25048 libiconv="-liconv"
25051 ac_save_LIBS="$LIBS"
25052 LIBS="$LIBS $libiconv"
25058 for ac_func in iconv_open iconv_close iconv nl_langinfo
25060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25061 echo "$as_me:$LINENO: checking for $ac_func" >&5
25062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25063 if eval "test \"\${$as_ac_var+set}\" = set"; then
25064 echo $ECHO_N "(cached) $ECHO_C" >&6
25065 else
25066 cat >conftest.$ac_ext <<_ACEOF
25067 #line $LINENO "configure"
25068 /* confdefs.h. */
25069 _ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h. */
25073 /* System header to define __stub macros and hopefully few prototypes,
25074 which can conflict with char $ac_func (); below.
25075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25076 <limits.h> exists even on freestanding compilers. */
25077 #ifdef __STDC__
25078 # include <limits.h>
25079 #else
25080 # include <assert.h>
25081 #endif
25082 /* Override any gcc2 internal prototype to avoid an error. */
25083 #ifdef __cplusplus
25084 extern "C"
25086 #endif
25087 /* We use char because int might match the return type of a gcc2
25088 builtin and then its argument prototype would still apply. */
25089 char $ac_func ();
25090 /* The GNU C library defines this for functions which it implements
25091 to always fail with ENOSYS. Some functions are actually named
25092 something starting with __ and the normal name is an alias. */
25093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25094 choke me
25095 #else
25096 char (*f) () = $ac_func;
25097 #endif
25098 #ifdef __cplusplus
25100 #endif
25103 main ()
25105 return f != $ac_func;
25107 return 0;
25109 _ACEOF
25110 rm -f conftest.$ac_objext conftest$ac_exeext
25111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25112 (eval $ac_link) 2>&5
25113 ac_status=$?
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); } &&
25116 { ac_try='test -s conftest$ac_exeext'
25117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25118 (eval $ac_try) 2>&5
25119 ac_status=$?
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); }; }; then
25122 eval "$as_ac_var=yes"
25123 else
25124 echo "$as_me: failed program was:" >&5
25125 sed 's/^/| /' conftest.$ac_ext >&5
25127 eval "$as_ac_var=no"
25129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25133 if test `eval echo '${'$as_ac_var'}'` = yes; then
25134 cat >>confdefs.h <<_ACEOF
25135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25136 _ACEOF
25137 ac_XPG2funcs=yes
25138 else
25139 ac_XPG2funcs=no
25141 done
25144 LIBS="$ac_save_LIBS"
25146 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
25147 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
25148 if test x"$ac_has_iconv_h" = xyes &&
25149 test x"$ac_has_langinfo_h" = xyes &&
25150 test x"$ac_XPG2funcs" = xyes;
25151 then
25152 ac_XPG2_wchar_t=yes
25153 else
25154 ac_XPG2_wchar_t=no
25156 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
25157 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
25159 # At the moment, only enable wchar_t specializations if all the
25160 # above support is present.
25161 if test x"$ac_isoC99_wchar_t" = xyes &&
25162 test x"$ac_XPG2_wchar_t" = xyes;
25163 then
25164 cat >>confdefs.h <<\_ACEOF
25165 #define _GLIBCXX_USE_WCHAR_T 1
25166 _ACEOF
25168 enable_wchar_t=yes
25171 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
25172 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
25173 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
25174 echo "${ECHO_T}$enable_wchar_t" >&6
25177 ac_test_CXXFLAGS="${CXXFLAGS+set}"
25178 ac_save_CXXFLAGS="$CXXFLAGS"
25179 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
25182 echo "$as_me:$LINENO: checking for strtold declaration" >&5
25183 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
25184 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
25185 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
25186 echo $ECHO_N "(cached) $ECHO_C" >&6
25187 else
25191 ac_ext=cc
25192 ac_cpp='$CXXCPP $CPPFLAGS'
25193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25197 cat >conftest.$ac_ext <<_ACEOF
25198 #line $LINENO "configure"
25199 /* confdefs.h. */
25200 _ACEOF
25201 cat confdefs.h >>conftest.$ac_ext
25202 cat >>conftest.$ac_ext <<_ACEOF
25203 /* end confdefs.h. */
25204 #include <stdlib.h>
25206 main ()
25208 strtold(0, 0);
25210 return 0;
25212 _ACEOF
25213 rm -f conftest.$ac_objext
25214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25215 (eval $ac_compile) 2>&5
25216 ac_status=$?
25217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218 (exit $ac_status); } &&
25219 { ac_try='test -s conftest.$ac_objext'
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 glibcxx_cv_func_strtold_use=yes
25226 else
25227 echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25230 glibcxx_cv_func_strtold_use=no
25232 rm -f conftest.$ac_objext conftest.$ac_ext
25233 ac_ext=c
25234 ac_cpp='$CPP $CPPFLAGS'
25235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25243 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
25244 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
25245 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
25247 for ac_func in strtold
25249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25250 echo "$as_me:$LINENO: checking for $ac_func" >&5
25251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25252 if eval "test \"\${$as_ac_var+set}\" = set"; then
25253 echo $ECHO_N "(cached) $ECHO_C" >&6
25254 else
25255 cat >conftest.$ac_ext <<_ACEOF
25256 #line $LINENO "configure"
25257 /* confdefs.h. */
25258 _ACEOF
25259 cat confdefs.h >>conftest.$ac_ext
25260 cat >>conftest.$ac_ext <<_ACEOF
25261 /* end confdefs.h. */
25262 /* System header to define __stub macros and hopefully few prototypes,
25263 which can conflict with char $ac_func (); below.
25264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25265 <limits.h> exists even on freestanding compilers. */
25266 #ifdef __STDC__
25267 # include <limits.h>
25268 #else
25269 # include <assert.h>
25270 #endif
25271 /* Override any gcc2 internal prototype to avoid an error. */
25272 #ifdef __cplusplus
25273 extern "C"
25275 #endif
25276 /* We use char because int might match the return type of a gcc2
25277 builtin and then its argument prototype would still apply. */
25278 char $ac_func ();
25279 /* The GNU C library defines this for functions which it implements
25280 to always fail with ENOSYS. Some functions are actually named
25281 something starting with __ and the normal name is an alias. */
25282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25283 choke me
25284 #else
25285 char (*f) () = $ac_func;
25286 #endif
25287 #ifdef __cplusplus
25289 #endif
25292 main ()
25294 return f != $ac_func;
25296 return 0;
25298 _ACEOF
25299 rm -f conftest.$ac_objext conftest$ac_exeext
25300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25301 (eval $ac_link) 2>&5
25302 ac_status=$?
25303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25304 (exit $ac_status); } &&
25305 { ac_try='test -s conftest$ac_exeext'
25306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25307 (eval $ac_try) 2>&5
25308 ac_status=$?
25309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310 (exit $ac_status); }; }; then
25311 eval "$as_ac_var=yes"
25312 else
25313 echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25316 eval "$as_ac_var=no"
25318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25322 if test `eval echo '${'$as_ac_var'}'` = yes; then
25323 cat >>confdefs.h <<_ACEOF
25324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25325 _ACEOF
25328 done
25333 echo "$as_me:$LINENO: checking for strtof declaration" >&5
25334 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
25335 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
25336 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
25337 echo $ECHO_N "(cached) $ECHO_C" >&6
25338 else
25342 ac_ext=cc
25343 ac_cpp='$CXXCPP $CPPFLAGS'
25344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25348 cat >conftest.$ac_ext <<_ACEOF
25349 #line $LINENO "configure"
25350 /* confdefs.h. */
25351 _ACEOF
25352 cat confdefs.h >>conftest.$ac_ext
25353 cat >>conftest.$ac_ext <<_ACEOF
25354 /* end confdefs.h. */
25355 #include <stdlib.h>
25357 main ()
25359 strtof(0, 0);
25361 return 0;
25363 _ACEOF
25364 rm -f conftest.$ac_objext
25365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25366 (eval $ac_compile) 2>&5
25367 ac_status=$?
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); } &&
25370 { ac_try='test -s conftest.$ac_objext'
25371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25372 (eval $ac_try) 2>&5
25373 ac_status=$?
25374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375 (exit $ac_status); }; }; then
25376 glibcxx_cv_func_strtof_use=yes
25377 else
25378 echo "$as_me: failed program was:" >&5
25379 sed 's/^/| /' conftest.$ac_ext >&5
25381 glibcxx_cv_func_strtof_use=no
25383 rm -f conftest.$ac_objext conftest.$ac_ext
25384 ac_ext=c
25385 ac_cpp='$CPP $CPPFLAGS'
25386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25394 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
25395 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
25396 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
25398 for ac_func in strtof
25400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25401 echo "$as_me:$LINENO: checking for $ac_func" >&5
25402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25403 if eval "test \"\${$as_ac_var+set}\" = set"; then
25404 echo $ECHO_N "(cached) $ECHO_C" >&6
25405 else
25406 cat >conftest.$ac_ext <<_ACEOF
25407 #line $LINENO "configure"
25408 /* confdefs.h. */
25409 _ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h. */
25413 /* System header to define __stub macros and hopefully few prototypes,
25414 which can conflict with char $ac_func (); below.
25415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25416 <limits.h> exists even on freestanding compilers. */
25417 #ifdef __STDC__
25418 # include <limits.h>
25419 #else
25420 # include <assert.h>
25421 #endif
25422 /* Override any gcc2 internal prototype to avoid an error. */
25423 #ifdef __cplusplus
25424 extern "C"
25426 #endif
25427 /* We use char because int might match the return type of a gcc2
25428 builtin and then its argument prototype would still apply. */
25429 char $ac_func ();
25430 /* The GNU C library defines this for functions which it implements
25431 to always fail with ENOSYS. Some functions are actually named
25432 something starting with __ and the normal name is an alias. */
25433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25434 choke me
25435 #else
25436 char (*f) () = $ac_func;
25437 #endif
25438 #ifdef __cplusplus
25440 #endif
25443 main ()
25445 return f != $ac_func;
25447 return 0;
25449 _ACEOF
25450 rm -f conftest.$ac_objext conftest$ac_exeext
25451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25452 (eval $ac_link) 2>&5
25453 ac_status=$?
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } &&
25456 { ac_try='test -s conftest$ac_exeext'
25457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25458 (eval $ac_try) 2>&5
25459 ac_status=$?
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); }; }; then
25462 eval "$as_ac_var=yes"
25463 else
25464 echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25467 eval "$as_ac_var=no"
25469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25473 if test `eval echo '${'$as_ac_var'}'` = yes; then
25474 cat >>confdefs.h <<_ACEOF
25475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25476 _ACEOF
25479 done
25484 for ac_func in drand48
25486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25487 echo "$as_me:$LINENO: checking for $ac_func" >&5
25488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25489 if eval "test \"\${$as_ac_var+set}\" = set"; then
25490 echo $ECHO_N "(cached) $ECHO_C" >&6
25491 else
25492 cat >conftest.$ac_ext <<_ACEOF
25493 #line $LINENO "configure"
25494 /* confdefs.h. */
25495 _ACEOF
25496 cat confdefs.h >>conftest.$ac_ext
25497 cat >>conftest.$ac_ext <<_ACEOF
25498 /* end confdefs.h. */
25499 /* System header to define __stub macros and hopefully few prototypes,
25500 which can conflict with char $ac_func (); below.
25501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25502 <limits.h> exists even on freestanding compilers. */
25503 #ifdef __STDC__
25504 # include <limits.h>
25505 #else
25506 # include <assert.h>
25507 #endif
25508 /* Override any gcc2 internal prototype to avoid an error. */
25509 #ifdef __cplusplus
25510 extern "C"
25512 #endif
25513 /* We use char because int might match the return type of a gcc2
25514 builtin and then its argument prototype would still apply. */
25515 char $ac_func ();
25516 /* The GNU C library defines this for functions which it implements
25517 to always fail with ENOSYS. Some functions are actually named
25518 something starting with __ and the normal name is an alias. */
25519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25520 choke me
25521 #else
25522 char (*f) () = $ac_func;
25523 #endif
25524 #ifdef __cplusplus
25526 #endif
25529 main ()
25531 return f != $ac_func;
25533 return 0;
25535 _ACEOF
25536 rm -f conftest.$ac_objext conftest$ac_exeext
25537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25538 (eval $ac_link) 2>&5
25539 ac_status=$?
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); } &&
25542 { ac_try='test -s conftest$ac_exeext'
25543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25544 (eval $ac_try) 2>&5
25545 ac_status=$?
25546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547 (exit $ac_status); }; }; then
25548 eval "$as_ac_var=yes"
25549 else
25550 echo "$as_me: failed program was:" >&5
25551 sed 's/^/| /' conftest.$ac_ext >&5
25553 eval "$as_ac_var=no"
25555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25559 if test `eval echo '${'$as_ac_var'}'` = yes; then
25560 cat >>confdefs.h <<_ACEOF
25561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25562 _ACEOF
25565 done
25568 CXXFLAGS="$ac_save_CXXFLAGS"
25571 # For showmanyc_helper().
25574 for ac_header in sys/ioctl.h sys/filio.h
25576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25578 echo "$as_me:$LINENO: checking for $ac_header" >&5
25579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25581 echo $ECHO_N "(cached) $ECHO_C" >&6
25583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25585 else
25586 # Is the header compilable?
25587 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25589 cat >conftest.$ac_ext <<_ACEOF
25590 #line $LINENO "configure"
25591 /* confdefs.h. */
25592 _ACEOF
25593 cat confdefs.h >>conftest.$ac_ext
25594 cat >>conftest.$ac_ext <<_ACEOF
25595 /* end confdefs.h. */
25596 $ac_includes_default
25597 #include <$ac_header>
25598 _ACEOF
25599 rm -f conftest.$ac_objext
25600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25601 (eval $ac_compile) 2>&5
25602 ac_status=$?
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); } &&
25605 { ac_try='test -s conftest.$ac_objext'
25606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25607 (eval $ac_try) 2>&5
25608 ac_status=$?
25609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); }; }; then
25611 ac_header_compiler=yes
25612 else
25613 echo "$as_me: failed program was:" >&5
25614 sed 's/^/| /' conftest.$ac_ext >&5
25616 ac_header_compiler=no
25618 rm -f conftest.$ac_objext conftest.$ac_ext
25619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25620 echo "${ECHO_T}$ac_header_compiler" >&6
25622 # Is the header present?
25623 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25625 cat >conftest.$ac_ext <<_ACEOF
25626 #line $LINENO "configure"
25627 /* confdefs.h. */
25628 _ACEOF
25629 cat confdefs.h >>conftest.$ac_ext
25630 cat >>conftest.$ac_ext <<_ACEOF
25631 /* end confdefs.h. */
25632 #include <$ac_header>
25633 _ACEOF
25634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25636 ac_status=$?
25637 grep -v '^ *+' conftest.er1 >conftest.err
25638 rm -f conftest.er1
25639 cat conftest.err >&5
25640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); } >/dev/null; then
25642 if test -s conftest.err; then
25643 ac_cpp_err=$ac_c_preproc_warn_flag
25644 else
25645 ac_cpp_err=
25647 else
25648 ac_cpp_err=yes
25650 if test -z "$ac_cpp_err"; then
25651 ac_header_preproc=yes
25652 else
25653 echo "$as_me: failed program was:" >&5
25654 sed 's/^/| /' conftest.$ac_ext >&5
25656 ac_header_preproc=no
25658 rm -f conftest.err conftest.$ac_ext
25659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25660 echo "${ECHO_T}$ac_header_preproc" >&6
25662 # So? What about this header?
25663 case $ac_header_compiler:$ac_header_preproc in
25664 yes:no )
25665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25670 cat <<\_ASBOX
25671 ## ------------------------------------ ##
25672 ## Report this to bug-autoconf@gnu.org. ##
25673 ## ------------------------------------ ##
25674 _ASBOX
25676 sed "s/^/$as_me: WARNING: /" >&2
25678 no:yes )
25679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25686 cat <<\_ASBOX
25687 ## ------------------------------------ ##
25688 ## Report this to bug-autoconf@gnu.org. ##
25689 ## ------------------------------------ ##
25690 _ASBOX
25692 sed "s/^/$as_me: WARNING: /" >&2
25694 esac
25695 echo "$as_me:$LINENO: checking for $ac_header" >&5
25696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25698 echo $ECHO_N "(cached) $ECHO_C" >&6
25699 else
25700 eval "$as_ac_Header=$ac_header_preproc"
25702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25707 cat >>confdefs.h <<_ACEOF
25708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25709 _ACEOF
25713 done
25716 if test "${glibcxx_cv_POLL+set}" = set; then
25717 echo $ECHO_N "(cached) $ECHO_C" >&6
25718 else
25720 cat >conftest.$ac_ext <<_ACEOF
25721 #line $LINENO "configure"
25722 /* confdefs.h. */
25723 _ACEOF
25724 cat confdefs.h >>conftest.$ac_ext
25725 cat >>conftest.$ac_ext <<_ACEOF
25726 /* end confdefs.h. */
25727 #include <poll.h>
25729 main ()
25731 struct pollfd pfd[1];
25732 pfd[0].events = POLLIN;
25733 poll(pfd, 1, 0);
25735 return 0;
25737 _ACEOF
25738 rm -f conftest.$ac_objext
25739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25740 (eval $ac_compile) 2>&5
25741 ac_status=$?
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); } &&
25744 { ac_try='test -s conftest.$ac_objext'
25745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25746 (eval $ac_try) 2>&5
25747 ac_status=$?
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); }; }; then
25750 glibcxx_cv_POLL=yes
25751 else
25752 echo "$as_me: failed program was:" >&5
25753 sed 's/^/| /' conftest.$ac_ext >&5
25755 glibcxx_cv_POLL=no
25757 rm -f conftest.$ac_objext conftest.$ac_ext
25761 if test $glibcxx_cv_POLL = yes; then
25762 cat >>confdefs.h <<\_ACEOF
25763 #define HAVE_POLL 1
25764 _ACEOF
25769 if test "${glibcxx_cv_S_ISREG+set}" = set; then
25770 echo $ECHO_N "(cached) $ECHO_C" >&6
25771 else
25773 cat >conftest.$ac_ext <<_ACEOF
25774 #line $LINENO "configure"
25775 /* confdefs.h. */
25776 _ACEOF
25777 cat confdefs.h >>conftest.$ac_ext
25778 cat >>conftest.$ac_ext <<_ACEOF
25779 /* end confdefs.h. */
25780 #include <sys/stat.h>
25782 main ()
25784 struct stat buffer;
25785 fstat(0, &buffer);
25786 S_ISREG(buffer.st_mode);
25788 return 0;
25790 _ACEOF
25791 rm -f conftest.$ac_objext conftest$ac_exeext
25792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25793 (eval $ac_link) 2>&5
25794 ac_status=$?
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); } &&
25797 { ac_try='test -s conftest$ac_exeext'
25798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25799 (eval $ac_try) 2>&5
25800 ac_status=$?
25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); }; }; then
25803 glibcxx_cv_S_ISREG=yes
25804 else
25805 echo "$as_me: failed program was:" >&5
25806 sed 's/^/| /' conftest.$ac_ext >&5
25808 glibcxx_cv_S_ISREG=no
25810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25814 if test "${glibcxx_cv_S_IFREG+set}" = set; then
25815 echo $ECHO_N "(cached) $ECHO_C" >&6
25816 else
25818 cat >conftest.$ac_ext <<_ACEOF
25819 #line $LINENO "configure"
25820 /* confdefs.h. */
25821 _ACEOF
25822 cat confdefs.h >>conftest.$ac_ext
25823 cat >>conftest.$ac_ext <<_ACEOF
25824 /* end confdefs.h. */
25825 #include <sys/stat.h>
25827 main ()
25829 struct stat buffer;
25830 fstat(0, &buffer);
25831 S_IFREG & buffer.st_mode;
25833 return 0;
25835 _ACEOF
25836 rm -f conftest.$ac_objext conftest$ac_exeext
25837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25838 (eval $ac_link) 2>&5
25839 ac_status=$?
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); } &&
25842 { ac_try='test -s conftest$ac_exeext'
25843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25844 (eval $ac_try) 2>&5
25845 ac_status=$?
25846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847 (exit $ac_status); }; }; then
25848 glibcxx_cv_S_IFREG=yes
25849 else
25850 echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25853 glibcxx_cv_S_IFREG=no
25855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25859 if test $glibcxx_cv_S_ISREG = yes; then
25860 cat >>confdefs.h <<\_ACEOF
25861 #define HAVE_S_ISREG 1
25862 _ACEOF
25864 elif test $glibcxx_cv_S_IFREG = yes; then
25865 cat >>confdefs.h <<\_ACEOF
25866 #define HAVE_S_IFREG 1
25867 _ACEOF
25872 # For xsputn_2().
25874 for ac_header in sys/uio.h
25876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25878 echo "$as_me:$LINENO: checking for $ac_header" >&5
25879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25881 echo $ECHO_N "(cached) $ECHO_C" >&6
25883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25885 else
25886 # Is the header compilable?
25887 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25889 cat >conftest.$ac_ext <<_ACEOF
25890 #line $LINENO "configure"
25891 /* confdefs.h. */
25892 _ACEOF
25893 cat confdefs.h >>conftest.$ac_ext
25894 cat >>conftest.$ac_ext <<_ACEOF
25895 /* end confdefs.h. */
25896 $ac_includes_default
25897 #include <$ac_header>
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 ac_header_compiler=yes
25912 else
25913 echo "$as_me: failed program was:" >&5
25914 sed 's/^/| /' conftest.$ac_ext >&5
25916 ac_header_compiler=no
25918 rm -f conftest.$ac_objext conftest.$ac_ext
25919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25920 echo "${ECHO_T}$ac_header_compiler" >&6
25922 # Is the header present?
25923 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25925 cat >conftest.$ac_ext <<_ACEOF
25926 #line $LINENO "configure"
25927 /* confdefs.h. */
25928 _ACEOF
25929 cat confdefs.h >>conftest.$ac_ext
25930 cat >>conftest.$ac_ext <<_ACEOF
25931 /* end confdefs.h. */
25932 #include <$ac_header>
25933 _ACEOF
25934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25936 ac_status=$?
25937 grep -v '^ *+' conftest.er1 >conftest.err
25938 rm -f conftest.er1
25939 cat conftest.err >&5
25940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941 (exit $ac_status); } >/dev/null; then
25942 if test -s conftest.err; then
25943 ac_cpp_err=$ac_c_preproc_warn_flag
25944 else
25945 ac_cpp_err=
25947 else
25948 ac_cpp_err=yes
25950 if test -z "$ac_cpp_err"; then
25951 ac_header_preproc=yes
25952 else
25953 echo "$as_me: failed program was:" >&5
25954 sed 's/^/| /' conftest.$ac_ext >&5
25956 ac_header_preproc=no
25958 rm -f conftest.err conftest.$ac_ext
25959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25960 echo "${ECHO_T}$ac_header_preproc" >&6
25962 # So? What about this header?
25963 case $ac_header_compiler:$ac_header_preproc in
25964 yes:no )
25965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25970 cat <<\_ASBOX
25971 ## ------------------------------------ ##
25972 ## Report this to bug-autoconf@gnu.org. ##
25973 ## ------------------------------------ ##
25974 _ASBOX
25976 sed "s/^/$as_me: WARNING: /" >&2
25978 no:yes )
25979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25986 cat <<\_ASBOX
25987 ## ------------------------------------ ##
25988 ## Report this to bug-autoconf@gnu.org. ##
25989 ## ------------------------------------ ##
25990 _ASBOX
25992 sed "s/^/$as_me: WARNING: /" >&2
25994 esac
25995 echo "$as_me:$LINENO: checking for $ac_header" >&5
25996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25998 echo $ECHO_N "(cached) $ECHO_C" >&6
25999 else
26000 eval "$as_ac_Header=$ac_header_preproc"
26002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26007 cat >>confdefs.h <<_ACEOF
26008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26009 _ACEOF
26013 done
26016 if test "${glibcxx_cv_WRITEV+set}" = set; then
26017 echo $ECHO_N "(cached) $ECHO_C" >&6
26018 else
26020 cat >conftest.$ac_ext <<_ACEOF
26021 #line $LINENO "configure"
26022 /* confdefs.h. */
26023 _ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h. */
26027 #include <sys/uio.h>
26029 main ()
26031 struct iovec iov[2];
26032 writev(0, iov, 0);
26034 return 0;
26036 _ACEOF
26037 rm -f conftest.$ac_objext
26038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26039 (eval $ac_compile) 2>&5
26040 ac_status=$?
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); } &&
26043 { ac_try='test -s conftest.$ac_objext'
26044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045 (eval $ac_try) 2>&5
26046 ac_status=$?
26047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 (exit $ac_status); }; }; then
26049 glibcxx_cv_WRITEV=yes
26050 else
26051 echo "$as_me: failed program was:" >&5
26052 sed 's/^/| /' conftest.$ac_ext >&5
26054 glibcxx_cv_WRITEV=no
26056 rm -f conftest.$ac_objext conftest.$ac_ext
26060 if test $glibcxx_cv_WRITEV = yes; then
26061 cat >>confdefs.h <<\_ACEOF
26062 #define HAVE_WRITEV 1
26063 _ACEOF
26069 if test "${ac_cv_header_locale_h+set}" = set; then
26070 echo "$as_me:$LINENO: checking for locale.h" >&5
26071 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
26072 if test "${ac_cv_header_locale_h+set}" = set; then
26073 echo $ECHO_N "(cached) $ECHO_C" >&6
26075 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
26076 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
26077 else
26078 # Is the header compilable?
26079 echo "$as_me:$LINENO: checking locale.h usability" >&5
26080 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
26081 cat >conftest.$ac_ext <<_ACEOF
26082 #line $LINENO "configure"
26083 /* confdefs.h. */
26084 _ACEOF
26085 cat confdefs.h >>conftest.$ac_ext
26086 cat >>conftest.$ac_ext <<_ACEOF
26087 /* end confdefs.h. */
26088 $ac_includes_default
26089 #include <locale.h>
26090 _ACEOF
26091 rm -f conftest.$ac_objext
26092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26093 (eval $ac_compile) 2>&5
26094 ac_status=$?
26095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096 (exit $ac_status); } &&
26097 { ac_try='test -s conftest.$ac_objext'
26098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099 (eval $ac_try) 2>&5
26100 ac_status=$?
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; }; then
26103 ac_header_compiler=yes
26104 else
26105 echo "$as_me: failed program was:" >&5
26106 sed 's/^/| /' conftest.$ac_ext >&5
26108 ac_header_compiler=no
26110 rm -f conftest.$ac_objext conftest.$ac_ext
26111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26112 echo "${ECHO_T}$ac_header_compiler" >&6
26114 # Is the header present?
26115 echo "$as_me:$LINENO: checking locale.h presence" >&5
26116 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
26117 cat >conftest.$ac_ext <<_ACEOF
26118 #line $LINENO "configure"
26119 /* confdefs.h. */
26120 _ACEOF
26121 cat confdefs.h >>conftest.$ac_ext
26122 cat >>conftest.$ac_ext <<_ACEOF
26123 /* end confdefs.h. */
26124 #include <locale.h>
26125 _ACEOF
26126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26128 ac_status=$?
26129 grep -v '^ *+' conftest.er1 >conftest.err
26130 rm -f conftest.er1
26131 cat conftest.err >&5
26132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133 (exit $ac_status); } >/dev/null; then
26134 if test -s conftest.err; then
26135 ac_cpp_err=$ac_c_preproc_warn_flag
26136 else
26137 ac_cpp_err=
26139 else
26140 ac_cpp_err=yes
26142 if test -z "$ac_cpp_err"; then
26143 ac_header_preproc=yes
26144 else
26145 echo "$as_me: failed program was:" >&5
26146 sed 's/^/| /' conftest.$ac_ext >&5
26148 ac_header_preproc=no
26150 rm -f conftest.err conftest.$ac_ext
26151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26152 echo "${ECHO_T}$ac_header_preproc" >&6
26154 # So? What about this header?
26155 case $ac_header_compiler:$ac_header_preproc in
26156 yes:no )
26157 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
26158 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26159 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
26160 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
26162 cat <<\_ASBOX
26163 ## ------------------------------------ ##
26164 ## Report this to bug-autoconf@gnu.org. ##
26165 ## ------------------------------------ ##
26166 _ASBOX
26168 sed "s/^/$as_me: WARNING: /" >&2
26170 no:yes )
26171 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
26172 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
26173 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
26174 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
26175 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
26176 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
26178 cat <<\_ASBOX
26179 ## ------------------------------------ ##
26180 ## Report this to bug-autoconf@gnu.org. ##
26181 ## ------------------------------------ ##
26182 _ASBOX
26184 sed "s/^/$as_me: WARNING: /" >&2
26186 esac
26187 echo "$as_me:$LINENO: checking for locale.h" >&5
26188 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
26189 if test "${ac_cv_header_locale_h+set}" = set; then
26190 echo $ECHO_N "(cached) $ECHO_C" >&6
26191 else
26192 ac_cv_header_locale_h=$ac_header_preproc
26194 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
26195 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
26198 if test $ac_cv_header_locale_h = yes; then
26200 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
26201 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
26202 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
26203 echo $ECHO_N "(cached) $ECHO_C" >&6
26204 else
26205 cat >conftest.$ac_ext <<_ACEOF
26206 #line $LINENO "configure"
26207 /* confdefs.h. */
26208 _ACEOF
26209 cat confdefs.h >>conftest.$ac_ext
26210 cat >>conftest.$ac_ext <<_ACEOF
26211 /* end confdefs.h. */
26212 #include <locale.h>
26214 main ()
26216 return LC_MESSAGES
26218 return 0;
26220 _ACEOF
26221 rm -f conftest.$ac_objext conftest$ac_exeext
26222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26223 (eval $ac_link) 2>&5
26224 ac_status=$?
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); } &&
26227 { ac_try='test -s conftest$ac_exeext'
26228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26229 (eval $ac_try) 2>&5
26230 ac_status=$?
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); }; }; then
26233 ac_cv_val_LC_MESSAGES=yes
26234 else
26235 echo "$as_me: failed program was:" >&5
26236 sed 's/^/| /' conftest.$ac_ext >&5
26238 ac_cv_val_LC_MESSAGES=no
26240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26242 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
26243 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
26244 if test $ac_cv_val_LC_MESSAGES = yes; then
26245 cat >>confdefs.h <<\_ACEOF
26246 #define HAVE_LC_MESSAGES 1
26247 _ACEOF
26256 cat >conftest.$ac_ext <<_ACEOF
26257 #line $LINENO "configure"
26258 /* confdefs.h. */
26259 _ACEOF
26260 cat confdefs.h >>conftest.$ac_ext
26261 cat >>conftest.$ac_ext <<_ACEOF
26262 /* end confdefs.h. */
26263 #include <setjmp.h>
26265 main ()
26267 sigjmp_buf env;
26268 while (! sigsetjmp (env, 1))
26269 siglongjmp (env, 1);
26272 return 0;
26274 _ACEOF
26275 rm -f conftest.$ac_objext
26276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26277 (eval $ac_compile) 2>&5
26278 ac_status=$?
26279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280 (exit $ac_status); } &&
26281 { ac_try='test -s conftest.$ac_objext'
26282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26283 (eval $ac_try) 2>&5
26284 ac_status=$?
26285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286 (exit $ac_status); }; }; then
26288 cat >>confdefs.h <<\_ACEOF
26289 #define HAVE_SIGSETJMP 1
26290 _ACEOF
26292 else
26293 echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26297 rm -f conftest.$ac_objext conftest.$ac_ext
26301 for ac_header in stdlib.h unistd.h
26303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26305 echo "$as_me:$LINENO: checking for $ac_header" >&5
26306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26308 echo $ECHO_N "(cached) $ECHO_C" >&6
26310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26312 else
26313 # Is the header compilable?
26314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26316 cat >conftest.$ac_ext <<_ACEOF
26317 #line $LINENO "configure"
26318 /* confdefs.h. */
26319 _ACEOF
26320 cat confdefs.h >>conftest.$ac_ext
26321 cat >>conftest.$ac_ext <<_ACEOF
26322 /* end confdefs.h. */
26323 $ac_includes_default
26324 #include <$ac_header>
26325 _ACEOF
26326 rm -f conftest.$ac_objext
26327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26328 (eval $ac_compile) 2>&5
26329 ac_status=$?
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); } &&
26332 { ac_try='test -s conftest.$ac_objext'
26333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26334 (eval $ac_try) 2>&5
26335 ac_status=$?
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); }; }; then
26338 ac_header_compiler=yes
26339 else
26340 echo "$as_me: failed program was:" >&5
26341 sed 's/^/| /' conftest.$ac_ext >&5
26343 ac_header_compiler=no
26345 rm -f conftest.$ac_objext conftest.$ac_ext
26346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26347 echo "${ECHO_T}$ac_header_compiler" >&6
26349 # Is the header present?
26350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26352 cat >conftest.$ac_ext <<_ACEOF
26353 #line $LINENO "configure"
26354 /* confdefs.h. */
26355 _ACEOF
26356 cat confdefs.h >>conftest.$ac_ext
26357 cat >>conftest.$ac_ext <<_ACEOF
26358 /* end confdefs.h. */
26359 #include <$ac_header>
26360 _ACEOF
26361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26363 ac_status=$?
26364 grep -v '^ *+' conftest.er1 >conftest.err
26365 rm -f conftest.er1
26366 cat conftest.err >&5
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); } >/dev/null; then
26369 if test -s conftest.err; then
26370 ac_cpp_err=$ac_c_preproc_warn_flag
26371 else
26372 ac_cpp_err=
26374 else
26375 ac_cpp_err=yes
26377 if test -z "$ac_cpp_err"; then
26378 ac_header_preproc=yes
26379 else
26380 echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26383 ac_header_preproc=no
26385 rm -f conftest.err conftest.$ac_ext
26386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26387 echo "${ECHO_T}$ac_header_preproc" >&6
26389 # So? What about this header?
26390 case $ac_header_compiler:$ac_header_preproc in
26391 yes:no )
26392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26397 cat <<\_ASBOX
26398 ## ------------------------------------ ##
26399 ## Report this to bug-autoconf@gnu.org. ##
26400 ## ------------------------------------ ##
26401 _ASBOX
26403 sed "s/^/$as_me: WARNING: /" >&2
26405 no:yes )
26406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26413 cat <<\_ASBOX
26414 ## ------------------------------------ ##
26415 ## Report this to bug-autoconf@gnu.org. ##
26416 ## ------------------------------------ ##
26417 _ASBOX
26419 sed "s/^/$as_me: WARNING: /" >&2
26421 esac
26422 echo "$as_me:$LINENO: checking for $ac_header" >&5
26423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26425 echo $ECHO_N "(cached) $ECHO_C" >&6
26426 else
26427 eval "$as_ac_Header=$ac_header_preproc"
26429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26434 cat >>confdefs.h <<_ACEOF
26435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26436 _ACEOF
26440 done
26443 for ac_func in getpagesize
26445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26446 echo "$as_me:$LINENO: checking for $ac_func" >&5
26447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26448 if eval "test \"\${$as_ac_var+set}\" = set"; then
26449 echo $ECHO_N "(cached) $ECHO_C" >&6
26450 else
26451 cat >conftest.$ac_ext <<_ACEOF
26452 #line $LINENO "configure"
26453 /* confdefs.h. */
26454 _ACEOF
26455 cat confdefs.h >>conftest.$ac_ext
26456 cat >>conftest.$ac_ext <<_ACEOF
26457 /* end confdefs.h. */
26458 /* System header to define __stub macros and hopefully few prototypes,
26459 which can conflict with char $ac_func (); below.
26460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26461 <limits.h> exists even on freestanding compilers. */
26462 #ifdef __STDC__
26463 # include <limits.h>
26464 #else
26465 # include <assert.h>
26466 #endif
26467 /* Override any gcc2 internal prototype to avoid an error. */
26468 #ifdef __cplusplus
26469 extern "C"
26471 #endif
26472 /* We use char because int might match the return type of a gcc2
26473 builtin and then its argument prototype would still apply. */
26474 char $ac_func ();
26475 /* The GNU C library defines this for functions which it implements
26476 to always fail with ENOSYS. Some functions are actually named
26477 something starting with __ and the normal name is an alias. */
26478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26479 choke me
26480 #else
26481 char (*f) () = $ac_func;
26482 #endif
26483 #ifdef __cplusplus
26485 #endif
26488 main ()
26490 return f != $ac_func;
26492 return 0;
26494 _ACEOF
26495 rm -f conftest.$ac_objext conftest$ac_exeext
26496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26497 (eval $ac_link) 2>&5
26498 ac_status=$?
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); } &&
26501 { ac_try='test -s conftest$ac_exeext'
26502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26503 (eval $ac_try) 2>&5
26504 ac_status=$?
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); }; }; then
26507 eval "$as_ac_var=yes"
26508 else
26509 echo "$as_me: failed program was:" >&5
26510 sed 's/^/| /' conftest.$ac_ext >&5
26512 eval "$as_ac_var=no"
26514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26518 if test `eval echo '${'$as_ac_var'}'` = yes; then
26519 cat >>confdefs.h <<_ACEOF
26520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26521 _ACEOF
26524 done
26526 echo "$as_me:$LINENO: checking for working mmap" >&5
26527 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
26528 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
26529 echo $ECHO_N "(cached) $ECHO_C" >&6
26530 else
26531 if test "$cross_compiling" = yes; then
26532 ac_cv_func_mmap_fixed_mapped=no
26533 else
26534 cat >conftest.$ac_ext <<_ACEOF
26535 #line $LINENO "configure"
26536 /* confdefs.h. */
26537 _ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h. */
26541 $ac_includes_default
26542 /* malloc might have been renamed as rpl_malloc. */
26543 #undef malloc
26545 /* Thanks to Mike Haertel and Jim Avera for this test.
26546 Here is a matrix of mmap possibilities:
26547 mmap private not fixed
26548 mmap private fixed at somewhere currently unmapped
26549 mmap private fixed at somewhere already mapped
26550 mmap shared not fixed
26551 mmap shared fixed at somewhere currently unmapped
26552 mmap shared fixed at somewhere already mapped
26553 For private mappings, we should verify that changes cannot be read()
26554 back from the file, nor mmap's back from the file at a different
26555 address. (There have been systems where private was not correctly
26556 implemented like the infamous i386 svr4.0, and systems where the
26557 VM page cache was not coherent with the file system buffer cache
26558 like early versions of FreeBSD and possibly contemporary NetBSD.)
26559 For shared mappings, we should conversely verify that changes get
26560 propagated back to all the places they're supposed to be.
26562 Grep wants private fixed already mapped.
26563 The main things grep needs to know about mmap are:
26564 * does it exist and is it safe to write into the mmap'd area
26565 * how to use it (BSD variants) */
26567 #include <fcntl.h>
26568 #include <sys/mman.h>
26570 #if !STDC_HEADERS && !HAVE_STDLIB_H
26571 char *malloc ();
26572 #endif
26574 /* This mess was copied from the GNU getpagesize.h. */
26575 #if !HAVE_GETPAGESIZE
26576 /* Assume that all systems that can run configure have sys/param.h. */
26577 # if !HAVE_SYS_PARAM_H
26578 # define HAVE_SYS_PARAM_H 1
26579 # endif
26581 # ifdef _SC_PAGESIZE
26582 # define getpagesize() sysconf(_SC_PAGESIZE)
26583 # else /* no _SC_PAGESIZE */
26584 # if HAVE_SYS_PARAM_H
26585 # include <sys/param.h>
26586 # ifdef EXEC_PAGESIZE
26587 # define getpagesize() EXEC_PAGESIZE
26588 # else /* no EXEC_PAGESIZE */
26589 # ifdef NBPG
26590 # define getpagesize() NBPG * CLSIZE
26591 # ifndef CLSIZE
26592 # define CLSIZE 1
26593 # endif /* no CLSIZE */
26594 # else /* no NBPG */
26595 # ifdef NBPC
26596 # define getpagesize() NBPC
26597 # else /* no NBPC */
26598 # ifdef PAGESIZE
26599 # define getpagesize() PAGESIZE
26600 # endif /* PAGESIZE */
26601 # endif /* no NBPC */
26602 # endif /* no NBPG */
26603 # endif /* no EXEC_PAGESIZE */
26604 # else /* no HAVE_SYS_PARAM_H */
26605 # define getpagesize() 8192 /* punt totally */
26606 # endif /* no HAVE_SYS_PARAM_H */
26607 # endif /* no _SC_PAGESIZE */
26609 #endif /* no HAVE_GETPAGESIZE */
26612 main ()
26614 char *data, *data2, *data3;
26615 int i, pagesize;
26616 int fd;
26618 pagesize = getpagesize ();
26620 /* First, make a file with some known garbage in it. */
26621 data = (char *) malloc (pagesize);
26622 if (!data)
26623 exit (1);
26624 for (i = 0; i < pagesize; ++i)
26625 *(data + i) = rand ();
26626 umask (0);
26627 fd = creat ("conftest.mmap", 0600);
26628 if (fd < 0)
26629 exit (1);
26630 if (write (fd, data, pagesize) != pagesize)
26631 exit (1);
26632 close (fd);
26634 /* Next, try to mmap the file at a fixed address which already has
26635 something else allocated at it. If we can, also make sure that
26636 we see the same garbage. */
26637 fd = open ("conftest.mmap", O_RDWR);
26638 if (fd < 0)
26639 exit (1);
26640 data2 = (char *) malloc (2 * pagesize);
26641 if (!data2)
26642 exit (1);
26643 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
26644 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
26645 MAP_PRIVATE | MAP_FIXED, fd, 0L))
26646 exit (1);
26647 for (i = 0; i < pagesize; ++i)
26648 if (*(data + i) != *(data2 + i))
26649 exit (1);
26651 /* Finally, make sure that changes to the mapped area do not
26652 percolate back to the file as seen by read(). (This is a bug on
26653 some variants of i386 svr4.0.) */
26654 for (i = 0; i < pagesize; ++i)
26655 *(data2 + i) = *(data2 + i) + 1;
26656 data3 = (char *) malloc (pagesize);
26657 if (!data3)
26658 exit (1);
26659 if (read (fd, data3, pagesize) != pagesize)
26660 exit (1);
26661 for (i = 0; i < pagesize; ++i)
26662 if (*(data + i) != *(data3 + i))
26663 exit (1);
26664 close (fd);
26665 exit (0);
26667 _ACEOF
26668 rm -f conftest$ac_exeext
26669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26670 (eval $ac_link) 2>&5
26671 ac_status=$?
26672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26675 (eval $ac_try) 2>&5
26676 ac_status=$?
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); }; }; then
26679 ac_cv_func_mmap_fixed_mapped=yes
26680 else
26681 echo "$as_me: program exited with status $ac_status" >&5
26682 echo "$as_me: failed program was:" >&5
26683 sed 's/^/| /' conftest.$ac_ext >&5
26685 ( exit $ac_status )
26686 ac_cv_func_mmap_fixed_mapped=no
26688 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26691 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
26692 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
26693 if test $ac_cv_func_mmap_fixed_mapped = yes; then
26695 cat >>confdefs.h <<\_ACEOF
26696 #define HAVE_MMAP 1
26697 _ACEOF
26700 rm -f conftest.mmap
26703 else
26705 # This lets us hard-code the functionality we know we'll have in the cross
26706 # target environment. "Let" is a sugar-coated word placed on an especially
26707 # dull and tedious hack, actually.
26709 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
26710 # that involve linking, can't be used:
26711 # "cannot open sim-crt0.o"
26712 # "cannot open crt0.o"
26713 # etc. All this is because there currently exists no unified, consistent
26714 # way for top level CC information to be passed down to target directories:
26715 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
26716 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
26717 # crosses can be removed.
26719 # If Canadian cross, then don't pick up tools from the build directory.
26720 # Used only in GLIBCXX_EXPORT_INCLUDES.
26721 if test -n "$with_cross_host" &&
26722 test x"$build" != x"$with_cross_host" &&
26723 test x"$build" != x"$target";
26724 then
26725 CANADIAN=yes
26726 else
26727 CANADIAN=no
26730 # Construct crosses by hand, eliminating bits that need ld...
26731 # GLIBCXX_CHECK_COMPILER_FEATURES
26732 # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
26733 # GLIBCXX_CHECK_MATH_SUPPORT
26735 # First, test for "known" system libraries. We may be using newlib even
26736 # on a hosted environment.
26737 if test "x${with_newlib}" = "xyes"; then
26738 os_include_dir="os/newlib"
26739 cat >>confdefs.h <<\_ACEOF
26740 #define HAVE_HYPOT 1
26741 _ACEOF
26744 # GLIBCXX_CHECK_STDLIB_SUPPORT
26745 cat >>confdefs.h <<\_ACEOF
26746 #define HAVE_STRTOF 1
26747 _ACEOF
26749 cat >>confdefs.h <<\_ACEOF
26750 #define HAVE_STRTOLD 1
26751 _ACEOF
26753 # AC_FUNC_MMAP
26754 cat >>confdefs.h <<\_ACEOF
26755 #define HAVE_MMAP 1
26756 _ACEOF
26759 cat >>confdefs.h <<\_ACEOF
26760 #define HAVE_ACOSF 1
26761 _ACEOF
26763 cat >>confdefs.h <<\_ACEOF
26764 #define HAVE_ASINF 1
26765 _ACEOF
26767 cat >>confdefs.h <<\_ACEOF
26768 #define HAVE_ATAN2F 1
26769 _ACEOF
26771 cat >>confdefs.h <<\_ACEOF
26772 #define HAVE_ATANF 1
26773 _ACEOF
26775 cat >>confdefs.h <<\_ACEOF
26776 #define HAVE_CEILF 1
26777 _ACEOF
26779 cat >>confdefs.h <<\_ACEOF
26780 #define HAVE_COPYSIGN 1
26781 _ACEOF
26783 cat >>confdefs.h <<\_ACEOF
26784 #define HAVE_COPYSIGNF 1
26785 _ACEOF
26787 cat >>confdefs.h <<\_ACEOF
26788 #define HAVE_COSF 1
26789 _ACEOF
26791 cat >>confdefs.h <<\_ACEOF
26792 #define HAVE_COSHF 1
26793 _ACEOF
26795 cat >>confdefs.h <<\_ACEOF
26796 #define HAVE_EXPF 1
26797 _ACEOF
26799 cat >>confdefs.h <<\_ACEOF
26800 #define HAVE_FABSF 1
26801 _ACEOF
26803 cat >>confdefs.h <<\_ACEOF
26804 #define HAVE_FLOORF 1
26805 _ACEOF
26807 cat >>confdefs.h <<\_ACEOF
26808 #define HAVE_FMODF 1
26809 _ACEOF
26811 cat >>confdefs.h <<\_ACEOF
26812 #define HAVE_FREXPF 1
26813 _ACEOF
26815 cat >>confdefs.h <<\_ACEOF
26816 #define HAVE_LDEXPF 1
26817 _ACEOF
26819 cat >>confdefs.h <<\_ACEOF
26820 #define HAVE_LOG10F 1
26821 _ACEOF
26823 cat >>confdefs.h <<\_ACEOF
26824 #define HAVE_LOGF 1
26825 _ACEOF
26827 cat >>confdefs.h <<\_ACEOF
26828 #define HAVE_MODFF 1
26829 _ACEOF
26831 cat >>confdefs.h <<\_ACEOF
26832 #define HAVE_POWF 1
26833 _ACEOF
26835 cat >>confdefs.h <<\_ACEOF
26836 #define HAVE_SINF 1
26837 _ACEOF
26839 cat >>confdefs.h <<\_ACEOF
26840 #define HAVE_SINHF 1
26841 _ACEOF
26843 cat >>confdefs.h <<\_ACEOF
26844 #define HAVE_SQRTF 1
26845 _ACEOF
26847 cat >>confdefs.h <<\_ACEOF
26848 #define HAVE_TANF 1
26849 _ACEOF
26851 cat >>confdefs.h <<\_ACEOF
26852 #define HAVE_TANHF 1
26853 _ACEOF
26855 else
26857 # Base decisions on target environment.
26858 case "${host}" in
26859 *-freebsd*)
26860 #os_include_dir="os/bsd/freebsd"
26877 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
26878 machine/endian.h machine/param.h sys/machine.h sys/types.h \
26879 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
26880 sys/time.h unistd.h
26882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26884 echo "$as_me:$LINENO: checking for $ac_header" >&5
26885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26887 echo $ECHO_N "(cached) $ECHO_C" >&6
26889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26891 else
26892 # Is the header compilable?
26893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26895 cat >conftest.$ac_ext <<_ACEOF
26896 #line $LINENO "configure"
26897 /* confdefs.h. */
26898 _ACEOF
26899 cat confdefs.h >>conftest.$ac_ext
26900 cat >>conftest.$ac_ext <<_ACEOF
26901 /* end confdefs.h. */
26902 $ac_includes_default
26903 #include <$ac_header>
26904 _ACEOF
26905 rm -f conftest.$ac_objext
26906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26907 (eval $ac_compile) 2>&5
26908 ac_status=$?
26909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910 (exit $ac_status); } &&
26911 { ac_try='test -s conftest.$ac_objext'
26912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26913 (eval $ac_try) 2>&5
26914 ac_status=$?
26915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26916 (exit $ac_status); }; }; then
26917 ac_header_compiler=yes
26918 else
26919 echo "$as_me: failed program was:" >&5
26920 sed 's/^/| /' conftest.$ac_ext >&5
26922 ac_header_compiler=no
26924 rm -f conftest.$ac_objext conftest.$ac_ext
26925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26926 echo "${ECHO_T}$ac_header_compiler" >&6
26928 # Is the header present?
26929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26931 cat >conftest.$ac_ext <<_ACEOF
26932 #line $LINENO "configure"
26933 /* confdefs.h. */
26934 _ACEOF
26935 cat confdefs.h >>conftest.$ac_ext
26936 cat >>conftest.$ac_ext <<_ACEOF
26937 /* end confdefs.h. */
26938 #include <$ac_header>
26939 _ACEOF
26940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26942 ac_status=$?
26943 grep -v '^ *+' conftest.er1 >conftest.err
26944 rm -f conftest.er1
26945 cat conftest.err >&5
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); } >/dev/null; then
26948 if test -s conftest.err; then
26949 ac_cpp_err=$ac_c_preproc_warn_flag
26950 else
26951 ac_cpp_err=
26953 else
26954 ac_cpp_err=yes
26956 if test -z "$ac_cpp_err"; then
26957 ac_header_preproc=yes
26958 else
26959 echo "$as_me: failed program was:" >&5
26960 sed 's/^/| /' conftest.$ac_ext >&5
26962 ac_header_preproc=no
26964 rm -f conftest.err conftest.$ac_ext
26965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26966 echo "${ECHO_T}$ac_header_preproc" >&6
26968 # So? What about this header?
26969 case $ac_header_compiler:$ac_header_preproc in
26970 yes:no )
26971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26976 cat <<\_ASBOX
26977 ## ------------------------------------ ##
26978 ## Report this to bug-autoconf@gnu.org. ##
26979 ## ------------------------------------ ##
26980 _ASBOX
26982 sed "s/^/$as_me: WARNING: /" >&2
26984 no:yes )
26985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26992 cat <<\_ASBOX
26993 ## ------------------------------------ ##
26994 ## Report this to bug-autoconf@gnu.org. ##
26995 ## ------------------------------------ ##
26996 _ASBOX
26998 sed "s/^/$as_me: WARNING: /" >&2
27000 esac
27001 echo "$as_me:$LINENO: checking for $ac_header" >&5
27002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27004 echo $ECHO_N "(cached) $ECHO_C" >&6
27005 else
27006 eval "$as_ac_Header=$ac_header_preproc"
27008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27013 cat >>confdefs.h <<_ACEOF
27014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27015 _ACEOF
27019 done
27021 SECTION_FLAGS='-ffunction-sections -fdata-sections'
27024 # If we're not using GNU ld, then there's no point in even trying these
27025 # tests. Check for that first. We should have already tested for gld
27026 # by now (in libtool), but require it now just to be safe...
27027 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
27028 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
27032 # The name set by libtool depends on the version of libtool. Shame on us
27033 # for depending on an impl detail, but c'est la vie. Older versions used
27034 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
27035 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
27036 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
27037 # set (hence we're using an older libtool), then set it.
27038 if test x${with_gnu_ld+set} != xset; then
27039 if test x${ac_cv_prog_gnu_ld+set} != xset; then
27040 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
27041 with_gnu_ld=no
27042 else
27043 with_gnu_ld=$ac_cv_prog_gnu_ld
27047 # Start by getting the version number. I think the libtool test already
27048 # does some of this, but throws away the result.
27050 ldver=`$LD --version 2>/dev/null | head -1 | \
27051 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
27053 glibcxx_gnu_ld_version=`echo $ldver | \
27054 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
27056 # Set --gc-sections.
27057 if test "$with_gnu_ld" = "notbroken"; then
27058 # GNU ld it is! Joy and bunny rabbits!
27060 # All these tests are for C++; save the language and the compiler flags.
27061 # Need to do this so that g++ won't try to link in libstdc++
27062 ac_test_CFLAGS="${CFLAGS+set}"
27063 ac_save_CFLAGS="$CFLAGS"
27064 CFLAGS='-x c++ -Wl,--gc-sections'
27066 # Check for -Wl,--gc-sections
27067 # XXX This test is broken at the moment, as symbols required for linking
27068 # are now in libsupc++ (not built yet). In addition, this test has
27069 # cored on solaris in the past. In addition, --gc-sections doesn't
27070 # really work at the moment (keeps on discarding used sections, first
27071 # .eh_frame and now some of the glibc sections for iconv).
27072 # Bzzzzt. Thanks for playing, maybe next time.
27073 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
27074 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
27075 if test "$cross_compiling" = yes; then
27076 ac_sectionLDflags=yes
27077 else
27078 cat >conftest.$ac_ext <<_ACEOF
27079 #line $LINENO "configure"
27080 /* confdefs.h. */
27081 _ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h. */
27086 int main(void)
27088 try { throw 1; }
27089 catch (...) { };
27090 return 0;
27093 _ACEOF
27094 rm -f conftest$ac_exeext
27095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27096 (eval $ac_link) 2>&5
27097 ac_status=$?
27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27101 (eval $ac_try) 2>&5
27102 ac_status=$?
27103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104 (exit $ac_status); }; }; then
27105 ac_sectionLDflags=yes
27106 else
27107 echo "$as_me: program exited with status $ac_status" >&5
27108 echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27111 ( exit $ac_status )
27112 ac_sectionLDflags=no
27114 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27116 if test "$ac_test_CFLAGS" = set; then
27117 CFLAGS="$ac_save_CFLAGS"
27118 else
27119 # this is the suspicious part
27120 CFLAGS=''
27122 if test "$ac_sectionLDflags" = "yes"; then
27123 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
27125 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
27126 echo "${ECHO_T}$ac_sectionLDflags" >&6
27129 # Set linker optimization flags.
27130 if test x"$with_gnu_ld" = x"yes"; then
27131 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
27139 echo "$as_me:$LINENO: checking for main in -lm" >&5
27140 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
27141 if test "${ac_cv_lib_m_main+set}" = set; then
27142 echo $ECHO_N "(cached) $ECHO_C" >&6
27143 else
27144 ac_check_lib_save_LIBS=$LIBS
27145 LIBS="-lm $LIBS"
27146 cat >conftest.$ac_ext <<_ACEOF
27147 #line $LINENO "configure"
27148 /* confdefs.h. */
27149 _ACEOF
27150 cat confdefs.h >>conftest.$ac_ext
27151 cat >>conftest.$ac_ext <<_ACEOF
27152 /* end confdefs.h. */
27156 main ()
27158 main ();
27160 return 0;
27162 _ACEOF
27163 rm -f conftest.$ac_objext conftest$ac_exeext
27164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27165 (eval $ac_link) 2>&5
27166 ac_status=$?
27167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27168 (exit $ac_status); } &&
27169 { ac_try='test -s conftest$ac_exeext'
27170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27171 (eval $ac_try) 2>&5
27172 ac_status=$?
27173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); }; }; then
27175 ac_cv_lib_m_main=yes
27176 else
27177 echo "$as_me: failed program was:" >&5
27178 sed 's/^/| /' conftest.$ac_ext >&5
27180 ac_cv_lib_m_main=no
27182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27183 LIBS=$ac_check_lib_save_LIBS
27185 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
27186 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
27187 if test $ac_cv_lib_m_main = yes; then
27188 cat >>confdefs.h <<_ACEOF
27189 #define HAVE_LIBM 1
27190 _ACEOF
27192 LIBS="-lm $LIBS"
27198 for ac_func in nan copysignf
27200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27201 echo "$as_me:$LINENO: checking for $ac_func" >&5
27202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27203 if eval "test \"\${$as_ac_var+set}\" = set"; then
27204 echo $ECHO_N "(cached) $ECHO_C" >&6
27205 else
27206 cat >conftest.$ac_ext <<_ACEOF
27207 #line $LINENO "configure"
27208 /* confdefs.h. */
27209 _ACEOF
27210 cat confdefs.h >>conftest.$ac_ext
27211 cat >>conftest.$ac_ext <<_ACEOF
27212 /* end confdefs.h. */
27213 /* System header to define __stub macros and hopefully few prototypes,
27214 which can conflict with char $ac_func (); below.
27215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27216 <limits.h> exists even on freestanding compilers. */
27217 #ifdef __STDC__
27218 # include <limits.h>
27219 #else
27220 # include <assert.h>
27221 #endif
27222 /* Override any gcc2 internal prototype to avoid an error. */
27223 #ifdef __cplusplus
27224 extern "C"
27226 #endif
27227 /* We use char because int might match the return type of a gcc2
27228 builtin and then its argument prototype would still apply. */
27229 char $ac_func ();
27230 /* The GNU C library defines this for functions which it implements
27231 to always fail with ENOSYS. Some functions are actually named
27232 something starting with __ and the normal name is an alias. */
27233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27234 choke me
27235 #else
27236 char (*f) () = $ac_func;
27237 #endif
27238 #ifdef __cplusplus
27240 #endif
27243 main ()
27245 return f != $ac_func;
27247 return 0;
27249 _ACEOF
27250 rm -f conftest.$ac_objext conftest$ac_exeext
27251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27252 (eval $ac_link) 2>&5
27253 ac_status=$?
27254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); } &&
27256 { ac_try='test -s conftest$ac_exeext'
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27259 ac_status=$?
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; }; then
27262 eval "$as_ac_var=yes"
27263 else
27264 echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27267 eval "$as_ac_var=no"
27269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27273 if test `eval echo '${'$as_ac_var'}'` = yes; then
27274 cat >>confdefs.h <<_ACEOF
27275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27276 _ACEOF
27278 else
27279 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
27281 done
27285 for ac_func in __signbit
27287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27288 echo "$as_me:$LINENO: checking for $ac_func" >&5
27289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27290 if eval "test \"\${$as_ac_var+set}\" = set"; then
27291 echo $ECHO_N "(cached) $ECHO_C" >&6
27292 else
27293 cat >conftest.$ac_ext <<_ACEOF
27294 #line $LINENO "configure"
27295 /* confdefs.h. */
27296 _ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h. */
27300 /* System header to define __stub macros and hopefully few prototypes,
27301 which can conflict with char $ac_func (); below.
27302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27303 <limits.h> exists even on freestanding compilers. */
27304 #ifdef __STDC__
27305 # include <limits.h>
27306 #else
27307 # include <assert.h>
27308 #endif
27309 /* Override any gcc2 internal prototype to avoid an error. */
27310 #ifdef __cplusplus
27311 extern "C"
27313 #endif
27314 /* We use char because int might match the return type of a gcc2
27315 builtin and then its argument prototype would still apply. */
27316 char $ac_func ();
27317 /* The GNU C library defines this for functions which it implements
27318 to always fail with ENOSYS. Some functions are actually named
27319 something starting with __ and the normal name is an alias. */
27320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27321 choke me
27322 #else
27323 char (*f) () = $ac_func;
27324 #endif
27325 #ifdef __cplusplus
27327 #endif
27330 main ()
27332 return f != $ac_func;
27334 return 0;
27336 _ACEOF
27337 rm -f conftest.$ac_objext conftest$ac_exeext
27338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27339 (eval $ac_link) 2>&5
27340 ac_status=$?
27341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342 (exit $ac_status); } &&
27343 { ac_try='test -s conftest$ac_exeext'
27344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27345 (eval $ac_try) 2>&5
27346 ac_status=$?
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); }; }; then
27349 eval "$as_ac_var=yes"
27350 else
27351 echo "$as_me: failed program was:" >&5
27352 sed 's/^/| /' conftest.$ac_ext >&5
27354 eval "$as_ac_var=no"
27356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27360 if test `eval echo '${'$as_ac_var'}'` = yes; then
27361 cat >>confdefs.h <<_ACEOF
27362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27363 _ACEOF
27365 else
27366 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
27368 done
27371 for ac_func in __signbitf
27373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27374 echo "$as_me:$LINENO: checking for $ac_func" >&5
27375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27376 if eval "test \"\${$as_ac_var+set}\" = set"; then
27377 echo $ECHO_N "(cached) $ECHO_C" >&6
27378 else
27379 cat >conftest.$ac_ext <<_ACEOF
27380 #line $LINENO "configure"
27381 /* confdefs.h. */
27382 _ACEOF
27383 cat confdefs.h >>conftest.$ac_ext
27384 cat >>conftest.$ac_ext <<_ACEOF
27385 /* end confdefs.h. */
27386 /* System header to define __stub macros and hopefully few prototypes,
27387 which can conflict with char $ac_func (); below.
27388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27389 <limits.h> exists even on freestanding compilers. */
27390 #ifdef __STDC__
27391 # include <limits.h>
27392 #else
27393 # include <assert.h>
27394 #endif
27395 /* Override any gcc2 internal prototype to avoid an error. */
27396 #ifdef __cplusplus
27397 extern "C"
27399 #endif
27400 /* We use char because int might match the return type of a gcc2
27401 builtin and then its argument prototype would still apply. */
27402 char $ac_func ();
27403 /* The GNU C library defines this for functions which it implements
27404 to always fail with ENOSYS. Some functions are actually named
27405 something starting with __ and the normal name is an alias. */
27406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27407 choke me
27408 #else
27409 char (*f) () = $ac_func;
27410 #endif
27411 #ifdef __cplusplus
27413 #endif
27416 main ()
27418 return f != $ac_func;
27420 return 0;
27422 _ACEOF
27423 rm -f conftest.$ac_objext conftest$ac_exeext
27424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27425 (eval $ac_link) 2>&5
27426 ac_status=$?
27427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428 (exit $ac_status); } &&
27429 { ac_try='test -s conftest$ac_exeext'
27430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27431 (eval $ac_try) 2>&5
27432 ac_status=$?
27433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434 (exit $ac_status); }; }; then
27435 eval "$as_ac_var=yes"
27436 else
27437 echo "$as_me: failed program was:" >&5
27438 sed 's/^/| /' conftest.$ac_ext >&5
27440 eval "$as_ac_var=no"
27442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27446 if test `eval echo '${'$as_ac_var'}'` = yes; then
27447 cat >>confdefs.h <<_ACEOF
27448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27449 _ACEOF
27451 else
27452 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
27454 done
27457 if test x$ac_cv_func_copysignl = x"yes"; then
27459 for ac_func in __signbitl
27461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27462 echo "$as_me:$LINENO: checking for $ac_func" >&5
27463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27464 if eval "test \"\${$as_ac_var+set}\" = set"; then
27465 echo $ECHO_N "(cached) $ECHO_C" >&6
27466 else
27467 cat >conftest.$ac_ext <<_ACEOF
27468 #line $LINENO "configure"
27469 /* confdefs.h. */
27470 _ACEOF
27471 cat confdefs.h >>conftest.$ac_ext
27472 cat >>conftest.$ac_ext <<_ACEOF
27473 /* end confdefs.h. */
27474 /* System header to define __stub macros and hopefully few prototypes,
27475 which can conflict with char $ac_func (); below.
27476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27477 <limits.h> exists even on freestanding compilers. */
27478 #ifdef __STDC__
27479 # include <limits.h>
27480 #else
27481 # include <assert.h>
27482 #endif
27483 /* Override any gcc2 internal prototype to avoid an error. */
27484 #ifdef __cplusplus
27485 extern "C"
27487 #endif
27488 /* We use char because int might match the return type of a gcc2
27489 builtin and then its argument prototype would still apply. */
27490 char $ac_func ();
27491 /* The GNU C library defines this for functions which it implements
27492 to always fail with ENOSYS. Some functions are actually named
27493 something starting with __ and the normal name is an alias. */
27494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27495 choke me
27496 #else
27497 char (*f) () = $ac_func;
27498 #endif
27499 #ifdef __cplusplus
27501 #endif
27504 main ()
27506 return f != $ac_func;
27508 return 0;
27510 _ACEOF
27511 rm -f conftest.$ac_objext conftest$ac_exeext
27512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27513 (eval $ac_link) 2>&5
27514 ac_status=$?
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); } &&
27517 { ac_try='test -s conftest$ac_exeext'
27518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519 (eval $ac_try) 2>&5
27520 ac_status=$?
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); }; }; then
27523 eval "$as_ac_var=yes"
27524 else
27525 echo "$as_me: failed program was:" >&5
27526 sed 's/^/| /' conftest.$ac_ext >&5
27528 eval "$as_ac_var=no"
27530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27534 if test `eval echo '${'$as_ac_var'}'` = yes; then
27535 cat >>confdefs.h <<_ACEOF
27536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27537 _ACEOF
27539 else
27540 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
27542 done
27546 # XXX Review this. Nothing uses it.
27547 if test -n "$LIBMATHOBJS"; then
27548 need_libmath=yes
27553 # Test wchar.h for mbstate_t, which is needed for char_traits and
27554 # others even if wchar_t support is not on.
27555 echo "$as_me:$LINENO: checking for mbstate_t" >&5
27556 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
27557 cat >conftest.$ac_ext <<_ACEOF
27558 #line $LINENO "configure"
27559 /* confdefs.h. */
27560 _ACEOF
27561 cat confdefs.h >>conftest.$ac_ext
27562 cat >>conftest.$ac_ext <<_ACEOF
27563 /* end confdefs.h. */
27564 #include <wchar.h>
27566 main ()
27568 mbstate_t teststate;
27570 return 0;
27572 _ACEOF
27573 rm -f conftest.$ac_objext
27574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27575 (eval $ac_compile) 2>&5
27576 ac_status=$?
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); } &&
27579 { ac_try='test -s conftest.$ac_objext'
27580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27581 (eval $ac_try) 2>&5
27582 ac_status=$?
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; }; then
27585 have_mbstate_t=yes
27586 else
27587 echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27590 have_mbstate_t=no
27592 rm -f conftest.$ac_objext conftest.$ac_ext
27593 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
27594 echo "${ECHO_T}$have_mbstate_t" >&6
27595 if test x"$have_mbstate_t" = xyes; then
27596 cat >>confdefs.h <<\_ACEOF
27597 #define HAVE_MBSTATE_T 1
27598 _ACEOF
27602 # Sanity check for existence of ISO C99 headers for extended encoding.
27604 for ac_header in wchar.h
27606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27608 echo "$as_me:$LINENO: checking for $ac_header" >&5
27609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27611 echo $ECHO_N "(cached) $ECHO_C" >&6
27613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27615 else
27616 # Is the header compilable?
27617 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27619 cat >conftest.$ac_ext <<_ACEOF
27620 #line $LINENO "configure"
27621 /* confdefs.h. */
27622 _ACEOF
27623 cat confdefs.h >>conftest.$ac_ext
27624 cat >>conftest.$ac_ext <<_ACEOF
27625 /* end confdefs.h. */
27626 $ac_includes_default
27627 #include <$ac_header>
27628 _ACEOF
27629 rm -f conftest.$ac_objext
27630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27631 (eval $ac_compile) 2>&5
27632 ac_status=$?
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); } &&
27635 { ac_try='test -s conftest.$ac_objext'
27636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27637 (eval $ac_try) 2>&5
27638 ac_status=$?
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); }; }; then
27641 ac_header_compiler=yes
27642 else
27643 echo "$as_me: failed program was:" >&5
27644 sed 's/^/| /' conftest.$ac_ext >&5
27646 ac_header_compiler=no
27648 rm -f conftest.$ac_objext conftest.$ac_ext
27649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27650 echo "${ECHO_T}$ac_header_compiler" >&6
27652 # Is the header present?
27653 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27655 cat >conftest.$ac_ext <<_ACEOF
27656 #line $LINENO "configure"
27657 /* confdefs.h. */
27658 _ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h. */
27662 #include <$ac_header>
27663 _ACEOF
27664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27666 ac_status=$?
27667 grep -v '^ *+' conftest.er1 >conftest.err
27668 rm -f conftest.er1
27669 cat conftest.err >&5
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); } >/dev/null; then
27672 if test -s conftest.err; then
27673 ac_cpp_err=$ac_c_preproc_warn_flag
27674 else
27675 ac_cpp_err=
27677 else
27678 ac_cpp_err=yes
27680 if test -z "$ac_cpp_err"; then
27681 ac_header_preproc=yes
27682 else
27683 echo "$as_me: failed program was:" >&5
27684 sed 's/^/| /' conftest.$ac_ext >&5
27686 ac_header_preproc=no
27688 rm -f conftest.err conftest.$ac_ext
27689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27690 echo "${ECHO_T}$ac_header_preproc" >&6
27692 # So? What about this header?
27693 case $ac_header_compiler:$ac_header_preproc in
27694 yes:no )
27695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27700 cat <<\_ASBOX
27701 ## ------------------------------------ ##
27702 ## Report this to bug-autoconf@gnu.org. ##
27703 ## ------------------------------------ ##
27704 _ASBOX
27706 sed "s/^/$as_me: WARNING: /" >&2
27708 no:yes )
27709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27716 cat <<\_ASBOX
27717 ## ------------------------------------ ##
27718 ## Report this to bug-autoconf@gnu.org. ##
27719 ## ------------------------------------ ##
27720 _ASBOX
27722 sed "s/^/$as_me: WARNING: /" >&2
27724 esac
27725 echo "$as_me:$LINENO: checking for $ac_header" >&5
27726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27728 echo $ECHO_N "(cached) $ECHO_C" >&6
27729 else
27730 eval "$as_ac_Header=$ac_header_preproc"
27732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27737 cat >>confdefs.h <<_ACEOF
27738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27739 _ACEOF
27740 ac_has_wchar_h=yes
27741 else
27742 ac_has_wchar_h=no
27745 done
27748 for ac_header in wctype.h
27750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27752 echo "$as_me:$LINENO: checking for $ac_header" >&5
27753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27755 echo $ECHO_N "(cached) $ECHO_C" >&6
27757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27759 else
27760 # Is the header compilable?
27761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27763 cat >conftest.$ac_ext <<_ACEOF
27764 #line $LINENO "configure"
27765 /* confdefs.h. */
27766 _ACEOF
27767 cat confdefs.h >>conftest.$ac_ext
27768 cat >>conftest.$ac_ext <<_ACEOF
27769 /* end confdefs.h. */
27770 $ac_includes_default
27771 #include <$ac_header>
27772 _ACEOF
27773 rm -f conftest.$ac_objext
27774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27775 (eval $ac_compile) 2>&5
27776 ac_status=$?
27777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); } &&
27779 { ac_try='test -s conftest.$ac_objext'
27780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27781 (eval $ac_try) 2>&5
27782 ac_status=$?
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784 (exit $ac_status); }; }; then
27785 ac_header_compiler=yes
27786 else
27787 echo "$as_me: failed program was:" >&5
27788 sed 's/^/| /' conftest.$ac_ext >&5
27790 ac_header_compiler=no
27792 rm -f conftest.$ac_objext conftest.$ac_ext
27793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27794 echo "${ECHO_T}$ac_header_compiler" >&6
27796 # Is the header present?
27797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27799 cat >conftest.$ac_ext <<_ACEOF
27800 #line $LINENO "configure"
27801 /* confdefs.h. */
27802 _ACEOF
27803 cat confdefs.h >>conftest.$ac_ext
27804 cat >>conftest.$ac_ext <<_ACEOF
27805 /* end confdefs.h. */
27806 #include <$ac_header>
27807 _ACEOF
27808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27810 ac_status=$?
27811 grep -v '^ *+' conftest.er1 >conftest.err
27812 rm -f conftest.er1
27813 cat conftest.err >&5
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); } >/dev/null; then
27816 if test -s conftest.err; then
27817 ac_cpp_err=$ac_c_preproc_warn_flag
27818 else
27819 ac_cpp_err=
27821 else
27822 ac_cpp_err=yes
27824 if test -z "$ac_cpp_err"; then
27825 ac_header_preproc=yes
27826 else
27827 echo "$as_me: failed program was:" >&5
27828 sed 's/^/| /' conftest.$ac_ext >&5
27830 ac_header_preproc=no
27832 rm -f conftest.err conftest.$ac_ext
27833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27834 echo "${ECHO_T}$ac_header_preproc" >&6
27836 # So? What about this header?
27837 case $ac_header_compiler:$ac_header_preproc in
27838 yes:no )
27839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27844 cat <<\_ASBOX
27845 ## ------------------------------------ ##
27846 ## Report this to bug-autoconf@gnu.org. ##
27847 ## ------------------------------------ ##
27848 _ASBOX
27850 sed "s/^/$as_me: WARNING: /" >&2
27852 no:yes )
27853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27860 cat <<\_ASBOX
27861 ## ------------------------------------ ##
27862 ## Report this to bug-autoconf@gnu.org. ##
27863 ## ------------------------------------ ##
27864 _ASBOX
27866 sed "s/^/$as_me: WARNING: /" >&2
27868 esac
27869 echo "$as_me:$LINENO: checking for $ac_header" >&5
27870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27872 echo $ECHO_N "(cached) $ECHO_C" >&6
27873 else
27874 eval "$as_ac_Header=$ac_header_preproc"
27876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27881 cat >>confdefs.h <<_ACEOF
27882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27883 _ACEOF
27884 ac_has_wctype_h=yes
27885 else
27886 ac_has_wctype_h=no
27889 done
27892 # Only continue checking if the ISO C99 headers exist and support is on.
27893 if test x"$ac_has_wchar_h" = xyes &&
27894 test x"$ac_has_wctype_h" = xyes &&
27895 test x"$enable_c_mbchar" != xno; then
27897 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
27898 # numeric_limits can instantiate type_traits<wchar_t>
27899 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
27900 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
27901 cat >conftest.$ac_ext <<_ACEOF
27902 #line $LINENO "configure"
27903 /* confdefs.h. */
27904 _ACEOF
27905 cat confdefs.h >>conftest.$ac_ext
27906 cat >>conftest.$ac_ext <<_ACEOF
27907 /* end confdefs.h. */
27908 #include <wchar.h>
27910 main ()
27912 int i = WCHAR_MIN; int j = WCHAR_MAX;
27914 return 0;
27916 _ACEOF
27917 rm -f conftest.$ac_objext
27918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27919 (eval $ac_compile) 2>&5
27920 ac_status=$?
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); } &&
27923 { ac_try='test -s conftest.$ac_objext'
27924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27925 (eval $ac_try) 2>&5
27926 ac_status=$?
27927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928 (exit $ac_status); }; }; then
27929 has_wchar_minmax=yes
27930 else
27931 echo "$as_me: failed program was:" >&5
27932 sed 's/^/| /' conftest.$ac_ext >&5
27934 has_wchar_minmax=no
27936 rm -f conftest.$ac_objext conftest.$ac_ext
27937 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
27938 echo "${ECHO_T}$has_wchar_minmax" >&6
27940 # Test wchar.h for WEOF, which is what we use to determine whether
27941 # to specialize for char_traits<wchar_t> or not.
27942 echo "$as_me:$LINENO: checking for WEOF" >&5
27943 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
27944 cat >conftest.$ac_ext <<_ACEOF
27945 #line $LINENO "configure"
27946 /* confdefs.h. */
27947 _ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h. */
27952 #include <wchar.h>
27953 #include <stddef.h>
27955 main ()
27957 wint_t i = WEOF;
27959 return 0;
27961 _ACEOF
27962 rm -f conftest.$ac_objext
27963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27964 (eval $ac_compile) 2>&5
27965 ac_status=$?
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); } &&
27968 { ac_try='test -s conftest.$ac_objext'
27969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970 (eval $ac_try) 2>&5
27971 ac_status=$?
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); }; }; then
27974 has_weof=yes
27975 else
27976 echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.$ac_ext >&5
27979 has_weof=no
27981 rm -f conftest.$ac_objext conftest.$ac_ext
27982 echo "$as_me:$LINENO: result: $has_weof" >&5
27983 echo "${ECHO_T}$has_weof" >&6
27985 # Tests for wide character functions used in char_traits<wchar_t>.
27986 ac_wfuncs=yes
27993 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
27995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27996 echo "$as_me:$LINENO: checking for $ac_func" >&5
27997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27998 if eval "test \"\${$as_ac_var+set}\" = set"; then
27999 echo $ECHO_N "(cached) $ECHO_C" >&6
28000 else
28001 cat >conftest.$ac_ext <<_ACEOF
28002 #line $LINENO "configure"
28003 /* confdefs.h. */
28004 _ACEOF
28005 cat confdefs.h >>conftest.$ac_ext
28006 cat >>conftest.$ac_ext <<_ACEOF
28007 /* end confdefs.h. */
28008 /* System header to define __stub macros and hopefully few prototypes,
28009 which can conflict with char $ac_func (); below.
28010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28011 <limits.h> exists even on freestanding compilers. */
28012 #ifdef __STDC__
28013 # include <limits.h>
28014 #else
28015 # include <assert.h>
28016 #endif
28017 /* Override any gcc2 internal prototype to avoid an error. */
28018 #ifdef __cplusplus
28019 extern "C"
28021 #endif
28022 /* We use char because int might match the return type of a gcc2
28023 builtin and then its argument prototype would still apply. */
28024 char $ac_func ();
28025 /* The GNU C library defines this for functions which it implements
28026 to always fail with ENOSYS. Some functions are actually named
28027 something starting with __ and the normal name is an alias. */
28028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28029 choke me
28030 #else
28031 char (*f) () = $ac_func;
28032 #endif
28033 #ifdef __cplusplus
28035 #endif
28038 main ()
28040 return f != $ac_func;
28042 return 0;
28044 _ACEOF
28045 rm -f conftest.$ac_objext conftest$ac_exeext
28046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28047 (eval $ac_link) 2>&5
28048 ac_status=$?
28049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050 (exit $ac_status); } &&
28051 { ac_try='test -s conftest$ac_exeext'
28052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28053 (eval $ac_try) 2>&5
28054 ac_status=$?
28055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056 (exit $ac_status); }; }; then
28057 eval "$as_ac_var=yes"
28058 else
28059 echo "$as_me: failed program was:" >&5
28060 sed 's/^/| /' conftest.$ac_ext >&5
28062 eval "$as_ac_var=no"
28064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28068 if test `eval echo '${'$as_ac_var'}'` = yes; then
28069 cat >>confdefs.h <<_ACEOF
28070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28071 _ACEOF
28073 else
28074 ac_wfuncs=no
28076 done
28079 # Checks for names injected into std:: by the c_std headers.
28130 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
28131 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
28132 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
28133 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
28134 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
28135 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
28137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28138 echo "$as_me:$LINENO: checking for $ac_func" >&5
28139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28140 if eval "test \"\${$as_ac_var+set}\" = set"; then
28141 echo $ECHO_N "(cached) $ECHO_C" >&6
28142 else
28143 cat >conftest.$ac_ext <<_ACEOF
28144 #line $LINENO "configure"
28145 /* confdefs.h. */
28146 _ACEOF
28147 cat confdefs.h >>conftest.$ac_ext
28148 cat >>conftest.$ac_ext <<_ACEOF
28149 /* end confdefs.h. */
28150 /* System header to define __stub macros and hopefully few prototypes,
28151 which can conflict with char $ac_func (); below.
28152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28153 <limits.h> exists even on freestanding compilers. */
28154 #ifdef __STDC__
28155 # include <limits.h>
28156 #else
28157 # include <assert.h>
28158 #endif
28159 /* Override any gcc2 internal prototype to avoid an error. */
28160 #ifdef __cplusplus
28161 extern "C"
28163 #endif
28164 /* We use char because int might match the return type of a gcc2
28165 builtin and then its argument prototype would still apply. */
28166 char $ac_func ();
28167 /* The GNU C library defines this for functions which it implements
28168 to always fail with ENOSYS. Some functions are actually named
28169 something starting with __ and the normal name is an alias. */
28170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28171 choke me
28172 #else
28173 char (*f) () = $ac_func;
28174 #endif
28175 #ifdef __cplusplus
28177 #endif
28180 main ()
28182 return f != $ac_func;
28184 return 0;
28186 _ACEOF
28187 rm -f conftest.$ac_objext conftest$ac_exeext
28188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28189 (eval $ac_link) 2>&5
28190 ac_status=$?
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); } &&
28193 { ac_try='test -s conftest$ac_exeext'
28194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28195 (eval $ac_try) 2>&5
28196 ac_status=$?
28197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28198 (exit $ac_status); }; }; then
28199 eval "$as_ac_var=yes"
28200 else
28201 echo "$as_me: failed program was:" >&5
28202 sed 's/^/| /' conftest.$ac_ext >&5
28204 eval "$as_ac_var=no"
28206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28210 if test `eval echo '${'$as_ac_var'}'` = yes; then
28211 cat >>confdefs.h <<_ACEOF
28212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28213 _ACEOF
28215 else
28216 ac_wfuncs=no
28218 done
28221 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
28222 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
28223 if test x"$has_weof" = xyes &&
28224 test x"$has_wchar_minmax" = xyes &&
28225 test x"$ac_wfuncs" = xyes;
28226 then
28227 ac_isoC99_wchar_t=yes
28228 else
28229 ac_isoC99_wchar_t=no
28231 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
28232 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
28234 # Use iconv for wchar_t to char conversions. As such, check for
28235 # X/Open Portability Guide, version 2 features (XPG2).
28236 if test "${ac_cv_header_iconv_h+set}" = set; then
28237 echo "$as_me:$LINENO: checking for iconv.h" >&5
28238 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28239 if test "${ac_cv_header_iconv_h+set}" = set; then
28240 echo $ECHO_N "(cached) $ECHO_C" >&6
28242 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28243 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28244 else
28245 # Is the header compilable?
28246 echo "$as_me:$LINENO: checking iconv.h usability" >&5
28247 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
28248 cat >conftest.$ac_ext <<_ACEOF
28249 #line $LINENO "configure"
28250 /* confdefs.h. */
28251 _ACEOF
28252 cat confdefs.h >>conftest.$ac_ext
28253 cat >>conftest.$ac_ext <<_ACEOF
28254 /* end confdefs.h. */
28255 $ac_includes_default
28256 #include <iconv.h>
28257 _ACEOF
28258 rm -f conftest.$ac_objext
28259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28260 (eval $ac_compile) 2>&5
28261 ac_status=$?
28262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); } &&
28264 { ac_try='test -s conftest.$ac_objext'
28265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28266 (eval $ac_try) 2>&5
28267 ac_status=$?
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); }; }; then
28270 ac_header_compiler=yes
28271 else
28272 echo "$as_me: failed program was:" >&5
28273 sed 's/^/| /' conftest.$ac_ext >&5
28275 ac_header_compiler=no
28277 rm -f conftest.$ac_objext conftest.$ac_ext
28278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28279 echo "${ECHO_T}$ac_header_compiler" >&6
28281 # Is the header present?
28282 echo "$as_me:$LINENO: checking iconv.h presence" >&5
28283 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
28284 cat >conftest.$ac_ext <<_ACEOF
28285 #line $LINENO "configure"
28286 /* confdefs.h. */
28287 _ACEOF
28288 cat confdefs.h >>conftest.$ac_ext
28289 cat >>conftest.$ac_ext <<_ACEOF
28290 /* end confdefs.h. */
28291 #include <iconv.h>
28292 _ACEOF
28293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28295 ac_status=$?
28296 grep -v '^ *+' conftest.er1 >conftest.err
28297 rm -f conftest.er1
28298 cat conftest.err >&5
28299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); } >/dev/null; then
28301 if test -s conftest.err; then
28302 ac_cpp_err=$ac_c_preproc_warn_flag
28303 else
28304 ac_cpp_err=
28306 else
28307 ac_cpp_err=yes
28309 if test -z "$ac_cpp_err"; then
28310 ac_header_preproc=yes
28311 else
28312 echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.$ac_ext >&5
28315 ac_header_preproc=no
28317 rm -f conftest.err conftest.$ac_ext
28318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28319 echo "${ECHO_T}$ac_header_preproc" >&6
28321 # So? What about this header?
28322 case $ac_header_compiler:$ac_header_preproc in
28323 yes:no )
28324 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
28325 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28326 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
28327 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
28329 cat <<\_ASBOX
28330 ## ------------------------------------ ##
28331 ## Report this to bug-autoconf@gnu.org. ##
28332 ## ------------------------------------ ##
28333 _ASBOX
28335 sed "s/^/$as_me: WARNING: /" >&2
28337 no:yes )
28338 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
28339 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
28340 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
28341 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
28342 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
28343 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
28345 cat <<\_ASBOX
28346 ## ------------------------------------ ##
28347 ## Report this to bug-autoconf@gnu.org. ##
28348 ## ------------------------------------ ##
28349 _ASBOX
28351 sed "s/^/$as_me: WARNING: /" >&2
28353 esac
28354 echo "$as_me:$LINENO: checking for iconv.h" >&5
28355 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28356 if test "${ac_cv_header_iconv_h+set}" = set; then
28357 echo $ECHO_N "(cached) $ECHO_C" >&6
28358 else
28359 ac_cv_header_iconv_h=$ac_header_preproc
28361 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28362 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28365 if test $ac_cv_header_iconv_h = yes; then
28366 ac_has_iconv_h=yes
28367 else
28368 ac_has_iconv_h=no
28372 if test "${ac_cv_header_langinfo_h+set}" = set; then
28373 echo "$as_me:$LINENO: checking for langinfo.h" >&5
28374 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
28375 if test "${ac_cv_header_langinfo_h+set}" = set; then
28376 echo $ECHO_N "(cached) $ECHO_C" >&6
28378 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
28379 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
28380 else
28381 # Is the header compilable?
28382 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
28383 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
28384 cat >conftest.$ac_ext <<_ACEOF
28385 #line $LINENO "configure"
28386 /* confdefs.h. */
28387 _ACEOF
28388 cat confdefs.h >>conftest.$ac_ext
28389 cat >>conftest.$ac_ext <<_ACEOF
28390 /* end confdefs.h. */
28391 $ac_includes_default
28392 #include <langinfo.h>
28393 _ACEOF
28394 rm -f conftest.$ac_objext
28395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28396 (eval $ac_compile) 2>&5
28397 ac_status=$?
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); } &&
28400 { ac_try='test -s conftest.$ac_objext'
28401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402 (eval $ac_try) 2>&5
28403 ac_status=$?
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); }; }; then
28406 ac_header_compiler=yes
28407 else
28408 echo "$as_me: failed program was:" >&5
28409 sed 's/^/| /' conftest.$ac_ext >&5
28411 ac_header_compiler=no
28413 rm -f conftest.$ac_objext conftest.$ac_ext
28414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28415 echo "${ECHO_T}$ac_header_compiler" >&6
28417 # Is the header present?
28418 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
28419 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
28420 cat >conftest.$ac_ext <<_ACEOF
28421 #line $LINENO "configure"
28422 /* confdefs.h. */
28423 _ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h. */
28427 #include <langinfo.h>
28428 _ACEOF
28429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28431 ac_status=$?
28432 grep -v '^ *+' conftest.er1 >conftest.err
28433 rm -f conftest.er1
28434 cat conftest.err >&5
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); } >/dev/null; then
28437 if test -s conftest.err; then
28438 ac_cpp_err=$ac_c_preproc_warn_flag
28439 else
28440 ac_cpp_err=
28442 else
28443 ac_cpp_err=yes
28445 if test -z "$ac_cpp_err"; then
28446 ac_header_preproc=yes
28447 else
28448 echo "$as_me: failed program was:" >&5
28449 sed 's/^/| /' conftest.$ac_ext >&5
28451 ac_header_preproc=no
28453 rm -f conftest.err conftest.$ac_ext
28454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28455 echo "${ECHO_T}$ac_header_preproc" >&6
28457 # So? What about this header?
28458 case $ac_header_compiler:$ac_header_preproc in
28459 yes:no )
28460 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
28461 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28462 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
28463 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
28465 cat <<\_ASBOX
28466 ## ------------------------------------ ##
28467 ## Report this to bug-autoconf@gnu.org. ##
28468 ## ------------------------------------ ##
28469 _ASBOX
28471 sed "s/^/$as_me: WARNING: /" >&2
28473 no:yes )
28474 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
28475 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
28476 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
28477 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
28478 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
28479 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
28481 cat <<\_ASBOX
28482 ## ------------------------------------ ##
28483 ## Report this to bug-autoconf@gnu.org. ##
28484 ## ------------------------------------ ##
28485 _ASBOX
28487 sed "s/^/$as_me: WARNING: /" >&2
28489 esac
28490 echo "$as_me:$LINENO: checking for langinfo.h" >&5
28491 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
28492 if test "${ac_cv_header_langinfo_h+set}" = set; then
28493 echo $ECHO_N "(cached) $ECHO_C" >&6
28494 else
28495 ac_cv_header_langinfo_h=$ac_header_preproc
28497 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
28498 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
28501 if test $ac_cv_header_langinfo_h = yes; then
28502 ac_has_langinfo_h=yes
28503 else
28504 ac_has_langinfo_h=no
28509 # Check for existence of libiconv.a providing XPG2 wchar_t support.
28510 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
28511 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
28512 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
28513 echo $ECHO_N "(cached) $ECHO_C" >&6
28514 else
28515 ac_check_lib_save_LIBS=$LIBS
28516 LIBS="-liconv $LIBS"
28517 cat >conftest.$ac_ext <<_ACEOF
28518 #line $LINENO "configure"
28519 /* confdefs.h. */
28520 _ACEOF
28521 cat confdefs.h >>conftest.$ac_ext
28522 cat >>conftest.$ac_ext <<_ACEOF
28523 /* end confdefs.h. */
28525 /* Override any gcc2 internal prototype to avoid an error. */
28526 #ifdef __cplusplus
28527 extern "C"
28528 #endif
28529 /* We use char because int might match the return type of a gcc2
28530 builtin and then its argument prototype would still apply. */
28531 char iconv ();
28533 main ()
28535 iconv ();
28537 return 0;
28539 _ACEOF
28540 rm -f conftest.$ac_objext conftest$ac_exeext
28541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28542 (eval $ac_link) 2>&5
28543 ac_status=$?
28544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545 (exit $ac_status); } &&
28546 { ac_try='test -s conftest$ac_exeext'
28547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28548 (eval $ac_try) 2>&5
28549 ac_status=$?
28550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); }; }; then
28552 ac_cv_lib_iconv_iconv=yes
28553 else
28554 echo "$as_me: failed program was:" >&5
28555 sed 's/^/| /' conftest.$ac_ext >&5
28557 ac_cv_lib_iconv_iconv=no
28559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28560 LIBS=$ac_check_lib_save_LIBS
28562 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
28563 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
28564 if test $ac_cv_lib_iconv_iconv = yes; then
28565 libiconv="-liconv"
28568 ac_save_LIBS="$LIBS"
28569 LIBS="$LIBS $libiconv"
28575 for ac_func in iconv_open iconv_close iconv nl_langinfo
28577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28578 echo "$as_me:$LINENO: checking for $ac_func" >&5
28579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28580 if eval "test \"\${$as_ac_var+set}\" = set"; then
28581 echo $ECHO_N "(cached) $ECHO_C" >&6
28582 else
28583 cat >conftest.$ac_ext <<_ACEOF
28584 #line $LINENO "configure"
28585 /* confdefs.h. */
28586 _ACEOF
28587 cat confdefs.h >>conftest.$ac_ext
28588 cat >>conftest.$ac_ext <<_ACEOF
28589 /* end confdefs.h. */
28590 /* System header to define __stub macros and hopefully few prototypes,
28591 which can conflict with char $ac_func (); below.
28592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28593 <limits.h> exists even on freestanding compilers. */
28594 #ifdef __STDC__
28595 # include <limits.h>
28596 #else
28597 # include <assert.h>
28598 #endif
28599 /* Override any gcc2 internal prototype to avoid an error. */
28600 #ifdef __cplusplus
28601 extern "C"
28603 #endif
28604 /* We use char because int might match the return type of a gcc2
28605 builtin and then its argument prototype would still apply. */
28606 char $ac_func ();
28607 /* The GNU C library defines this for functions which it implements
28608 to always fail with ENOSYS. Some functions are actually named
28609 something starting with __ and the normal name is an alias. */
28610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28611 choke me
28612 #else
28613 char (*f) () = $ac_func;
28614 #endif
28615 #ifdef __cplusplus
28617 #endif
28620 main ()
28622 return f != $ac_func;
28624 return 0;
28626 _ACEOF
28627 rm -f conftest.$ac_objext conftest$ac_exeext
28628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28629 (eval $ac_link) 2>&5
28630 ac_status=$?
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); } &&
28633 { ac_try='test -s conftest$ac_exeext'
28634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635 (eval $ac_try) 2>&5
28636 ac_status=$?
28637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); }; }; then
28639 eval "$as_ac_var=yes"
28640 else
28641 echo "$as_me: failed program was:" >&5
28642 sed 's/^/| /' conftest.$ac_ext >&5
28644 eval "$as_ac_var=no"
28646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28650 if test `eval echo '${'$as_ac_var'}'` = yes; then
28651 cat >>confdefs.h <<_ACEOF
28652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28653 _ACEOF
28654 ac_XPG2funcs=yes
28655 else
28656 ac_XPG2funcs=no
28658 done
28661 LIBS="$ac_save_LIBS"
28663 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
28664 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
28665 if test x"$ac_has_iconv_h" = xyes &&
28666 test x"$ac_has_langinfo_h" = xyes &&
28667 test x"$ac_XPG2funcs" = xyes;
28668 then
28669 ac_XPG2_wchar_t=yes
28670 else
28671 ac_XPG2_wchar_t=no
28673 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
28674 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
28676 # At the moment, only enable wchar_t specializations if all the
28677 # above support is present.
28678 if test x"$ac_isoC99_wchar_t" = xyes &&
28679 test x"$ac_XPG2_wchar_t" = xyes;
28680 then
28681 cat >>confdefs.h <<\_ACEOF
28682 #define _GLIBCXX_USE_WCHAR_T 1
28683 _ACEOF
28685 enable_wchar_t=yes
28688 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
28689 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
28690 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
28691 echo "${ECHO_T}$enable_wchar_t" >&6
28693 cat >>confdefs.h <<\_ACEOF
28694 #define HAVE_LC_MESSAGES 1
28695 _ACEOF
28697 cat >>confdefs.h <<\_ACEOF
28698 #define HAVE_DRAND48 1
28699 _ACEOF
28701 cat >>confdefs.h <<\_ACEOF
28702 #define HAVE_GETPAGESIZE 1
28703 _ACEOF
28705 cat >>confdefs.h <<\_ACEOF
28706 #define HAVE_SETENV 1
28707 _ACEOF
28709 cat >>confdefs.h <<\_ACEOF
28710 #define HAVE_SIGSETJMP 1
28711 _ACEOF
28713 cat >>confdefs.h <<\_ACEOF
28714 #define HAVE_COPYSIGN 1
28715 _ACEOF
28717 cat >>confdefs.h <<\_ACEOF
28718 #define HAVE_COPYSIGNF 1
28719 _ACEOF
28721 cat >>confdefs.h <<\_ACEOF
28722 #define HAVE_FINITEF 1
28723 _ACEOF
28725 cat >>confdefs.h <<\_ACEOF
28726 #define HAVE_FINITE 1
28727 _ACEOF
28729 cat >>confdefs.h <<\_ACEOF
28730 #define HAVE_FREXPF 1
28731 _ACEOF
28733 cat >>confdefs.h <<\_ACEOF
28734 #define HAVE_HYPOT 1
28735 _ACEOF
28737 cat >>confdefs.h <<\_ACEOF
28738 #define HAVE_HYPOTF 1
28739 _ACEOF
28741 cat >>confdefs.h <<\_ACEOF
28742 #define HAVE_ISINF 1
28743 _ACEOF
28745 cat >>confdefs.h <<\_ACEOF
28746 #define HAVE_ISNAN 1
28747 _ACEOF
28749 cat >>confdefs.h <<\_ACEOF
28750 #define HAVE_ISNANF 1
28751 _ACEOF
28754 cat >>confdefs.h <<\_ACEOF
28755 #define HAVE_MMAP 1
28756 _ACEOF
28758 cat >>confdefs.h <<\_ACEOF
28759 #define HAVE_ACOSF 1
28760 _ACEOF
28762 cat >>confdefs.h <<\_ACEOF
28763 #define HAVE_ASINF 1
28764 _ACEOF
28766 cat >>confdefs.h <<\_ACEOF
28767 #define HAVE_ATAN2F 1
28768 _ACEOF
28770 cat >>confdefs.h <<\_ACEOF
28771 #define HAVE_ATANF 1
28772 _ACEOF
28774 cat >>confdefs.h <<\_ACEOF
28775 #define HAVE_CEILF 1
28776 _ACEOF
28778 cat >>confdefs.h <<\_ACEOF
28779 #define HAVE_COPYSIGN 1
28780 _ACEOF
28782 cat >>confdefs.h <<\_ACEOF
28783 #define HAVE_COPYSIGNF 1
28784 _ACEOF
28786 cat >>confdefs.h <<\_ACEOF
28787 #define HAVE_COSF 1
28788 _ACEOF
28790 cat >>confdefs.h <<\_ACEOF
28791 #define HAVE_COSHF 1
28792 _ACEOF
28794 cat >>confdefs.h <<\_ACEOF
28795 #define HAVE_EXPF 1
28796 _ACEOF
28798 cat >>confdefs.h <<\_ACEOF
28799 #define HAVE_FABSF 1
28800 _ACEOF
28802 cat >>confdefs.h <<\_ACEOF
28803 #define HAVE_FLOORF 1
28804 _ACEOF
28806 cat >>confdefs.h <<\_ACEOF
28807 #define HAVE_FMODF 1
28808 _ACEOF
28810 cat >>confdefs.h <<\_ACEOF
28811 #define HAVE_FREXPF 1
28812 _ACEOF
28814 cat >>confdefs.h <<\_ACEOF
28815 #define HAVE_LDEXPF 1
28816 _ACEOF
28818 cat >>confdefs.h <<\_ACEOF
28819 #define HAVE_LOG10F 1
28820 _ACEOF
28822 cat >>confdefs.h <<\_ACEOF
28823 #define HAVE_LOGF 1
28824 _ACEOF
28826 cat >>confdefs.h <<\_ACEOF
28827 #define HAVE_MODFF 1
28828 _ACEOF
28830 cat >>confdefs.h <<\_ACEOF
28831 #define HAVE_POWF 1
28832 _ACEOF
28834 cat >>confdefs.h <<\_ACEOF
28835 #define HAVE_SINF 1
28836 _ACEOF
28838 cat >>confdefs.h <<\_ACEOF
28839 #define HAVE_SINHF 1
28840 _ACEOF
28842 cat >>confdefs.h <<\_ACEOF
28843 #define HAVE_SQRTF 1
28844 _ACEOF
28846 cat >>confdefs.h <<\_ACEOF
28847 #define HAVE_TANF 1
28848 _ACEOF
28850 cat >>confdefs.h <<\_ACEOF
28851 #define HAVE_TANHF 1
28852 _ACEOF
28854 if test x"long_double_math_on_this_cpu" = x"yes"; then
28855 cat >>confdefs.h <<\_ACEOF
28856 #define HAVE_FINITEL 1
28857 _ACEOF
28859 cat >>confdefs.h <<\_ACEOF
28860 #define HAVE_ISINFL 1
28861 _ACEOF
28863 cat >>confdefs.h <<\_ACEOF
28864 #define HAVE_ISNANL 1
28865 _ACEOF
28869 *-hpux*)
28870 #os_include_dir="os/hpux"
28883 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
28884 machine/endian.h machine/param.h sys/machine.h sys/types.h \
28885 fp.h locale.h float.h inttypes.h
28887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28889 echo "$as_me:$LINENO: checking for $ac_header" >&5
28890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28892 echo $ECHO_N "(cached) $ECHO_C" >&6
28894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28896 else
28897 # Is the header compilable?
28898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28900 cat >conftest.$ac_ext <<_ACEOF
28901 #line $LINENO "configure"
28902 /* confdefs.h. */
28903 _ACEOF
28904 cat confdefs.h >>conftest.$ac_ext
28905 cat >>conftest.$ac_ext <<_ACEOF
28906 /* end confdefs.h. */
28907 $ac_includes_default
28908 #include <$ac_header>
28909 _ACEOF
28910 rm -f conftest.$ac_objext
28911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28912 (eval $ac_compile) 2>&5
28913 ac_status=$?
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); } &&
28916 { ac_try='test -s conftest.$ac_objext'
28917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28918 (eval $ac_try) 2>&5
28919 ac_status=$?
28920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921 (exit $ac_status); }; }; then
28922 ac_header_compiler=yes
28923 else
28924 echo "$as_me: failed program was:" >&5
28925 sed 's/^/| /' conftest.$ac_ext >&5
28927 ac_header_compiler=no
28929 rm -f conftest.$ac_objext conftest.$ac_ext
28930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28931 echo "${ECHO_T}$ac_header_compiler" >&6
28933 # Is the header present?
28934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28936 cat >conftest.$ac_ext <<_ACEOF
28937 #line $LINENO "configure"
28938 /* confdefs.h. */
28939 _ACEOF
28940 cat confdefs.h >>conftest.$ac_ext
28941 cat >>conftest.$ac_ext <<_ACEOF
28942 /* end confdefs.h. */
28943 #include <$ac_header>
28944 _ACEOF
28945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28947 ac_status=$?
28948 grep -v '^ *+' conftest.er1 >conftest.err
28949 rm -f conftest.er1
28950 cat conftest.err >&5
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); } >/dev/null; then
28953 if test -s conftest.err; then
28954 ac_cpp_err=$ac_c_preproc_warn_flag
28955 else
28956 ac_cpp_err=
28958 else
28959 ac_cpp_err=yes
28961 if test -z "$ac_cpp_err"; then
28962 ac_header_preproc=yes
28963 else
28964 echo "$as_me: failed program was:" >&5
28965 sed 's/^/| /' conftest.$ac_ext >&5
28967 ac_header_preproc=no
28969 rm -f conftest.err conftest.$ac_ext
28970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28971 echo "${ECHO_T}$ac_header_preproc" >&6
28973 # So? What about this header?
28974 case $ac_header_compiler:$ac_header_preproc in
28975 yes:no )
28976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28981 cat <<\_ASBOX
28982 ## ------------------------------------ ##
28983 ## Report this to bug-autoconf@gnu.org. ##
28984 ## ------------------------------------ ##
28985 _ASBOX
28987 sed "s/^/$as_me: WARNING: /" >&2
28989 no:yes )
28990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28997 cat <<\_ASBOX
28998 ## ------------------------------------ ##
28999 ## Report this to bug-autoconf@gnu.org. ##
29000 ## ------------------------------------ ##
29001 _ASBOX
29003 sed "s/^/$as_me: WARNING: /" >&2
29005 esac
29006 echo "$as_me:$LINENO: checking for $ac_header" >&5
29007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29009 echo $ECHO_N "(cached) $ECHO_C" >&6
29010 else
29011 eval "$as_ac_Header=$ac_header_preproc"
29013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29018 cat >>confdefs.h <<_ACEOF
29019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29020 _ACEOF
29024 done
29026 SECTION_FLAGS='-ffunction-sections -fdata-sections'
29029 # If we're not using GNU ld, then there's no point in even trying these
29030 # tests. Check for that first. We should have already tested for gld
29031 # by now (in libtool), but require it now just to be safe...
29032 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
29033 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
29037 # The name set by libtool depends on the version of libtool. Shame on us
29038 # for depending on an impl detail, but c'est la vie. Older versions used
29039 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
29040 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
29041 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
29042 # set (hence we're using an older libtool), then set it.
29043 if test x${with_gnu_ld+set} != xset; then
29044 if test x${ac_cv_prog_gnu_ld+set} != xset; then
29045 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
29046 with_gnu_ld=no
29047 else
29048 with_gnu_ld=$ac_cv_prog_gnu_ld
29052 # Start by getting the version number. I think the libtool test already
29053 # does some of this, but throws away the result.
29055 ldver=`$LD --version 2>/dev/null | head -1 | \
29056 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
29058 glibcxx_gnu_ld_version=`echo $ldver | \
29059 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
29061 # Set --gc-sections.
29062 if test "$with_gnu_ld" = "notbroken"; then
29063 # GNU ld it is! Joy and bunny rabbits!
29065 # All these tests are for C++; save the language and the compiler flags.
29066 # Need to do this so that g++ won't try to link in libstdc++
29067 ac_test_CFLAGS="${CFLAGS+set}"
29068 ac_save_CFLAGS="$CFLAGS"
29069 CFLAGS='-x c++ -Wl,--gc-sections'
29071 # Check for -Wl,--gc-sections
29072 # XXX This test is broken at the moment, as symbols required for linking
29073 # are now in libsupc++ (not built yet). In addition, this test has
29074 # cored on solaris in the past. In addition, --gc-sections doesn't
29075 # really work at the moment (keeps on discarding used sections, first
29076 # .eh_frame and now some of the glibc sections for iconv).
29077 # Bzzzzt. Thanks for playing, maybe next time.
29078 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
29079 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
29080 if test "$cross_compiling" = yes; then
29081 ac_sectionLDflags=yes
29082 else
29083 cat >conftest.$ac_ext <<_ACEOF
29084 #line $LINENO "configure"
29085 /* confdefs.h. */
29086 _ACEOF
29087 cat confdefs.h >>conftest.$ac_ext
29088 cat >>conftest.$ac_ext <<_ACEOF
29089 /* end confdefs.h. */
29091 int main(void)
29093 try { throw 1; }
29094 catch (...) { };
29095 return 0;
29098 _ACEOF
29099 rm -f conftest$ac_exeext
29100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29101 (eval $ac_link) 2>&5
29102 ac_status=$?
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29106 (eval $ac_try) 2>&5
29107 ac_status=$?
29108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109 (exit $ac_status); }; }; then
29110 ac_sectionLDflags=yes
29111 else
29112 echo "$as_me: program exited with status $ac_status" >&5
29113 echo "$as_me: failed program was:" >&5
29114 sed 's/^/| /' conftest.$ac_ext >&5
29116 ( exit $ac_status )
29117 ac_sectionLDflags=no
29119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29121 if test "$ac_test_CFLAGS" = set; then
29122 CFLAGS="$ac_save_CFLAGS"
29123 else
29124 # this is the suspicious part
29125 CFLAGS=''
29127 if test "$ac_sectionLDflags" = "yes"; then
29128 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
29130 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
29131 echo "${ECHO_T}$ac_sectionLDflags" >&6
29134 # Set linker optimization flags.
29135 if test x"$with_gnu_ld" = x"yes"; then
29136 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
29144 echo "$as_me:$LINENO: checking for main in -lm" >&5
29145 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
29146 if test "${ac_cv_lib_m_main+set}" = set; then
29147 echo $ECHO_N "(cached) $ECHO_C" >&6
29148 else
29149 ac_check_lib_save_LIBS=$LIBS
29150 LIBS="-lm $LIBS"
29151 cat >conftest.$ac_ext <<_ACEOF
29152 #line $LINENO "configure"
29153 /* confdefs.h. */
29154 _ACEOF
29155 cat confdefs.h >>conftest.$ac_ext
29156 cat >>conftest.$ac_ext <<_ACEOF
29157 /* end confdefs.h. */
29161 main ()
29163 main ();
29165 return 0;
29167 _ACEOF
29168 rm -f conftest.$ac_objext conftest$ac_exeext
29169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29170 (eval $ac_link) 2>&5
29171 ac_status=$?
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); } &&
29174 { ac_try='test -s conftest$ac_exeext'
29175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176 (eval $ac_try) 2>&5
29177 ac_status=$?
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; }; then
29180 ac_cv_lib_m_main=yes
29181 else
29182 echo "$as_me: failed program was:" >&5
29183 sed 's/^/| /' conftest.$ac_ext >&5
29185 ac_cv_lib_m_main=no
29187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29188 LIBS=$ac_check_lib_save_LIBS
29190 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
29191 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
29192 if test $ac_cv_lib_m_main = yes; then
29193 cat >>confdefs.h <<_ACEOF
29194 #define HAVE_LIBM 1
29195 _ACEOF
29197 LIBS="-lm $LIBS"
29203 for ac_func in nan copysignf
29205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29206 echo "$as_me:$LINENO: checking for $ac_func" >&5
29207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29208 if eval "test \"\${$as_ac_var+set}\" = set"; then
29209 echo $ECHO_N "(cached) $ECHO_C" >&6
29210 else
29211 cat >conftest.$ac_ext <<_ACEOF
29212 #line $LINENO "configure"
29213 /* confdefs.h. */
29214 _ACEOF
29215 cat confdefs.h >>conftest.$ac_ext
29216 cat >>conftest.$ac_ext <<_ACEOF
29217 /* end confdefs.h. */
29218 /* System header to define __stub macros and hopefully few prototypes,
29219 which can conflict with char $ac_func (); below.
29220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29221 <limits.h> exists even on freestanding compilers. */
29222 #ifdef __STDC__
29223 # include <limits.h>
29224 #else
29225 # include <assert.h>
29226 #endif
29227 /* Override any gcc2 internal prototype to avoid an error. */
29228 #ifdef __cplusplus
29229 extern "C"
29231 #endif
29232 /* We use char because int might match the return type of a gcc2
29233 builtin and then its argument prototype would still apply. */
29234 char $ac_func ();
29235 /* The GNU C library defines this for functions which it implements
29236 to always fail with ENOSYS. Some functions are actually named
29237 something starting with __ and the normal name is an alias. */
29238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29239 choke me
29240 #else
29241 char (*f) () = $ac_func;
29242 #endif
29243 #ifdef __cplusplus
29245 #endif
29248 main ()
29250 return f != $ac_func;
29252 return 0;
29254 _ACEOF
29255 rm -f conftest.$ac_objext conftest$ac_exeext
29256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29257 (eval $ac_link) 2>&5
29258 ac_status=$?
29259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260 (exit $ac_status); } &&
29261 { ac_try='test -s conftest$ac_exeext'
29262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29263 (eval $ac_try) 2>&5
29264 ac_status=$?
29265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266 (exit $ac_status); }; }; then
29267 eval "$as_ac_var=yes"
29268 else
29269 echo "$as_me: failed program was:" >&5
29270 sed 's/^/| /' conftest.$ac_ext >&5
29272 eval "$as_ac_var=no"
29274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29278 if test `eval echo '${'$as_ac_var'}'` = yes; then
29279 cat >>confdefs.h <<_ACEOF
29280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29281 _ACEOF
29283 else
29284 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
29286 done
29290 for ac_func in __signbit
29292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29293 echo "$as_me:$LINENO: checking for $ac_func" >&5
29294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29295 if eval "test \"\${$as_ac_var+set}\" = set"; then
29296 echo $ECHO_N "(cached) $ECHO_C" >&6
29297 else
29298 cat >conftest.$ac_ext <<_ACEOF
29299 #line $LINENO "configure"
29300 /* confdefs.h. */
29301 _ACEOF
29302 cat confdefs.h >>conftest.$ac_ext
29303 cat >>conftest.$ac_ext <<_ACEOF
29304 /* end confdefs.h. */
29305 /* System header to define __stub macros and hopefully few prototypes,
29306 which can conflict with char $ac_func (); below.
29307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29308 <limits.h> exists even on freestanding compilers. */
29309 #ifdef __STDC__
29310 # include <limits.h>
29311 #else
29312 # include <assert.h>
29313 #endif
29314 /* Override any gcc2 internal prototype to avoid an error. */
29315 #ifdef __cplusplus
29316 extern "C"
29318 #endif
29319 /* We use char because int might match the return type of a gcc2
29320 builtin and then its argument prototype would still apply. */
29321 char $ac_func ();
29322 /* The GNU C library defines this for functions which it implements
29323 to always fail with ENOSYS. Some functions are actually named
29324 something starting with __ and the normal name is an alias. */
29325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29326 choke me
29327 #else
29328 char (*f) () = $ac_func;
29329 #endif
29330 #ifdef __cplusplus
29332 #endif
29335 main ()
29337 return f != $ac_func;
29339 return 0;
29341 _ACEOF
29342 rm -f conftest.$ac_objext conftest$ac_exeext
29343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29344 (eval $ac_link) 2>&5
29345 ac_status=$?
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); } &&
29348 { ac_try='test -s conftest$ac_exeext'
29349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29350 (eval $ac_try) 2>&5
29351 ac_status=$?
29352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29353 (exit $ac_status); }; }; then
29354 eval "$as_ac_var=yes"
29355 else
29356 echo "$as_me: failed program was:" >&5
29357 sed 's/^/| /' conftest.$ac_ext >&5
29359 eval "$as_ac_var=no"
29361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29365 if test `eval echo '${'$as_ac_var'}'` = yes; then
29366 cat >>confdefs.h <<_ACEOF
29367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29368 _ACEOF
29370 else
29371 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
29373 done
29376 for ac_func in __signbitf
29378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29379 echo "$as_me:$LINENO: checking for $ac_func" >&5
29380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29381 if eval "test \"\${$as_ac_var+set}\" = set"; then
29382 echo $ECHO_N "(cached) $ECHO_C" >&6
29383 else
29384 cat >conftest.$ac_ext <<_ACEOF
29385 #line $LINENO "configure"
29386 /* confdefs.h. */
29387 _ACEOF
29388 cat confdefs.h >>conftest.$ac_ext
29389 cat >>conftest.$ac_ext <<_ACEOF
29390 /* end confdefs.h. */
29391 /* System header to define __stub macros and hopefully few prototypes,
29392 which can conflict with char $ac_func (); below.
29393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29394 <limits.h> exists even on freestanding compilers. */
29395 #ifdef __STDC__
29396 # include <limits.h>
29397 #else
29398 # include <assert.h>
29399 #endif
29400 /* Override any gcc2 internal prototype to avoid an error. */
29401 #ifdef __cplusplus
29402 extern "C"
29404 #endif
29405 /* We use char because int might match the return type of a gcc2
29406 builtin and then its argument prototype would still apply. */
29407 char $ac_func ();
29408 /* The GNU C library defines this for functions which it implements
29409 to always fail with ENOSYS. Some functions are actually named
29410 something starting with __ and the normal name is an alias. */
29411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29412 choke me
29413 #else
29414 char (*f) () = $ac_func;
29415 #endif
29416 #ifdef __cplusplus
29418 #endif
29421 main ()
29423 return f != $ac_func;
29425 return 0;
29427 _ACEOF
29428 rm -f conftest.$ac_objext conftest$ac_exeext
29429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29430 (eval $ac_link) 2>&5
29431 ac_status=$?
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); } &&
29434 { ac_try='test -s conftest$ac_exeext'
29435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29436 (eval $ac_try) 2>&5
29437 ac_status=$?
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); }; }; then
29440 eval "$as_ac_var=yes"
29441 else
29442 echo "$as_me: failed program was:" >&5
29443 sed 's/^/| /' conftest.$ac_ext >&5
29445 eval "$as_ac_var=no"
29447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29451 if test `eval echo '${'$as_ac_var'}'` = yes; then
29452 cat >>confdefs.h <<_ACEOF
29453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29454 _ACEOF
29456 else
29457 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
29459 done
29462 if test x$ac_cv_func_copysignl = x"yes"; then
29464 for ac_func in __signbitl
29466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29467 echo "$as_me:$LINENO: checking for $ac_func" >&5
29468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29469 if eval "test \"\${$as_ac_var+set}\" = set"; then
29470 echo $ECHO_N "(cached) $ECHO_C" >&6
29471 else
29472 cat >conftest.$ac_ext <<_ACEOF
29473 #line $LINENO "configure"
29474 /* confdefs.h. */
29475 _ACEOF
29476 cat confdefs.h >>conftest.$ac_ext
29477 cat >>conftest.$ac_ext <<_ACEOF
29478 /* end confdefs.h. */
29479 /* System header to define __stub macros and hopefully few prototypes,
29480 which can conflict with char $ac_func (); below.
29481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29482 <limits.h> exists even on freestanding compilers. */
29483 #ifdef __STDC__
29484 # include <limits.h>
29485 #else
29486 # include <assert.h>
29487 #endif
29488 /* Override any gcc2 internal prototype to avoid an error. */
29489 #ifdef __cplusplus
29490 extern "C"
29492 #endif
29493 /* We use char because int might match the return type of a gcc2
29494 builtin and then its argument prototype would still apply. */
29495 char $ac_func ();
29496 /* The GNU C library defines this for functions which it implements
29497 to always fail with ENOSYS. Some functions are actually named
29498 something starting with __ and the normal name is an alias. */
29499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29500 choke me
29501 #else
29502 char (*f) () = $ac_func;
29503 #endif
29504 #ifdef __cplusplus
29506 #endif
29509 main ()
29511 return f != $ac_func;
29513 return 0;
29515 _ACEOF
29516 rm -f conftest.$ac_objext conftest$ac_exeext
29517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29518 (eval $ac_link) 2>&5
29519 ac_status=$?
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); } &&
29522 { ac_try='test -s conftest$ac_exeext'
29523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29524 (eval $ac_try) 2>&5
29525 ac_status=$?
29526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); }; }; then
29528 eval "$as_ac_var=yes"
29529 else
29530 echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29533 eval "$as_ac_var=no"
29535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29539 if test `eval echo '${'$as_ac_var'}'` = yes; then
29540 cat >>confdefs.h <<_ACEOF
29541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29542 _ACEOF
29544 else
29545 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
29547 done
29551 # XXX Review this. Nothing uses it.
29552 if test -n "$LIBMATHOBJS"; then
29553 need_libmath=yes
29558 # Test wchar.h for mbstate_t, which is needed for char_traits and
29559 # others even if wchar_t support is not on.
29560 echo "$as_me:$LINENO: checking for mbstate_t" >&5
29561 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
29562 cat >conftest.$ac_ext <<_ACEOF
29563 #line $LINENO "configure"
29564 /* confdefs.h. */
29565 _ACEOF
29566 cat confdefs.h >>conftest.$ac_ext
29567 cat >>conftest.$ac_ext <<_ACEOF
29568 /* end confdefs.h. */
29569 #include <wchar.h>
29571 main ()
29573 mbstate_t teststate;
29575 return 0;
29577 _ACEOF
29578 rm -f conftest.$ac_objext
29579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29580 (eval $ac_compile) 2>&5
29581 ac_status=$?
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); } &&
29584 { ac_try='test -s conftest.$ac_objext'
29585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29586 (eval $ac_try) 2>&5
29587 ac_status=$?
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); }; }; then
29590 have_mbstate_t=yes
29591 else
29592 echo "$as_me: failed program was:" >&5
29593 sed 's/^/| /' conftest.$ac_ext >&5
29595 have_mbstate_t=no
29597 rm -f conftest.$ac_objext conftest.$ac_ext
29598 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
29599 echo "${ECHO_T}$have_mbstate_t" >&6
29600 if test x"$have_mbstate_t" = xyes; then
29601 cat >>confdefs.h <<\_ACEOF
29602 #define HAVE_MBSTATE_T 1
29603 _ACEOF
29607 # Sanity check for existence of ISO C99 headers for extended encoding.
29609 for ac_header in wchar.h
29611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29613 echo "$as_me:$LINENO: checking for $ac_header" >&5
29614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29616 echo $ECHO_N "(cached) $ECHO_C" >&6
29618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29620 else
29621 # Is the header compilable?
29622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29624 cat >conftest.$ac_ext <<_ACEOF
29625 #line $LINENO "configure"
29626 /* confdefs.h. */
29627 _ACEOF
29628 cat confdefs.h >>conftest.$ac_ext
29629 cat >>conftest.$ac_ext <<_ACEOF
29630 /* end confdefs.h. */
29631 $ac_includes_default
29632 #include <$ac_header>
29633 _ACEOF
29634 rm -f conftest.$ac_objext
29635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29636 (eval $ac_compile) 2>&5
29637 ac_status=$?
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); } &&
29640 { ac_try='test -s conftest.$ac_objext'
29641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29642 (eval $ac_try) 2>&5
29643 ac_status=$?
29644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645 (exit $ac_status); }; }; then
29646 ac_header_compiler=yes
29647 else
29648 echo "$as_me: failed program was:" >&5
29649 sed 's/^/| /' conftest.$ac_ext >&5
29651 ac_header_compiler=no
29653 rm -f conftest.$ac_objext conftest.$ac_ext
29654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29655 echo "${ECHO_T}$ac_header_compiler" >&6
29657 # Is the header present?
29658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29660 cat >conftest.$ac_ext <<_ACEOF
29661 #line $LINENO "configure"
29662 /* confdefs.h. */
29663 _ACEOF
29664 cat confdefs.h >>conftest.$ac_ext
29665 cat >>conftest.$ac_ext <<_ACEOF
29666 /* end confdefs.h. */
29667 #include <$ac_header>
29668 _ACEOF
29669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29671 ac_status=$?
29672 grep -v '^ *+' conftest.er1 >conftest.err
29673 rm -f conftest.er1
29674 cat conftest.err >&5
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); } >/dev/null; then
29677 if test -s conftest.err; then
29678 ac_cpp_err=$ac_c_preproc_warn_flag
29679 else
29680 ac_cpp_err=
29682 else
29683 ac_cpp_err=yes
29685 if test -z "$ac_cpp_err"; then
29686 ac_header_preproc=yes
29687 else
29688 echo "$as_me: failed program was:" >&5
29689 sed 's/^/| /' conftest.$ac_ext >&5
29691 ac_header_preproc=no
29693 rm -f conftest.err conftest.$ac_ext
29694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29695 echo "${ECHO_T}$ac_header_preproc" >&6
29697 # So? What about this header?
29698 case $ac_header_compiler:$ac_header_preproc in
29699 yes:no )
29700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29705 cat <<\_ASBOX
29706 ## ------------------------------------ ##
29707 ## Report this to bug-autoconf@gnu.org. ##
29708 ## ------------------------------------ ##
29709 _ASBOX
29711 sed "s/^/$as_me: WARNING: /" >&2
29713 no:yes )
29714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29721 cat <<\_ASBOX
29722 ## ------------------------------------ ##
29723 ## Report this to bug-autoconf@gnu.org. ##
29724 ## ------------------------------------ ##
29725 _ASBOX
29727 sed "s/^/$as_me: WARNING: /" >&2
29729 esac
29730 echo "$as_me:$LINENO: checking for $ac_header" >&5
29731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29733 echo $ECHO_N "(cached) $ECHO_C" >&6
29734 else
29735 eval "$as_ac_Header=$ac_header_preproc"
29737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29742 cat >>confdefs.h <<_ACEOF
29743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29744 _ACEOF
29745 ac_has_wchar_h=yes
29746 else
29747 ac_has_wchar_h=no
29750 done
29753 for ac_header in wctype.h
29755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29757 echo "$as_me:$LINENO: checking for $ac_header" >&5
29758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29760 echo $ECHO_N "(cached) $ECHO_C" >&6
29762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29764 else
29765 # Is the header compilable?
29766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29768 cat >conftest.$ac_ext <<_ACEOF
29769 #line $LINENO "configure"
29770 /* confdefs.h. */
29771 _ACEOF
29772 cat confdefs.h >>conftest.$ac_ext
29773 cat >>conftest.$ac_ext <<_ACEOF
29774 /* end confdefs.h. */
29775 $ac_includes_default
29776 #include <$ac_header>
29777 _ACEOF
29778 rm -f conftest.$ac_objext
29779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29780 (eval $ac_compile) 2>&5
29781 ac_status=$?
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); } &&
29784 { ac_try='test -s conftest.$ac_objext'
29785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29786 (eval $ac_try) 2>&5
29787 ac_status=$?
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; }; then
29790 ac_header_compiler=yes
29791 else
29792 echo "$as_me: failed program was:" >&5
29793 sed 's/^/| /' conftest.$ac_ext >&5
29795 ac_header_compiler=no
29797 rm -f conftest.$ac_objext conftest.$ac_ext
29798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29799 echo "${ECHO_T}$ac_header_compiler" >&6
29801 # Is the header present?
29802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29804 cat >conftest.$ac_ext <<_ACEOF
29805 #line $LINENO "configure"
29806 /* confdefs.h. */
29807 _ACEOF
29808 cat confdefs.h >>conftest.$ac_ext
29809 cat >>conftest.$ac_ext <<_ACEOF
29810 /* end confdefs.h. */
29811 #include <$ac_header>
29812 _ACEOF
29813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29815 ac_status=$?
29816 grep -v '^ *+' conftest.er1 >conftest.err
29817 rm -f conftest.er1
29818 cat conftest.err >&5
29819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820 (exit $ac_status); } >/dev/null; then
29821 if test -s conftest.err; then
29822 ac_cpp_err=$ac_c_preproc_warn_flag
29823 else
29824 ac_cpp_err=
29826 else
29827 ac_cpp_err=yes
29829 if test -z "$ac_cpp_err"; then
29830 ac_header_preproc=yes
29831 else
29832 echo "$as_me: failed program was:" >&5
29833 sed 's/^/| /' conftest.$ac_ext >&5
29835 ac_header_preproc=no
29837 rm -f conftest.err conftest.$ac_ext
29838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29839 echo "${ECHO_T}$ac_header_preproc" >&6
29841 # So? What about this header?
29842 case $ac_header_compiler:$ac_header_preproc in
29843 yes:no )
29844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29849 cat <<\_ASBOX
29850 ## ------------------------------------ ##
29851 ## Report this to bug-autoconf@gnu.org. ##
29852 ## ------------------------------------ ##
29853 _ASBOX
29855 sed "s/^/$as_me: WARNING: /" >&2
29857 no:yes )
29858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29865 cat <<\_ASBOX
29866 ## ------------------------------------ ##
29867 ## Report this to bug-autoconf@gnu.org. ##
29868 ## ------------------------------------ ##
29869 _ASBOX
29871 sed "s/^/$as_me: WARNING: /" >&2
29873 esac
29874 echo "$as_me:$LINENO: checking for $ac_header" >&5
29875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29877 echo $ECHO_N "(cached) $ECHO_C" >&6
29878 else
29879 eval "$as_ac_Header=$ac_header_preproc"
29881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29886 cat >>confdefs.h <<_ACEOF
29887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29888 _ACEOF
29889 ac_has_wctype_h=yes
29890 else
29891 ac_has_wctype_h=no
29894 done
29897 # Only continue checking if the ISO C99 headers exist and support is on.
29898 if test x"$ac_has_wchar_h" = xyes &&
29899 test x"$ac_has_wctype_h" = xyes &&
29900 test x"$enable_c_mbchar" != xno; then
29902 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
29903 # numeric_limits can instantiate type_traits<wchar_t>
29904 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
29905 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
29906 cat >conftest.$ac_ext <<_ACEOF
29907 #line $LINENO "configure"
29908 /* confdefs.h. */
29909 _ACEOF
29910 cat confdefs.h >>conftest.$ac_ext
29911 cat >>conftest.$ac_ext <<_ACEOF
29912 /* end confdefs.h. */
29913 #include <wchar.h>
29915 main ()
29917 int i = WCHAR_MIN; int j = WCHAR_MAX;
29919 return 0;
29921 _ACEOF
29922 rm -f conftest.$ac_objext
29923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29924 (eval $ac_compile) 2>&5
29925 ac_status=$?
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); } &&
29928 { ac_try='test -s conftest.$ac_objext'
29929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29930 (eval $ac_try) 2>&5
29931 ac_status=$?
29932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933 (exit $ac_status); }; }; then
29934 has_wchar_minmax=yes
29935 else
29936 echo "$as_me: failed program was:" >&5
29937 sed 's/^/| /' conftest.$ac_ext >&5
29939 has_wchar_minmax=no
29941 rm -f conftest.$ac_objext conftest.$ac_ext
29942 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
29943 echo "${ECHO_T}$has_wchar_minmax" >&6
29945 # Test wchar.h for WEOF, which is what we use to determine whether
29946 # to specialize for char_traits<wchar_t> or not.
29947 echo "$as_me:$LINENO: checking for WEOF" >&5
29948 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
29949 cat >conftest.$ac_ext <<_ACEOF
29950 #line $LINENO "configure"
29951 /* confdefs.h. */
29952 _ACEOF
29953 cat confdefs.h >>conftest.$ac_ext
29954 cat >>conftest.$ac_ext <<_ACEOF
29955 /* end confdefs.h. */
29957 #include <wchar.h>
29958 #include <stddef.h>
29960 main ()
29962 wint_t i = WEOF;
29964 return 0;
29966 _ACEOF
29967 rm -f conftest.$ac_objext
29968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29969 (eval $ac_compile) 2>&5
29970 ac_status=$?
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); } &&
29973 { ac_try='test -s conftest.$ac_objext'
29974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29975 (eval $ac_try) 2>&5
29976 ac_status=$?
29977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978 (exit $ac_status); }; }; then
29979 has_weof=yes
29980 else
29981 echo "$as_me: failed program was:" >&5
29982 sed 's/^/| /' conftest.$ac_ext >&5
29984 has_weof=no
29986 rm -f conftest.$ac_objext conftest.$ac_ext
29987 echo "$as_me:$LINENO: result: $has_weof" >&5
29988 echo "${ECHO_T}$has_weof" >&6
29990 # Tests for wide character functions used in char_traits<wchar_t>.
29991 ac_wfuncs=yes
29998 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
30000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30001 echo "$as_me:$LINENO: checking for $ac_func" >&5
30002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30003 if eval "test \"\${$as_ac_var+set}\" = set"; then
30004 echo $ECHO_N "(cached) $ECHO_C" >&6
30005 else
30006 cat >conftest.$ac_ext <<_ACEOF
30007 #line $LINENO "configure"
30008 /* confdefs.h. */
30009 _ACEOF
30010 cat confdefs.h >>conftest.$ac_ext
30011 cat >>conftest.$ac_ext <<_ACEOF
30012 /* end confdefs.h. */
30013 /* System header to define __stub macros and hopefully few prototypes,
30014 which can conflict with char $ac_func (); below.
30015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30016 <limits.h> exists even on freestanding compilers. */
30017 #ifdef __STDC__
30018 # include <limits.h>
30019 #else
30020 # include <assert.h>
30021 #endif
30022 /* Override any gcc2 internal prototype to avoid an error. */
30023 #ifdef __cplusplus
30024 extern "C"
30026 #endif
30027 /* We use char because int might match the return type of a gcc2
30028 builtin and then its argument prototype would still apply. */
30029 char $ac_func ();
30030 /* The GNU C library defines this for functions which it implements
30031 to always fail with ENOSYS. Some functions are actually named
30032 something starting with __ and the normal name is an alias. */
30033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30034 choke me
30035 #else
30036 char (*f) () = $ac_func;
30037 #endif
30038 #ifdef __cplusplus
30040 #endif
30043 main ()
30045 return f != $ac_func;
30047 return 0;
30049 _ACEOF
30050 rm -f conftest.$ac_objext conftest$ac_exeext
30051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30052 (eval $ac_link) 2>&5
30053 ac_status=$?
30054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30055 (exit $ac_status); } &&
30056 { ac_try='test -s conftest$ac_exeext'
30057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30058 (eval $ac_try) 2>&5
30059 ac_status=$?
30060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061 (exit $ac_status); }; }; then
30062 eval "$as_ac_var=yes"
30063 else
30064 echo "$as_me: failed program was:" >&5
30065 sed 's/^/| /' conftest.$ac_ext >&5
30067 eval "$as_ac_var=no"
30069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30073 if test `eval echo '${'$as_ac_var'}'` = yes; then
30074 cat >>confdefs.h <<_ACEOF
30075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30076 _ACEOF
30078 else
30079 ac_wfuncs=no
30081 done
30084 # Checks for names injected into std:: by the c_std headers.
30135 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
30136 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
30137 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
30138 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
30139 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
30140 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
30142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30143 echo "$as_me:$LINENO: checking for $ac_func" >&5
30144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30145 if eval "test \"\${$as_ac_var+set}\" = set"; then
30146 echo $ECHO_N "(cached) $ECHO_C" >&6
30147 else
30148 cat >conftest.$ac_ext <<_ACEOF
30149 #line $LINENO "configure"
30150 /* confdefs.h. */
30151 _ACEOF
30152 cat confdefs.h >>conftest.$ac_ext
30153 cat >>conftest.$ac_ext <<_ACEOF
30154 /* end confdefs.h. */
30155 /* System header to define __stub macros and hopefully few prototypes,
30156 which can conflict with char $ac_func (); below.
30157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30158 <limits.h> exists even on freestanding compilers. */
30159 #ifdef __STDC__
30160 # include <limits.h>
30161 #else
30162 # include <assert.h>
30163 #endif
30164 /* Override any gcc2 internal prototype to avoid an error. */
30165 #ifdef __cplusplus
30166 extern "C"
30168 #endif
30169 /* We use char because int might match the return type of a gcc2
30170 builtin and then its argument prototype would still apply. */
30171 char $ac_func ();
30172 /* The GNU C library defines this for functions which it implements
30173 to always fail with ENOSYS. Some functions are actually named
30174 something starting with __ and the normal name is an alias. */
30175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30176 choke me
30177 #else
30178 char (*f) () = $ac_func;
30179 #endif
30180 #ifdef __cplusplus
30182 #endif
30185 main ()
30187 return f != $ac_func;
30189 return 0;
30191 _ACEOF
30192 rm -f conftest.$ac_objext conftest$ac_exeext
30193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30194 (eval $ac_link) 2>&5
30195 ac_status=$?
30196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197 (exit $ac_status); } &&
30198 { ac_try='test -s conftest$ac_exeext'
30199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30200 (eval $ac_try) 2>&5
30201 ac_status=$?
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); }; }; then
30204 eval "$as_ac_var=yes"
30205 else
30206 echo "$as_me: failed program was:" >&5
30207 sed 's/^/| /' conftest.$ac_ext >&5
30209 eval "$as_ac_var=no"
30211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30215 if test `eval echo '${'$as_ac_var'}'` = yes; then
30216 cat >>confdefs.h <<_ACEOF
30217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30218 _ACEOF
30220 else
30221 ac_wfuncs=no
30223 done
30226 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
30227 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
30228 if test x"$has_weof" = xyes &&
30229 test x"$has_wchar_minmax" = xyes &&
30230 test x"$ac_wfuncs" = xyes;
30231 then
30232 ac_isoC99_wchar_t=yes
30233 else
30234 ac_isoC99_wchar_t=no
30236 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
30237 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
30239 # Use iconv for wchar_t to char conversions. As such, check for
30240 # X/Open Portability Guide, version 2 features (XPG2).
30241 if test "${ac_cv_header_iconv_h+set}" = set; then
30242 echo "$as_me:$LINENO: checking for iconv.h" >&5
30243 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
30244 if test "${ac_cv_header_iconv_h+set}" = set; then
30245 echo $ECHO_N "(cached) $ECHO_C" >&6
30247 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
30248 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
30249 else
30250 # Is the header compilable?
30251 echo "$as_me:$LINENO: checking iconv.h usability" >&5
30252 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
30253 cat >conftest.$ac_ext <<_ACEOF
30254 #line $LINENO "configure"
30255 /* confdefs.h. */
30256 _ACEOF
30257 cat confdefs.h >>conftest.$ac_ext
30258 cat >>conftest.$ac_ext <<_ACEOF
30259 /* end confdefs.h. */
30260 $ac_includes_default
30261 #include <iconv.h>
30262 _ACEOF
30263 rm -f conftest.$ac_objext
30264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30265 (eval $ac_compile) 2>&5
30266 ac_status=$?
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); } &&
30269 { ac_try='test -s conftest.$ac_objext'
30270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30271 (eval $ac_try) 2>&5
30272 ac_status=$?
30273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); }; }; then
30275 ac_header_compiler=yes
30276 else
30277 echo "$as_me: failed program was:" >&5
30278 sed 's/^/| /' conftest.$ac_ext >&5
30280 ac_header_compiler=no
30282 rm -f conftest.$ac_objext conftest.$ac_ext
30283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30284 echo "${ECHO_T}$ac_header_compiler" >&6
30286 # Is the header present?
30287 echo "$as_me:$LINENO: checking iconv.h presence" >&5
30288 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
30289 cat >conftest.$ac_ext <<_ACEOF
30290 #line $LINENO "configure"
30291 /* confdefs.h. */
30292 _ACEOF
30293 cat confdefs.h >>conftest.$ac_ext
30294 cat >>conftest.$ac_ext <<_ACEOF
30295 /* end confdefs.h. */
30296 #include <iconv.h>
30297 _ACEOF
30298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30300 ac_status=$?
30301 grep -v '^ *+' conftest.er1 >conftest.err
30302 rm -f conftest.er1
30303 cat conftest.err >&5
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); } >/dev/null; then
30306 if test -s conftest.err; then
30307 ac_cpp_err=$ac_c_preproc_warn_flag
30308 else
30309 ac_cpp_err=
30311 else
30312 ac_cpp_err=yes
30314 if test -z "$ac_cpp_err"; then
30315 ac_header_preproc=yes
30316 else
30317 echo "$as_me: failed program was:" >&5
30318 sed 's/^/| /' conftest.$ac_ext >&5
30320 ac_header_preproc=no
30322 rm -f conftest.err conftest.$ac_ext
30323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30324 echo "${ECHO_T}$ac_header_preproc" >&6
30326 # So? What about this header?
30327 case $ac_header_compiler:$ac_header_preproc in
30328 yes:no )
30329 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
30330 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30331 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
30332 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
30334 cat <<\_ASBOX
30335 ## ------------------------------------ ##
30336 ## Report this to bug-autoconf@gnu.org. ##
30337 ## ------------------------------------ ##
30338 _ASBOX
30340 sed "s/^/$as_me: WARNING: /" >&2
30342 no:yes )
30343 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
30344 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
30345 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
30346 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
30347 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
30348 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
30350 cat <<\_ASBOX
30351 ## ------------------------------------ ##
30352 ## Report this to bug-autoconf@gnu.org. ##
30353 ## ------------------------------------ ##
30354 _ASBOX
30356 sed "s/^/$as_me: WARNING: /" >&2
30358 esac
30359 echo "$as_me:$LINENO: checking for iconv.h" >&5
30360 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
30361 if test "${ac_cv_header_iconv_h+set}" = set; then
30362 echo $ECHO_N "(cached) $ECHO_C" >&6
30363 else
30364 ac_cv_header_iconv_h=$ac_header_preproc
30366 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
30367 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
30370 if test $ac_cv_header_iconv_h = yes; then
30371 ac_has_iconv_h=yes
30372 else
30373 ac_has_iconv_h=no
30377 if test "${ac_cv_header_langinfo_h+set}" = set; then
30378 echo "$as_me:$LINENO: checking for langinfo.h" >&5
30379 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
30380 if test "${ac_cv_header_langinfo_h+set}" = set; then
30381 echo $ECHO_N "(cached) $ECHO_C" >&6
30383 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
30384 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
30385 else
30386 # Is the header compilable?
30387 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
30388 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
30389 cat >conftest.$ac_ext <<_ACEOF
30390 #line $LINENO "configure"
30391 /* confdefs.h. */
30392 _ACEOF
30393 cat confdefs.h >>conftest.$ac_ext
30394 cat >>conftest.$ac_ext <<_ACEOF
30395 /* end confdefs.h. */
30396 $ac_includes_default
30397 #include <langinfo.h>
30398 _ACEOF
30399 rm -f conftest.$ac_objext
30400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30401 (eval $ac_compile) 2>&5
30402 ac_status=$?
30403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404 (exit $ac_status); } &&
30405 { ac_try='test -s conftest.$ac_objext'
30406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30407 (eval $ac_try) 2>&5
30408 ac_status=$?
30409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410 (exit $ac_status); }; }; then
30411 ac_header_compiler=yes
30412 else
30413 echo "$as_me: failed program was:" >&5
30414 sed 's/^/| /' conftest.$ac_ext >&5
30416 ac_header_compiler=no
30418 rm -f conftest.$ac_objext conftest.$ac_ext
30419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30420 echo "${ECHO_T}$ac_header_compiler" >&6
30422 # Is the header present?
30423 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
30424 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
30425 cat >conftest.$ac_ext <<_ACEOF
30426 #line $LINENO "configure"
30427 /* confdefs.h. */
30428 _ACEOF
30429 cat confdefs.h >>conftest.$ac_ext
30430 cat >>conftest.$ac_ext <<_ACEOF
30431 /* end confdefs.h. */
30432 #include <langinfo.h>
30433 _ACEOF
30434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30436 ac_status=$?
30437 grep -v '^ *+' conftest.er1 >conftest.err
30438 rm -f conftest.er1
30439 cat conftest.err >&5
30440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441 (exit $ac_status); } >/dev/null; then
30442 if test -s conftest.err; then
30443 ac_cpp_err=$ac_c_preproc_warn_flag
30444 else
30445 ac_cpp_err=
30447 else
30448 ac_cpp_err=yes
30450 if test -z "$ac_cpp_err"; then
30451 ac_header_preproc=yes
30452 else
30453 echo "$as_me: failed program was:" >&5
30454 sed 's/^/| /' conftest.$ac_ext >&5
30456 ac_header_preproc=no
30458 rm -f conftest.err conftest.$ac_ext
30459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30460 echo "${ECHO_T}$ac_header_preproc" >&6
30462 # So? What about this header?
30463 case $ac_header_compiler:$ac_header_preproc in
30464 yes:no )
30465 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
30466 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30467 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
30468 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
30470 cat <<\_ASBOX
30471 ## ------------------------------------ ##
30472 ## Report this to bug-autoconf@gnu.org. ##
30473 ## ------------------------------------ ##
30474 _ASBOX
30476 sed "s/^/$as_me: WARNING: /" >&2
30478 no:yes )
30479 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
30480 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
30481 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
30482 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
30483 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
30484 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
30486 cat <<\_ASBOX
30487 ## ------------------------------------ ##
30488 ## Report this to bug-autoconf@gnu.org. ##
30489 ## ------------------------------------ ##
30490 _ASBOX
30492 sed "s/^/$as_me: WARNING: /" >&2
30494 esac
30495 echo "$as_me:$LINENO: checking for langinfo.h" >&5
30496 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
30497 if test "${ac_cv_header_langinfo_h+set}" = set; then
30498 echo $ECHO_N "(cached) $ECHO_C" >&6
30499 else
30500 ac_cv_header_langinfo_h=$ac_header_preproc
30502 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
30503 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
30506 if test $ac_cv_header_langinfo_h = yes; then
30507 ac_has_langinfo_h=yes
30508 else
30509 ac_has_langinfo_h=no
30514 # Check for existence of libiconv.a providing XPG2 wchar_t support.
30515 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
30516 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
30517 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
30518 echo $ECHO_N "(cached) $ECHO_C" >&6
30519 else
30520 ac_check_lib_save_LIBS=$LIBS
30521 LIBS="-liconv $LIBS"
30522 cat >conftest.$ac_ext <<_ACEOF
30523 #line $LINENO "configure"
30524 /* confdefs.h. */
30525 _ACEOF
30526 cat confdefs.h >>conftest.$ac_ext
30527 cat >>conftest.$ac_ext <<_ACEOF
30528 /* end confdefs.h. */
30530 /* Override any gcc2 internal prototype to avoid an error. */
30531 #ifdef __cplusplus
30532 extern "C"
30533 #endif
30534 /* We use char because int might match the return type of a gcc2
30535 builtin and then its argument prototype would still apply. */
30536 char iconv ();
30538 main ()
30540 iconv ();
30542 return 0;
30544 _ACEOF
30545 rm -f conftest.$ac_objext conftest$ac_exeext
30546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30547 (eval $ac_link) 2>&5
30548 ac_status=$?
30549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550 (exit $ac_status); } &&
30551 { ac_try='test -s conftest$ac_exeext'
30552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30553 (eval $ac_try) 2>&5
30554 ac_status=$?
30555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556 (exit $ac_status); }; }; then
30557 ac_cv_lib_iconv_iconv=yes
30558 else
30559 echo "$as_me: failed program was:" >&5
30560 sed 's/^/| /' conftest.$ac_ext >&5
30562 ac_cv_lib_iconv_iconv=no
30564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30565 LIBS=$ac_check_lib_save_LIBS
30567 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
30568 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
30569 if test $ac_cv_lib_iconv_iconv = yes; then
30570 libiconv="-liconv"
30573 ac_save_LIBS="$LIBS"
30574 LIBS="$LIBS $libiconv"
30580 for ac_func in iconv_open iconv_close iconv nl_langinfo
30582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30583 echo "$as_me:$LINENO: checking for $ac_func" >&5
30584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30585 if eval "test \"\${$as_ac_var+set}\" = set"; then
30586 echo $ECHO_N "(cached) $ECHO_C" >&6
30587 else
30588 cat >conftest.$ac_ext <<_ACEOF
30589 #line $LINENO "configure"
30590 /* confdefs.h. */
30591 _ACEOF
30592 cat confdefs.h >>conftest.$ac_ext
30593 cat >>conftest.$ac_ext <<_ACEOF
30594 /* end confdefs.h. */
30595 /* System header to define __stub macros and hopefully few prototypes,
30596 which can conflict with char $ac_func (); below.
30597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30598 <limits.h> exists even on freestanding compilers. */
30599 #ifdef __STDC__
30600 # include <limits.h>
30601 #else
30602 # include <assert.h>
30603 #endif
30604 /* Override any gcc2 internal prototype to avoid an error. */
30605 #ifdef __cplusplus
30606 extern "C"
30608 #endif
30609 /* We use char because int might match the return type of a gcc2
30610 builtin and then its argument prototype would still apply. */
30611 char $ac_func ();
30612 /* The GNU C library defines this for functions which it implements
30613 to always fail with ENOSYS. Some functions are actually named
30614 something starting with __ and the normal name is an alias. */
30615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30616 choke me
30617 #else
30618 char (*f) () = $ac_func;
30619 #endif
30620 #ifdef __cplusplus
30622 #endif
30625 main ()
30627 return f != $ac_func;
30629 return 0;
30631 _ACEOF
30632 rm -f conftest.$ac_objext conftest$ac_exeext
30633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30634 (eval $ac_link) 2>&5
30635 ac_status=$?
30636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637 (exit $ac_status); } &&
30638 { ac_try='test -s conftest$ac_exeext'
30639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30640 (eval $ac_try) 2>&5
30641 ac_status=$?
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); }; }; then
30644 eval "$as_ac_var=yes"
30645 else
30646 echo "$as_me: failed program was:" >&5
30647 sed 's/^/| /' conftest.$ac_ext >&5
30649 eval "$as_ac_var=no"
30651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30655 if test `eval echo '${'$as_ac_var'}'` = yes; then
30656 cat >>confdefs.h <<_ACEOF
30657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30658 _ACEOF
30659 ac_XPG2funcs=yes
30660 else
30661 ac_XPG2funcs=no
30663 done
30666 LIBS="$ac_save_LIBS"
30668 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
30669 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
30670 if test x"$ac_has_iconv_h" = xyes &&
30671 test x"$ac_has_langinfo_h" = xyes &&
30672 test x"$ac_XPG2funcs" = xyes;
30673 then
30674 ac_XPG2_wchar_t=yes
30675 else
30676 ac_XPG2_wchar_t=no
30678 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
30679 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
30681 # At the moment, only enable wchar_t specializations if all the
30682 # above support is present.
30683 if test x"$ac_isoC99_wchar_t" = xyes &&
30684 test x"$ac_XPG2_wchar_t" = xyes;
30685 then
30686 cat >>confdefs.h <<\_ACEOF
30687 #define _GLIBCXX_USE_WCHAR_T 1
30688 _ACEOF
30690 enable_wchar_t=yes
30693 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
30694 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
30695 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
30696 echo "${ECHO_T}$enable_wchar_t" >&6
30698 cat >>confdefs.h <<\_ACEOF
30699 #define HAVE_COPYSIGN 1
30700 _ACEOF
30702 cat >>confdefs.h <<\_ACEOF
30703 #define HAVE_COPYSIGNF 1
30704 _ACEOF
30706 cat >>confdefs.h <<\_ACEOF
30707 #define HAVE_FREXPF 1
30708 _ACEOF
30710 cat >>confdefs.h <<\_ACEOF
30711 #define HAVE_HYPOT 1
30712 _ACEOF
30714 case "$target" in
30715 *-hpux10*)
30716 cat >>confdefs.h <<\_ACEOF
30717 #define HAVE_FINITE 1
30718 _ACEOF
30720 cat >>confdefs.h <<\_ACEOF
30721 #define HAVE_FINITEF 1
30722 _ACEOF
30724 cat >>confdefs.h <<\_ACEOF
30725 #define HAVE_ISINF 1
30726 _ACEOF
30728 cat >>confdefs.h <<\_ACEOF
30729 #define HAVE_ISINFF 1
30730 _ACEOF
30732 cat >>confdefs.h <<\_ACEOF
30733 #define HAVE_ISNAN 1
30734 _ACEOF
30736 cat >>confdefs.h <<\_ACEOF
30737 #define HAVE_ISNANF 1
30738 _ACEOF
30741 esac
30743 *-linux*)
30744 #os_include_dir="os/gnu-linux"
30757 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
30758 machine/endian.h machine/param.h sys/machine.h sys/types.h \
30759 fp.h locale.h float.h inttypes.h
30761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30763 echo "$as_me:$LINENO: checking for $ac_header" >&5
30764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30766 echo $ECHO_N "(cached) $ECHO_C" >&6
30768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30770 else
30771 # Is the header compilable?
30772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30774 cat >conftest.$ac_ext <<_ACEOF
30775 #line $LINENO "configure"
30776 /* confdefs.h. */
30777 _ACEOF
30778 cat confdefs.h >>conftest.$ac_ext
30779 cat >>conftest.$ac_ext <<_ACEOF
30780 /* end confdefs.h. */
30781 $ac_includes_default
30782 #include <$ac_header>
30783 _ACEOF
30784 rm -f conftest.$ac_objext
30785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30786 (eval $ac_compile) 2>&5
30787 ac_status=$?
30788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789 (exit $ac_status); } &&
30790 { ac_try='test -s conftest.$ac_objext'
30791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30792 (eval $ac_try) 2>&5
30793 ac_status=$?
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); }; }; then
30796 ac_header_compiler=yes
30797 else
30798 echo "$as_me: failed program was:" >&5
30799 sed 's/^/| /' conftest.$ac_ext >&5
30801 ac_header_compiler=no
30803 rm -f conftest.$ac_objext conftest.$ac_ext
30804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30805 echo "${ECHO_T}$ac_header_compiler" >&6
30807 # Is the header present?
30808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30810 cat >conftest.$ac_ext <<_ACEOF
30811 #line $LINENO "configure"
30812 /* confdefs.h. */
30813 _ACEOF
30814 cat confdefs.h >>conftest.$ac_ext
30815 cat >>conftest.$ac_ext <<_ACEOF
30816 /* end confdefs.h. */
30817 #include <$ac_header>
30818 _ACEOF
30819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30821 ac_status=$?
30822 grep -v '^ *+' conftest.er1 >conftest.err
30823 rm -f conftest.er1
30824 cat conftest.err >&5
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); } >/dev/null; then
30827 if test -s conftest.err; then
30828 ac_cpp_err=$ac_c_preproc_warn_flag
30829 else
30830 ac_cpp_err=
30832 else
30833 ac_cpp_err=yes
30835 if test -z "$ac_cpp_err"; then
30836 ac_header_preproc=yes
30837 else
30838 echo "$as_me: failed program was:" >&5
30839 sed 's/^/| /' conftest.$ac_ext >&5
30841 ac_header_preproc=no
30843 rm -f conftest.err conftest.$ac_ext
30844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30845 echo "${ECHO_T}$ac_header_preproc" >&6
30847 # So? What about this header?
30848 case $ac_header_compiler:$ac_header_preproc in
30849 yes:no )
30850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30855 cat <<\_ASBOX
30856 ## ------------------------------------ ##
30857 ## Report this to bug-autoconf@gnu.org. ##
30858 ## ------------------------------------ ##
30859 _ASBOX
30861 sed "s/^/$as_me: WARNING: /" >&2
30863 no:yes )
30864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30871 cat <<\_ASBOX
30872 ## ------------------------------------ ##
30873 ## Report this to bug-autoconf@gnu.org. ##
30874 ## ------------------------------------ ##
30875 _ASBOX
30877 sed "s/^/$as_me: WARNING: /" >&2
30879 esac
30880 echo "$as_me:$LINENO: checking for $ac_header" >&5
30881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30883 echo $ECHO_N "(cached) $ECHO_C" >&6
30884 else
30885 eval "$as_ac_Header=$ac_header_preproc"
30887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30892 cat >>confdefs.h <<_ACEOF
30893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30894 _ACEOF
30898 done
30900 SECTION_FLAGS='-ffunction-sections -fdata-sections'
30903 # If we're not using GNU ld, then there's no point in even trying these
30904 # tests. Check for that first. We should have already tested for gld
30905 # by now (in libtool), but require it now just to be safe...
30906 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
30907 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
30911 # The name set by libtool depends on the version of libtool. Shame on us
30912 # for depending on an impl detail, but c'est la vie. Older versions used
30913 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
30914 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
30915 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
30916 # set (hence we're using an older libtool), then set it.
30917 if test x${with_gnu_ld+set} != xset; then
30918 if test x${ac_cv_prog_gnu_ld+set} != xset; then
30919 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
30920 with_gnu_ld=no
30921 else
30922 with_gnu_ld=$ac_cv_prog_gnu_ld
30926 # Start by getting the version number. I think the libtool test already
30927 # does some of this, but throws away the result.
30929 ldver=`$LD --version 2>/dev/null | head -1 | \
30930 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
30932 glibcxx_gnu_ld_version=`echo $ldver | \
30933 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
30935 # Set --gc-sections.
30936 if test "$with_gnu_ld" = "notbroken"; then
30937 # GNU ld it is! Joy and bunny rabbits!
30939 # All these tests are for C++; save the language and the compiler flags.
30940 # Need to do this so that g++ won't try to link in libstdc++
30941 ac_test_CFLAGS="${CFLAGS+set}"
30942 ac_save_CFLAGS="$CFLAGS"
30943 CFLAGS='-x c++ -Wl,--gc-sections'
30945 # Check for -Wl,--gc-sections
30946 # XXX This test is broken at the moment, as symbols required for linking
30947 # are now in libsupc++ (not built yet). In addition, this test has
30948 # cored on solaris in the past. In addition, --gc-sections doesn't
30949 # really work at the moment (keeps on discarding used sections, first
30950 # .eh_frame and now some of the glibc sections for iconv).
30951 # Bzzzzt. Thanks for playing, maybe next time.
30952 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
30953 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
30954 if test "$cross_compiling" = yes; then
30955 ac_sectionLDflags=yes
30956 else
30957 cat >conftest.$ac_ext <<_ACEOF
30958 #line $LINENO "configure"
30959 /* confdefs.h. */
30960 _ACEOF
30961 cat confdefs.h >>conftest.$ac_ext
30962 cat >>conftest.$ac_ext <<_ACEOF
30963 /* end confdefs.h. */
30965 int main(void)
30967 try { throw 1; }
30968 catch (...) { };
30969 return 0;
30972 _ACEOF
30973 rm -f conftest$ac_exeext
30974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30975 (eval $ac_link) 2>&5
30976 ac_status=$?
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30980 (eval $ac_try) 2>&5
30981 ac_status=$?
30982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983 (exit $ac_status); }; }; then
30984 ac_sectionLDflags=yes
30985 else
30986 echo "$as_me: program exited with status $ac_status" >&5
30987 echo "$as_me: failed program was:" >&5
30988 sed 's/^/| /' conftest.$ac_ext >&5
30990 ( exit $ac_status )
30991 ac_sectionLDflags=no
30993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30995 if test "$ac_test_CFLAGS" = set; then
30996 CFLAGS="$ac_save_CFLAGS"
30997 else
30998 # this is the suspicious part
30999 CFLAGS=''
31001 if test "$ac_sectionLDflags" = "yes"; then
31002 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
31004 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
31005 echo "${ECHO_T}$ac_sectionLDflags" >&6
31008 # Set linker optimization flags.
31009 if test x"$with_gnu_ld" = x"yes"; then
31010 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
31018 echo "$as_me:$LINENO: checking for main in -lm" >&5
31019 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
31020 if test "${ac_cv_lib_m_main+set}" = set; then
31021 echo $ECHO_N "(cached) $ECHO_C" >&6
31022 else
31023 ac_check_lib_save_LIBS=$LIBS
31024 LIBS="-lm $LIBS"
31025 cat >conftest.$ac_ext <<_ACEOF
31026 #line $LINENO "configure"
31027 /* confdefs.h. */
31028 _ACEOF
31029 cat confdefs.h >>conftest.$ac_ext
31030 cat >>conftest.$ac_ext <<_ACEOF
31031 /* end confdefs.h. */
31035 main ()
31037 main ();
31039 return 0;
31041 _ACEOF
31042 rm -f conftest.$ac_objext conftest$ac_exeext
31043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31044 (eval $ac_link) 2>&5
31045 ac_status=$?
31046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047 (exit $ac_status); } &&
31048 { ac_try='test -s conftest$ac_exeext'
31049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31050 (eval $ac_try) 2>&5
31051 ac_status=$?
31052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31053 (exit $ac_status); }; }; then
31054 ac_cv_lib_m_main=yes
31055 else
31056 echo "$as_me: failed program was:" >&5
31057 sed 's/^/| /' conftest.$ac_ext >&5
31059 ac_cv_lib_m_main=no
31061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31062 LIBS=$ac_check_lib_save_LIBS
31064 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
31065 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
31066 if test $ac_cv_lib_m_main = yes; then
31067 cat >>confdefs.h <<_ACEOF
31068 #define HAVE_LIBM 1
31069 _ACEOF
31071 LIBS="-lm $LIBS"
31077 for ac_func in nan copysignf
31079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31080 echo "$as_me:$LINENO: checking for $ac_func" >&5
31081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31082 if eval "test \"\${$as_ac_var+set}\" = set"; then
31083 echo $ECHO_N "(cached) $ECHO_C" >&6
31084 else
31085 cat >conftest.$ac_ext <<_ACEOF
31086 #line $LINENO "configure"
31087 /* confdefs.h. */
31088 _ACEOF
31089 cat confdefs.h >>conftest.$ac_ext
31090 cat >>conftest.$ac_ext <<_ACEOF
31091 /* end confdefs.h. */
31092 /* System header to define __stub macros and hopefully few prototypes,
31093 which can conflict with char $ac_func (); below.
31094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31095 <limits.h> exists even on freestanding compilers. */
31096 #ifdef __STDC__
31097 # include <limits.h>
31098 #else
31099 # include <assert.h>
31100 #endif
31101 /* Override any gcc2 internal prototype to avoid an error. */
31102 #ifdef __cplusplus
31103 extern "C"
31105 #endif
31106 /* We use char because int might match the return type of a gcc2
31107 builtin and then its argument prototype would still apply. */
31108 char $ac_func ();
31109 /* The GNU C library defines this for functions which it implements
31110 to always fail with ENOSYS. Some functions are actually named
31111 something starting with __ and the normal name is an alias. */
31112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31113 choke me
31114 #else
31115 char (*f) () = $ac_func;
31116 #endif
31117 #ifdef __cplusplus
31119 #endif
31122 main ()
31124 return f != $ac_func;
31126 return 0;
31128 _ACEOF
31129 rm -f conftest.$ac_objext conftest$ac_exeext
31130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31131 (eval $ac_link) 2>&5
31132 ac_status=$?
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); } &&
31135 { ac_try='test -s conftest$ac_exeext'
31136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31137 (eval $ac_try) 2>&5
31138 ac_status=$?
31139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140 (exit $ac_status); }; }; then
31141 eval "$as_ac_var=yes"
31142 else
31143 echo "$as_me: failed program was:" >&5
31144 sed 's/^/| /' conftest.$ac_ext >&5
31146 eval "$as_ac_var=no"
31148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31152 if test `eval echo '${'$as_ac_var'}'` = yes; then
31153 cat >>confdefs.h <<_ACEOF
31154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31155 _ACEOF
31157 else
31158 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
31160 done
31164 for ac_func in __signbit
31166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31167 echo "$as_me:$LINENO: checking for $ac_func" >&5
31168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31169 if eval "test \"\${$as_ac_var+set}\" = set"; then
31170 echo $ECHO_N "(cached) $ECHO_C" >&6
31171 else
31172 cat >conftest.$ac_ext <<_ACEOF
31173 #line $LINENO "configure"
31174 /* confdefs.h. */
31175 _ACEOF
31176 cat confdefs.h >>conftest.$ac_ext
31177 cat >>conftest.$ac_ext <<_ACEOF
31178 /* end confdefs.h. */
31179 /* System header to define __stub macros and hopefully few prototypes,
31180 which can conflict with char $ac_func (); below.
31181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31182 <limits.h> exists even on freestanding compilers. */
31183 #ifdef __STDC__
31184 # include <limits.h>
31185 #else
31186 # include <assert.h>
31187 #endif
31188 /* Override any gcc2 internal prototype to avoid an error. */
31189 #ifdef __cplusplus
31190 extern "C"
31192 #endif
31193 /* We use char because int might match the return type of a gcc2
31194 builtin and then its argument prototype would still apply. */
31195 char $ac_func ();
31196 /* The GNU C library defines this for functions which it implements
31197 to always fail with ENOSYS. Some functions are actually named
31198 something starting with __ and the normal name is an alias. */
31199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31200 choke me
31201 #else
31202 char (*f) () = $ac_func;
31203 #endif
31204 #ifdef __cplusplus
31206 #endif
31209 main ()
31211 return f != $ac_func;
31213 return 0;
31215 _ACEOF
31216 rm -f conftest.$ac_objext conftest$ac_exeext
31217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31218 (eval $ac_link) 2>&5
31219 ac_status=$?
31220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); } &&
31222 { ac_try='test -s conftest$ac_exeext'
31223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31224 (eval $ac_try) 2>&5
31225 ac_status=$?
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); }; }; then
31228 eval "$as_ac_var=yes"
31229 else
31230 echo "$as_me: failed program was:" >&5
31231 sed 's/^/| /' conftest.$ac_ext >&5
31233 eval "$as_ac_var=no"
31235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31239 if test `eval echo '${'$as_ac_var'}'` = yes; then
31240 cat >>confdefs.h <<_ACEOF
31241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31242 _ACEOF
31244 else
31245 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
31247 done
31250 for ac_func in __signbitf
31252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31253 echo "$as_me:$LINENO: checking for $ac_func" >&5
31254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31255 if eval "test \"\${$as_ac_var+set}\" = set"; then
31256 echo $ECHO_N "(cached) $ECHO_C" >&6
31257 else
31258 cat >conftest.$ac_ext <<_ACEOF
31259 #line $LINENO "configure"
31260 /* confdefs.h. */
31261 _ACEOF
31262 cat confdefs.h >>conftest.$ac_ext
31263 cat >>conftest.$ac_ext <<_ACEOF
31264 /* end confdefs.h. */
31265 /* System header to define __stub macros and hopefully few prototypes,
31266 which can conflict with char $ac_func (); below.
31267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31268 <limits.h> exists even on freestanding compilers. */
31269 #ifdef __STDC__
31270 # include <limits.h>
31271 #else
31272 # include <assert.h>
31273 #endif
31274 /* Override any gcc2 internal prototype to avoid an error. */
31275 #ifdef __cplusplus
31276 extern "C"
31278 #endif
31279 /* We use char because int might match the return type of a gcc2
31280 builtin and then its argument prototype would still apply. */
31281 char $ac_func ();
31282 /* The GNU C library defines this for functions which it implements
31283 to always fail with ENOSYS. Some functions are actually named
31284 something starting with __ and the normal name is an alias. */
31285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31286 choke me
31287 #else
31288 char (*f) () = $ac_func;
31289 #endif
31290 #ifdef __cplusplus
31292 #endif
31295 main ()
31297 return f != $ac_func;
31299 return 0;
31301 _ACEOF
31302 rm -f conftest.$ac_objext conftest$ac_exeext
31303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31304 (eval $ac_link) 2>&5
31305 ac_status=$?
31306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31307 (exit $ac_status); } &&
31308 { ac_try='test -s conftest$ac_exeext'
31309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31310 (eval $ac_try) 2>&5
31311 ac_status=$?
31312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); }; }; then
31314 eval "$as_ac_var=yes"
31315 else
31316 echo "$as_me: failed program was:" >&5
31317 sed 's/^/| /' conftest.$ac_ext >&5
31319 eval "$as_ac_var=no"
31321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31325 if test `eval echo '${'$as_ac_var'}'` = yes; then
31326 cat >>confdefs.h <<_ACEOF
31327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31328 _ACEOF
31330 else
31331 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
31333 done
31336 if test x$ac_cv_func_copysignl = x"yes"; then
31338 for ac_func in __signbitl
31340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31341 echo "$as_me:$LINENO: checking for $ac_func" >&5
31342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31343 if eval "test \"\${$as_ac_var+set}\" = set"; then
31344 echo $ECHO_N "(cached) $ECHO_C" >&6
31345 else
31346 cat >conftest.$ac_ext <<_ACEOF
31347 #line $LINENO "configure"
31348 /* confdefs.h. */
31349 _ACEOF
31350 cat confdefs.h >>conftest.$ac_ext
31351 cat >>conftest.$ac_ext <<_ACEOF
31352 /* end confdefs.h. */
31353 /* System header to define __stub macros and hopefully few prototypes,
31354 which can conflict with char $ac_func (); below.
31355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31356 <limits.h> exists even on freestanding compilers. */
31357 #ifdef __STDC__
31358 # include <limits.h>
31359 #else
31360 # include <assert.h>
31361 #endif
31362 /* Override any gcc2 internal prototype to avoid an error. */
31363 #ifdef __cplusplus
31364 extern "C"
31366 #endif
31367 /* We use char because int might match the return type of a gcc2
31368 builtin and then its argument prototype would still apply. */
31369 char $ac_func ();
31370 /* The GNU C library defines this for functions which it implements
31371 to always fail with ENOSYS. Some functions are actually named
31372 something starting with __ and the normal name is an alias. */
31373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31374 choke me
31375 #else
31376 char (*f) () = $ac_func;
31377 #endif
31378 #ifdef __cplusplus
31380 #endif
31383 main ()
31385 return f != $ac_func;
31387 return 0;
31389 _ACEOF
31390 rm -f conftest.$ac_objext conftest$ac_exeext
31391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31392 (eval $ac_link) 2>&5
31393 ac_status=$?
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); } &&
31396 { ac_try='test -s conftest$ac_exeext'
31397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31398 (eval $ac_try) 2>&5
31399 ac_status=$?
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); }; }; then
31402 eval "$as_ac_var=yes"
31403 else
31404 echo "$as_me: failed program was:" >&5
31405 sed 's/^/| /' conftest.$ac_ext >&5
31407 eval "$as_ac_var=no"
31409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31413 if test `eval echo '${'$as_ac_var'}'` = yes; then
31414 cat >>confdefs.h <<_ACEOF
31415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31416 _ACEOF
31418 else
31419 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
31421 done
31425 # XXX Review this. Nothing uses it.
31426 if test -n "$LIBMATHOBJS"; then
31427 need_libmath=yes
31432 # Test wchar.h for mbstate_t, which is needed for char_traits and
31433 # others even if wchar_t support is not on.
31434 echo "$as_me:$LINENO: checking for mbstate_t" >&5
31435 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
31436 cat >conftest.$ac_ext <<_ACEOF
31437 #line $LINENO "configure"
31438 /* confdefs.h. */
31439 _ACEOF
31440 cat confdefs.h >>conftest.$ac_ext
31441 cat >>conftest.$ac_ext <<_ACEOF
31442 /* end confdefs.h. */
31443 #include <wchar.h>
31445 main ()
31447 mbstate_t teststate;
31449 return 0;
31451 _ACEOF
31452 rm -f conftest.$ac_objext
31453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31454 (eval $ac_compile) 2>&5
31455 ac_status=$?
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); } &&
31458 { ac_try='test -s conftest.$ac_objext'
31459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31460 (eval $ac_try) 2>&5
31461 ac_status=$?
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); }; }; then
31464 have_mbstate_t=yes
31465 else
31466 echo "$as_me: failed program was:" >&5
31467 sed 's/^/| /' conftest.$ac_ext >&5
31469 have_mbstate_t=no
31471 rm -f conftest.$ac_objext conftest.$ac_ext
31472 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
31473 echo "${ECHO_T}$have_mbstate_t" >&6
31474 if test x"$have_mbstate_t" = xyes; then
31475 cat >>confdefs.h <<\_ACEOF
31476 #define HAVE_MBSTATE_T 1
31477 _ACEOF
31481 # Sanity check for existence of ISO C99 headers for extended encoding.
31483 for ac_header in wchar.h
31485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31487 echo "$as_me:$LINENO: checking for $ac_header" >&5
31488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31490 echo $ECHO_N "(cached) $ECHO_C" >&6
31492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31494 else
31495 # Is the header compilable?
31496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31498 cat >conftest.$ac_ext <<_ACEOF
31499 #line $LINENO "configure"
31500 /* confdefs.h. */
31501 _ACEOF
31502 cat confdefs.h >>conftest.$ac_ext
31503 cat >>conftest.$ac_ext <<_ACEOF
31504 /* end confdefs.h. */
31505 $ac_includes_default
31506 #include <$ac_header>
31507 _ACEOF
31508 rm -f conftest.$ac_objext
31509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31510 (eval $ac_compile) 2>&5
31511 ac_status=$?
31512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31513 (exit $ac_status); } &&
31514 { ac_try='test -s conftest.$ac_objext'
31515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31516 (eval $ac_try) 2>&5
31517 ac_status=$?
31518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519 (exit $ac_status); }; }; then
31520 ac_header_compiler=yes
31521 else
31522 echo "$as_me: failed program was:" >&5
31523 sed 's/^/| /' conftest.$ac_ext >&5
31525 ac_header_compiler=no
31527 rm -f conftest.$ac_objext conftest.$ac_ext
31528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31529 echo "${ECHO_T}$ac_header_compiler" >&6
31531 # Is the header present?
31532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31534 cat >conftest.$ac_ext <<_ACEOF
31535 #line $LINENO "configure"
31536 /* confdefs.h. */
31537 _ACEOF
31538 cat confdefs.h >>conftest.$ac_ext
31539 cat >>conftest.$ac_ext <<_ACEOF
31540 /* end confdefs.h. */
31541 #include <$ac_header>
31542 _ACEOF
31543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31545 ac_status=$?
31546 grep -v '^ *+' conftest.er1 >conftest.err
31547 rm -f conftest.er1
31548 cat conftest.err >&5
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); } >/dev/null; then
31551 if test -s conftest.err; then
31552 ac_cpp_err=$ac_c_preproc_warn_flag
31553 else
31554 ac_cpp_err=
31556 else
31557 ac_cpp_err=yes
31559 if test -z "$ac_cpp_err"; then
31560 ac_header_preproc=yes
31561 else
31562 echo "$as_me: failed program was:" >&5
31563 sed 's/^/| /' conftest.$ac_ext >&5
31565 ac_header_preproc=no
31567 rm -f conftest.err conftest.$ac_ext
31568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31569 echo "${ECHO_T}$ac_header_preproc" >&6
31571 # So? What about this header?
31572 case $ac_header_compiler:$ac_header_preproc in
31573 yes:no )
31574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31579 cat <<\_ASBOX
31580 ## ------------------------------------ ##
31581 ## Report this to bug-autoconf@gnu.org. ##
31582 ## ------------------------------------ ##
31583 _ASBOX
31585 sed "s/^/$as_me: WARNING: /" >&2
31587 no:yes )
31588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31595 cat <<\_ASBOX
31596 ## ------------------------------------ ##
31597 ## Report this to bug-autoconf@gnu.org. ##
31598 ## ------------------------------------ ##
31599 _ASBOX
31601 sed "s/^/$as_me: WARNING: /" >&2
31603 esac
31604 echo "$as_me:$LINENO: checking for $ac_header" >&5
31605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31607 echo $ECHO_N "(cached) $ECHO_C" >&6
31608 else
31609 eval "$as_ac_Header=$ac_header_preproc"
31611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31616 cat >>confdefs.h <<_ACEOF
31617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31618 _ACEOF
31619 ac_has_wchar_h=yes
31620 else
31621 ac_has_wchar_h=no
31624 done
31627 for ac_header in wctype.h
31629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31631 echo "$as_me:$LINENO: checking for $ac_header" >&5
31632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31634 echo $ECHO_N "(cached) $ECHO_C" >&6
31636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31638 else
31639 # Is the header compilable?
31640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31642 cat >conftest.$ac_ext <<_ACEOF
31643 #line $LINENO "configure"
31644 /* confdefs.h. */
31645 _ACEOF
31646 cat confdefs.h >>conftest.$ac_ext
31647 cat >>conftest.$ac_ext <<_ACEOF
31648 /* end confdefs.h. */
31649 $ac_includes_default
31650 #include <$ac_header>
31651 _ACEOF
31652 rm -f conftest.$ac_objext
31653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31654 (eval $ac_compile) 2>&5
31655 ac_status=$?
31656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657 (exit $ac_status); } &&
31658 { ac_try='test -s conftest.$ac_objext'
31659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31660 (eval $ac_try) 2>&5
31661 ac_status=$?
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); }; }; then
31664 ac_header_compiler=yes
31665 else
31666 echo "$as_me: failed program was:" >&5
31667 sed 's/^/| /' conftest.$ac_ext >&5
31669 ac_header_compiler=no
31671 rm -f conftest.$ac_objext conftest.$ac_ext
31672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31673 echo "${ECHO_T}$ac_header_compiler" >&6
31675 # Is the header present?
31676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31678 cat >conftest.$ac_ext <<_ACEOF
31679 #line $LINENO "configure"
31680 /* confdefs.h. */
31681 _ACEOF
31682 cat confdefs.h >>conftest.$ac_ext
31683 cat >>conftest.$ac_ext <<_ACEOF
31684 /* end confdefs.h. */
31685 #include <$ac_header>
31686 _ACEOF
31687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31689 ac_status=$?
31690 grep -v '^ *+' conftest.er1 >conftest.err
31691 rm -f conftest.er1
31692 cat conftest.err >&5
31693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694 (exit $ac_status); } >/dev/null; then
31695 if test -s conftest.err; then
31696 ac_cpp_err=$ac_c_preproc_warn_flag
31697 else
31698 ac_cpp_err=
31700 else
31701 ac_cpp_err=yes
31703 if test -z "$ac_cpp_err"; then
31704 ac_header_preproc=yes
31705 else
31706 echo "$as_me: failed program was:" >&5
31707 sed 's/^/| /' conftest.$ac_ext >&5
31709 ac_header_preproc=no
31711 rm -f conftest.err conftest.$ac_ext
31712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31713 echo "${ECHO_T}$ac_header_preproc" >&6
31715 # So? What about this header?
31716 case $ac_header_compiler:$ac_header_preproc in
31717 yes:no )
31718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31723 cat <<\_ASBOX
31724 ## ------------------------------------ ##
31725 ## Report this to bug-autoconf@gnu.org. ##
31726 ## ------------------------------------ ##
31727 _ASBOX
31729 sed "s/^/$as_me: WARNING: /" >&2
31731 no:yes )
31732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31739 cat <<\_ASBOX
31740 ## ------------------------------------ ##
31741 ## Report this to bug-autoconf@gnu.org. ##
31742 ## ------------------------------------ ##
31743 _ASBOX
31745 sed "s/^/$as_me: WARNING: /" >&2
31747 esac
31748 echo "$as_me:$LINENO: checking for $ac_header" >&5
31749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31751 echo $ECHO_N "(cached) $ECHO_C" >&6
31752 else
31753 eval "$as_ac_Header=$ac_header_preproc"
31755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31760 cat >>confdefs.h <<_ACEOF
31761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31762 _ACEOF
31763 ac_has_wctype_h=yes
31764 else
31765 ac_has_wctype_h=no
31768 done
31771 # Only continue checking if the ISO C99 headers exist and support is on.
31772 if test x"$ac_has_wchar_h" = xyes &&
31773 test x"$ac_has_wctype_h" = xyes &&
31774 test x"$enable_c_mbchar" != xno; then
31776 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
31777 # numeric_limits can instantiate type_traits<wchar_t>
31778 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
31779 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
31780 cat >conftest.$ac_ext <<_ACEOF
31781 #line $LINENO "configure"
31782 /* confdefs.h. */
31783 _ACEOF
31784 cat confdefs.h >>conftest.$ac_ext
31785 cat >>conftest.$ac_ext <<_ACEOF
31786 /* end confdefs.h. */
31787 #include <wchar.h>
31789 main ()
31791 int i = WCHAR_MIN; int j = WCHAR_MAX;
31793 return 0;
31795 _ACEOF
31796 rm -f conftest.$ac_objext
31797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31798 (eval $ac_compile) 2>&5
31799 ac_status=$?
31800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801 (exit $ac_status); } &&
31802 { ac_try='test -s conftest.$ac_objext'
31803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31804 (eval $ac_try) 2>&5
31805 ac_status=$?
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807 (exit $ac_status); }; }; then
31808 has_wchar_minmax=yes
31809 else
31810 echo "$as_me: failed program was:" >&5
31811 sed 's/^/| /' conftest.$ac_ext >&5
31813 has_wchar_minmax=no
31815 rm -f conftest.$ac_objext conftest.$ac_ext
31816 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
31817 echo "${ECHO_T}$has_wchar_minmax" >&6
31819 # Test wchar.h for WEOF, which is what we use to determine whether
31820 # to specialize for char_traits<wchar_t> or not.
31821 echo "$as_me:$LINENO: checking for WEOF" >&5
31822 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
31823 cat >conftest.$ac_ext <<_ACEOF
31824 #line $LINENO "configure"
31825 /* confdefs.h. */
31826 _ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h. */
31831 #include <wchar.h>
31832 #include <stddef.h>
31834 main ()
31836 wint_t i = WEOF;
31838 return 0;
31840 _ACEOF
31841 rm -f conftest.$ac_objext
31842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31843 (eval $ac_compile) 2>&5
31844 ac_status=$?
31845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31846 (exit $ac_status); } &&
31847 { ac_try='test -s conftest.$ac_objext'
31848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31849 (eval $ac_try) 2>&5
31850 ac_status=$?
31851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); }; }; then
31853 has_weof=yes
31854 else
31855 echo "$as_me: failed program was:" >&5
31856 sed 's/^/| /' conftest.$ac_ext >&5
31858 has_weof=no
31860 rm -f conftest.$ac_objext conftest.$ac_ext
31861 echo "$as_me:$LINENO: result: $has_weof" >&5
31862 echo "${ECHO_T}$has_weof" >&6
31864 # Tests for wide character functions used in char_traits<wchar_t>.
31865 ac_wfuncs=yes
31872 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
31874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31875 echo "$as_me:$LINENO: checking for $ac_func" >&5
31876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31877 if eval "test \"\${$as_ac_var+set}\" = set"; then
31878 echo $ECHO_N "(cached) $ECHO_C" >&6
31879 else
31880 cat >conftest.$ac_ext <<_ACEOF
31881 #line $LINENO "configure"
31882 /* confdefs.h. */
31883 _ACEOF
31884 cat confdefs.h >>conftest.$ac_ext
31885 cat >>conftest.$ac_ext <<_ACEOF
31886 /* end confdefs.h. */
31887 /* System header to define __stub macros and hopefully few prototypes,
31888 which can conflict with char $ac_func (); below.
31889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31890 <limits.h> exists even on freestanding compilers. */
31891 #ifdef __STDC__
31892 # include <limits.h>
31893 #else
31894 # include <assert.h>
31895 #endif
31896 /* Override any gcc2 internal prototype to avoid an error. */
31897 #ifdef __cplusplus
31898 extern "C"
31900 #endif
31901 /* We use char because int might match the return type of a gcc2
31902 builtin and then its argument prototype would still apply. */
31903 char $ac_func ();
31904 /* The GNU C library defines this for functions which it implements
31905 to always fail with ENOSYS. Some functions are actually named
31906 something starting with __ and the normal name is an alias. */
31907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31908 choke me
31909 #else
31910 char (*f) () = $ac_func;
31911 #endif
31912 #ifdef __cplusplus
31914 #endif
31917 main ()
31919 return f != $ac_func;
31921 return 0;
31923 _ACEOF
31924 rm -f conftest.$ac_objext conftest$ac_exeext
31925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31926 (eval $ac_link) 2>&5
31927 ac_status=$?
31928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929 (exit $ac_status); } &&
31930 { ac_try='test -s conftest$ac_exeext'
31931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31932 (eval $ac_try) 2>&5
31933 ac_status=$?
31934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31935 (exit $ac_status); }; }; then
31936 eval "$as_ac_var=yes"
31937 else
31938 echo "$as_me: failed program was:" >&5
31939 sed 's/^/| /' conftest.$ac_ext >&5
31941 eval "$as_ac_var=no"
31943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31947 if test `eval echo '${'$as_ac_var'}'` = yes; then
31948 cat >>confdefs.h <<_ACEOF
31949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31950 _ACEOF
31952 else
31953 ac_wfuncs=no
31955 done
31958 # Checks for names injected into std:: by the c_std headers.
32009 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
32010 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
32011 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
32012 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
32013 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
32014 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
32016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32017 echo "$as_me:$LINENO: checking for $ac_func" >&5
32018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32019 if eval "test \"\${$as_ac_var+set}\" = set"; then
32020 echo $ECHO_N "(cached) $ECHO_C" >&6
32021 else
32022 cat >conftest.$ac_ext <<_ACEOF
32023 #line $LINENO "configure"
32024 /* confdefs.h. */
32025 _ACEOF
32026 cat confdefs.h >>conftest.$ac_ext
32027 cat >>conftest.$ac_ext <<_ACEOF
32028 /* end confdefs.h. */
32029 /* System header to define __stub macros and hopefully few prototypes,
32030 which can conflict with char $ac_func (); below.
32031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32032 <limits.h> exists even on freestanding compilers. */
32033 #ifdef __STDC__
32034 # include <limits.h>
32035 #else
32036 # include <assert.h>
32037 #endif
32038 /* Override any gcc2 internal prototype to avoid an error. */
32039 #ifdef __cplusplus
32040 extern "C"
32042 #endif
32043 /* We use char because int might match the return type of a gcc2
32044 builtin and then its argument prototype would still apply. */
32045 char $ac_func ();
32046 /* The GNU C library defines this for functions which it implements
32047 to always fail with ENOSYS. Some functions are actually named
32048 something starting with __ and the normal name is an alias. */
32049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32050 choke me
32051 #else
32052 char (*f) () = $ac_func;
32053 #endif
32054 #ifdef __cplusplus
32056 #endif
32059 main ()
32061 return f != $ac_func;
32063 return 0;
32065 _ACEOF
32066 rm -f conftest.$ac_objext conftest$ac_exeext
32067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32068 (eval $ac_link) 2>&5
32069 ac_status=$?
32070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071 (exit $ac_status); } &&
32072 { ac_try='test -s conftest$ac_exeext'
32073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32074 (eval $ac_try) 2>&5
32075 ac_status=$?
32076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077 (exit $ac_status); }; }; then
32078 eval "$as_ac_var=yes"
32079 else
32080 echo "$as_me: failed program was:" >&5
32081 sed 's/^/| /' conftest.$ac_ext >&5
32083 eval "$as_ac_var=no"
32085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32089 if test `eval echo '${'$as_ac_var'}'` = yes; then
32090 cat >>confdefs.h <<_ACEOF
32091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32092 _ACEOF
32094 else
32095 ac_wfuncs=no
32097 done
32100 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
32101 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
32102 if test x"$has_weof" = xyes &&
32103 test x"$has_wchar_minmax" = xyes &&
32104 test x"$ac_wfuncs" = xyes;
32105 then
32106 ac_isoC99_wchar_t=yes
32107 else
32108 ac_isoC99_wchar_t=no
32110 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
32111 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
32113 # Use iconv for wchar_t to char conversions. As such, check for
32114 # X/Open Portability Guide, version 2 features (XPG2).
32115 if test "${ac_cv_header_iconv_h+set}" = set; then
32116 echo "$as_me:$LINENO: checking for iconv.h" >&5
32117 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
32118 if test "${ac_cv_header_iconv_h+set}" = set; then
32119 echo $ECHO_N "(cached) $ECHO_C" >&6
32121 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
32122 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
32123 else
32124 # Is the header compilable?
32125 echo "$as_me:$LINENO: checking iconv.h usability" >&5
32126 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
32127 cat >conftest.$ac_ext <<_ACEOF
32128 #line $LINENO "configure"
32129 /* confdefs.h. */
32130 _ACEOF
32131 cat confdefs.h >>conftest.$ac_ext
32132 cat >>conftest.$ac_ext <<_ACEOF
32133 /* end confdefs.h. */
32134 $ac_includes_default
32135 #include <iconv.h>
32136 _ACEOF
32137 rm -f conftest.$ac_objext
32138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32139 (eval $ac_compile) 2>&5
32140 ac_status=$?
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); } &&
32143 { ac_try='test -s conftest.$ac_objext'
32144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32145 (eval $ac_try) 2>&5
32146 ac_status=$?
32147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32148 (exit $ac_status); }; }; then
32149 ac_header_compiler=yes
32150 else
32151 echo "$as_me: failed program was:" >&5
32152 sed 's/^/| /' conftest.$ac_ext >&5
32154 ac_header_compiler=no
32156 rm -f conftest.$ac_objext conftest.$ac_ext
32157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32158 echo "${ECHO_T}$ac_header_compiler" >&6
32160 # Is the header present?
32161 echo "$as_me:$LINENO: checking iconv.h presence" >&5
32162 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
32163 cat >conftest.$ac_ext <<_ACEOF
32164 #line $LINENO "configure"
32165 /* confdefs.h. */
32166 _ACEOF
32167 cat confdefs.h >>conftest.$ac_ext
32168 cat >>conftest.$ac_ext <<_ACEOF
32169 /* end confdefs.h. */
32170 #include <iconv.h>
32171 _ACEOF
32172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32174 ac_status=$?
32175 grep -v '^ *+' conftest.er1 >conftest.err
32176 rm -f conftest.er1
32177 cat conftest.err >&5
32178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179 (exit $ac_status); } >/dev/null; then
32180 if test -s conftest.err; then
32181 ac_cpp_err=$ac_c_preproc_warn_flag
32182 else
32183 ac_cpp_err=
32185 else
32186 ac_cpp_err=yes
32188 if test -z "$ac_cpp_err"; then
32189 ac_header_preproc=yes
32190 else
32191 echo "$as_me: failed program was:" >&5
32192 sed 's/^/| /' conftest.$ac_ext >&5
32194 ac_header_preproc=no
32196 rm -f conftest.err conftest.$ac_ext
32197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32198 echo "${ECHO_T}$ac_header_preproc" >&6
32200 # So? What about this header?
32201 case $ac_header_compiler:$ac_header_preproc in
32202 yes:no )
32203 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
32204 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32205 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
32206 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
32208 cat <<\_ASBOX
32209 ## ------------------------------------ ##
32210 ## Report this to bug-autoconf@gnu.org. ##
32211 ## ------------------------------------ ##
32212 _ASBOX
32214 sed "s/^/$as_me: WARNING: /" >&2
32216 no:yes )
32217 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
32218 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
32219 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
32220 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
32221 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
32222 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
32224 cat <<\_ASBOX
32225 ## ------------------------------------ ##
32226 ## Report this to bug-autoconf@gnu.org. ##
32227 ## ------------------------------------ ##
32228 _ASBOX
32230 sed "s/^/$as_me: WARNING: /" >&2
32232 esac
32233 echo "$as_me:$LINENO: checking for iconv.h" >&5
32234 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
32235 if test "${ac_cv_header_iconv_h+set}" = set; then
32236 echo $ECHO_N "(cached) $ECHO_C" >&6
32237 else
32238 ac_cv_header_iconv_h=$ac_header_preproc
32240 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
32241 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
32244 if test $ac_cv_header_iconv_h = yes; then
32245 ac_has_iconv_h=yes
32246 else
32247 ac_has_iconv_h=no
32251 if test "${ac_cv_header_langinfo_h+set}" = set; then
32252 echo "$as_me:$LINENO: checking for langinfo.h" >&5
32253 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
32254 if test "${ac_cv_header_langinfo_h+set}" = set; then
32255 echo $ECHO_N "(cached) $ECHO_C" >&6
32257 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
32258 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
32259 else
32260 # Is the header compilable?
32261 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
32262 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
32263 cat >conftest.$ac_ext <<_ACEOF
32264 #line $LINENO "configure"
32265 /* confdefs.h. */
32266 _ACEOF
32267 cat confdefs.h >>conftest.$ac_ext
32268 cat >>conftest.$ac_ext <<_ACEOF
32269 /* end confdefs.h. */
32270 $ac_includes_default
32271 #include <langinfo.h>
32272 _ACEOF
32273 rm -f conftest.$ac_objext
32274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32275 (eval $ac_compile) 2>&5
32276 ac_status=$?
32277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); } &&
32279 { ac_try='test -s conftest.$ac_objext'
32280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32281 (eval $ac_try) 2>&5
32282 ac_status=$?
32283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284 (exit $ac_status); }; }; then
32285 ac_header_compiler=yes
32286 else
32287 echo "$as_me: failed program was:" >&5
32288 sed 's/^/| /' conftest.$ac_ext >&5
32290 ac_header_compiler=no
32292 rm -f conftest.$ac_objext conftest.$ac_ext
32293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32294 echo "${ECHO_T}$ac_header_compiler" >&6
32296 # Is the header present?
32297 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
32298 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
32299 cat >conftest.$ac_ext <<_ACEOF
32300 #line $LINENO "configure"
32301 /* confdefs.h. */
32302 _ACEOF
32303 cat confdefs.h >>conftest.$ac_ext
32304 cat >>conftest.$ac_ext <<_ACEOF
32305 /* end confdefs.h. */
32306 #include <langinfo.h>
32307 _ACEOF
32308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32310 ac_status=$?
32311 grep -v '^ *+' conftest.er1 >conftest.err
32312 rm -f conftest.er1
32313 cat conftest.err >&5
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); } >/dev/null; then
32316 if test -s conftest.err; then
32317 ac_cpp_err=$ac_c_preproc_warn_flag
32318 else
32319 ac_cpp_err=
32321 else
32322 ac_cpp_err=yes
32324 if test -z "$ac_cpp_err"; then
32325 ac_header_preproc=yes
32326 else
32327 echo "$as_me: failed program was:" >&5
32328 sed 's/^/| /' conftest.$ac_ext >&5
32330 ac_header_preproc=no
32332 rm -f conftest.err conftest.$ac_ext
32333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32334 echo "${ECHO_T}$ac_header_preproc" >&6
32336 # So? What about this header?
32337 case $ac_header_compiler:$ac_header_preproc in
32338 yes:no )
32339 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
32340 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32341 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
32342 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
32344 cat <<\_ASBOX
32345 ## ------------------------------------ ##
32346 ## Report this to bug-autoconf@gnu.org. ##
32347 ## ------------------------------------ ##
32348 _ASBOX
32350 sed "s/^/$as_me: WARNING: /" >&2
32352 no:yes )
32353 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
32354 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
32355 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
32356 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
32357 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
32358 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
32360 cat <<\_ASBOX
32361 ## ------------------------------------ ##
32362 ## Report this to bug-autoconf@gnu.org. ##
32363 ## ------------------------------------ ##
32364 _ASBOX
32366 sed "s/^/$as_me: WARNING: /" >&2
32368 esac
32369 echo "$as_me:$LINENO: checking for langinfo.h" >&5
32370 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
32371 if test "${ac_cv_header_langinfo_h+set}" = set; then
32372 echo $ECHO_N "(cached) $ECHO_C" >&6
32373 else
32374 ac_cv_header_langinfo_h=$ac_header_preproc
32376 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
32377 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
32380 if test $ac_cv_header_langinfo_h = yes; then
32381 ac_has_langinfo_h=yes
32382 else
32383 ac_has_langinfo_h=no
32388 # Check for existence of libiconv.a providing XPG2 wchar_t support.
32389 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
32390 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
32391 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
32392 echo $ECHO_N "(cached) $ECHO_C" >&6
32393 else
32394 ac_check_lib_save_LIBS=$LIBS
32395 LIBS="-liconv $LIBS"
32396 cat >conftest.$ac_ext <<_ACEOF
32397 #line $LINENO "configure"
32398 /* confdefs.h. */
32399 _ACEOF
32400 cat confdefs.h >>conftest.$ac_ext
32401 cat >>conftest.$ac_ext <<_ACEOF
32402 /* end confdefs.h. */
32404 /* Override any gcc2 internal prototype to avoid an error. */
32405 #ifdef __cplusplus
32406 extern "C"
32407 #endif
32408 /* We use char because int might match the return type of a gcc2
32409 builtin and then its argument prototype would still apply. */
32410 char iconv ();
32412 main ()
32414 iconv ();
32416 return 0;
32418 _ACEOF
32419 rm -f conftest.$ac_objext conftest$ac_exeext
32420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32421 (eval $ac_link) 2>&5
32422 ac_status=$?
32423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424 (exit $ac_status); } &&
32425 { ac_try='test -s conftest$ac_exeext'
32426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32427 (eval $ac_try) 2>&5
32428 ac_status=$?
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); }; }; then
32431 ac_cv_lib_iconv_iconv=yes
32432 else
32433 echo "$as_me: failed program was:" >&5
32434 sed 's/^/| /' conftest.$ac_ext >&5
32436 ac_cv_lib_iconv_iconv=no
32438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32439 LIBS=$ac_check_lib_save_LIBS
32441 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
32442 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
32443 if test $ac_cv_lib_iconv_iconv = yes; then
32444 libiconv="-liconv"
32447 ac_save_LIBS="$LIBS"
32448 LIBS="$LIBS $libiconv"
32454 for ac_func in iconv_open iconv_close iconv nl_langinfo
32456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32457 echo "$as_me:$LINENO: checking for $ac_func" >&5
32458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32459 if eval "test \"\${$as_ac_var+set}\" = set"; then
32460 echo $ECHO_N "(cached) $ECHO_C" >&6
32461 else
32462 cat >conftest.$ac_ext <<_ACEOF
32463 #line $LINENO "configure"
32464 /* confdefs.h. */
32465 _ACEOF
32466 cat confdefs.h >>conftest.$ac_ext
32467 cat >>conftest.$ac_ext <<_ACEOF
32468 /* end confdefs.h. */
32469 /* System header to define __stub macros and hopefully few prototypes,
32470 which can conflict with char $ac_func (); below.
32471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32472 <limits.h> exists even on freestanding compilers. */
32473 #ifdef __STDC__
32474 # include <limits.h>
32475 #else
32476 # include <assert.h>
32477 #endif
32478 /* Override any gcc2 internal prototype to avoid an error. */
32479 #ifdef __cplusplus
32480 extern "C"
32482 #endif
32483 /* We use char because int might match the return type of a gcc2
32484 builtin and then its argument prototype would still apply. */
32485 char $ac_func ();
32486 /* The GNU C library defines this for functions which it implements
32487 to always fail with ENOSYS. Some functions are actually named
32488 something starting with __ and the normal name is an alias. */
32489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32490 choke me
32491 #else
32492 char (*f) () = $ac_func;
32493 #endif
32494 #ifdef __cplusplus
32496 #endif
32499 main ()
32501 return f != $ac_func;
32503 return 0;
32505 _ACEOF
32506 rm -f conftest.$ac_objext conftest$ac_exeext
32507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32508 (eval $ac_link) 2>&5
32509 ac_status=$?
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); } &&
32512 { ac_try='test -s conftest$ac_exeext'
32513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32514 (eval $ac_try) 2>&5
32515 ac_status=$?
32516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517 (exit $ac_status); }; }; then
32518 eval "$as_ac_var=yes"
32519 else
32520 echo "$as_me: failed program was:" >&5
32521 sed 's/^/| /' conftest.$ac_ext >&5
32523 eval "$as_ac_var=no"
32525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32529 if test `eval echo '${'$as_ac_var'}'` = yes; then
32530 cat >>confdefs.h <<_ACEOF
32531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32532 _ACEOF
32533 ac_XPG2funcs=yes
32534 else
32535 ac_XPG2funcs=no
32537 done
32540 LIBS="$ac_save_LIBS"
32542 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
32543 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
32544 if test x"$ac_has_iconv_h" = xyes &&
32545 test x"$ac_has_langinfo_h" = xyes &&
32546 test x"$ac_XPG2funcs" = xyes;
32547 then
32548 ac_XPG2_wchar_t=yes
32549 else
32550 ac_XPG2_wchar_t=no
32552 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
32553 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
32555 # At the moment, only enable wchar_t specializations if all the
32556 # above support is present.
32557 if test x"$ac_isoC99_wchar_t" = xyes &&
32558 test x"$ac_XPG2_wchar_t" = xyes;
32559 then
32560 cat >>confdefs.h <<\_ACEOF
32561 #define _GLIBCXX_USE_WCHAR_T 1
32562 _ACEOF
32564 enable_wchar_t=yes
32567 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
32568 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
32569 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
32570 echo "${ECHO_T}$enable_wchar_t" >&6
32572 cat >>confdefs.h <<\_ACEOF
32573 #define HAVE_COPYSIGN 1
32574 _ACEOF
32576 cat >>confdefs.h <<\_ACEOF
32577 #define HAVE_COPYSIGNF 1
32578 _ACEOF
32580 cat >>confdefs.h <<\_ACEOF
32581 #define HAVE_FINITE 1
32582 _ACEOF
32584 cat >>confdefs.h <<\_ACEOF
32585 #define HAVE_FINITEF 1
32586 _ACEOF
32588 cat >>confdefs.h <<\_ACEOF
32589 #define HAVE_FREXPF 1
32590 _ACEOF
32592 cat >>confdefs.h <<\_ACEOF
32593 #define HAVE_HYPOTF 1
32594 _ACEOF
32596 cat >>confdefs.h <<\_ACEOF
32597 #define HAVE_ISINF 1
32598 _ACEOF
32600 cat >>confdefs.h <<\_ACEOF
32601 #define HAVE_ISINFF 1
32602 _ACEOF
32604 cat >>confdefs.h <<\_ACEOF
32605 #define HAVE_ISNAN 1
32606 _ACEOF
32608 cat >>confdefs.h <<\_ACEOF
32609 #define HAVE_ISNANF 1
32610 _ACEOF
32612 cat >>confdefs.h <<\_ACEOF
32613 #define HAVE_SINCOS 1
32614 _ACEOF
32616 cat >>confdefs.h <<\_ACEOF
32617 #define HAVE_SINCOSF 1
32618 _ACEOF
32620 if test x"long_double_math_on_this_cpu" = x"yes"; then
32621 cat >>confdefs.h <<\_ACEOF
32622 #define HAVE_FINITEL 1
32623 _ACEOF
32625 cat >>confdefs.h <<\_ACEOF
32626 #define HAVE_HYPOTL 1
32627 _ACEOF
32629 cat >>confdefs.h <<\_ACEOF
32630 #define HAVE_ISINFL 1
32631 _ACEOF
32633 cat >>confdefs.h <<\_ACEOF
32634 #define HAVE_ISNANL 1
32635 _ACEOF
32639 *-mingw32*)
32640 #os_include_dir="os/mingw32"
32644 for ac_header in sys/types.h locale.h float.h
32646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32648 echo "$as_me:$LINENO: checking for $ac_header" >&5
32649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32651 echo $ECHO_N "(cached) $ECHO_C" >&6
32653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32655 else
32656 # Is the header compilable?
32657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32659 cat >conftest.$ac_ext <<_ACEOF
32660 #line $LINENO "configure"
32661 /* confdefs.h. */
32662 _ACEOF
32663 cat confdefs.h >>conftest.$ac_ext
32664 cat >>conftest.$ac_ext <<_ACEOF
32665 /* end confdefs.h. */
32666 $ac_includes_default
32667 #include <$ac_header>
32668 _ACEOF
32669 rm -f conftest.$ac_objext
32670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32671 (eval $ac_compile) 2>&5
32672 ac_status=$?
32673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674 (exit $ac_status); } &&
32675 { ac_try='test -s conftest.$ac_objext'
32676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32677 (eval $ac_try) 2>&5
32678 ac_status=$?
32679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); }; }; then
32681 ac_header_compiler=yes
32682 else
32683 echo "$as_me: failed program was:" >&5
32684 sed 's/^/| /' conftest.$ac_ext >&5
32686 ac_header_compiler=no
32688 rm -f conftest.$ac_objext conftest.$ac_ext
32689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32690 echo "${ECHO_T}$ac_header_compiler" >&6
32692 # Is the header present?
32693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32695 cat >conftest.$ac_ext <<_ACEOF
32696 #line $LINENO "configure"
32697 /* confdefs.h. */
32698 _ACEOF
32699 cat confdefs.h >>conftest.$ac_ext
32700 cat >>conftest.$ac_ext <<_ACEOF
32701 /* end confdefs.h. */
32702 #include <$ac_header>
32703 _ACEOF
32704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32706 ac_status=$?
32707 grep -v '^ *+' conftest.er1 >conftest.err
32708 rm -f conftest.er1
32709 cat conftest.err >&5
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); } >/dev/null; then
32712 if test -s conftest.err; then
32713 ac_cpp_err=$ac_c_preproc_warn_flag
32714 else
32715 ac_cpp_err=
32717 else
32718 ac_cpp_err=yes
32720 if test -z "$ac_cpp_err"; then
32721 ac_header_preproc=yes
32722 else
32723 echo "$as_me: failed program was:" >&5
32724 sed 's/^/| /' conftest.$ac_ext >&5
32726 ac_header_preproc=no
32728 rm -f conftest.err conftest.$ac_ext
32729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32730 echo "${ECHO_T}$ac_header_preproc" >&6
32732 # So? What about this header?
32733 case $ac_header_compiler:$ac_header_preproc in
32734 yes:no )
32735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32740 cat <<\_ASBOX
32741 ## ------------------------------------ ##
32742 ## Report this to bug-autoconf@gnu.org. ##
32743 ## ------------------------------------ ##
32744 _ASBOX
32746 sed "s/^/$as_me: WARNING: /" >&2
32748 no:yes )
32749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32756 cat <<\_ASBOX
32757 ## ------------------------------------ ##
32758 ## Report this to bug-autoconf@gnu.org. ##
32759 ## ------------------------------------ ##
32760 _ASBOX
32762 sed "s/^/$as_me: WARNING: /" >&2
32764 esac
32765 echo "$as_me:$LINENO: checking for $ac_header" >&5
32766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32768 echo $ECHO_N "(cached) $ECHO_C" >&6
32769 else
32770 eval "$as_ac_Header=$ac_header_preproc"
32772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32777 cat >>confdefs.h <<_ACEOF
32778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32779 _ACEOF
32783 done
32786 # If we're not using GNU ld, then there's no point in even trying these
32787 # tests. Check for that first. We should have already tested for gld
32788 # by now (in libtool), but require it now just to be safe...
32789 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
32790 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
32794 # The name set by libtool depends on the version of libtool. Shame on us
32795 # for depending on an impl detail, but c'est la vie. Older versions used
32796 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
32797 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
32798 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
32799 # set (hence we're using an older libtool), then set it.
32800 if test x${with_gnu_ld+set} != xset; then
32801 if test x${ac_cv_prog_gnu_ld+set} != xset; then
32802 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
32803 with_gnu_ld=no
32804 else
32805 with_gnu_ld=$ac_cv_prog_gnu_ld
32809 # Start by getting the version number. I think the libtool test already
32810 # does some of this, but throws away the result.
32812 ldver=`$LD --version 2>/dev/null | head -1 | \
32813 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
32815 glibcxx_gnu_ld_version=`echo $ldver | \
32816 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
32818 # Set --gc-sections.
32819 if test "$with_gnu_ld" = "notbroken"; then
32820 # GNU ld it is! Joy and bunny rabbits!
32822 # All these tests are for C++; save the language and the compiler flags.
32823 # Need to do this so that g++ won't try to link in libstdc++
32824 ac_test_CFLAGS="${CFLAGS+set}"
32825 ac_save_CFLAGS="$CFLAGS"
32826 CFLAGS='-x c++ -Wl,--gc-sections'
32828 # Check for -Wl,--gc-sections
32829 # XXX This test is broken at the moment, as symbols required for linking
32830 # are now in libsupc++ (not built yet). In addition, this test has
32831 # cored on solaris in the past. In addition, --gc-sections doesn't
32832 # really work at the moment (keeps on discarding used sections, first
32833 # .eh_frame and now some of the glibc sections for iconv).
32834 # Bzzzzt. Thanks for playing, maybe next time.
32835 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
32836 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
32837 if test "$cross_compiling" = yes; then
32838 ac_sectionLDflags=yes
32839 else
32840 cat >conftest.$ac_ext <<_ACEOF
32841 #line $LINENO "configure"
32842 /* confdefs.h. */
32843 _ACEOF
32844 cat confdefs.h >>conftest.$ac_ext
32845 cat >>conftest.$ac_ext <<_ACEOF
32846 /* end confdefs.h. */
32848 int main(void)
32850 try { throw 1; }
32851 catch (...) { };
32852 return 0;
32855 _ACEOF
32856 rm -f conftest$ac_exeext
32857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32858 (eval $ac_link) 2>&5
32859 ac_status=$?
32860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32863 (eval $ac_try) 2>&5
32864 ac_status=$?
32865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32866 (exit $ac_status); }; }; then
32867 ac_sectionLDflags=yes
32868 else
32869 echo "$as_me: program exited with status $ac_status" >&5
32870 echo "$as_me: failed program was:" >&5
32871 sed 's/^/| /' conftest.$ac_ext >&5
32873 ( exit $ac_status )
32874 ac_sectionLDflags=no
32876 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32878 if test "$ac_test_CFLAGS" = set; then
32879 CFLAGS="$ac_save_CFLAGS"
32880 else
32881 # this is the suspicious part
32882 CFLAGS=''
32884 if test "$ac_sectionLDflags" = "yes"; then
32885 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
32887 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
32888 echo "${ECHO_T}$ac_sectionLDflags" >&6
32891 # Set linker optimization flags.
32892 if test x"$with_gnu_ld" = x"yes"; then
32893 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
32901 echo "$as_me:$LINENO: checking for main in -lm" >&5
32902 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
32903 if test "${ac_cv_lib_m_main+set}" = set; then
32904 echo $ECHO_N "(cached) $ECHO_C" >&6
32905 else
32906 ac_check_lib_save_LIBS=$LIBS
32907 LIBS="-lm $LIBS"
32908 cat >conftest.$ac_ext <<_ACEOF
32909 #line $LINENO "configure"
32910 /* confdefs.h. */
32911 _ACEOF
32912 cat confdefs.h >>conftest.$ac_ext
32913 cat >>conftest.$ac_ext <<_ACEOF
32914 /* end confdefs.h. */
32918 main ()
32920 main ();
32922 return 0;
32924 _ACEOF
32925 rm -f conftest.$ac_objext conftest$ac_exeext
32926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32927 (eval $ac_link) 2>&5
32928 ac_status=$?
32929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930 (exit $ac_status); } &&
32931 { ac_try='test -s conftest$ac_exeext'
32932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32933 (eval $ac_try) 2>&5
32934 ac_status=$?
32935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32936 (exit $ac_status); }; }; then
32937 ac_cv_lib_m_main=yes
32938 else
32939 echo "$as_me: failed program was:" >&5
32940 sed 's/^/| /' conftest.$ac_ext >&5
32942 ac_cv_lib_m_main=no
32944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32945 LIBS=$ac_check_lib_save_LIBS
32947 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
32948 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
32949 if test $ac_cv_lib_m_main = yes; then
32950 cat >>confdefs.h <<_ACEOF
32951 #define HAVE_LIBM 1
32952 _ACEOF
32954 LIBS="-lm $LIBS"
32960 for ac_func in nan copysignf
32962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32963 echo "$as_me:$LINENO: checking for $ac_func" >&5
32964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32965 if eval "test \"\${$as_ac_var+set}\" = set"; then
32966 echo $ECHO_N "(cached) $ECHO_C" >&6
32967 else
32968 cat >conftest.$ac_ext <<_ACEOF
32969 #line $LINENO "configure"
32970 /* confdefs.h. */
32971 _ACEOF
32972 cat confdefs.h >>conftest.$ac_ext
32973 cat >>conftest.$ac_ext <<_ACEOF
32974 /* end confdefs.h. */
32975 /* System header to define __stub macros and hopefully few prototypes,
32976 which can conflict with char $ac_func (); below.
32977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32978 <limits.h> exists even on freestanding compilers. */
32979 #ifdef __STDC__
32980 # include <limits.h>
32981 #else
32982 # include <assert.h>
32983 #endif
32984 /* Override any gcc2 internal prototype to avoid an error. */
32985 #ifdef __cplusplus
32986 extern "C"
32988 #endif
32989 /* We use char because int might match the return type of a gcc2
32990 builtin and then its argument prototype would still apply. */
32991 char $ac_func ();
32992 /* The GNU C library defines this for functions which it implements
32993 to always fail with ENOSYS. Some functions are actually named
32994 something starting with __ and the normal name is an alias. */
32995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32996 choke me
32997 #else
32998 char (*f) () = $ac_func;
32999 #endif
33000 #ifdef __cplusplus
33002 #endif
33005 main ()
33007 return f != $ac_func;
33009 return 0;
33011 _ACEOF
33012 rm -f conftest.$ac_objext conftest$ac_exeext
33013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33014 (eval $ac_link) 2>&5
33015 ac_status=$?
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); } &&
33018 { ac_try='test -s conftest$ac_exeext'
33019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33020 (eval $ac_try) 2>&5
33021 ac_status=$?
33022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33023 (exit $ac_status); }; }; then
33024 eval "$as_ac_var=yes"
33025 else
33026 echo "$as_me: failed program was:" >&5
33027 sed 's/^/| /' conftest.$ac_ext >&5
33029 eval "$as_ac_var=no"
33031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33035 if test `eval echo '${'$as_ac_var'}'` = yes; then
33036 cat >>confdefs.h <<_ACEOF
33037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33038 _ACEOF
33040 else
33041 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
33043 done
33047 for ac_func in __signbit
33049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33050 echo "$as_me:$LINENO: checking for $ac_func" >&5
33051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33052 if eval "test \"\${$as_ac_var+set}\" = set"; then
33053 echo $ECHO_N "(cached) $ECHO_C" >&6
33054 else
33055 cat >conftest.$ac_ext <<_ACEOF
33056 #line $LINENO "configure"
33057 /* confdefs.h. */
33058 _ACEOF
33059 cat confdefs.h >>conftest.$ac_ext
33060 cat >>conftest.$ac_ext <<_ACEOF
33061 /* end confdefs.h. */
33062 /* System header to define __stub macros and hopefully few prototypes,
33063 which can conflict with char $ac_func (); below.
33064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33065 <limits.h> exists even on freestanding compilers. */
33066 #ifdef __STDC__
33067 # include <limits.h>
33068 #else
33069 # include <assert.h>
33070 #endif
33071 /* Override any gcc2 internal prototype to avoid an error. */
33072 #ifdef __cplusplus
33073 extern "C"
33075 #endif
33076 /* We use char because int might match the return type of a gcc2
33077 builtin and then its argument prototype would still apply. */
33078 char $ac_func ();
33079 /* The GNU C library defines this for functions which it implements
33080 to always fail with ENOSYS. Some functions are actually named
33081 something starting with __ and the normal name is an alias. */
33082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33083 choke me
33084 #else
33085 char (*f) () = $ac_func;
33086 #endif
33087 #ifdef __cplusplus
33089 #endif
33092 main ()
33094 return f != $ac_func;
33096 return 0;
33098 _ACEOF
33099 rm -f conftest.$ac_objext conftest$ac_exeext
33100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33101 (eval $ac_link) 2>&5
33102 ac_status=$?
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); } &&
33105 { ac_try='test -s conftest$ac_exeext'
33106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33107 (eval $ac_try) 2>&5
33108 ac_status=$?
33109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33110 (exit $ac_status); }; }; then
33111 eval "$as_ac_var=yes"
33112 else
33113 echo "$as_me: failed program was:" >&5
33114 sed 's/^/| /' conftest.$ac_ext >&5
33116 eval "$as_ac_var=no"
33118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33122 if test `eval echo '${'$as_ac_var'}'` = yes; then
33123 cat >>confdefs.h <<_ACEOF
33124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33125 _ACEOF
33127 else
33128 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
33130 done
33133 for ac_func in __signbitf
33135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33136 echo "$as_me:$LINENO: checking for $ac_func" >&5
33137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33138 if eval "test \"\${$as_ac_var+set}\" = set"; then
33139 echo $ECHO_N "(cached) $ECHO_C" >&6
33140 else
33141 cat >conftest.$ac_ext <<_ACEOF
33142 #line $LINENO "configure"
33143 /* confdefs.h. */
33144 _ACEOF
33145 cat confdefs.h >>conftest.$ac_ext
33146 cat >>conftest.$ac_ext <<_ACEOF
33147 /* end confdefs.h. */
33148 /* System header to define __stub macros and hopefully few prototypes,
33149 which can conflict with char $ac_func (); below.
33150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33151 <limits.h> exists even on freestanding compilers. */
33152 #ifdef __STDC__
33153 # include <limits.h>
33154 #else
33155 # include <assert.h>
33156 #endif
33157 /* Override any gcc2 internal prototype to avoid an error. */
33158 #ifdef __cplusplus
33159 extern "C"
33161 #endif
33162 /* We use char because int might match the return type of a gcc2
33163 builtin and then its argument prototype would still apply. */
33164 char $ac_func ();
33165 /* The GNU C library defines this for functions which it implements
33166 to always fail with ENOSYS. Some functions are actually named
33167 something starting with __ and the normal name is an alias. */
33168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33169 choke me
33170 #else
33171 char (*f) () = $ac_func;
33172 #endif
33173 #ifdef __cplusplus
33175 #endif
33178 main ()
33180 return f != $ac_func;
33182 return 0;
33184 _ACEOF
33185 rm -f conftest.$ac_objext conftest$ac_exeext
33186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33187 (eval $ac_link) 2>&5
33188 ac_status=$?
33189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190 (exit $ac_status); } &&
33191 { ac_try='test -s conftest$ac_exeext'
33192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33193 (eval $ac_try) 2>&5
33194 ac_status=$?
33195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33196 (exit $ac_status); }; }; then
33197 eval "$as_ac_var=yes"
33198 else
33199 echo "$as_me: failed program was:" >&5
33200 sed 's/^/| /' conftest.$ac_ext >&5
33202 eval "$as_ac_var=no"
33204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33208 if test `eval echo '${'$as_ac_var'}'` = yes; then
33209 cat >>confdefs.h <<_ACEOF
33210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33211 _ACEOF
33213 else
33214 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
33216 done
33219 if test x$ac_cv_func_copysignl = x"yes"; then
33221 for ac_func in __signbitl
33223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33224 echo "$as_me:$LINENO: checking for $ac_func" >&5
33225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33226 if eval "test \"\${$as_ac_var+set}\" = set"; then
33227 echo $ECHO_N "(cached) $ECHO_C" >&6
33228 else
33229 cat >conftest.$ac_ext <<_ACEOF
33230 #line $LINENO "configure"
33231 /* confdefs.h. */
33232 _ACEOF
33233 cat confdefs.h >>conftest.$ac_ext
33234 cat >>conftest.$ac_ext <<_ACEOF
33235 /* end confdefs.h. */
33236 /* System header to define __stub macros and hopefully few prototypes,
33237 which can conflict with char $ac_func (); below.
33238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33239 <limits.h> exists even on freestanding compilers. */
33240 #ifdef __STDC__
33241 # include <limits.h>
33242 #else
33243 # include <assert.h>
33244 #endif
33245 /* Override any gcc2 internal prototype to avoid an error. */
33246 #ifdef __cplusplus
33247 extern "C"
33249 #endif
33250 /* We use char because int might match the return type of a gcc2
33251 builtin and then its argument prototype would still apply. */
33252 char $ac_func ();
33253 /* The GNU C library defines this for functions which it implements
33254 to always fail with ENOSYS. Some functions are actually named
33255 something starting with __ and the normal name is an alias. */
33256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33257 choke me
33258 #else
33259 char (*f) () = $ac_func;
33260 #endif
33261 #ifdef __cplusplus
33263 #endif
33266 main ()
33268 return f != $ac_func;
33270 return 0;
33272 _ACEOF
33273 rm -f conftest.$ac_objext conftest$ac_exeext
33274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33275 (eval $ac_link) 2>&5
33276 ac_status=$?
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278 (exit $ac_status); } &&
33279 { ac_try='test -s conftest$ac_exeext'
33280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33281 (eval $ac_try) 2>&5
33282 ac_status=$?
33283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33284 (exit $ac_status); }; }; then
33285 eval "$as_ac_var=yes"
33286 else
33287 echo "$as_me: failed program was:" >&5
33288 sed 's/^/| /' conftest.$ac_ext >&5
33290 eval "$as_ac_var=no"
33292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33296 if test `eval echo '${'$as_ac_var'}'` = yes; then
33297 cat >>confdefs.h <<_ACEOF
33298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33299 _ACEOF
33301 else
33302 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
33304 done
33308 # XXX Review this. Nothing uses it.
33309 if test -n "$LIBMATHOBJS"; then
33310 need_libmath=yes
33315 # Test wchar.h for mbstate_t, which is needed for char_traits and
33316 # others even if wchar_t support is not on.
33317 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33318 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33319 cat >conftest.$ac_ext <<_ACEOF
33320 #line $LINENO "configure"
33321 /* confdefs.h. */
33322 _ACEOF
33323 cat confdefs.h >>conftest.$ac_ext
33324 cat >>conftest.$ac_ext <<_ACEOF
33325 /* end confdefs.h. */
33326 #include <wchar.h>
33328 main ()
33330 mbstate_t teststate;
33332 return 0;
33334 _ACEOF
33335 rm -f conftest.$ac_objext
33336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33337 (eval $ac_compile) 2>&5
33338 ac_status=$?
33339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340 (exit $ac_status); } &&
33341 { ac_try='test -s conftest.$ac_objext'
33342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33343 (eval $ac_try) 2>&5
33344 ac_status=$?
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); }; }; then
33347 have_mbstate_t=yes
33348 else
33349 echo "$as_me: failed program was:" >&5
33350 sed 's/^/| /' conftest.$ac_ext >&5
33352 have_mbstate_t=no
33354 rm -f conftest.$ac_objext conftest.$ac_ext
33355 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
33356 echo "${ECHO_T}$have_mbstate_t" >&6
33357 if test x"$have_mbstate_t" = xyes; then
33358 cat >>confdefs.h <<\_ACEOF
33359 #define HAVE_MBSTATE_T 1
33360 _ACEOF
33364 # Sanity check for existence of ISO C99 headers for extended encoding.
33366 for ac_header in wchar.h
33368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33370 echo "$as_me:$LINENO: checking for $ac_header" >&5
33371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33373 echo $ECHO_N "(cached) $ECHO_C" >&6
33375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33377 else
33378 # Is the header compilable?
33379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33381 cat >conftest.$ac_ext <<_ACEOF
33382 #line $LINENO "configure"
33383 /* confdefs.h. */
33384 _ACEOF
33385 cat confdefs.h >>conftest.$ac_ext
33386 cat >>conftest.$ac_ext <<_ACEOF
33387 /* end confdefs.h. */
33388 $ac_includes_default
33389 #include <$ac_header>
33390 _ACEOF
33391 rm -f conftest.$ac_objext
33392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33393 (eval $ac_compile) 2>&5
33394 ac_status=$?
33395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396 (exit $ac_status); } &&
33397 { ac_try='test -s conftest.$ac_objext'
33398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33399 (eval $ac_try) 2>&5
33400 ac_status=$?
33401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33402 (exit $ac_status); }; }; then
33403 ac_header_compiler=yes
33404 else
33405 echo "$as_me: failed program was:" >&5
33406 sed 's/^/| /' conftest.$ac_ext >&5
33408 ac_header_compiler=no
33410 rm -f conftest.$ac_objext conftest.$ac_ext
33411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33412 echo "${ECHO_T}$ac_header_compiler" >&6
33414 # Is the header present?
33415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33417 cat >conftest.$ac_ext <<_ACEOF
33418 #line $LINENO "configure"
33419 /* confdefs.h. */
33420 _ACEOF
33421 cat confdefs.h >>conftest.$ac_ext
33422 cat >>conftest.$ac_ext <<_ACEOF
33423 /* end confdefs.h. */
33424 #include <$ac_header>
33425 _ACEOF
33426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33428 ac_status=$?
33429 grep -v '^ *+' conftest.er1 >conftest.err
33430 rm -f conftest.er1
33431 cat conftest.err >&5
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); } >/dev/null; then
33434 if test -s conftest.err; then
33435 ac_cpp_err=$ac_c_preproc_warn_flag
33436 else
33437 ac_cpp_err=
33439 else
33440 ac_cpp_err=yes
33442 if test -z "$ac_cpp_err"; then
33443 ac_header_preproc=yes
33444 else
33445 echo "$as_me: failed program was:" >&5
33446 sed 's/^/| /' conftest.$ac_ext >&5
33448 ac_header_preproc=no
33450 rm -f conftest.err conftest.$ac_ext
33451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33452 echo "${ECHO_T}$ac_header_preproc" >&6
33454 # So? What about this header?
33455 case $ac_header_compiler:$ac_header_preproc in
33456 yes:no )
33457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33462 cat <<\_ASBOX
33463 ## ------------------------------------ ##
33464 ## Report this to bug-autoconf@gnu.org. ##
33465 ## ------------------------------------ ##
33466 _ASBOX
33468 sed "s/^/$as_me: WARNING: /" >&2
33470 no:yes )
33471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33478 cat <<\_ASBOX
33479 ## ------------------------------------ ##
33480 ## Report this to bug-autoconf@gnu.org. ##
33481 ## ------------------------------------ ##
33482 _ASBOX
33484 sed "s/^/$as_me: WARNING: /" >&2
33486 esac
33487 echo "$as_me:$LINENO: checking for $ac_header" >&5
33488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33490 echo $ECHO_N "(cached) $ECHO_C" >&6
33491 else
33492 eval "$as_ac_Header=$ac_header_preproc"
33494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33499 cat >>confdefs.h <<_ACEOF
33500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33501 _ACEOF
33502 ac_has_wchar_h=yes
33503 else
33504 ac_has_wchar_h=no
33507 done
33510 for ac_header in wctype.h
33512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33514 echo "$as_me:$LINENO: checking for $ac_header" >&5
33515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33517 echo $ECHO_N "(cached) $ECHO_C" >&6
33519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33521 else
33522 # Is the header compilable?
33523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33525 cat >conftest.$ac_ext <<_ACEOF
33526 #line $LINENO "configure"
33527 /* confdefs.h. */
33528 _ACEOF
33529 cat confdefs.h >>conftest.$ac_ext
33530 cat >>conftest.$ac_ext <<_ACEOF
33531 /* end confdefs.h. */
33532 $ac_includes_default
33533 #include <$ac_header>
33534 _ACEOF
33535 rm -f conftest.$ac_objext
33536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33537 (eval $ac_compile) 2>&5
33538 ac_status=$?
33539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); } &&
33541 { ac_try='test -s conftest.$ac_objext'
33542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33543 (eval $ac_try) 2>&5
33544 ac_status=$?
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); }; }; then
33547 ac_header_compiler=yes
33548 else
33549 echo "$as_me: failed program was:" >&5
33550 sed 's/^/| /' conftest.$ac_ext >&5
33552 ac_header_compiler=no
33554 rm -f conftest.$ac_objext conftest.$ac_ext
33555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33556 echo "${ECHO_T}$ac_header_compiler" >&6
33558 # Is the header present?
33559 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33561 cat >conftest.$ac_ext <<_ACEOF
33562 #line $LINENO "configure"
33563 /* confdefs.h. */
33564 _ACEOF
33565 cat confdefs.h >>conftest.$ac_ext
33566 cat >>conftest.$ac_ext <<_ACEOF
33567 /* end confdefs.h. */
33568 #include <$ac_header>
33569 _ACEOF
33570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33572 ac_status=$?
33573 grep -v '^ *+' conftest.er1 >conftest.err
33574 rm -f conftest.er1
33575 cat conftest.err >&5
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); } >/dev/null; then
33578 if test -s conftest.err; then
33579 ac_cpp_err=$ac_c_preproc_warn_flag
33580 else
33581 ac_cpp_err=
33583 else
33584 ac_cpp_err=yes
33586 if test -z "$ac_cpp_err"; then
33587 ac_header_preproc=yes
33588 else
33589 echo "$as_me: failed program was:" >&5
33590 sed 's/^/| /' conftest.$ac_ext >&5
33592 ac_header_preproc=no
33594 rm -f conftest.err conftest.$ac_ext
33595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33596 echo "${ECHO_T}$ac_header_preproc" >&6
33598 # So? What about this header?
33599 case $ac_header_compiler:$ac_header_preproc in
33600 yes:no )
33601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33606 cat <<\_ASBOX
33607 ## ------------------------------------ ##
33608 ## Report this to bug-autoconf@gnu.org. ##
33609 ## ------------------------------------ ##
33610 _ASBOX
33612 sed "s/^/$as_me: WARNING: /" >&2
33614 no:yes )
33615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33622 cat <<\_ASBOX
33623 ## ------------------------------------ ##
33624 ## Report this to bug-autoconf@gnu.org. ##
33625 ## ------------------------------------ ##
33626 _ASBOX
33628 sed "s/^/$as_me: WARNING: /" >&2
33630 esac
33631 echo "$as_me:$LINENO: checking for $ac_header" >&5
33632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33634 echo $ECHO_N "(cached) $ECHO_C" >&6
33635 else
33636 eval "$as_ac_Header=$ac_header_preproc"
33638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33643 cat >>confdefs.h <<_ACEOF
33644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33645 _ACEOF
33646 ac_has_wctype_h=yes
33647 else
33648 ac_has_wctype_h=no
33651 done
33654 # Only continue checking if the ISO C99 headers exist and support is on.
33655 if test x"$ac_has_wchar_h" = xyes &&
33656 test x"$ac_has_wctype_h" = xyes &&
33657 test x"$enable_c_mbchar" != xno; then
33659 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
33660 # numeric_limits can instantiate type_traits<wchar_t>
33661 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
33662 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
33663 cat >conftest.$ac_ext <<_ACEOF
33664 #line $LINENO "configure"
33665 /* confdefs.h. */
33666 _ACEOF
33667 cat confdefs.h >>conftest.$ac_ext
33668 cat >>conftest.$ac_ext <<_ACEOF
33669 /* end confdefs.h. */
33670 #include <wchar.h>
33672 main ()
33674 int i = WCHAR_MIN; int j = WCHAR_MAX;
33676 return 0;
33678 _ACEOF
33679 rm -f conftest.$ac_objext
33680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33681 (eval $ac_compile) 2>&5
33682 ac_status=$?
33683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33684 (exit $ac_status); } &&
33685 { ac_try='test -s conftest.$ac_objext'
33686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33687 (eval $ac_try) 2>&5
33688 ac_status=$?
33689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33690 (exit $ac_status); }; }; then
33691 has_wchar_minmax=yes
33692 else
33693 echo "$as_me: failed program was:" >&5
33694 sed 's/^/| /' conftest.$ac_ext >&5
33696 has_wchar_minmax=no
33698 rm -f conftest.$ac_objext conftest.$ac_ext
33699 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
33700 echo "${ECHO_T}$has_wchar_minmax" >&6
33702 # Test wchar.h for WEOF, which is what we use to determine whether
33703 # to specialize for char_traits<wchar_t> or not.
33704 echo "$as_me:$LINENO: checking for WEOF" >&5
33705 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
33706 cat >conftest.$ac_ext <<_ACEOF
33707 #line $LINENO "configure"
33708 /* confdefs.h. */
33709 _ACEOF
33710 cat confdefs.h >>conftest.$ac_ext
33711 cat >>conftest.$ac_ext <<_ACEOF
33712 /* end confdefs.h. */
33714 #include <wchar.h>
33715 #include <stddef.h>
33717 main ()
33719 wint_t i = WEOF;
33721 return 0;
33723 _ACEOF
33724 rm -f conftest.$ac_objext
33725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33726 (eval $ac_compile) 2>&5
33727 ac_status=$?
33728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33729 (exit $ac_status); } &&
33730 { ac_try='test -s conftest.$ac_objext'
33731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33732 (eval $ac_try) 2>&5
33733 ac_status=$?
33734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735 (exit $ac_status); }; }; then
33736 has_weof=yes
33737 else
33738 echo "$as_me: failed program was:" >&5
33739 sed 's/^/| /' conftest.$ac_ext >&5
33741 has_weof=no
33743 rm -f conftest.$ac_objext conftest.$ac_ext
33744 echo "$as_me:$LINENO: result: $has_weof" >&5
33745 echo "${ECHO_T}$has_weof" >&6
33747 # Tests for wide character functions used in char_traits<wchar_t>.
33748 ac_wfuncs=yes
33755 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
33757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33758 echo "$as_me:$LINENO: checking for $ac_func" >&5
33759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33760 if eval "test \"\${$as_ac_var+set}\" = set"; then
33761 echo $ECHO_N "(cached) $ECHO_C" >&6
33762 else
33763 cat >conftest.$ac_ext <<_ACEOF
33764 #line $LINENO "configure"
33765 /* confdefs.h. */
33766 _ACEOF
33767 cat confdefs.h >>conftest.$ac_ext
33768 cat >>conftest.$ac_ext <<_ACEOF
33769 /* end confdefs.h. */
33770 /* System header to define __stub macros and hopefully few prototypes,
33771 which can conflict with char $ac_func (); below.
33772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33773 <limits.h> exists even on freestanding compilers. */
33774 #ifdef __STDC__
33775 # include <limits.h>
33776 #else
33777 # include <assert.h>
33778 #endif
33779 /* Override any gcc2 internal prototype to avoid an error. */
33780 #ifdef __cplusplus
33781 extern "C"
33783 #endif
33784 /* We use char because int might match the return type of a gcc2
33785 builtin and then its argument prototype would still apply. */
33786 char $ac_func ();
33787 /* The GNU C library defines this for functions which it implements
33788 to always fail with ENOSYS. Some functions are actually named
33789 something starting with __ and the normal name is an alias. */
33790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33791 choke me
33792 #else
33793 char (*f) () = $ac_func;
33794 #endif
33795 #ifdef __cplusplus
33797 #endif
33800 main ()
33802 return f != $ac_func;
33804 return 0;
33806 _ACEOF
33807 rm -f conftest.$ac_objext conftest$ac_exeext
33808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33809 (eval $ac_link) 2>&5
33810 ac_status=$?
33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812 (exit $ac_status); } &&
33813 { ac_try='test -s conftest$ac_exeext'
33814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33815 (eval $ac_try) 2>&5
33816 ac_status=$?
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; }; then
33819 eval "$as_ac_var=yes"
33820 else
33821 echo "$as_me: failed program was:" >&5
33822 sed 's/^/| /' conftest.$ac_ext >&5
33824 eval "$as_ac_var=no"
33826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33830 if test `eval echo '${'$as_ac_var'}'` = yes; then
33831 cat >>confdefs.h <<_ACEOF
33832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33833 _ACEOF
33835 else
33836 ac_wfuncs=no
33838 done
33841 # Checks for names injected into std:: by the c_std headers.
33892 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
33893 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
33894 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
33895 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
33896 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
33897 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
33899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33900 echo "$as_me:$LINENO: checking for $ac_func" >&5
33901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33902 if eval "test \"\${$as_ac_var+set}\" = set"; then
33903 echo $ECHO_N "(cached) $ECHO_C" >&6
33904 else
33905 cat >conftest.$ac_ext <<_ACEOF
33906 #line $LINENO "configure"
33907 /* confdefs.h. */
33908 _ACEOF
33909 cat confdefs.h >>conftest.$ac_ext
33910 cat >>conftest.$ac_ext <<_ACEOF
33911 /* end confdefs.h. */
33912 /* System header to define __stub macros and hopefully few prototypes,
33913 which can conflict with char $ac_func (); below.
33914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33915 <limits.h> exists even on freestanding compilers. */
33916 #ifdef __STDC__
33917 # include <limits.h>
33918 #else
33919 # include <assert.h>
33920 #endif
33921 /* Override any gcc2 internal prototype to avoid an error. */
33922 #ifdef __cplusplus
33923 extern "C"
33925 #endif
33926 /* We use char because int might match the return type of a gcc2
33927 builtin and then its argument prototype would still apply. */
33928 char $ac_func ();
33929 /* The GNU C library defines this for functions which it implements
33930 to always fail with ENOSYS. Some functions are actually named
33931 something starting with __ and the normal name is an alias. */
33932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33933 choke me
33934 #else
33935 char (*f) () = $ac_func;
33936 #endif
33937 #ifdef __cplusplus
33939 #endif
33942 main ()
33944 return f != $ac_func;
33946 return 0;
33948 _ACEOF
33949 rm -f conftest.$ac_objext conftest$ac_exeext
33950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33951 (eval $ac_link) 2>&5
33952 ac_status=$?
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); } &&
33955 { ac_try='test -s conftest$ac_exeext'
33956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33957 (eval $ac_try) 2>&5
33958 ac_status=$?
33959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33960 (exit $ac_status); }; }; then
33961 eval "$as_ac_var=yes"
33962 else
33963 echo "$as_me: failed program was:" >&5
33964 sed 's/^/| /' conftest.$ac_ext >&5
33966 eval "$as_ac_var=no"
33968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33972 if test `eval echo '${'$as_ac_var'}'` = yes; then
33973 cat >>confdefs.h <<_ACEOF
33974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33975 _ACEOF
33977 else
33978 ac_wfuncs=no
33980 done
33983 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
33984 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
33985 if test x"$has_weof" = xyes &&
33986 test x"$has_wchar_minmax" = xyes &&
33987 test x"$ac_wfuncs" = xyes;
33988 then
33989 ac_isoC99_wchar_t=yes
33990 else
33991 ac_isoC99_wchar_t=no
33993 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
33994 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
33996 # Use iconv for wchar_t to char conversions. As such, check for
33997 # X/Open Portability Guide, version 2 features (XPG2).
33998 if test "${ac_cv_header_iconv_h+set}" = set; then
33999 echo "$as_me:$LINENO: checking for iconv.h" >&5
34000 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
34001 if test "${ac_cv_header_iconv_h+set}" = set; then
34002 echo $ECHO_N "(cached) $ECHO_C" >&6
34004 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
34005 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
34006 else
34007 # Is the header compilable?
34008 echo "$as_me:$LINENO: checking iconv.h usability" >&5
34009 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
34010 cat >conftest.$ac_ext <<_ACEOF
34011 #line $LINENO "configure"
34012 /* confdefs.h. */
34013 _ACEOF
34014 cat confdefs.h >>conftest.$ac_ext
34015 cat >>conftest.$ac_ext <<_ACEOF
34016 /* end confdefs.h. */
34017 $ac_includes_default
34018 #include <iconv.h>
34019 _ACEOF
34020 rm -f conftest.$ac_objext
34021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34022 (eval $ac_compile) 2>&5
34023 ac_status=$?
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); } &&
34026 { ac_try='test -s conftest.$ac_objext'
34027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34028 (eval $ac_try) 2>&5
34029 ac_status=$?
34030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031 (exit $ac_status); }; }; then
34032 ac_header_compiler=yes
34033 else
34034 echo "$as_me: failed program was:" >&5
34035 sed 's/^/| /' conftest.$ac_ext >&5
34037 ac_header_compiler=no
34039 rm -f conftest.$ac_objext conftest.$ac_ext
34040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34041 echo "${ECHO_T}$ac_header_compiler" >&6
34043 # Is the header present?
34044 echo "$as_me:$LINENO: checking iconv.h presence" >&5
34045 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
34046 cat >conftest.$ac_ext <<_ACEOF
34047 #line $LINENO "configure"
34048 /* confdefs.h. */
34049 _ACEOF
34050 cat confdefs.h >>conftest.$ac_ext
34051 cat >>conftest.$ac_ext <<_ACEOF
34052 /* end confdefs.h. */
34053 #include <iconv.h>
34054 _ACEOF
34055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34057 ac_status=$?
34058 grep -v '^ *+' conftest.er1 >conftest.err
34059 rm -f conftest.er1
34060 cat conftest.err >&5
34061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062 (exit $ac_status); } >/dev/null; then
34063 if test -s conftest.err; then
34064 ac_cpp_err=$ac_c_preproc_warn_flag
34065 else
34066 ac_cpp_err=
34068 else
34069 ac_cpp_err=yes
34071 if test -z "$ac_cpp_err"; then
34072 ac_header_preproc=yes
34073 else
34074 echo "$as_me: failed program was:" >&5
34075 sed 's/^/| /' conftest.$ac_ext >&5
34077 ac_header_preproc=no
34079 rm -f conftest.err conftest.$ac_ext
34080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34081 echo "${ECHO_T}$ac_header_preproc" >&6
34083 # So? What about this header?
34084 case $ac_header_compiler:$ac_header_preproc in
34085 yes:no )
34086 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
34087 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34088 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
34089 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
34091 cat <<\_ASBOX
34092 ## ------------------------------------ ##
34093 ## Report this to bug-autoconf@gnu.org. ##
34094 ## ------------------------------------ ##
34095 _ASBOX
34097 sed "s/^/$as_me: WARNING: /" >&2
34099 no:yes )
34100 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
34101 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
34102 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
34103 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
34104 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
34105 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
34107 cat <<\_ASBOX
34108 ## ------------------------------------ ##
34109 ## Report this to bug-autoconf@gnu.org. ##
34110 ## ------------------------------------ ##
34111 _ASBOX
34113 sed "s/^/$as_me: WARNING: /" >&2
34115 esac
34116 echo "$as_me:$LINENO: checking for iconv.h" >&5
34117 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
34118 if test "${ac_cv_header_iconv_h+set}" = set; then
34119 echo $ECHO_N "(cached) $ECHO_C" >&6
34120 else
34121 ac_cv_header_iconv_h=$ac_header_preproc
34123 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
34124 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
34127 if test $ac_cv_header_iconv_h = yes; then
34128 ac_has_iconv_h=yes
34129 else
34130 ac_has_iconv_h=no
34134 if test "${ac_cv_header_langinfo_h+set}" = set; then
34135 echo "$as_me:$LINENO: checking for langinfo.h" >&5
34136 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
34137 if test "${ac_cv_header_langinfo_h+set}" = set; then
34138 echo $ECHO_N "(cached) $ECHO_C" >&6
34140 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
34141 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
34142 else
34143 # Is the header compilable?
34144 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
34145 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
34146 cat >conftest.$ac_ext <<_ACEOF
34147 #line $LINENO "configure"
34148 /* confdefs.h. */
34149 _ACEOF
34150 cat confdefs.h >>conftest.$ac_ext
34151 cat >>conftest.$ac_ext <<_ACEOF
34152 /* end confdefs.h. */
34153 $ac_includes_default
34154 #include <langinfo.h>
34155 _ACEOF
34156 rm -f conftest.$ac_objext
34157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34158 (eval $ac_compile) 2>&5
34159 ac_status=$?
34160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34161 (exit $ac_status); } &&
34162 { ac_try='test -s conftest.$ac_objext'
34163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34164 (eval $ac_try) 2>&5
34165 ac_status=$?
34166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167 (exit $ac_status); }; }; then
34168 ac_header_compiler=yes
34169 else
34170 echo "$as_me: failed program was:" >&5
34171 sed 's/^/| /' conftest.$ac_ext >&5
34173 ac_header_compiler=no
34175 rm -f conftest.$ac_objext conftest.$ac_ext
34176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34177 echo "${ECHO_T}$ac_header_compiler" >&6
34179 # Is the header present?
34180 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
34181 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
34182 cat >conftest.$ac_ext <<_ACEOF
34183 #line $LINENO "configure"
34184 /* confdefs.h. */
34185 _ACEOF
34186 cat confdefs.h >>conftest.$ac_ext
34187 cat >>conftest.$ac_ext <<_ACEOF
34188 /* end confdefs.h. */
34189 #include <langinfo.h>
34190 _ACEOF
34191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34193 ac_status=$?
34194 grep -v '^ *+' conftest.er1 >conftest.err
34195 rm -f conftest.er1
34196 cat conftest.err >&5
34197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198 (exit $ac_status); } >/dev/null; then
34199 if test -s conftest.err; then
34200 ac_cpp_err=$ac_c_preproc_warn_flag
34201 else
34202 ac_cpp_err=
34204 else
34205 ac_cpp_err=yes
34207 if test -z "$ac_cpp_err"; then
34208 ac_header_preproc=yes
34209 else
34210 echo "$as_me: failed program was:" >&5
34211 sed 's/^/| /' conftest.$ac_ext >&5
34213 ac_header_preproc=no
34215 rm -f conftest.err conftest.$ac_ext
34216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34217 echo "${ECHO_T}$ac_header_preproc" >&6
34219 # So? What about this header?
34220 case $ac_header_compiler:$ac_header_preproc in
34221 yes:no )
34222 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
34223 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34224 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
34225 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
34227 cat <<\_ASBOX
34228 ## ------------------------------------ ##
34229 ## Report this to bug-autoconf@gnu.org. ##
34230 ## ------------------------------------ ##
34231 _ASBOX
34233 sed "s/^/$as_me: WARNING: /" >&2
34235 no:yes )
34236 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
34237 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
34238 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
34239 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
34240 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
34241 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
34243 cat <<\_ASBOX
34244 ## ------------------------------------ ##
34245 ## Report this to bug-autoconf@gnu.org. ##
34246 ## ------------------------------------ ##
34247 _ASBOX
34249 sed "s/^/$as_me: WARNING: /" >&2
34251 esac
34252 echo "$as_me:$LINENO: checking for langinfo.h" >&5
34253 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
34254 if test "${ac_cv_header_langinfo_h+set}" = set; then
34255 echo $ECHO_N "(cached) $ECHO_C" >&6
34256 else
34257 ac_cv_header_langinfo_h=$ac_header_preproc
34259 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
34260 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
34263 if test $ac_cv_header_langinfo_h = yes; then
34264 ac_has_langinfo_h=yes
34265 else
34266 ac_has_langinfo_h=no
34271 # Check for existence of libiconv.a providing XPG2 wchar_t support.
34272 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
34273 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
34274 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
34275 echo $ECHO_N "(cached) $ECHO_C" >&6
34276 else
34277 ac_check_lib_save_LIBS=$LIBS
34278 LIBS="-liconv $LIBS"
34279 cat >conftest.$ac_ext <<_ACEOF
34280 #line $LINENO "configure"
34281 /* confdefs.h. */
34282 _ACEOF
34283 cat confdefs.h >>conftest.$ac_ext
34284 cat >>conftest.$ac_ext <<_ACEOF
34285 /* end confdefs.h. */
34287 /* Override any gcc2 internal prototype to avoid an error. */
34288 #ifdef __cplusplus
34289 extern "C"
34290 #endif
34291 /* We use char because int might match the return type of a gcc2
34292 builtin and then its argument prototype would still apply. */
34293 char iconv ();
34295 main ()
34297 iconv ();
34299 return 0;
34301 _ACEOF
34302 rm -f conftest.$ac_objext conftest$ac_exeext
34303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34304 (eval $ac_link) 2>&5
34305 ac_status=$?
34306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34307 (exit $ac_status); } &&
34308 { ac_try='test -s conftest$ac_exeext'
34309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34310 (eval $ac_try) 2>&5
34311 ac_status=$?
34312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34313 (exit $ac_status); }; }; then
34314 ac_cv_lib_iconv_iconv=yes
34315 else
34316 echo "$as_me: failed program was:" >&5
34317 sed 's/^/| /' conftest.$ac_ext >&5
34319 ac_cv_lib_iconv_iconv=no
34321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34322 LIBS=$ac_check_lib_save_LIBS
34324 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
34325 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
34326 if test $ac_cv_lib_iconv_iconv = yes; then
34327 libiconv="-liconv"
34330 ac_save_LIBS="$LIBS"
34331 LIBS="$LIBS $libiconv"
34337 for ac_func in iconv_open iconv_close iconv nl_langinfo
34339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34340 echo "$as_me:$LINENO: checking for $ac_func" >&5
34341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34342 if eval "test \"\${$as_ac_var+set}\" = set"; then
34343 echo $ECHO_N "(cached) $ECHO_C" >&6
34344 else
34345 cat >conftest.$ac_ext <<_ACEOF
34346 #line $LINENO "configure"
34347 /* confdefs.h. */
34348 _ACEOF
34349 cat confdefs.h >>conftest.$ac_ext
34350 cat >>conftest.$ac_ext <<_ACEOF
34351 /* end confdefs.h. */
34352 /* System header to define __stub macros and hopefully few prototypes,
34353 which can conflict with char $ac_func (); below.
34354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34355 <limits.h> exists even on freestanding compilers. */
34356 #ifdef __STDC__
34357 # include <limits.h>
34358 #else
34359 # include <assert.h>
34360 #endif
34361 /* Override any gcc2 internal prototype to avoid an error. */
34362 #ifdef __cplusplus
34363 extern "C"
34365 #endif
34366 /* We use char because int might match the return type of a gcc2
34367 builtin and then its argument prototype would still apply. */
34368 char $ac_func ();
34369 /* The GNU C library defines this for functions which it implements
34370 to always fail with ENOSYS. Some functions are actually named
34371 something starting with __ and the normal name is an alias. */
34372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34373 choke me
34374 #else
34375 char (*f) () = $ac_func;
34376 #endif
34377 #ifdef __cplusplus
34379 #endif
34382 main ()
34384 return f != $ac_func;
34386 return 0;
34388 _ACEOF
34389 rm -f conftest.$ac_objext conftest$ac_exeext
34390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34391 (eval $ac_link) 2>&5
34392 ac_status=$?
34393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394 (exit $ac_status); } &&
34395 { ac_try='test -s conftest$ac_exeext'
34396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34397 (eval $ac_try) 2>&5
34398 ac_status=$?
34399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400 (exit $ac_status); }; }; then
34401 eval "$as_ac_var=yes"
34402 else
34403 echo "$as_me: failed program was:" >&5
34404 sed 's/^/| /' conftest.$ac_ext >&5
34406 eval "$as_ac_var=no"
34408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34412 if test `eval echo '${'$as_ac_var'}'` = yes; then
34413 cat >>confdefs.h <<_ACEOF
34414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34415 _ACEOF
34416 ac_XPG2funcs=yes
34417 else
34418 ac_XPG2funcs=no
34420 done
34423 LIBS="$ac_save_LIBS"
34425 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
34426 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
34427 if test x"$ac_has_iconv_h" = xyes &&
34428 test x"$ac_has_langinfo_h" = xyes &&
34429 test x"$ac_XPG2funcs" = xyes;
34430 then
34431 ac_XPG2_wchar_t=yes
34432 else
34433 ac_XPG2_wchar_t=no
34435 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
34436 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
34438 # At the moment, only enable wchar_t specializations if all the
34439 # above support is present.
34440 if test x"$ac_isoC99_wchar_t" = xyes &&
34441 test x"$ac_XPG2_wchar_t" = xyes;
34442 then
34443 cat >>confdefs.h <<\_ACEOF
34444 #define _GLIBCXX_USE_WCHAR_T 1
34445 _ACEOF
34447 enable_wchar_t=yes
34450 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
34451 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
34452 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
34453 echo "${ECHO_T}$enable_wchar_t" >&6
34456 *-netbsd*)
34457 #os_include_dir="os/bsd/netbsd"
34470 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
34471 machine/endian.h machine/param.h sys/machine.h sys/types.h \
34472 fp.h locale.h float.h inttypes.h
34474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34476 echo "$as_me:$LINENO: checking for $ac_header" >&5
34477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34479 echo $ECHO_N "(cached) $ECHO_C" >&6
34481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34483 else
34484 # Is the header compilable?
34485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34487 cat >conftest.$ac_ext <<_ACEOF
34488 #line $LINENO "configure"
34489 /* confdefs.h. */
34490 _ACEOF
34491 cat confdefs.h >>conftest.$ac_ext
34492 cat >>conftest.$ac_ext <<_ACEOF
34493 /* end confdefs.h. */
34494 $ac_includes_default
34495 #include <$ac_header>
34496 _ACEOF
34497 rm -f conftest.$ac_objext
34498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34499 (eval $ac_compile) 2>&5
34500 ac_status=$?
34501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34502 (exit $ac_status); } &&
34503 { ac_try='test -s conftest.$ac_objext'
34504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34505 (eval $ac_try) 2>&5
34506 ac_status=$?
34507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34508 (exit $ac_status); }; }; then
34509 ac_header_compiler=yes
34510 else
34511 echo "$as_me: failed program was:" >&5
34512 sed 's/^/| /' conftest.$ac_ext >&5
34514 ac_header_compiler=no
34516 rm -f conftest.$ac_objext conftest.$ac_ext
34517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34518 echo "${ECHO_T}$ac_header_compiler" >&6
34520 # Is the header present?
34521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34523 cat >conftest.$ac_ext <<_ACEOF
34524 #line $LINENO "configure"
34525 /* confdefs.h. */
34526 _ACEOF
34527 cat confdefs.h >>conftest.$ac_ext
34528 cat >>conftest.$ac_ext <<_ACEOF
34529 /* end confdefs.h. */
34530 #include <$ac_header>
34531 _ACEOF
34532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34534 ac_status=$?
34535 grep -v '^ *+' conftest.er1 >conftest.err
34536 rm -f conftest.er1
34537 cat conftest.err >&5
34538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34539 (exit $ac_status); } >/dev/null; then
34540 if test -s conftest.err; then
34541 ac_cpp_err=$ac_c_preproc_warn_flag
34542 else
34543 ac_cpp_err=
34545 else
34546 ac_cpp_err=yes
34548 if test -z "$ac_cpp_err"; then
34549 ac_header_preproc=yes
34550 else
34551 echo "$as_me: failed program was:" >&5
34552 sed 's/^/| /' conftest.$ac_ext >&5
34554 ac_header_preproc=no
34556 rm -f conftest.err conftest.$ac_ext
34557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34558 echo "${ECHO_T}$ac_header_preproc" >&6
34560 # So? What about this header?
34561 case $ac_header_compiler:$ac_header_preproc in
34562 yes:no )
34563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34568 cat <<\_ASBOX
34569 ## ------------------------------------ ##
34570 ## Report this to bug-autoconf@gnu.org. ##
34571 ## ------------------------------------ ##
34572 _ASBOX
34574 sed "s/^/$as_me: WARNING: /" >&2
34576 no:yes )
34577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34584 cat <<\_ASBOX
34585 ## ------------------------------------ ##
34586 ## Report this to bug-autoconf@gnu.org. ##
34587 ## ------------------------------------ ##
34588 _ASBOX
34590 sed "s/^/$as_me: WARNING: /" >&2
34592 esac
34593 echo "$as_me:$LINENO: checking for $ac_header" >&5
34594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34596 echo $ECHO_N "(cached) $ECHO_C" >&6
34597 else
34598 eval "$as_ac_Header=$ac_header_preproc"
34600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34605 cat >>confdefs.h <<_ACEOF
34606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34607 _ACEOF
34611 done
34613 SECTION_FLAGS='-ffunction-sections -fdata-sections'
34616 # If we're not using GNU ld, then there's no point in even trying these
34617 # tests. Check for that first. We should have already tested for gld
34618 # by now (in libtool), but require it now just to be safe...
34619 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
34620 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
34624 # The name set by libtool depends on the version of libtool. Shame on us
34625 # for depending on an impl detail, but c'est la vie. Older versions used
34626 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
34627 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
34628 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
34629 # set (hence we're using an older libtool), then set it.
34630 if test x${with_gnu_ld+set} != xset; then
34631 if test x${ac_cv_prog_gnu_ld+set} != xset; then
34632 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
34633 with_gnu_ld=no
34634 else
34635 with_gnu_ld=$ac_cv_prog_gnu_ld
34639 # Start by getting the version number. I think the libtool test already
34640 # does some of this, but throws away the result.
34642 ldver=`$LD --version 2>/dev/null | head -1 | \
34643 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
34645 glibcxx_gnu_ld_version=`echo $ldver | \
34646 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
34648 # Set --gc-sections.
34649 if test "$with_gnu_ld" = "notbroken"; then
34650 # GNU ld it is! Joy and bunny rabbits!
34652 # All these tests are for C++; save the language and the compiler flags.
34653 # Need to do this so that g++ won't try to link in libstdc++
34654 ac_test_CFLAGS="${CFLAGS+set}"
34655 ac_save_CFLAGS="$CFLAGS"
34656 CFLAGS='-x c++ -Wl,--gc-sections'
34658 # Check for -Wl,--gc-sections
34659 # XXX This test is broken at the moment, as symbols required for linking
34660 # are now in libsupc++ (not built yet). In addition, this test has
34661 # cored on solaris in the past. In addition, --gc-sections doesn't
34662 # really work at the moment (keeps on discarding used sections, first
34663 # .eh_frame and now some of the glibc sections for iconv).
34664 # Bzzzzt. Thanks for playing, maybe next time.
34665 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
34666 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
34667 if test "$cross_compiling" = yes; then
34668 ac_sectionLDflags=yes
34669 else
34670 cat >conftest.$ac_ext <<_ACEOF
34671 #line $LINENO "configure"
34672 /* confdefs.h. */
34673 _ACEOF
34674 cat confdefs.h >>conftest.$ac_ext
34675 cat >>conftest.$ac_ext <<_ACEOF
34676 /* end confdefs.h. */
34678 int main(void)
34680 try { throw 1; }
34681 catch (...) { };
34682 return 0;
34685 _ACEOF
34686 rm -f conftest$ac_exeext
34687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34688 (eval $ac_link) 2>&5
34689 ac_status=$?
34690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34693 (eval $ac_try) 2>&5
34694 ac_status=$?
34695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34696 (exit $ac_status); }; }; then
34697 ac_sectionLDflags=yes
34698 else
34699 echo "$as_me: program exited with status $ac_status" >&5
34700 echo "$as_me: failed program was:" >&5
34701 sed 's/^/| /' conftest.$ac_ext >&5
34703 ( exit $ac_status )
34704 ac_sectionLDflags=no
34706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34708 if test "$ac_test_CFLAGS" = set; then
34709 CFLAGS="$ac_save_CFLAGS"
34710 else
34711 # this is the suspicious part
34712 CFLAGS=''
34714 if test "$ac_sectionLDflags" = "yes"; then
34715 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
34717 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
34718 echo "${ECHO_T}$ac_sectionLDflags" >&6
34721 # Set linker optimization flags.
34722 if test x"$with_gnu_ld" = x"yes"; then
34723 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
34731 echo "$as_me:$LINENO: checking for main in -lm" >&5
34732 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
34733 if test "${ac_cv_lib_m_main+set}" = set; then
34734 echo $ECHO_N "(cached) $ECHO_C" >&6
34735 else
34736 ac_check_lib_save_LIBS=$LIBS
34737 LIBS="-lm $LIBS"
34738 cat >conftest.$ac_ext <<_ACEOF
34739 #line $LINENO "configure"
34740 /* confdefs.h. */
34741 _ACEOF
34742 cat confdefs.h >>conftest.$ac_ext
34743 cat >>conftest.$ac_ext <<_ACEOF
34744 /* end confdefs.h. */
34748 main ()
34750 main ();
34752 return 0;
34754 _ACEOF
34755 rm -f conftest.$ac_objext conftest$ac_exeext
34756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34757 (eval $ac_link) 2>&5
34758 ac_status=$?
34759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760 (exit $ac_status); } &&
34761 { ac_try='test -s conftest$ac_exeext'
34762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34763 (eval $ac_try) 2>&5
34764 ac_status=$?
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); }; }; then
34767 ac_cv_lib_m_main=yes
34768 else
34769 echo "$as_me: failed program was:" >&5
34770 sed 's/^/| /' conftest.$ac_ext >&5
34772 ac_cv_lib_m_main=no
34774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34775 LIBS=$ac_check_lib_save_LIBS
34777 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
34778 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
34779 if test $ac_cv_lib_m_main = yes; then
34780 cat >>confdefs.h <<_ACEOF
34781 #define HAVE_LIBM 1
34782 _ACEOF
34784 LIBS="-lm $LIBS"
34790 for ac_func in nan copysignf
34792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34793 echo "$as_me:$LINENO: checking for $ac_func" >&5
34794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34795 if eval "test \"\${$as_ac_var+set}\" = set"; then
34796 echo $ECHO_N "(cached) $ECHO_C" >&6
34797 else
34798 cat >conftest.$ac_ext <<_ACEOF
34799 #line $LINENO "configure"
34800 /* confdefs.h. */
34801 _ACEOF
34802 cat confdefs.h >>conftest.$ac_ext
34803 cat >>conftest.$ac_ext <<_ACEOF
34804 /* end confdefs.h. */
34805 /* System header to define __stub macros and hopefully few prototypes,
34806 which can conflict with char $ac_func (); below.
34807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34808 <limits.h> exists even on freestanding compilers. */
34809 #ifdef __STDC__
34810 # include <limits.h>
34811 #else
34812 # include <assert.h>
34813 #endif
34814 /* Override any gcc2 internal prototype to avoid an error. */
34815 #ifdef __cplusplus
34816 extern "C"
34818 #endif
34819 /* We use char because int might match the return type of a gcc2
34820 builtin and then its argument prototype would still apply. */
34821 char $ac_func ();
34822 /* The GNU C library defines this for functions which it implements
34823 to always fail with ENOSYS. Some functions are actually named
34824 something starting with __ and the normal name is an alias. */
34825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34826 choke me
34827 #else
34828 char (*f) () = $ac_func;
34829 #endif
34830 #ifdef __cplusplus
34832 #endif
34835 main ()
34837 return f != $ac_func;
34839 return 0;
34841 _ACEOF
34842 rm -f conftest.$ac_objext conftest$ac_exeext
34843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34844 (eval $ac_link) 2>&5
34845 ac_status=$?
34846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34847 (exit $ac_status); } &&
34848 { ac_try='test -s conftest$ac_exeext'
34849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34850 (eval $ac_try) 2>&5
34851 ac_status=$?
34852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34853 (exit $ac_status); }; }; then
34854 eval "$as_ac_var=yes"
34855 else
34856 echo "$as_me: failed program was:" >&5
34857 sed 's/^/| /' conftest.$ac_ext >&5
34859 eval "$as_ac_var=no"
34861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34865 if test `eval echo '${'$as_ac_var'}'` = yes; then
34866 cat >>confdefs.h <<_ACEOF
34867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34868 _ACEOF
34870 else
34871 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
34873 done
34877 for ac_func in __signbit
34879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34880 echo "$as_me:$LINENO: checking for $ac_func" >&5
34881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34882 if eval "test \"\${$as_ac_var+set}\" = set"; then
34883 echo $ECHO_N "(cached) $ECHO_C" >&6
34884 else
34885 cat >conftest.$ac_ext <<_ACEOF
34886 #line $LINENO "configure"
34887 /* confdefs.h. */
34888 _ACEOF
34889 cat confdefs.h >>conftest.$ac_ext
34890 cat >>conftest.$ac_ext <<_ACEOF
34891 /* end confdefs.h. */
34892 /* System header to define __stub macros and hopefully few prototypes,
34893 which can conflict with char $ac_func (); below.
34894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34895 <limits.h> exists even on freestanding compilers. */
34896 #ifdef __STDC__
34897 # include <limits.h>
34898 #else
34899 # include <assert.h>
34900 #endif
34901 /* Override any gcc2 internal prototype to avoid an error. */
34902 #ifdef __cplusplus
34903 extern "C"
34905 #endif
34906 /* We use char because int might match the return type of a gcc2
34907 builtin and then its argument prototype would still apply. */
34908 char $ac_func ();
34909 /* The GNU C library defines this for functions which it implements
34910 to always fail with ENOSYS. Some functions are actually named
34911 something starting with __ and the normal name is an alias. */
34912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34913 choke me
34914 #else
34915 char (*f) () = $ac_func;
34916 #endif
34917 #ifdef __cplusplus
34919 #endif
34922 main ()
34924 return f != $ac_func;
34926 return 0;
34928 _ACEOF
34929 rm -f conftest.$ac_objext conftest$ac_exeext
34930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34931 (eval $ac_link) 2>&5
34932 ac_status=$?
34933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934 (exit $ac_status); } &&
34935 { ac_try='test -s conftest$ac_exeext'
34936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34937 (eval $ac_try) 2>&5
34938 ac_status=$?
34939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940 (exit $ac_status); }; }; then
34941 eval "$as_ac_var=yes"
34942 else
34943 echo "$as_me: failed program was:" >&5
34944 sed 's/^/| /' conftest.$ac_ext >&5
34946 eval "$as_ac_var=no"
34948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34952 if test `eval echo '${'$as_ac_var'}'` = yes; then
34953 cat >>confdefs.h <<_ACEOF
34954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34955 _ACEOF
34957 else
34958 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
34960 done
34963 for ac_func in __signbitf
34965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34966 echo "$as_me:$LINENO: checking for $ac_func" >&5
34967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34968 if eval "test \"\${$as_ac_var+set}\" = set"; then
34969 echo $ECHO_N "(cached) $ECHO_C" >&6
34970 else
34971 cat >conftest.$ac_ext <<_ACEOF
34972 #line $LINENO "configure"
34973 /* confdefs.h. */
34974 _ACEOF
34975 cat confdefs.h >>conftest.$ac_ext
34976 cat >>conftest.$ac_ext <<_ACEOF
34977 /* end confdefs.h. */
34978 /* System header to define __stub macros and hopefully few prototypes,
34979 which can conflict with char $ac_func (); below.
34980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34981 <limits.h> exists even on freestanding compilers. */
34982 #ifdef __STDC__
34983 # include <limits.h>
34984 #else
34985 # include <assert.h>
34986 #endif
34987 /* Override any gcc2 internal prototype to avoid an error. */
34988 #ifdef __cplusplus
34989 extern "C"
34991 #endif
34992 /* We use char because int might match the return type of a gcc2
34993 builtin and then its argument prototype would still apply. */
34994 char $ac_func ();
34995 /* The GNU C library defines this for functions which it implements
34996 to always fail with ENOSYS. Some functions are actually named
34997 something starting with __ and the normal name is an alias. */
34998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34999 choke me
35000 #else
35001 char (*f) () = $ac_func;
35002 #endif
35003 #ifdef __cplusplus
35005 #endif
35008 main ()
35010 return f != $ac_func;
35012 return 0;
35014 _ACEOF
35015 rm -f conftest.$ac_objext conftest$ac_exeext
35016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35017 (eval $ac_link) 2>&5
35018 ac_status=$?
35019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35020 (exit $ac_status); } &&
35021 { ac_try='test -s conftest$ac_exeext'
35022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35023 (eval $ac_try) 2>&5
35024 ac_status=$?
35025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026 (exit $ac_status); }; }; then
35027 eval "$as_ac_var=yes"
35028 else
35029 echo "$as_me: failed program was:" >&5
35030 sed 's/^/| /' conftest.$ac_ext >&5
35032 eval "$as_ac_var=no"
35034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35038 if test `eval echo '${'$as_ac_var'}'` = yes; then
35039 cat >>confdefs.h <<_ACEOF
35040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35041 _ACEOF
35043 else
35044 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
35046 done
35049 if test x$ac_cv_func_copysignl = x"yes"; then
35051 for ac_func in __signbitl
35053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35054 echo "$as_me:$LINENO: checking for $ac_func" >&5
35055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35056 if eval "test \"\${$as_ac_var+set}\" = set"; then
35057 echo $ECHO_N "(cached) $ECHO_C" >&6
35058 else
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 /* System header to define __stub macros and hopefully few prototypes,
35067 which can conflict with char $ac_func (); below.
35068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35069 <limits.h> exists even on freestanding compilers. */
35070 #ifdef __STDC__
35071 # include <limits.h>
35072 #else
35073 # include <assert.h>
35074 #endif
35075 /* Override any gcc2 internal prototype to avoid an error. */
35076 #ifdef __cplusplus
35077 extern "C"
35079 #endif
35080 /* We use char because int might match the return type of a gcc2
35081 builtin and then its argument prototype would still apply. */
35082 char $ac_func ();
35083 /* The GNU C library defines this for functions which it implements
35084 to always fail with ENOSYS. Some functions are actually named
35085 something starting with __ and the normal name is an alias. */
35086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35087 choke me
35088 #else
35089 char (*f) () = $ac_func;
35090 #endif
35091 #ifdef __cplusplus
35093 #endif
35096 main ()
35098 return f != $ac_func;
35100 return 0;
35102 _ACEOF
35103 rm -f conftest.$ac_objext conftest$ac_exeext
35104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35105 (eval $ac_link) 2>&5
35106 ac_status=$?
35107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108 (exit $ac_status); } &&
35109 { ac_try='test -s conftest$ac_exeext'
35110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35111 (eval $ac_try) 2>&5
35112 ac_status=$?
35113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114 (exit $ac_status); }; }; then
35115 eval "$as_ac_var=yes"
35116 else
35117 echo "$as_me: failed program was:" >&5
35118 sed 's/^/| /' conftest.$ac_ext >&5
35120 eval "$as_ac_var=no"
35122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35126 if test `eval echo '${'$as_ac_var'}'` = yes; then
35127 cat >>confdefs.h <<_ACEOF
35128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35129 _ACEOF
35131 else
35132 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
35134 done
35138 # XXX Review this. Nothing uses it.
35139 if test -n "$LIBMATHOBJS"; then
35140 need_libmath=yes
35145 # Test wchar.h for mbstate_t, which is needed for char_traits and
35146 # others even if wchar_t support is not on.
35147 echo "$as_me:$LINENO: checking for mbstate_t" >&5
35148 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
35149 cat >conftest.$ac_ext <<_ACEOF
35150 #line $LINENO "configure"
35151 /* confdefs.h. */
35152 _ACEOF
35153 cat confdefs.h >>conftest.$ac_ext
35154 cat >>conftest.$ac_ext <<_ACEOF
35155 /* end confdefs.h. */
35156 #include <wchar.h>
35158 main ()
35160 mbstate_t teststate;
35162 return 0;
35164 _ACEOF
35165 rm -f conftest.$ac_objext
35166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35167 (eval $ac_compile) 2>&5
35168 ac_status=$?
35169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35170 (exit $ac_status); } &&
35171 { ac_try='test -s conftest.$ac_objext'
35172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35173 (eval $ac_try) 2>&5
35174 ac_status=$?
35175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176 (exit $ac_status); }; }; then
35177 have_mbstate_t=yes
35178 else
35179 echo "$as_me: failed program was:" >&5
35180 sed 's/^/| /' conftest.$ac_ext >&5
35182 have_mbstate_t=no
35184 rm -f conftest.$ac_objext conftest.$ac_ext
35185 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
35186 echo "${ECHO_T}$have_mbstate_t" >&6
35187 if test x"$have_mbstate_t" = xyes; then
35188 cat >>confdefs.h <<\_ACEOF
35189 #define HAVE_MBSTATE_T 1
35190 _ACEOF
35194 # Sanity check for existence of ISO C99 headers for extended encoding.
35196 for ac_header in wchar.h
35198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35200 echo "$as_me:$LINENO: checking for $ac_header" >&5
35201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35203 echo $ECHO_N "(cached) $ECHO_C" >&6
35205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35207 else
35208 # Is the header compilable?
35209 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35211 cat >conftest.$ac_ext <<_ACEOF
35212 #line $LINENO "configure"
35213 /* confdefs.h. */
35214 _ACEOF
35215 cat confdefs.h >>conftest.$ac_ext
35216 cat >>conftest.$ac_ext <<_ACEOF
35217 /* end confdefs.h. */
35218 $ac_includes_default
35219 #include <$ac_header>
35220 _ACEOF
35221 rm -f conftest.$ac_objext
35222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35223 (eval $ac_compile) 2>&5
35224 ac_status=$?
35225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35226 (exit $ac_status); } &&
35227 { ac_try='test -s conftest.$ac_objext'
35228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35229 (eval $ac_try) 2>&5
35230 ac_status=$?
35231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35232 (exit $ac_status); }; }; then
35233 ac_header_compiler=yes
35234 else
35235 echo "$as_me: failed program was:" >&5
35236 sed 's/^/| /' conftest.$ac_ext >&5
35238 ac_header_compiler=no
35240 rm -f conftest.$ac_objext conftest.$ac_ext
35241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35242 echo "${ECHO_T}$ac_header_compiler" >&6
35244 # Is the header present?
35245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35247 cat >conftest.$ac_ext <<_ACEOF
35248 #line $LINENO "configure"
35249 /* confdefs.h. */
35250 _ACEOF
35251 cat confdefs.h >>conftest.$ac_ext
35252 cat >>conftest.$ac_ext <<_ACEOF
35253 /* end confdefs.h. */
35254 #include <$ac_header>
35255 _ACEOF
35256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35258 ac_status=$?
35259 grep -v '^ *+' conftest.er1 >conftest.err
35260 rm -f conftest.er1
35261 cat conftest.err >&5
35262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35263 (exit $ac_status); } >/dev/null; then
35264 if test -s conftest.err; then
35265 ac_cpp_err=$ac_c_preproc_warn_flag
35266 else
35267 ac_cpp_err=
35269 else
35270 ac_cpp_err=yes
35272 if test -z "$ac_cpp_err"; then
35273 ac_header_preproc=yes
35274 else
35275 echo "$as_me: failed program was:" >&5
35276 sed 's/^/| /' conftest.$ac_ext >&5
35278 ac_header_preproc=no
35280 rm -f conftest.err conftest.$ac_ext
35281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35282 echo "${ECHO_T}$ac_header_preproc" >&6
35284 # So? What about this header?
35285 case $ac_header_compiler:$ac_header_preproc in
35286 yes:no )
35287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35292 cat <<\_ASBOX
35293 ## ------------------------------------ ##
35294 ## Report this to bug-autoconf@gnu.org. ##
35295 ## ------------------------------------ ##
35296 _ASBOX
35298 sed "s/^/$as_me: WARNING: /" >&2
35300 no:yes )
35301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35308 cat <<\_ASBOX
35309 ## ------------------------------------ ##
35310 ## Report this to bug-autoconf@gnu.org. ##
35311 ## ------------------------------------ ##
35312 _ASBOX
35314 sed "s/^/$as_me: WARNING: /" >&2
35316 esac
35317 echo "$as_me:$LINENO: checking for $ac_header" >&5
35318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35320 echo $ECHO_N "(cached) $ECHO_C" >&6
35321 else
35322 eval "$as_ac_Header=$ac_header_preproc"
35324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35329 cat >>confdefs.h <<_ACEOF
35330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35331 _ACEOF
35332 ac_has_wchar_h=yes
35333 else
35334 ac_has_wchar_h=no
35337 done
35340 for ac_header in wctype.h
35342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35344 echo "$as_me:$LINENO: checking for $ac_header" >&5
35345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35347 echo $ECHO_N "(cached) $ECHO_C" >&6
35349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35351 else
35352 # Is the header compilable?
35353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35355 cat >conftest.$ac_ext <<_ACEOF
35356 #line $LINENO "configure"
35357 /* confdefs.h. */
35358 _ACEOF
35359 cat confdefs.h >>conftest.$ac_ext
35360 cat >>conftest.$ac_ext <<_ACEOF
35361 /* end confdefs.h. */
35362 $ac_includes_default
35363 #include <$ac_header>
35364 _ACEOF
35365 rm -f conftest.$ac_objext
35366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35367 (eval $ac_compile) 2>&5
35368 ac_status=$?
35369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35370 (exit $ac_status); } &&
35371 { ac_try='test -s conftest.$ac_objext'
35372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35373 (eval $ac_try) 2>&5
35374 ac_status=$?
35375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35376 (exit $ac_status); }; }; then
35377 ac_header_compiler=yes
35378 else
35379 echo "$as_me: failed program was:" >&5
35380 sed 's/^/| /' conftest.$ac_ext >&5
35382 ac_header_compiler=no
35384 rm -f conftest.$ac_objext conftest.$ac_ext
35385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35386 echo "${ECHO_T}$ac_header_compiler" >&6
35388 # Is the header present?
35389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35391 cat >conftest.$ac_ext <<_ACEOF
35392 #line $LINENO "configure"
35393 /* confdefs.h. */
35394 _ACEOF
35395 cat confdefs.h >>conftest.$ac_ext
35396 cat >>conftest.$ac_ext <<_ACEOF
35397 /* end confdefs.h. */
35398 #include <$ac_header>
35399 _ACEOF
35400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35402 ac_status=$?
35403 grep -v '^ *+' conftest.er1 >conftest.err
35404 rm -f conftest.er1
35405 cat conftest.err >&5
35406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407 (exit $ac_status); } >/dev/null; then
35408 if test -s conftest.err; then
35409 ac_cpp_err=$ac_c_preproc_warn_flag
35410 else
35411 ac_cpp_err=
35413 else
35414 ac_cpp_err=yes
35416 if test -z "$ac_cpp_err"; then
35417 ac_header_preproc=yes
35418 else
35419 echo "$as_me: failed program was:" >&5
35420 sed 's/^/| /' conftest.$ac_ext >&5
35422 ac_header_preproc=no
35424 rm -f conftest.err conftest.$ac_ext
35425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35426 echo "${ECHO_T}$ac_header_preproc" >&6
35428 # So? What about this header?
35429 case $ac_header_compiler:$ac_header_preproc in
35430 yes:no )
35431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35436 cat <<\_ASBOX
35437 ## ------------------------------------ ##
35438 ## Report this to bug-autoconf@gnu.org. ##
35439 ## ------------------------------------ ##
35440 _ASBOX
35442 sed "s/^/$as_me: WARNING: /" >&2
35444 no:yes )
35445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35452 cat <<\_ASBOX
35453 ## ------------------------------------ ##
35454 ## Report this to bug-autoconf@gnu.org. ##
35455 ## ------------------------------------ ##
35456 _ASBOX
35458 sed "s/^/$as_me: WARNING: /" >&2
35460 esac
35461 echo "$as_me:$LINENO: checking for $ac_header" >&5
35462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35464 echo $ECHO_N "(cached) $ECHO_C" >&6
35465 else
35466 eval "$as_ac_Header=$ac_header_preproc"
35468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35473 cat >>confdefs.h <<_ACEOF
35474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35475 _ACEOF
35476 ac_has_wctype_h=yes
35477 else
35478 ac_has_wctype_h=no
35481 done
35484 # Only continue checking if the ISO C99 headers exist and support is on.
35485 if test x"$ac_has_wchar_h" = xyes &&
35486 test x"$ac_has_wctype_h" = xyes &&
35487 test x"$enable_c_mbchar" != xno; then
35489 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
35490 # numeric_limits can instantiate type_traits<wchar_t>
35491 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
35492 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
35493 cat >conftest.$ac_ext <<_ACEOF
35494 #line $LINENO "configure"
35495 /* confdefs.h. */
35496 _ACEOF
35497 cat confdefs.h >>conftest.$ac_ext
35498 cat >>conftest.$ac_ext <<_ACEOF
35499 /* end confdefs.h. */
35500 #include <wchar.h>
35502 main ()
35504 int i = WCHAR_MIN; int j = WCHAR_MAX;
35506 return 0;
35508 _ACEOF
35509 rm -f conftest.$ac_objext
35510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35511 (eval $ac_compile) 2>&5
35512 ac_status=$?
35513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514 (exit $ac_status); } &&
35515 { ac_try='test -s conftest.$ac_objext'
35516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517 (eval $ac_try) 2>&5
35518 ac_status=$?
35519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520 (exit $ac_status); }; }; then
35521 has_wchar_minmax=yes
35522 else
35523 echo "$as_me: failed program was:" >&5
35524 sed 's/^/| /' conftest.$ac_ext >&5
35526 has_wchar_minmax=no
35528 rm -f conftest.$ac_objext conftest.$ac_ext
35529 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
35530 echo "${ECHO_T}$has_wchar_minmax" >&6
35532 # Test wchar.h for WEOF, which is what we use to determine whether
35533 # to specialize for char_traits<wchar_t> or not.
35534 echo "$as_me:$LINENO: checking for WEOF" >&5
35535 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
35536 cat >conftest.$ac_ext <<_ACEOF
35537 #line $LINENO "configure"
35538 /* confdefs.h. */
35539 _ACEOF
35540 cat confdefs.h >>conftest.$ac_ext
35541 cat >>conftest.$ac_ext <<_ACEOF
35542 /* end confdefs.h. */
35544 #include <wchar.h>
35545 #include <stddef.h>
35547 main ()
35549 wint_t i = WEOF;
35551 return 0;
35553 _ACEOF
35554 rm -f conftest.$ac_objext
35555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35556 (eval $ac_compile) 2>&5
35557 ac_status=$?
35558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559 (exit $ac_status); } &&
35560 { ac_try='test -s conftest.$ac_objext'
35561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35562 (eval $ac_try) 2>&5
35563 ac_status=$?
35564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35565 (exit $ac_status); }; }; then
35566 has_weof=yes
35567 else
35568 echo "$as_me: failed program was:" >&5
35569 sed 's/^/| /' conftest.$ac_ext >&5
35571 has_weof=no
35573 rm -f conftest.$ac_objext conftest.$ac_ext
35574 echo "$as_me:$LINENO: result: $has_weof" >&5
35575 echo "${ECHO_T}$has_weof" >&6
35577 # Tests for wide character functions used in char_traits<wchar_t>.
35578 ac_wfuncs=yes
35585 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
35587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35588 echo "$as_me:$LINENO: checking for $ac_func" >&5
35589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35590 if eval "test \"\${$as_ac_var+set}\" = set"; then
35591 echo $ECHO_N "(cached) $ECHO_C" >&6
35592 else
35593 cat >conftest.$ac_ext <<_ACEOF
35594 #line $LINENO "configure"
35595 /* confdefs.h. */
35596 _ACEOF
35597 cat confdefs.h >>conftest.$ac_ext
35598 cat >>conftest.$ac_ext <<_ACEOF
35599 /* end confdefs.h. */
35600 /* System header to define __stub macros and hopefully few prototypes,
35601 which can conflict with char $ac_func (); below.
35602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35603 <limits.h> exists even on freestanding compilers. */
35604 #ifdef __STDC__
35605 # include <limits.h>
35606 #else
35607 # include <assert.h>
35608 #endif
35609 /* Override any gcc2 internal prototype to avoid an error. */
35610 #ifdef __cplusplus
35611 extern "C"
35613 #endif
35614 /* We use char because int might match the return type of a gcc2
35615 builtin and then its argument prototype would still apply. */
35616 char $ac_func ();
35617 /* The GNU C library defines this for functions which it implements
35618 to always fail with ENOSYS. Some functions are actually named
35619 something starting with __ and the normal name is an alias. */
35620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35621 choke me
35622 #else
35623 char (*f) () = $ac_func;
35624 #endif
35625 #ifdef __cplusplus
35627 #endif
35630 main ()
35632 return f != $ac_func;
35634 return 0;
35636 _ACEOF
35637 rm -f conftest.$ac_objext conftest$ac_exeext
35638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35639 (eval $ac_link) 2>&5
35640 ac_status=$?
35641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35642 (exit $ac_status); } &&
35643 { ac_try='test -s conftest$ac_exeext'
35644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35645 (eval $ac_try) 2>&5
35646 ac_status=$?
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); }; }; then
35649 eval "$as_ac_var=yes"
35650 else
35651 echo "$as_me: failed program was:" >&5
35652 sed 's/^/| /' conftest.$ac_ext >&5
35654 eval "$as_ac_var=no"
35656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35660 if test `eval echo '${'$as_ac_var'}'` = yes; then
35661 cat >>confdefs.h <<_ACEOF
35662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35663 _ACEOF
35665 else
35666 ac_wfuncs=no
35668 done
35671 # Checks for names injected into std:: by the c_std headers.
35722 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
35723 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
35724 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
35725 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
35726 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
35727 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
35729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35730 echo "$as_me:$LINENO: checking for $ac_func" >&5
35731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35732 if eval "test \"\${$as_ac_var+set}\" = set"; then
35733 echo $ECHO_N "(cached) $ECHO_C" >&6
35734 else
35735 cat >conftest.$ac_ext <<_ACEOF
35736 #line $LINENO "configure"
35737 /* confdefs.h. */
35738 _ACEOF
35739 cat confdefs.h >>conftest.$ac_ext
35740 cat >>conftest.$ac_ext <<_ACEOF
35741 /* end confdefs.h. */
35742 /* System header to define __stub macros and hopefully few prototypes,
35743 which can conflict with char $ac_func (); below.
35744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35745 <limits.h> exists even on freestanding compilers. */
35746 #ifdef __STDC__
35747 # include <limits.h>
35748 #else
35749 # include <assert.h>
35750 #endif
35751 /* Override any gcc2 internal prototype to avoid an error. */
35752 #ifdef __cplusplus
35753 extern "C"
35755 #endif
35756 /* We use char because int might match the return type of a gcc2
35757 builtin and then its argument prototype would still apply. */
35758 char $ac_func ();
35759 /* The GNU C library defines this for functions which it implements
35760 to always fail with ENOSYS. Some functions are actually named
35761 something starting with __ and the normal name is an alias. */
35762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35763 choke me
35764 #else
35765 char (*f) () = $ac_func;
35766 #endif
35767 #ifdef __cplusplus
35769 #endif
35772 main ()
35774 return f != $ac_func;
35776 return 0;
35778 _ACEOF
35779 rm -f conftest.$ac_objext conftest$ac_exeext
35780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35781 (eval $ac_link) 2>&5
35782 ac_status=$?
35783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35784 (exit $ac_status); } &&
35785 { ac_try='test -s conftest$ac_exeext'
35786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35787 (eval $ac_try) 2>&5
35788 ac_status=$?
35789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35790 (exit $ac_status); }; }; then
35791 eval "$as_ac_var=yes"
35792 else
35793 echo "$as_me: failed program was:" >&5
35794 sed 's/^/| /' conftest.$ac_ext >&5
35796 eval "$as_ac_var=no"
35798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35802 if test `eval echo '${'$as_ac_var'}'` = yes; then
35803 cat >>confdefs.h <<_ACEOF
35804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35805 _ACEOF
35807 else
35808 ac_wfuncs=no
35810 done
35813 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
35814 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
35815 if test x"$has_weof" = xyes &&
35816 test x"$has_wchar_minmax" = xyes &&
35817 test x"$ac_wfuncs" = xyes;
35818 then
35819 ac_isoC99_wchar_t=yes
35820 else
35821 ac_isoC99_wchar_t=no
35823 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
35824 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
35826 # Use iconv for wchar_t to char conversions. As such, check for
35827 # X/Open Portability Guide, version 2 features (XPG2).
35828 if test "${ac_cv_header_iconv_h+set}" = set; then
35829 echo "$as_me:$LINENO: checking for iconv.h" >&5
35830 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
35831 if test "${ac_cv_header_iconv_h+set}" = set; then
35832 echo $ECHO_N "(cached) $ECHO_C" >&6
35834 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
35835 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
35836 else
35837 # Is the header compilable?
35838 echo "$as_me:$LINENO: checking iconv.h usability" >&5
35839 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
35840 cat >conftest.$ac_ext <<_ACEOF
35841 #line $LINENO "configure"
35842 /* confdefs.h. */
35843 _ACEOF
35844 cat confdefs.h >>conftest.$ac_ext
35845 cat >>conftest.$ac_ext <<_ACEOF
35846 /* end confdefs.h. */
35847 $ac_includes_default
35848 #include <iconv.h>
35849 _ACEOF
35850 rm -f conftest.$ac_objext
35851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35852 (eval $ac_compile) 2>&5
35853 ac_status=$?
35854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855 (exit $ac_status); } &&
35856 { ac_try='test -s conftest.$ac_objext'
35857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35858 (eval $ac_try) 2>&5
35859 ac_status=$?
35860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35861 (exit $ac_status); }; }; then
35862 ac_header_compiler=yes
35863 else
35864 echo "$as_me: failed program was:" >&5
35865 sed 's/^/| /' conftest.$ac_ext >&5
35867 ac_header_compiler=no
35869 rm -f conftest.$ac_objext conftest.$ac_ext
35870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35871 echo "${ECHO_T}$ac_header_compiler" >&6
35873 # Is the header present?
35874 echo "$as_me:$LINENO: checking iconv.h presence" >&5
35875 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
35876 cat >conftest.$ac_ext <<_ACEOF
35877 #line $LINENO "configure"
35878 /* confdefs.h. */
35879 _ACEOF
35880 cat confdefs.h >>conftest.$ac_ext
35881 cat >>conftest.$ac_ext <<_ACEOF
35882 /* end confdefs.h. */
35883 #include <iconv.h>
35884 _ACEOF
35885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35887 ac_status=$?
35888 grep -v '^ *+' conftest.er1 >conftest.err
35889 rm -f conftest.er1
35890 cat conftest.err >&5
35891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892 (exit $ac_status); } >/dev/null; then
35893 if test -s conftest.err; then
35894 ac_cpp_err=$ac_c_preproc_warn_flag
35895 else
35896 ac_cpp_err=
35898 else
35899 ac_cpp_err=yes
35901 if test -z "$ac_cpp_err"; then
35902 ac_header_preproc=yes
35903 else
35904 echo "$as_me: failed program was:" >&5
35905 sed 's/^/| /' conftest.$ac_ext >&5
35907 ac_header_preproc=no
35909 rm -f conftest.err conftest.$ac_ext
35910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35911 echo "${ECHO_T}$ac_header_preproc" >&6
35913 # So? What about this header?
35914 case $ac_header_compiler:$ac_header_preproc in
35915 yes:no )
35916 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
35917 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35918 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
35919 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
35921 cat <<\_ASBOX
35922 ## ------------------------------------ ##
35923 ## Report this to bug-autoconf@gnu.org. ##
35924 ## ------------------------------------ ##
35925 _ASBOX
35927 sed "s/^/$as_me: WARNING: /" >&2
35929 no:yes )
35930 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
35931 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
35932 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
35933 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
35934 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
35935 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
35937 cat <<\_ASBOX
35938 ## ------------------------------------ ##
35939 ## Report this to bug-autoconf@gnu.org. ##
35940 ## ------------------------------------ ##
35941 _ASBOX
35943 sed "s/^/$as_me: WARNING: /" >&2
35945 esac
35946 echo "$as_me:$LINENO: checking for iconv.h" >&5
35947 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
35948 if test "${ac_cv_header_iconv_h+set}" = set; then
35949 echo $ECHO_N "(cached) $ECHO_C" >&6
35950 else
35951 ac_cv_header_iconv_h=$ac_header_preproc
35953 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
35954 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
35957 if test $ac_cv_header_iconv_h = yes; then
35958 ac_has_iconv_h=yes
35959 else
35960 ac_has_iconv_h=no
35964 if test "${ac_cv_header_langinfo_h+set}" = set; then
35965 echo "$as_me:$LINENO: checking for langinfo.h" >&5
35966 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
35967 if test "${ac_cv_header_langinfo_h+set}" = set; then
35968 echo $ECHO_N "(cached) $ECHO_C" >&6
35970 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
35971 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
35972 else
35973 # Is the header compilable?
35974 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
35975 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
35976 cat >conftest.$ac_ext <<_ACEOF
35977 #line $LINENO "configure"
35978 /* confdefs.h. */
35979 _ACEOF
35980 cat confdefs.h >>conftest.$ac_ext
35981 cat >>conftest.$ac_ext <<_ACEOF
35982 /* end confdefs.h. */
35983 $ac_includes_default
35984 #include <langinfo.h>
35985 _ACEOF
35986 rm -f conftest.$ac_objext
35987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35988 (eval $ac_compile) 2>&5
35989 ac_status=$?
35990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35991 (exit $ac_status); } &&
35992 { ac_try='test -s conftest.$ac_objext'
35993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35994 (eval $ac_try) 2>&5
35995 ac_status=$?
35996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35997 (exit $ac_status); }; }; then
35998 ac_header_compiler=yes
35999 else
36000 echo "$as_me: failed program was:" >&5
36001 sed 's/^/| /' conftest.$ac_ext >&5
36003 ac_header_compiler=no
36005 rm -f conftest.$ac_objext conftest.$ac_ext
36006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36007 echo "${ECHO_T}$ac_header_compiler" >&6
36009 # Is the header present?
36010 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
36011 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
36012 cat >conftest.$ac_ext <<_ACEOF
36013 #line $LINENO "configure"
36014 /* confdefs.h. */
36015 _ACEOF
36016 cat confdefs.h >>conftest.$ac_ext
36017 cat >>conftest.$ac_ext <<_ACEOF
36018 /* end confdefs.h. */
36019 #include <langinfo.h>
36020 _ACEOF
36021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36023 ac_status=$?
36024 grep -v '^ *+' conftest.er1 >conftest.err
36025 rm -f conftest.er1
36026 cat conftest.err >&5
36027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36028 (exit $ac_status); } >/dev/null; then
36029 if test -s conftest.err; then
36030 ac_cpp_err=$ac_c_preproc_warn_flag
36031 else
36032 ac_cpp_err=
36034 else
36035 ac_cpp_err=yes
36037 if test -z "$ac_cpp_err"; then
36038 ac_header_preproc=yes
36039 else
36040 echo "$as_me: failed program was:" >&5
36041 sed 's/^/| /' conftest.$ac_ext >&5
36043 ac_header_preproc=no
36045 rm -f conftest.err conftest.$ac_ext
36046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36047 echo "${ECHO_T}$ac_header_preproc" >&6
36049 # So? What about this header?
36050 case $ac_header_compiler:$ac_header_preproc in
36051 yes:no )
36052 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36053 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36054 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
36055 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
36057 cat <<\_ASBOX
36058 ## ------------------------------------ ##
36059 ## Report this to bug-autoconf@gnu.org. ##
36060 ## ------------------------------------ ##
36061 _ASBOX
36063 sed "s/^/$as_me: WARNING: /" >&2
36065 no:yes )
36066 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
36067 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
36068 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
36069 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
36070 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
36071 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
36073 cat <<\_ASBOX
36074 ## ------------------------------------ ##
36075 ## Report this to bug-autoconf@gnu.org. ##
36076 ## ------------------------------------ ##
36077 _ASBOX
36079 sed "s/^/$as_me: WARNING: /" >&2
36081 esac
36082 echo "$as_me:$LINENO: checking for langinfo.h" >&5
36083 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
36084 if test "${ac_cv_header_langinfo_h+set}" = set; then
36085 echo $ECHO_N "(cached) $ECHO_C" >&6
36086 else
36087 ac_cv_header_langinfo_h=$ac_header_preproc
36089 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
36090 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
36093 if test $ac_cv_header_langinfo_h = yes; then
36094 ac_has_langinfo_h=yes
36095 else
36096 ac_has_langinfo_h=no
36101 # Check for existence of libiconv.a providing XPG2 wchar_t support.
36102 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
36103 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
36104 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
36105 echo $ECHO_N "(cached) $ECHO_C" >&6
36106 else
36107 ac_check_lib_save_LIBS=$LIBS
36108 LIBS="-liconv $LIBS"
36109 cat >conftest.$ac_ext <<_ACEOF
36110 #line $LINENO "configure"
36111 /* confdefs.h. */
36112 _ACEOF
36113 cat confdefs.h >>conftest.$ac_ext
36114 cat >>conftest.$ac_ext <<_ACEOF
36115 /* end confdefs.h. */
36117 /* Override any gcc2 internal prototype to avoid an error. */
36118 #ifdef __cplusplus
36119 extern "C"
36120 #endif
36121 /* We use char because int might match the return type of a gcc2
36122 builtin and then its argument prototype would still apply. */
36123 char iconv ();
36125 main ()
36127 iconv ();
36129 return 0;
36131 _ACEOF
36132 rm -f conftest.$ac_objext conftest$ac_exeext
36133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36134 (eval $ac_link) 2>&5
36135 ac_status=$?
36136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36137 (exit $ac_status); } &&
36138 { ac_try='test -s conftest$ac_exeext'
36139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36140 (eval $ac_try) 2>&5
36141 ac_status=$?
36142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36143 (exit $ac_status); }; }; then
36144 ac_cv_lib_iconv_iconv=yes
36145 else
36146 echo "$as_me: failed program was:" >&5
36147 sed 's/^/| /' conftest.$ac_ext >&5
36149 ac_cv_lib_iconv_iconv=no
36151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36152 LIBS=$ac_check_lib_save_LIBS
36154 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
36155 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
36156 if test $ac_cv_lib_iconv_iconv = yes; then
36157 libiconv="-liconv"
36160 ac_save_LIBS="$LIBS"
36161 LIBS="$LIBS $libiconv"
36167 for ac_func in iconv_open iconv_close iconv nl_langinfo
36169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36170 echo "$as_me:$LINENO: checking for $ac_func" >&5
36171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36172 if eval "test \"\${$as_ac_var+set}\" = set"; then
36173 echo $ECHO_N "(cached) $ECHO_C" >&6
36174 else
36175 cat >conftest.$ac_ext <<_ACEOF
36176 #line $LINENO "configure"
36177 /* confdefs.h. */
36178 _ACEOF
36179 cat confdefs.h >>conftest.$ac_ext
36180 cat >>conftest.$ac_ext <<_ACEOF
36181 /* end confdefs.h. */
36182 /* System header to define __stub macros and hopefully few prototypes,
36183 which can conflict with char $ac_func (); below.
36184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36185 <limits.h> exists even on freestanding compilers. */
36186 #ifdef __STDC__
36187 # include <limits.h>
36188 #else
36189 # include <assert.h>
36190 #endif
36191 /* Override any gcc2 internal prototype to avoid an error. */
36192 #ifdef __cplusplus
36193 extern "C"
36195 #endif
36196 /* We use char because int might match the return type of a gcc2
36197 builtin and then its argument prototype would still apply. */
36198 char $ac_func ();
36199 /* The GNU C library defines this for functions which it implements
36200 to always fail with ENOSYS. Some functions are actually named
36201 something starting with __ and the normal name is an alias. */
36202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36203 choke me
36204 #else
36205 char (*f) () = $ac_func;
36206 #endif
36207 #ifdef __cplusplus
36209 #endif
36212 main ()
36214 return f != $ac_func;
36216 return 0;
36218 _ACEOF
36219 rm -f conftest.$ac_objext conftest$ac_exeext
36220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36221 (eval $ac_link) 2>&5
36222 ac_status=$?
36223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36224 (exit $ac_status); } &&
36225 { ac_try='test -s conftest$ac_exeext'
36226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36227 (eval $ac_try) 2>&5
36228 ac_status=$?
36229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230 (exit $ac_status); }; }; then
36231 eval "$as_ac_var=yes"
36232 else
36233 echo "$as_me: failed program was:" >&5
36234 sed 's/^/| /' conftest.$ac_ext >&5
36236 eval "$as_ac_var=no"
36238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36242 if test `eval echo '${'$as_ac_var'}'` = yes; then
36243 cat >>confdefs.h <<_ACEOF
36244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36245 _ACEOF
36246 ac_XPG2funcs=yes
36247 else
36248 ac_XPG2funcs=no
36250 done
36253 LIBS="$ac_save_LIBS"
36255 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
36256 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
36257 if test x"$ac_has_iconv_h" = xyes &&
36258 test x"$ac_has_langinfo_h" = xyes &&
36259 test x"$ac_XPG2funcs" = xyes;
36260 then
36261 ac_XPG2_wchar_t=yes
36262 else
36263 ac_XPG2_wchar_t=no
36265 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
36266 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
36268 # At the moment, only enable wchar_t specializations if all the
36269 # above support is present.
36270 if test x"$ac_isoC99_wchar_t" = xyes &&
36271 test x"$ac_XPG2_wchar_t" = xyes;
36272 then
36273 cat >>confdefs.h <<\_ACEOF
36274 #define _GLIBCXX_USE_WCHAR_T 1
36275 _ACEOF
36277 enable_wchar_t=yes
36280 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
36281 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
36282 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
36283 echo "${ECHO_T}$enable_wchar_t" >&6
36285 cat >>confdefs.h <<\_ACEOF
36286 #define HAVE_COPYSIGN 1
36287 _ACEOF
36289 cat >>confdefs.h <<\_ACEOF
36290 #define HAVE_COPYSIGNF 1
36291 _ACEOF
36293 cat >>confdefs.h <<\_ACEOF
36294 #define HAVE_FINITEF 1
36295 _ACEOF
36297 cat >>confdefs.h <<\_ACEOF
36298 #define HAVE_FINITE 1
36299 _ACEOF
36301 cat >>confdefs.h <<\_ACEOF
36302 #define HAVE_FREXPF 1
36303 _ACEOF
36305 cat >>confdefs.h <<\_ACEOF
36306 #define HAVE_HYPOTF 1
36307 _ACEOF
36309 cat >>confdefs.h <<\_ACEOF
36310 #define HAVE_ISINF 1
36311 _ACEOF
36313 cat >>confdefs.h <<\_ACEOF
36314 #define HAVE_ISINFF 1
36315 _ACEOF
36317 cat >>confdefs.h <<\_ACEOF
36318 #define HAVE_ISNAN 1
36319 _ACEOF
36321 cat >>confdefs.h <<\_ACEOF
36322 #define HAVE_ISNANF 1
36323 _ACEOF
36325 if test x"long_double_math_on_this_cpu" = x"yes"; then
36326 cat >>confdefs.h <<\_ACEOF
36327 #define HAVE_FINITEL 1
36328 _ACEOF
36330 cat >>confdefs.h <<\_ACEOF
36331 #define HAVE_ISINFL 1
36332 _ACEOF
36334 cat >>confdefs.h <<\_ACEOF
36335 #define HAVE_ISNANL 1
36336 _ACEOF
36340 *-qnx6.1* | *-qnx6.2*)
36341 #os_include_dir="os/qnx/qnx6.1"
36342 SECTION_FLAGS='-ffunction-sections -fdata-sections'
36345 # If we're not using GNU ld, then there's no point in even trying these
36346 # tests. Check for that first. We should have already tested for gld
36347 # by now (in libtool), but require it now just to be safe...
36348 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
36349 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
36353 # The name set by libtool depends on the version of libtool. Shame on us
36354 # for depending on an impl detail, but c'est la vie. Older versions used
36355 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
36356 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
36357 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
36358 # set (hence we're using an older libtool), then set it.
36359 if test x${with_gnu_ld+set} != xset; then
36360 if test x${ac_cv_prog_gnu_ld+set} != xset; then
36361 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
36362 with_gnu_ld=no
36363 else
36364 with_gnu_ld=$ac_cv_prog_gnu_ld
36368 # Start by getting the version number. I think the libtool test already
36369 # does some of this, but throws away the result.
36371 ldver=`$LD --version 2>/dev/null | head -1 | \
36372 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
36374 glibcxx_gnu_ld_version=`echo $ldver | \
36375 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
36377 # Set --gc-sections.
36378 if test "$with_gnu_ld" = "notbroken"; then
36379 # GNU ld it is! Joy and bunny rabbits!
36381 # All these tests are for C++; save the language and the compiler flags.
36382 # Need to do this so that g++ won't try to link in libstdc++
36383 ac_test_CFLAGS="${CFLAGS+set}"
36384 ac_save_CFLAGS="$CFLAGS"
36385 CFLAGS='-x c++ -Wl,--gc-sections'
36387 # Check for -Wl,--gc-sections
36388 # XXX This test is broken at the moment, as symbols required for linking
36389 # are now in libsupc++ (not built yet). In addition, this test has
36390 # cored on solaris in the past. In addition, --gc-sections doesn't
36391 # really work at the moment (keeps on discarding used sections, first
36392 # .eh_frame and now some of the glibc sections for iconv).
36393 # Bzzzzt. Thanks for playing, maybe next time.
36394 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
36395 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
36396 if test "$cross_compiling" = yes; then
36397 ac_sectionLDflags=yes
36398 else
36399 cat >conftest.$ac_ext <<_ACEOF
36400 #line $LINENO "configure"
36401 /* confdefs.h. */
36402 _ACEOF
36403 cat confdefs.h >>conftest.$ac_ext
36404 cat >>conftest.$ac_ext <<_ACEOF
36405 /* end confdefs.h. */
36407 int main(void)
36409 try { throw 1; }
36410 catch (...) { };
36411 return 0;
36414 _ACEOF
36415 rm -f conftest$ac_exeext
36416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36417 (eval $ac_link) 2>&5
36418 ac_status=$?
36419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36422 (eval $ac_try) 2>&5
36423 ac_status=$?
36424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36425 (exit $ac_status); }; }; then
36426 ac_sectionLDflags=yes
36427 else
36428 echo "$as_me: program exited with status $ac_status" >&5
36429 echo "$as_me: failed program was:" >&5
36430 sed 's/^/| /' conftest.$ac_ext >&5
36432 ( exit $ac_status )
36433 ac_sectionLDflags=no
36435 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36437 if test "$ac_test_CFLAGS" = set; then
36438 CFLAGS="$ac_save_CFLAGS"
36439 else
36440 # this is the suspicious part
36441 CFLAGS=''
36443 if test "$ac_sectionLDflags" = "yes"; then
36444 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
36446 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
36447 echo "${ECHO_T}$ac_sectionLDflags" >&6
36450 # Set linker optimization flags.
36451 if test x"$with_gnu_ld" = x"yes"; then
36452 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
36460 echo "$as_me:$LINENO: checking for main in -lm" >&5
36461 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
36462 if test "${ac_cv_lib_m_main+set}" = set; then
36463 echo $ECHO_N "(cached) $ECHO_C" >&6
36464 else
36465 ac_check_lib_save_LIBS=$LIBS
36466 LIBS="-lm $LIBS"
36467 cat >conftest.$ac_ext <<_ACEOF
36468 #line $LINENO "configure"
36469 /* confdefs.h. */
36470 _ACEOF
36471 cat confdefs.h >>conftest.$ac_ext
36472 cat >>conftest.$ac_ext <<_ACEOF
36473 /* end confdefs.h. */
36477 main ()
36479 main ();
36481 return 0;
36483 _ACEOF
36484 rm -f conftest.$ac_objext conftest$ac_exeext
36485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36486 (eval $ac_link) 2>&5
36487 ac_status=$?
36488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36489 (exit $ac_status); } &&
36490 { ac_try='test -s conftest$ac_exeext'
36491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36492 (eval $ac_try) 2>&5
36493 ac_status=$?
36494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36495 (exit $ac_status); }; }; then
36496 ac_cv_lib_m_main=yes
36497 else
36498 echo "$as_me: failed program was:" >&5
36499 sed 's/^/| /' conftest.$ac_ext >&5
36501 ac_cv_lib_m_main=no
36503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36504 LIBS=$ac_check_lib_save_LIBS
36506 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
36507 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
36508 if test $ac_cv_lib_m_main = yes; then
36509 cat >>confdefs.h <<_ACEOF
36510 #define HAVE_LIBM 1
36511 _ACEOF
36513 LIBS="-lm $LIBS"
36519 for ac_func in nan copysignf
36521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36522 echo "$as_me:$LINENO: checking for $ac_func" >&5
36523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36524 if eval "test \"\${$as_ac_var+set}\" = set"; then
36525 echo $ECHO_N "(cached) $ECHO_C" >&6
36526 else
36527 cat >conftest.$ac_ext <<_ACEOF
36528 #line $LINENO "configure"
36529 /* confdefs.h. */
36530 _ACEOF
36531 cat confdefs.h >>conftest.$ac_ext
36532 cat >>conftest.$ac_ext <<_ACEOF
36533 /* end confdefs.h. */
36534 /* System header to define __stub macros and hopefully few prototypes,
36535 which can conflict with char $ac_func (); below.
36536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36537 <limits.h> exists even on freestanding compilers. */
36538 #ifdef __STDC__
36539 # include <limits.h>
36540 #else
36541 # include <assert.h>
36542 #endif
36543 /* Override any gcc2 internal prototype to avoid an error. */
36544 #ifdef __cplusplus
36545 extern "C"
36547 #endif
36548 /* We use char because int might match the return type of a gcc2
36549 builtin and then its argument prototype would still apply. */
36550 char $ac_func ();
36551 /* The GNU C library defines this for functions which it implements
36552 to always fail with ENOSYS. Some functions are actually named
36553 something starting with __ and the normal name is an alias. */
36554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36555 choke me
36556 #else
36557 char (*f) () = $ac_func;
36558 #endif
36559 #ifdef __cplusplus
36561 #endif
36564 main ()
36566 return f != $ac_func;
36568 return 0;
36570 _ACEOF
36571 rm -f conftest.$ac_objext conftest$ac_exeext
36572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36573 (eval $ac_link) 2>&5
36574 ac_status=$?
36575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36576 (exit $ac_status); } &&
36577 { ac_try='test -s conftest$ac_exeext'
36578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36579 (eval $ac_try) 2>&5
36580 ac_status=$?
36581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36582 (exit $ac_status); }; }; then
36583 eval "$as_ac_var=yes"
36584 else
36585 echo "$as_me: failed program was:" >&5
36586 sed 's/^/| /' conftest.$ac_ext >&5
36588 eval "$as_ac_var=no"
36590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36594 if test `eval echo '${'$as_ac_var'}'` = yes; then
36595 cat >>confdefs.h <<_ACEOF
36596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36597 _ACEOF
36599 else
36600 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
36602 done
36606 for ac_func in __signbit
36608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36609 echo "$as_me:$LINENO: checking for $ac_func" >&5
36610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36611 if eval "test \"\${$as_ac_var+set}\" = set"; then
36612 echo $ECHO_N "(cached) $ECHO_C" >&6
36613 else
36614 cat >conftest.$ac_ext <<_ACEOF
36615 #line $LINENO "configure"
36616 /* confdefs.h. */
36617 _ACEOF
36618 cat confdefs.h >>conftest.$ac_ext
36619 cat >>conftest.$ac_ext <<_ACEOF
36620 /* end confdefs.h. */
36621 /* System header to define __stub macros and hopefully few prototypes,
36622 which can conflict with char $ac_func (); below.
36623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36624 <limits.h> exists even on freestanding compilers. */
36625 #ifdef __STDC__
36626 # include <limits.h>
36627 #else
36628 # include <assert.h>
36629 #endif
36630 /* Override any gcc2 internal prototype to avoid an error. */
36631 #ifdef __cplusplus
36632 extern "C"
36634 #endif
36635 /* We use char because int might match the return type of a gcc2
36636 builtin and then its argument prototype would still apply. */
36637 char $ac_func ();
36638 /* The GNU C library defines this for functions which it implements
36639 to always fail with ENOSYS. Some functions are actually named
36640 something starting with __ and the normal name is an alias. */
36641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36642 choke me
36643 #else
36644 char (*f) () = $ac_func;
36645 #endif
36646 #ifdef __cplusplus
36648 #endif
36651 main ()
36653 return f != $ac_func;
36655 return 0;
36657 _ACEOF
36658 rm -f conftest.$ac_objext conftest$ac_exeext
36659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36660 (eval $ac_link) 2>&5
36661 ac_status=$?
36662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663 (exit $ac_status); } &&
36664 { ac_try='test -s conftest$ac_exeext'
36665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36666 (eval $ac_try) 2>&5
36667 ac_status=$?
36668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36669 (exit $ac_status); }; }; then
36670 eval "$as_ac_var=yes"
36671 else
36672 echo "$as_me: failed program was:" >&5
36673 sed 's/^/| /' conftest.$ac_ext >&5
36675 eval "$as_ac_var=no"
36677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36681 if test `eval echo '${'$as_ac_var'}'` = yes; then
36682 cat >>confdefs.h <<_ACEOF
36683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36684 _ACEOF
36686 else
36687 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
36689 done
36692 for ac_func in __signbitf
36694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36695 echo "$as_me:$LINENO: checking for $ac_func" >&5
36696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36697 if eval "test \"\${$as_ac_var+set}\" = set"; then
36698 echo $ECHO_N "(cached) $ECHO_C" >&6
36699 else
36700 cat >conftest.$ac_ext <<_ACEOF
36701 #line $LINENO "configure"
36702 /* confdefs.h. */
36703 _ACEOF
36704 cat confdefs.h >>conftest.$ac_ext
36705 cat >>conftest.$ac_ext <<_ACEOF
36706 /* end confdefs.h. */
36707 /* System header to define __stub macros and hopefully few prototypes,
36708 which can conflict with char $ac_func (); below.
36709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36710 <limits.h> exists even on freestanding compilers. */
36711 #ifdef __STDC__
36712 # include <limits.h>
36713 #else
36714 # include <assert.h>
36715 #endif
36716 /* Override any gcc2 internal prototype to avoid an error. */
36717 #ifdef __cplusplus
36718 extern "C"
36720 #endif
36721 /* We use char because int might match the return type of a gcc2
36722 builtin and then its argument prototype would still apply. */
36723 char $ac_func ();
36724 /* The GNU C library defines this for functions which it implements
36725 to always fail with ENOSYS. Some functions are actually named
36726 something starting with __ and the normal name is an alias. */
36727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36728 choke me
36729 #else
36730 char (*f) () = $ac_func;
36731 #endif
36732 #ifdef __cplusplus
36734 #endif
36737 main ()
36739 return f != $ac_func;
36741 return 0;
36743 _ACEOF
36744 rm -f conftest.$ac_objext conftest$ac_exeext
36745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36746 (eval $ac_link) 2>&5
36747 ac_status=$?
36748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36749 (exit $ac_status); } &&
36750 { ac_try='test -s conftest$ac_exeext'
36751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36752 (eval $ac_try) 2>&5
36753 ac_status=$?
36754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); }; }; then
36756 eval "$as_ac_var=yes"
36757 else
36758 echo "$as_me: failed program was:" >&5
36759 sed 's/^/| /' conftest.$ac_ext >&5
36761 eval "$as_ac_var=no"
36763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36767 if test `eval echo '${'$as_ac_var'}'` = yes; then
36768 cat >>confdefs.h <<_ACEOF
36769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36770 _ACEOF
36772 else
36773 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
36775 done
36778 if test x$ac_cv_func_copysignl = x"yes"; then
36780 for ac_func in __signbitl
36782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36783 echo "$as_me:$LINENO: checking for $ac_func" >&5
36784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36785 if eval "test \"\${$as_ac_var+set}\" = set"; then
36786 echo $ECHO_N "(cached) $ECHO_C" >&6
36787 else
36788 cat >conftest.$ac_ext <<_ACEOF
36789 #line $LINENO "configure"
36790 /* confdefs.h. */
36791 _ACEOF
36792 cat confdefs.h >>conftest.$ac_ext
36793 cat >>conftest.$ac_ext <<_ACEOF
36794 /* end confdefs.h. */
36795 /* System header to define __stub macros and hopefully few prototypes,
36796 which can conflict with char $ac_func (); below.
36797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36798 <limits.h> exists even on freestanding compilers. */
36799 #ifdef __STDC__
36800 # include <limits.h>
36801 #else
36802 # include <assert.h>
36803 #endif
36804 /* Override any gcc2 internal prototype to avoid an error. */
36805 #ifdef __cplusplus
36806 extern "C"
36808 #endif
36809 /* We use char because int might match the return type of a gcc2
36810 builtin and then its argument prototype would still apply. */
36811 char $ac_func ();
36812 /* The GNU C library defines this for functions which it implements
36813 to always fail with ENOSYS. Some functions are actually named
36814 something starting with __ and the normal name is an alias. */
36815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36816 choke me
36817 #else
36818 char (*f) () = $ac_func;
36819 #endif
36820 #ifdef __cplusplus
36822 #endif
36825 main ()
36827 return f != $ac_func;
36829 return 0;
36831 _ACEOF
36832 rm -f conftest.$ac_objext conftest$ac_exeext
36833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36834 (eval $ac_link) 2>&5
36835 ac_status=$?
36836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36837 (exit $ac_status); } &&
36838 { ac_try='test -s conftest$ac_exeext'
36839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36840 (eval $ac_try) 2>&5
36841 ac_status=$?
36842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36843 (exit $ac_status); }; }; then
36844 eval "$as_ac_var=yes"
36845 else
36846 echo "$as_me: failed program was:" >&5
36847 sed 's/^/| /' conftest.$ac_ext >&5
36849 eval "$as_ac_var=no"
36851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36855 if test `eval echo '${'$as_ac_var'}'` = yes; then
36856 cat >>confdefs.h <<_ACEOF
36857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36858 _ACEOF
36860 else
36861 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
36863 done
36867 # XXX Review this. Nothing uses it.
36868 if test -n "$LIBMATHOBJS"; then
36869 need_libmath=yes
36874 # Test wchar.h for mbstate_t, which is needed for char_traits and
36875 # others even if wchar_t support is not on.
36876 echo "$as_me:$LINENO: checking for mbstate_t" >&5
36877 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
36878 cat >conftest.$ac_ext <<_ACEOF
36879 #line $LINENO "configure"
36880 /* confdefs.h. */
36881 _ACEOF
36882 cat confdefs.h >>conftest.$ac_ext
36883 cat >>conftest.$ac_ext <<_ACEOF
36884 /* end confdefs.h. */
36885 #include <wchar.h>
36887 main ()
36889 mbstate_t teststate;
36891 return 0;
36893 _ACEOF
36894 rm -f conftest.$ac_objext
36895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36896 (eval $ac_compile) 2>&5
36897 ac_status=$?
36898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36899 (exit $ac_status); } &&
36900 { ac_try='test -s conftest.$ac_objext'
36901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36902 (eval $ac_try) 2>&5
36903 ac_status=$?
36904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36905 (exit $ac_status); }; }; then
36906 have_mbstate_t=yes
36907 else
36908 echo "$as_me: failed program was:" >&5
36909 sed 's/^/| /' conftest.$ac_ext >&5
36911 have_mbstate_t=no
36913 rm -f conftest.$ac_objext conftest.$ac_ext
36914 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
36915 echo "${ECHO_T}$have_mbstate_t" >&6
36916 if test x"$have_mbstate_t" = xyes; then
36917 cat >>confdefs.h <<\_ACEOF
36918 #define HAVE_MBSTATE_T 1
36919 _ACEOF
36923 # Sanity check for existence of ISO C99 headers for extended encoding.
36925 for ac_header in wchar.h
36927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36929 echo "$as_me:$LINENO: checking for $ac_header" >&5
36930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36932 echo $ECHO_N "(cached) $ECHO_C" >&6
36934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36936 else
36937 # Is the header compilable?
36938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36940 cat >conftest.$ac_ext <<_ACEOF
36941 #line $LINENO "configure"
36942 /* confdefs.h. */
36943 _ACEOF
36944 cat confdefs.h >>conftest.$ac_ext
36945 cat >>conftest.$ac_ext <<_ACEOF
36946 /* end confdefs.h. */
36947 $ac_includes_default
36948 #include <$ac_header>
36949 _ACEOF
36950 rm -f conftest.$ac_objext
36951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36952 (eval $ac_compile) 2>&5
36953 ac_status=$?
36954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955 (exit $ac_status); } &&
36956 { ac_try='test -s conftest.$ac_objext'
36957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36958 (eval $ac_try) 2>&5
36959 ac_status=$?
36960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36961 (exit $ac_status); }; }; then
36962 ac_header_compiler=yes
36963 else
36964 echo "$as_me: failed program was:" >&5
36965 sed 's/^/| /' conftest.$ac_ext >&5
36967 ac_header_compiler=no
36969 rm -f conftest.$ac_objext conftest.$ac_ext
36970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36971 echo "${ECHO_T}$ac_header_compiler" >&6
36973 # Is the header present?
36974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36976 cat >conftest.$ac_ext <<_ACEOF
36977 #line $LINENO "configure"
36978 /* confdefs.h. */
36979 _ACEOF
36980 cat confdefs.h >>conftest.$ac_ext
36981 cat >>conftest.$ac_ext <<_ACEOF
36982 /* end confdefs.h. */
36983 #include <$ac_header>
36984 _ACEOF
36985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36987 ac_status=$?
36988 grep -v '^ *+' conftest.er1 >conftest.err
36989 rm -f conftest.er1
36990 cat conftest.err >&5
36991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36992 (exit $ac_status); } >/dev/null; then
36993 if test -s conftest.err; then
36994 ac_cpp_err=$ac_c_preproc_warn_flag
36995 else
36996 ac_cpp_err=
36998 else
36999 ac_cpp_err=yes
37001 if test -z "$ac_cpp_err"; then
37002 ac_header_preproc=yes
37003 else
37004 echo "$as_me: failed program was:" >&5
37005 sed 's/^/| /' conftest.$ac_ext >&5
37007 ac_header_preproc=no
37009 rm -f conftest.err conftest.$ac_ext
37010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37011 echo "${ECHO_T}$ac_header_preproc" >&6
37013 # So? What about this header?
37014 case $ac_header_compiler:$ac_header_preproc in
37015 yes:no )
37016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37021 cat <<\_ASBOX
37022 ## ------------------------------------ ##
37023 ## Report this to bug-autoconf@gnu.org. ##
37024 ## ------------------------------------ ##
37025 _ASBOX
37027 sed "s/^/$as_me: WARNING: /" >&2
37029 no:yes )
37030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37037 cat <<\_ASBOX
37038 ## ------------------------------------ ##
37039 ## Report this to bug-autoconf@gnu.org. ##
37040 ## ------------------------------------ ##
37041 _ASBOX
37043 sed "s/^/$as_me: WARNING: /" >&2
37045 esac
37046 echo "$as_me:$LINENO: checking for $ac_header" >&5
37047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37049 echo $ECHO_N "(cached) $ECHO_C" >&6
37050 else
37051 eval "$as_ac_Header=$ac_header_preproc"
37053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37058 cat >>confdefs.h <<_ACEOF
37059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37060 _ACEOF
37061 ac_has_wchar_h=yes
37062 else
37063 ac_has_wchar_h=no
37066 done
37069 for ac_header in wctype.h
37071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37073 echo "$as_me:$LINENO: checking for $ac_header" >&5
37074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37076 echo $ECHO_N "(cached) $ECHO_C" >&6
37078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37080 else
37081 # Is the header compilable?
37082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37084 cat >conftest.$ac_ext <<_ACEOF
37085 #line $LINENO "configure"
37086 /* confdefs.h. */
37087 _ACEOF
37088 cat confdefs.h >>conftest.$ac_ext
37089 cat >>conftest.$ac_ext <<_ACEOF
37090 /* end confdefs.h. */
37091 $ac_includes_default
37092 #include <$ac_header>
37093 _ACEOF
37094 rm -f conftest.$ac_objext
37095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37096 (eval $ac_compile) 2>&5
37097 ac_status=$?
37098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099 (exit $ac_status); } &&
37100 { ac_try='test -s conftest.$ac_objext'
37101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37102 (eval $ac_try) 2>&5
37103 ac_status=$?
37104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37105 (exit $ac_status); }; }; then
37106 ac_header_compiler=yes
37107 else
37108 echo "$as_me: failed program was:" >&5
37109 sed 's/^/| /' conftest.$ac_ext >&5
37111 ac_header_compiler=no
37113 rm -f conftest.$ac_objext conftest.$ac_ext
37114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37115 echo "${ECHO_T}$ac_header_compiler" >&6
37117 # Is the header present?
37118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37120 cat >conftest.$ac_ext <<_ACEOF
37121 #line $LINENO "configure"
37122 /* confdefs.h. */
37123 _ACEOF
37124 cat confdefs.h >>conftest.$ac_ext
37125 cat >>conftest.$ac_ext <<_ACEOF
37126 /* end confdefs.h. */
37127 #include <$ac_header>
37128 _ACEOF
37129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37131 ac_status=$?
37132 grep -v '^ *+' conftest.er1 >conftest.err
37133 rm -f conftest.er1
37134 cat conftest.err >&5
37135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37136 (exit $ac_status); } >/dev/null; then
37137 if test -s conftest.err; then
37138 ac_cpp_err=$ac_c_preproc_warn_flag
37139 else
37140 ac_cpp_err=
37142 else
37143 ac_cpp_err=yes
37145 if test -z "$ac_cpp_err"; then
37146 ac_header_preproc=yes
37147 else
37148 echo "$as_me: failed program was:" >&5
37149 sed 's/^/| /' conftest.$ac_ext >&5
37151 ac_header_preproc=no
37153 rm -f conftest.err conftest.$ac_ext
37154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37155 echo "${ECHO_T}$ac_header_preproc" >&6
37157 # So? What about this header?
37158 case $ac_header_compiler:$ac_header_preproc in
37159 yes:no )
37160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37165 cat <<\_ASBOX
37166 ## ------------------------------------ ##
37167 ## Report this to bug-autoconf@gnu.org. ##
37168 ## ------------------------------------ ##
37169 _ASBOX
37171 sed "s/^/$as_me: WARNING: /" >&2
37173 no:yes )
37174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37181 cat <<\_ASBOX
37182 ## ------------------------------------ ##
37183 ## Report this to bug-autoconf@gnu.org. ##
37184 ## ------------------------------------ ##
37185 _ASBOX
37187 sed "s/^/$as_me: WARNING: /" >&2
37189 esac
37190 echo "$as_me:$LINENO: checking for $ac_header" >&5
37191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37193 echo $ECHO_N "(cached) $ECHO_C" >&6
37194 else
37195 eval "$as_ac_Header=$ac_header_preproc"
37197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37202 cat >>confdefs.h <<_ACEOF
37203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37204 _ACEOF
37205 ac_has_wctype_h=yes
37206 else
37207 ac_has_wctype_h=no
37210 done
37213 # Only continue checking if the ISO C99 headers exist and support is on.
37214 if test x"$ac_has_wchar_h" = xyes &&
37215 test x"$ac_has_wctype_h" = xyes &&
37216 test x"$enable_c_mbchar" != xno; then
37218 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
37219 # numeric_limits can instantiate type_traits<wchar_t>
37220 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
37221 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
37222 cat >conftest.$ac_ext <<_ACEOF
37223 #line $LINENO "configure"
37224 /* confdefs.h. */
37225 _ACEOF
37226 cat confdefs.h >>conftest.$ac_ext
37227 cat >>conftest.$ac_ext <<_ACEOF
37228 /* end confdefs.h. */
37229 #include <wchar.h>
37231 main ()
37233 int i = WCHAR_MIN; int j = WCHAR_MAX;
37235 return 0;
37237 _ACEOF
37238 rm -f conftest.$ac_objext
37239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37240 (eval $ac_compile) 2>&5
37241 ac_status=$?
37242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37243 (exit $ac_status); } &&
37244 { ac_try='test -s conftest.$ac_objext'
37245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37246 (eval $ac_try) 2>&5
37247 ac_status=$?
37248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37249 (exit $ac_status); }; }; then
37250 has_wchar_minmax=yes
37251 else
37252 echo "$as_me: failed program was:" >&5
37253 sed 's/^/| /' conftest.$ac_ext >&5
37255 has_wchar_minmax=no
37257 rm -f conftest.$ac_objext conftest.$ac_ext
37258 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
37259 echo "${ECHO_T}$has_wchar_minmax" >&6
37261 # Test wchar.h for WEOF, which is what we use to determine whether
37262 # to specialize for char_traits<wchar_t> or not.
37263 echo "$as_me:$LINENO: checking for WEOF" >&5
37264 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
37265 cat >conftest.$ac_ext <<_ACEOF
37266 #line $LINENO "configure"
37267 /* confdefs.h. */
37268 _ACEOF
37269 cat confdefs.h >>conftest.$ac_ext
37270 cat >>conftest.$ac_ext <<_ACEOF
37271 /* end confdefs.h. */
37273 #include <wchar.h>
37274 #include <stddef.h>
37276 main ()
37278 wint_t i = WEOF;
37280 return 0;
37282 _ACEOF
37283 rm -f conftest.$ac_objext
37284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37285 (eval $ac_compile) 2>&5
37286 ac_status=$?
37287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37288 (exit $ac_status); } &&
37289 { ac_try='test -s conftest.$ac_objext'
37290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37291 (eval $ac_try) 2>&5
37292 ac_status=$?
37293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294 (exit $ac_status); }; }; then
37295 has_weof=yes
37296 else
37297 echo "$as_me: failed program was:" >&5
37298 sed 's/^/| /' conftest.$ac_ext >&5
37300 has_weof=no
37302 rm -f conftest.$ac_objext conftest.$ac_ext
37303 echo "$as_me:$LINENO: result: $has_weof" >&5
37304 echo "${ECHO_T}$has_weof" >&6
37306 # Tests for wide character functions used in char_traits<wchar_t>.
37307 ac_wfuncs=yes
37314 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
37316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37317 echo "$as_me:$LINENO: checking for $ac_func" >&5
37318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37319 if eval "test \"\${$as_ac_var+set}\" = set"; then
37320 echo $ECHO_N "(cached) $ECHO_C" >&6
37321 else
37322 cat >conftest.$ac_ext <<_ACEOF
37323 #line $LINENO "configure"
37324 /* confdefs.h. */
37325 _ACEOF
37326 cat confdefs.h >>conftest.$ac_ext
37327 cat >>conftest.$ac_ext <<_ACEOF
37328 /* end confdefs.h. */
37329 /* System header to define __stub macros and hopefully few prototypes,
37330 which can conflict with char $ac_func (); below.
37331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37332 <limits.h> exists even on freestanding compilers. */
37333 #ifdef __STDC__
37334 # include <limits.h>
37335 #else
37336 # include <assert.h>
37337 #endif
37338 /* Override any gcc2 internal prototype to avoid an error. */
37339 #ifdef __cplusplus
37340 extern "C"
37342 #endif
37343 /* We use char because int might match the return type of a gcc2
37344 builtin and then its argument prototype would still apply. */
37345 char $ac_func ();
37346 /* The GNU C library defines this for functions which it implements
37347 to always fail with ENOSYS. Some functions are actually named
37348 something starting with __ and the normal name is an alias. */
37349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37350 choke me
37351 #else
37352 char (*f) () = $ac_func;
37353 #endif
37354 #ifdef __cplusplus
37356 #endif
37359 main ()
37361 return f != $ac_func;
37363 return 0;
37365 _ACEOF
37366 rm -f conftest.$ac_objext conftest$ac_exeext
37367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37368 (eval $ac_link) 2>&5
37369 ac_status=$?
37370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37371 (exit $ac_status); } &&
37372 { ac_try='test -s conftest$ac_exeext'
37373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37374 (eval $ac_try) 2>&5
37375 ac_status=$?
37376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37377 (exit $ac_status); }; }; then
37378 eval "$as_ac_var=yes"
37379 else
37380 echo "$as_me: failed program was:" >&5
37381 sed 's/^/| /' conftest.$ac_ext >&5
37383 eval "$as_ac_var=no"
37385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37389 if test `eval echo '${'$as_ac_var'}'` = yes; then
37390 cat >>confdefs.h <<_ACEOF
37391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37392 _ACEOF
37394 else
37395 ac_wfuncs=no
37397 done
37400 # Checks for names injected into std:: by the c_std headers.
37451 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
37452 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
37453 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
37454 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
37455 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
37456 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
37458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37459 echo "$as_me:$LINENO: checking for $ac_func" >&5
37460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37461 if eval "test \"\${$as_ac_var+set}\" = set"; then
37462 echo $ECHO_N "(cached) $ECHO_C" >&6
37463 else
37464 cat >conftest.$ac_ext <<_ACEOF
37465 #line $LINENO "configure"
37466 /* confdefs.h. */
37467 _ACEOF
37468 cat confdefs.h >>conftest.$ac_ext
37469 cat >>conftest.$ac_ext <<_ACEOF
37470 /* end confdefs.h. */
37471 /* System header to define __stub macros and hopefully few prototypes,
37472 which can conflict with char $ac_func (); below.
37473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37474 <limits.h> exists even on freestanding compilers. */
37475 #ifdef __STDC__
37476 # include <limits.h>
37477 #else
37478 # include <assert.h>
37479 #endif
37480 /* Override any gcc2 internal prototype to avoid an error. */
37481 #ifdef __cplusplus
37482 extern "C"
37484 #endif
37485 /* We use char because int might match the return type of a gcc2
37486 builtin and then its argument prototype would still apply. */
37487 char $ac_func ();
37488 /* The GNU C library defines this for functions which it implements
37489 to always fail with ENOSYS. Some functions are actually named
37490 something starting with __ and the normal name is an alias. */
37491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37492 choke me
37493 #else
37494 char (*f) () = $ac_func;
37495 #endif
37496 #ifdef __cplusplus
37498 #endif
37501 main ()
37503 return f != $ac_func;
37505 return 0;
37507 _ACEOF
37508 rm -f conftest.$ac_objext conftest$ac_exeext
37509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37510 (eval $ac_link) 2>&5
37511 ac_status=$?
37512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513 (exit $ac_status); } &&
37514 { ac_try='test -s conftest$ac_exeext'
37515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37516 (eval $ac_try) 2>&5
37517 ac_status=$?
37518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37519 (exit $ac_status); }; }; then
37520 eval "$as_ac_var=yes"
37521 else
37522 echo "$as_me: failed program was:" >&5
37523 sed 's/^/| /' conftest.$ac_ext >&5
37525 eval "$as_ac_var=no"
37527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37531 if test `eval echo '${'$as_ac_var'}'` = yes; then
37532 cat >>confdefs.h <<_ACEOF
37533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37534 _ACEOF
37536 else
37537 ac_wfuncs=no
37539 done
37542 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
37543 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
37544 if test x"$has_weof" = xyes &&
37545 test x"$has_wchar_minmax" = xyes &&
37546 test x"$ac_wfuncs" = xyes;
37547 then
37548 ac_isoC99_wchar_t=yes
37549 else
37550 ac_isoC99_wchar_t=no
37552 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
37553 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
37555 # Use iconv for wchar_t to char conversions. As such, check for
37556 # X/Open Portability Guide, version 2 features (XPG2).
37557 if test "${ac_cv_header_iconv_h+set}" = set; then
37558 echo "$as_me:$LINENO: checking for iconv.h" >&5
37559 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
37560 if test "${ac_cv_header_iconv_h+set}" = set; then
37561 echo $ECHO_N "(cached) $ECHO_C" >&6
37563 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
37564 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
37565 else
37566 # Is the header compilable?
37567 echo "$as_me:$LINENO: checking iconv.h usability" >&5
37568 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
37569 cat >conftest.$ac_ext <<_ACEOF
37570 #line $LINENO "configure"
37571 /* confdefs.h. */
37572 _ACEOF
37573 cat confdefs.h >>conftest.$ac_ext
37574 cat >>conftest.$ac_ext <<_ACEOF
37575 /* end confdefs.h. */
37576 $ac_includes_default
37577 #include <iconv.h>
37578 _ACEOF
37579 rm -f conftest.$ac_objext
37580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37581 (eval $ac_compile) 2>&5
37582 ac_status=$?
37583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37584 (exit $ac_status); } &&
37585 { ac_try='test -s conftest.$ac_objext'
37586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37587 (eval $ac_try) 2>&5
37588 ac_status=$?
37589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590 (exit $ac_status); }; }; then
37591 ac_header_compiler=yes
37592 else
37593 echo "$as_me: failed program was:" >&5
37594 sed 's/^/| /' conftest.$ac_ext >&5
37596 ac_header_compiler=no
37598 rm -f conftest.$ac_objext conftest.$ac_ext
37599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37600 echo "${ECHO_T}$ac_header_compiler" >&6
37602 # Is the header present?
37603 echo "$as_me:$LINENO: checking iconv.h presence" >&5
37604 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
37605 cat >conftest.$ac_ext <<_ACEOF
37606 #line $LINENO "configure"
37607 /* confdefs.h. */
37608 _ACEOF
37609 cat confdefs.h >>conftest.$ac_ext
37610 cat >>conftest.$ac_ext <<_ACEOF
37611 /* end confdefs.h. */
37612 #include <iconv.h>
37613 _ACEOF
37614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37616 ac_status=$?
37617 grep -v '^ *+' conftest.er1 >conftest.err
37618 rm -f conftest.er1
37619 cat conftest.err >&5
37620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621 (exit $ac_status); } >/dev/null; then
37622 if test -s conftest.err; then
37623 ac_cpp_err=$ac_c_preproc_warn_flag
37624 else
37625 ac_cpp_err=
37627 else
37628 ac_cpp_err=yes
37630 if test -z "$ac_cpp_err"; then
37631 ac_header_preproc=yes
37632 else
37633 echo "$as_me: failed program was:" >&5
37634 sed 's/^/| /' conftest.$ac_ext >&5
37636 ac_header_preproc=no
37638 rm -f conftest.err conftest.$ac_ext
37639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37640 echo "${ECHO_T}$ac_header_preproc" >&6
37642 # So? What about this header?
37643 case $ac_header_compiler:$ac_header_preproc in
37644 yes:no )
37645 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
37646 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37647 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
37648 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
37650 cat <<\_ASBOX
37651 ## ------------------------------------ ##
37652 ## Report this to bug-autoconf@gnu.org. ##
37653 ## ------------------------------------ ##
37654 _ASBOX
37656 sed "s/^/$as_me: WARNING: /" >&2
37658 no:yes )
37659 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
37660 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
37661 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
37662 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
37663 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
37664 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
37666 cat <<\_ASBOX
37667 ## ------------------------------------ ##
37668 ## Report this to bug-autoconf@gnu.org. ##
37669 ## ------------------------------------ ##
37670 _ASBOX
37672 sed "s/^/$as_me: WARNING: /" >&2
37674 esac
37675 echo "$as_me:$LINENO: checking for iconv.h" >&5
37676 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
37677 if test "${ac_cv_header_iconv_h+set}" = set; then
37678 echo $ECHO_N "(cached) $ECHO_C" >&6
37679 else
37680 ac_cv_header_iconv_h=$ac_header_preproc
37682 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
37683 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
37686 if test $ac_cv_header_iconv_h = yes; then
37687 ac_has_iconv_h=yes
37688 else
37689 ac_has_iconv_h=no
37693 if test "${ac_cv_header_langinfo_h+set}" = set; then
37694 echo "$as_me:$LINENO: checking for langinfo.h" >&5
37695 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
37696 if test "${ac_cv_header_langinfo_h+set}" = set; then
37697 echo $ECHO_N "(cached) $ECHO_C" >&6
37699 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
37700 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
37701 else
37702 # Is the header compilable?
37703 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
37704 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
37705 cat >conftest.$ac_ext <<_ACEOF
37706 #line $LINENO "configure"
37707 /* confdefs.h. */
37708 _ACEOF
37709 cat confdefs.h >>conftest.$ac_ext
37710 cat >>conftest.$ac_ext <<_ACEOF
37711 /* end confdefs.h. */
37712 $ac_includes_default
37713 #include <langinfo.h>
37714 _ACEOF
37715 rm -f conftest.$ac_objext
37716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37717 (eval $ac_compile) 2>&5
37718 ac_status=$?
37719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37720 (exit $ac_status); } &&
37721 { ac_try='test -s conftest.$ac_objext'
37722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37723 (eval $ac_try) 2>&5
37724 ac_status=$?
37725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37726 (exit $ac_status); }; }; then
37727 ac_header_compiler=yes
37728 else
37729 echo "$as_me: failed program was:" >&5
37730 sed 's/^/| /' conftest.$ac_ext >&5
37732 ac_header_compiler=no
37734 rm -f conftest.$ac_objext conftest.$ac_ext
37735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37736 echo "${ECHO_T}$ac_header_compiler" >&6
37738 # Is the header present?
37739 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
37740 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
37741 cat >conftest.$ac_ext <<_ACEOF
37742 #line $LINENO "configure"
37743 /* confdefs.h. */
37744 _ACEOF
37745 cat confdefs.h >>conftest.$ac_ext
37746 cat >>conftest.$ac_ext <<_ACEOF
37747 /* end confdefs.h. */
37748 #include <langinfo.h>
37749 _ACEOF
37750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37752 ac_status=$?
37753 grep -v '^ *+' conftest.er1 >conftest.err
37754 rm -f conftest.er1
37755 cat conftest.err >&5
37756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37757 (exit $ac_status); } >/dev/null; then
37758 if test -s conftest.err; then
37759 ac_cpp_err=$ac_c_preproc_warn_flag
37760 else
37761 ac_cpp_err=
37763 else
37764 ac_cpp_err=yes
37766 if test -z "$ac_cpp_err"; then
37767 ac_header_preproc=yes
37768 else
37769 echo "$as_me: failed program was:" >&5
37770 sed 's/^/| /' conftest.$ac_ext >&5
37772 ac_header_preproc=no
37774 rm -f conftest.err conftest.$ac_ext
37775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37776 echo "${ECHO_T}$ac_header_preproc" >&6
37778 # So? What about this header?
37779 case $ac_header_compiler:$ac_header_preproc in
37780 yes:no )
37781 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
37782 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37783 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
37784 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
37786 cat <<\_ASBOX
37787 ## ------------------------------------ ##
37788 ## Report this to bug-autoconf@gnu.org. ##
37789 ## ------------------------------------ ##
37790 _ASBOX
37792 sed "s/^/$as_me: WARNING: /" >&2
37794 no:yes )
37795 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
37796 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
37797 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
37798 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
37799 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
37800 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
37802 cat <<\_ASBOX
37803 ## ------------------------------------ ##
37804 ## Report this to bug-autoconf@gnu.org. ##
37805 ## ------------------------------------ ##
37806 _ASBOX
37808 sed "s/^/$as_me: WARNING: /" >&2
37810 esac
37811 echo "$as_me:$LINENO: checking for langinfo.h" >&5
37812 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
37813 if test "${ac_cv_header_langinfo_h+set}" = set; then
37814 echo $ECHO_N "(cached) $ECHO_C" >&6
37815 else
37816 ac_cv_header_langinfo_h=$ac_header_preproc
37818 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
37819 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
37822 if test $ac_cv_header_langinfo_h = yes; then
37823 ac_has_langinfo_h=yes
37824 else
37825 ac_has_langinfo_h=no
37830 # Check for existence of libiconv.a providing XPG2 wchar_t support.
37831 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
37832 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
37833 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
37834 echo $ECHO_N "(cached) $ECHO_C" >&6
37835 else
37836 ac_check_lib_save_LIBS=$LIBS
37837 LIBS="-liconv $LIBS"
37838 cat >conftest.$ac_ext <<_ACEOF
37839 #line $LINENO "configure"
37840 /* confdefs.h. */
37841 _ACEOF
37842 cat confdefs.h >>conftest.$ac_ext
37843 cat >>conftest.$ac_ext <<_ACEOF
37844 /* end confdefs.h. */
37846 /* Override any gcc2 internal prototype to avoid an error. */
37847 #ifdef __cplusplus
37848 extern "C"
37849 #endif
37850 /* We use char because int might match the return type of a gcc2
37851 builtin and then its argument prototype would still apply. */
37852 char iconv ();
37854 main ()
37856 iconv ();
37858 return 0;
37860 _ACEOF
37861 rm -f conftest.$ac_objext conftest$ac_exeext
37862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37863 (eval $ac_link) 2>&5
37864 ac_status=$?
37865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37866 (exit $ac_status); } &&
37867 { ac_try='test -s conftest$ac_exeext'
37868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37869 (eval $ac_try) 2>&5
37870 ac_status=$?
37871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37872 (exit $ac_status); }; }; then
37873 ac_cv_lib_iconv_iconv=yes
37874 else
37875 echo "$as_me: failed program was:" >&5
37876 sed 's/^/| /' conftest.$ac_ext >&5
37878 ac_cv_lib_iconv_iconv=no
37880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37881 LIBS=$ac_check_lib_save_LIBS
37883 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
37884 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
37885 if test $ac_cv_lib_iconv_iconv = yes; then
37886 libiconv="-liconv"
37889 ac_save_LIBS="$LIBS"
37890 LIBS="$LIBS $libiconv"
37896 for ac_func in iconv_open iconv_close iconv nl_langinfo
37898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37899 echo "$as_me:$LINENO: checking for $ac_func" >&5
37900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37901 if eval "test \"\${$as_ac_var+set}\" = set"; then
37902 echo $ECHO_N "(cached) $ECHO_C" >&6
37903 else
37904 cat >conftest.$ac_ext <<_ACEOF
37905 #line $LINENO "configure"
37906 /* confdefs.h. */
37907 _ACEOF
37908 cat confdefs.h >>conftest.$ac_ext
37909 cat >>conftest.$ac_ext <<_ACEOF
37910 /* end confdefs.h. */
37911 /* System header to define __stub macros and hopefully few prototypes,
37912 which can conflict with char $ac_func (); below.
37913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37914 <limits.h> exists even on freestanding compilers. */
37915 #ifdef __STDC__
37916 # include <limits.h>
37917 #else
37918 # include <assert.h>
37919 #endif
37920 /* Override any gcc2 internal prototype to avoid an error. */
37921 #ifdef __cplusplus
37922 extern "C"
37924 #endif
37925 /* We use char because int might match the return type of a gcc2
37926 builtin and then its argument prototype would still apply. */
37927 char $ac_func ();
37928 /* The GNU C library defines this for functions which it implements
37929 to always fail with ENOSYS. Some functions are actually named
37930 something starting with __ and the normal name is an alias. */
37931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37932 choke me
37933 #else
37934 char (*f) () = $ac_func;
37935 #endif
37936 #ifdef __cplusplus
37938 #endif
37941 main ()
37943 return f != $ac_func;
37945 return 0;
37947 _ACEOF
37948 rm -f conftest.$ac_objext conftest$ac_exeext
37949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37950 (eval $ac_link) 2>&5
37951 ac_status=$?
37952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37953 (exit $ac_status); } &&
37954 { ac_try='test -s conftest$ac_exeext'
37955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37956 (eval $ac_try) 2>&5
37957 ac_status=$?
37958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37959 (exit $ac_status); }; }; then
37960 eval "$as_ac_var=yes"
37961 else
37962 echo "$as_me: failed program was:" >&5
37963 sed 's/^/| /' conftest.$ac_ext >&5
37965 eval "$as_ac_var=no"
37967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37971 if test `eval echo '${'$as_ac_var'}'` = yes; then
37972 cat >>confdefs.h <<_ACEOF
37973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37974 _ACEOF
37975 ac_XPG2funcs=yes
37976 else
37977 ac_XPG2funcs=no
37979 done
37982 LIBS="$ac_save_LIBS"
37984 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
37985 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
37986 if test x"$ac_has_iconv_h" = xyes &&
37987 test x"$ac_has_langinfo_h" = xyes &&
37988 test x"$ac_XPG2funcs" = xyes;
37989 then
37990 ac_XPG2_wchar_t=yes
37991 else
37992 ac_XPG2_wchar_t=no
37994 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
37995 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
37997 # At the moment, only enable wchar_t specializations if all the
37998 # above support is present.
37999 if test x"$ac_isoC99_wchar_t" = xyes &&
38000 test x"$ac_XPG2_wchar_t" = xyes;
38001 then
38002 cat >>confdefs.h <<\_ACEOF
38003 #define _GLIBCXX_USE_WCHAR_T 1
38004 _ACEOF
38006 enable_wchar_t=yes
38009 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
38010 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
38011 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
38012 echo "${ECHO_T}$enable_wchar_t" >&6
38014 cat >>confdefs.h <<\_ACEOF
38015 #define HAVE_COSF 1
38016 _ACEOF
38018 cat >>confdefs.h <<\_ACEOF
38019 #define HAVE_COSL 1
38020 _ACEOF
38022 cat >>confdefs.h <<\_ACEOF
38023 #define HAVE_COSHF 1
38024 _ACEOF
38026 cat >>confdefs.h <<\_ACEOF
38027 #define HAVE_COSHL 1
38028 _ACEOF
38030 cat >>confdefs.h <<\_ACEOF
38031 #define HAVE_LOGF 1
38032 _ACEOF
38034 cat >>confdefs.h <<\_ACEOF
38035 #define HAVE_LOGL 1
38036 _ACEOF
38038 cat >>confdefs.h <<\_ACEOF
38039 #define HAVE_LOG10F 1
38040 _ACEOF
38042 cat >>confdefs.h <<\_ACEOF
38043 #define HAVE_LOG10L 1
38044 _ACEOF
38046 cat >>confdefs.h <<\_ACEOF
38047 #define HAVE_SINF 1
38048 _ACEOF
38050 cat >>confdefs.h <<\_ACEOF
38051 #define HAVE_SINL 1
38052 _ACEOF
38054 cat >>confdefs.h <<\_ACEOF
38055 #define HAVE_SINHF 1
38056 _ACEOF
38058 cat >>confdefs.h <<\_ACEOF
38059 #define HAVE_SINHL 1
38060 _ACEOF
38063 *-solaris*)
38064 #case "$target" in
38065 # *-solaris2.5)
38066 # os_include_dir="os/solaris/solaris2.5"
38067 # ;;
38068 # *-solaris2.6)
38069 # os_include_dir="os/solaris/solaris2.6"
38070 # ;;
38071 # *-solaris2.7 | *-solaris2.8 | *-solaris2.9)
38072 # os_include_dir="os/solaris/solaris2.7"
38073 # ;;
38074 #esac
38075 cat >>confdefs.h <<\_ACEOF
38076 #define HAVE_STRTOF 1
38077 _ACEOF
38079 cat >>confdefs.h <<\_ACEOF
38080 #define HAVE_STRTOLD 1
38081 _ACEOF
38083 cat >>confdefs.h <<\_ACEOF
38084 #define HAVE_MMAP 1
38085 _ACEOF
38087 cat >>confdefs.h <<\_ACEOF
38088 #define HAVE_COPYSIGN 1
38089 _ACEOF
38091 cat >>confdefs.h <<\_ACEOF
38092 #define HAVE_ISNAN 1
38093 _ACEOF
38095 cat >>confdefs.h <<\_ACEOF
38096 #define HAVE_ISNANF 1
38097 _ACEOF
38099 cat >>confdefs.h <<\_ACEOF
38100 #define HAVE_MODFF 1
38101 _ACEOF
38103 cat >>confdefs.h <<\_ACEOF
38104 #define HAVE_HYPOT 1
38105 _ACEOF
38108 *-windiss*)
38109 #os_include_dir="os/windiss"
38110 cat >>confdefs.h <<\_ACEOF
38111 #define HAVE_ACOSF 1
38112 _ACEOF
38114 cat >>confdefs.h <<\_ACEOF
38115 #define HAVE_ASINF 1
38116 _ACEOF
38118 cat >>confdefs.h <<\_ACEOF
38119 #define HAVE_ATAN2F 1
38120 _ACEOF
38122 cat >>confdefs.h <<\_ACEOF
38123 #define HAVE_ATANF 1
38124 _ACEOF
38126 cat >>confdefs.h <<\_ACEOF
38127 #define HAVE_CEILF 1
38128 _ACEOF
38130 cat >>confdefs.h <<\_ACEOF
38131 #define HAVE_COPYSIGN 1
38132 _ACEOF
38134 cat >>confdefs.h <<\_ACEOF
38135 #define HAVE_COPYSIGNF 1
38136 _ACEOF
38138 cat >>confdefs.h <<\_ACEOF
38139 #define HAVE_COSF 1
38140 _ACEOF
38142 cat >>confdefs.h <<\_ACEOF
38143 #define HAVE_COSHF 1
38144 _ACEOF
38146 cat >>confdefs.h <<\_ACEOF
38147 #define HAVE_EXPF 1
38148 _ACEOF
38150 cat >>confdefs.h <<\_ACEOF
38151 #define HAVE_FABSF 1
38152 _ACEOF
38154 cat >>confdefs.h <<\_ACEOF
38155 #define HAVE_FLOORF 1
38156 _ACEOF
38158 cat >>confdefs.h <<\_ACEOF
38159 #define HAVE_FMODF 1
38160 _ACEOF
38162 cat >>confdefs.h <<\_ACEOF
38163 #define HAVE_FREXPF 1
38164 _ACEOF
38166 cat >>confdefs.h <<\_ACEOF
38167 #define HAVE_LDEXPF 1
38168 _ACEOF
38170 cat >>confdefs.h <<\_ACEOF
38171 #define HAVE_LOG10F 1
38172 _ACEOF
38174 cat >>confdefs.h <<\_ACEOF
38175 #define HAVE_LOGF 1
38176 _ACEOF
38178 cat >>confdefs.h <<\_ACEOF
38179 #define HAVE_MODFF 1
38180 _ACEOF
38182 cat >>confdefs.h <<\_ACEOF
38183 #define HAVE_POWF 1
38184 _ACEOF
38186 cat >>confdefs.h <<\_ACEOF
38187 #define HAVE_SINF 1
38188 _ACEOF
38190 cat >>confdefs.h <<\_ACEOF
38191 #define HAVE_SINHF 1
38192 _ACEOF
38194 cat >>confdefs.h <<\_ACEOF
38195 #define HAVE_SQRTF 1
38196 _ACEOF
38198 cat >>confdefs.h <<\_ACEOF
38199 #define HAVE_TANF 1
38200 _ACEOF
38202 cat >>confdefs.h <<\_ACEOF
38203 #define HAVE_TANHF 1
38204 _ACEOF
38208 { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
38209 echo "$as_me: error: No support for this host/target combination." >&2;}
38210 { (exit 1); exit 1; }; }
38212 esac
38217 # At some point, we should differentiate between architectures
38218 # like x86, which have long double versions, and alpha/powerpc/etc.,
38219 # which don't. For the time being, punt.
38220 if test x"long_double_math_on_this_cpu" = x"yes"; then
38221 cat >>confdefs.h <<\_ACEOF
38222 #define HAVE_ACOSL 1
38223 _ACEOF
38225 cat >>confdefs.h <<\_ACEOF
38226 #define HAVE_ASINL 1
38227 _ACEOF
38229 cat >>confdefs.h <<\_ACEOF
38230 #define HAVE_ATAN2L 1
38231 _ACEOF
38233 cat >>confdefs.h <<\_ACEOF
38234 #define HAVE_ATANL 1
38235 _ACEOF
38237 cat >>confdefs.h <<\_ACEOF
38238 #define HAVE_CEILL 1
38239 _ACEOF
38241 cat >>confdefs.h <<\_ACEOF
38242 #define HAVE_COPYSIGNL 1
38243 _ACEOF
38245 cat >>confdefs.h <<\_ACEOF
38246 #define HAVE_COSL 1
38247 _ACEOF
38249 cat >>confdefs.h <<\_ACEOF
38250 #define HAVE_COSHL 1
38251 _ACEOF
38253 cat >>confdefs.h <<\_ACEOF
38254 #define HAVE_EXPL 1
38255 _ACEOF
38257 cat >>confdefs.h <<\_ACEOF
38258 #define HAVE_FABSL 1
38259 _ACEOF
38261 cat >>confdefs.h <<\_ACEOF
38262 #define HAVE_FLOORL 1
38263 _ACEOF
38265 cat >>confdefs.h <<\_ACEOF
38266 #define HAVE_FMODL 1
38267 _ACEOF
38269 cat >>confdefs.h <<\_ACEOF
38270 #define HAVE_FREXPL 1
38271 _ACEOF
38273 cat >>confdefs.h <<\_ACEOF
38274 #define HAVE_LDEXPL 1
38275 _ACEOF
38277 cat >>confdefs.h <<\_ACEOF
38278 #define HAVE_LOG10L 1
38279 _ACEOF
38281 cat >>confdefs.h <<\_ACEOF
38282 #define HAVE_LOGL 1
38283 _ACEOF
38285 cat >>confdefs.h <<\_ACEOF
38286 #define HAVE_MODFL 1
38287 _ACEOF
38289 cat >>confdefs.h <<\_ACEOF
38290 #define HAVE_POWL 1
38291 _ACEOF
38293 cat >>confdefs.h <<\_ACEOF
38294 #define HAVE_SINCOSL 1
38295 _ACEOF
38297 cat >>confdefs.h <<\_ACEOF
38298 #define HAVE_SINL 1
38299 _ACEOF
38301 cat >>confdefs.h <<\_ACEOF
38302 #define HAVE_SINHL 1
38303 _ACEOF
38305 cat >>confdefs.h <<\_ACEOF
38306 #define HAVE_SQRTL 1
38307 _ACEOF
38309 cat >>confdefs.h <<\_ACEOF
38310 #define HAVE_TANL 1
38311 _ACEOF
38313 cat >>confdefs.h <<\_ACEOF
38314 #define HAVE_TANHL 1
38315 _ACEOF
38321 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
38324 # Check whether --enable-symvers or --disable-symvers was given.
38325 if test "${enable_symvers+set}" = set; then
38326 enableval="$enable_symvers"
38328 case "$enableval" in
38329 yes|no|gnu) ;;
38330 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
38331 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
38332 { (exit 1); exit 1; }; } ;;
38333 esac
38335 else
38336 enable_symvers=yes
38340 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
38341 # don't know enough about $LD to do tricks...
38343 # FIXME The following test is too strict, in theory.
38344 if test $enable_shared = no ||
38345 test "x$LD" = x ||
38346 test x$glibcxx_gnu_ld_version = x; then
38347 enable_symvers=no
38350 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
38351 if test $enable_symvers != no; then
38352 echo "$as_me:$LINENO: checking for shared libgcc" >&5
38353 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
38354 ac_save_CFLAGS="$CFLAGS"
38355 CFLAGS=' -lgcc_s'
38356 cat >conftest.$ac_ext <<_ACEOF
38357 #line $LINENO "configure"
38358 /* confdefs.h. */
38359 _ACEOF
38360 cat confdefs.h >>conftest.$ac_ext
38361 cat >>conftest.$ac_ext <<_ACEOF
38362 /* end confdefs.h. */
38365 main ()
38367 return 0;
38369 return 0;
38371 _ACEOF
38372 rm -f conftest.$ac_objext conftest$ac_exeext
38373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38374 (eval $ac_link) 2>&5
38375 ac_status=$?
38376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38377 (exit $ac_status); } &&
38378 { ac_try='test -s conftest$ac_exeext'
38379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38380 (eval $ac_try) 2>&5
38381 ac_status=$?
38382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38383 (exit $ac_status); }; }; then
38384 glibcxx_shared_libgcc=yes
38385 else
38386 echo "$as_me: failed program was:" >&5
38387 sed 's/^/| /' conftest.$ac_ext >&5
38389 glibcxx_shared_libgcc=no
38391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38392 CFLAGS="$ac_save_CFLAGS"
38393 echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
38394 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
38397 # For GNU ld, we need at least this version. The format is described in
38398 # GLIBCXX_CHECK_LINKER_FEATURES above.
38399 glibcxx_min_gnu_ld_version=21400
38400 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
38402 # Check to see if unspecified "yes" value can win, given results above.
38403 # Change "yes" into either "no" or a style name.
38404 if test $enable_symvers = yes; then
38405 if test $with_gnu_ld = yes &&
38406 test $glibcxx_shared_libgcc = yes;
38407 then
38408 if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
38409 enable_symvers=gnu
38410 else
38411 # The right tools, the right setup, but too old. Fallbacks?
38412 { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
38413 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
38414 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
38415 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
38416 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
38417 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
38418 { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
38419 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
38420 if test $glibcxx_gnu_ld_version -ge 21200 ; then
38421 # Globbing fix is present, proper block support is not.
38422 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
38423 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
38424 enable_symvers=no
38425 else
38426 # 2.11 or older.
38427 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
38428 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
38429 enable_symvers=no
38432 else
38433 # just fail for now
38434 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
38435 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
38436 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
38437 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
38438 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
38439 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
38440 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
38441 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
38442 enable_symvers=no
38446 # Everything parsed; figure out what file to use.
38447 case $enable_symvers in
38449 SYMVER_MAP=config/linker-map.dummy
38451 gnu)
38452 SYMVER_MAP=config/linker-map.gnu
38453 cat >>confdefs.h <<\_ACEOF
38454 #define _GLIBCXX_SYMVER 1
38455 _ACEOF
38458 esac
38464 if test $enable_symvers != no; then
38465 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
38466 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
38467 else
38468 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
38469 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
38472 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
38473 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
38476 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
38478 if $GLIBCXX_IS_NATIVE; then
38479 # Do checks for memory limit functions.
38481 setrlimit_have_headers=yes
38485 for ac_header in unistd.h sys/time.h sys/resource.h
38487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38489 echo "$as_me:$LINENO: checking for $ac_header" >&5
38490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38492 echo $ECHO_N "(cached) $ECHO_C" >&6
38494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38496 else
38497 # Is the header compilable?
38498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38500 cat >conftest.$ac_ext <<_ACEOF
38501 #line $LINENO "configure"
38502 /* confdefs.h. */
38503 _ACEOF
38504 cat confdefs.h >>conftest.$ac_ext
38505 cat >>conftest.$ac_ext <<_ACEOF
38506 /* end confdefs.h. */
38507 $ac_includes_default
38508 #include <$ac_header>
38509 _ACEOF
38510 rm -f conftest.$ac_objext
38511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38512 (eval $ac_compile) 2>&5
38513 ac_status=$?
38514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38515 (exit $ac_status); } &&
38516 { ac_try='test -s conftest.$ac_objext'
38517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38518 (eval $ac_try) 2>&5
38519 ac_status=$?
38520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521 (exit $ac_status); }; }; then
38522 ac_header_compiler=yes
38523 else
38524 echo "$as_me: failed program was:" >&5
38525 sed 's/^/| /' conftest.$ac_ext >&5
38527 ac_header_compiler=no
38529 rm -f conftest.$ac_objext conftest.$ac_ext
38530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38531 echo "${ECHO_T}$ac_header_compiler" >&6
38533 # Is the header present?
38534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38536 cat >conftest.$ac_ext <<_ACEOF
38537 #line $LINENO "configure"
38538 /* confdefs.h. */
38539 _ACEOF
38540 cat confdefs.h >>conftest.$ac_ext
38541 cat >>conftest.$ac_ext <<_ACEOF
38542 /* end confdefs.h. */
38543 #include <$ac_header>
38544 _ACEOF
38545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38547 ac_status=$?
38548 grep -v '^ *+' conftest.er1 >conftest.err
38549 rm -f conftest.er1
38550 cat conftest.err >&5
38551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38552 (exit $ac_status); } >/dev/null; then
38553 if test -s conftest.err; then
38554 ac_cpp_err=$ac_c_preproc_warn_flag
38555 else
38556 ac_cpp_err=
38558 else
38559 ac_cpp_err=yes
38561 if test -z "$ac_cpp_err"; then
38562 ac_header_preproc=yes
38563 else
38564 echo "$as_me: failed program was:" >&5
38565 sed 's/^/| /' conftest.$ac_ext >&5
38567 ac_header_preproc=no
38569 rm -f conftest.err conftest.$ac_ext
38570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38571 echo "${ECHO_T}$ac_header_preproc" >&6
38573 # So? What about this header?
38574 case $ac_header_compiler:$ac_header_preproc in
38575 yes:no )
38576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38581 cat <<\_ASBOX
38582 ## ------------------------------------ ##
38583 ## Report this to bug-autoconf@gnu.org. ##
38584 ## ------------------------------------ ##
38585 _ASBOX
38587 sed "s/^/$as_me: WARNING: /" >&2
38589 no:yes )
38590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38597 cat <<\_ASBOX
38598 ## ------------------------------------ ##
38599 ## Report this to bug-autoconf@gnu.org. ##
38600 ## ------------------------------------ ##
38601 _ASBOX
38603 sed "s/^/$as_me: WARNING: /" >&2
38605 esac
38606 echo "$as_me:$LINENO: checking for $ac_header" >&5
38607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38609 echo $ECHO_N "(cached) $ECHO_C" >&6
38610 else
38611 eval "$as_ac_Header=$ac_header_preproc"
38613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38618 cat >>confdefs.h <<_ACEOF
38619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38620 _ACEOF
38622 else
38623 setrlimit_have_headers=no
38626 done
38628 # If don't have the headers, then we can't run the tests now, and we
38629 # won't be seeing any of these during testsuite compilation.
38630 if test $setrlimit_have_headers = yes; then
38631 # Can't do these in a loop, else the resulting syntax is wrong.
38633 cat >conftest.$ac_ext <<_ACEOF
38634 #line $LINENO "configure"
38635 /* confdefs.h. */
38636 _ACEOF
38637 cat confdefs.h >>conftest.$ac_ext
38638 cat >>conftest.$ac_ext <<_ACEOF
38639 /* end confdefs.h. */
38640 #include <unistd.h>
38641 #include <sys/time.h>
38642 #include <sys/resource.h>
38645 main ()
38647 int f = RLIMIT_DATA ;
38649 return 0;
38651 _ACEOF
38652 rm -f conftest.$ac_objext
38653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38654 (eval $ac_compile) 2>&5
38655 ac_status=$?
38656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38657 (exit $ac_status); } &&
38658 { ac_try='test -s conftest.$ac_objext'
38659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38660 (eval $ac_try) 2>&5
38661 ac_status=$?
38662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38663 (exit $ac_status); }; }; then
38664 glibcxx_mresult=1
38665 else
38666 echo "$as_me: failed program was:" >&5
38667 sed 's/^/| /' conftest.$ac_ext >&5
38669 glibcxx_mresult=0
38671 rm -f conftest.$ac_objext conftest.$ac_ext
38673 cat >>confdefs.h <<_ACEOF
38674 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
38675 _ACEOF
38679 cat >conftest.$ac_ext <<_ACEOF
38680 #line $LINENO "configure"
38681 /* confdefs.h. */
38682 _ACEOF
38683 cat confdefs.h >>conftest.$ac_ext
38684 cat >>conftest.$ac_ext <<_ACEOF
38685 /* end confdefs.h. */
38686 #include <unistd.h>
38687 #include <sys/time.h>
38688 #include <sys/resource.h>
38691 main ()
38693 int f = RLIMIT_RSS ;
38695 return 0;
38697 _ACEOF
38698 rm -f conftest.$ac_objext
38699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38700 (eval $ac_compile) 2>&5
38701 ac_status=$?
38702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38703 (exit $ac_status); } &&
38704 { ac_try='test -s conftest.$ac_objext'
38705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38706 (eval $ac_try) 2>&5
38707 ac_status=$?
38708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38709 (exit $ac_status); }; }; then
38710 glibcxx_mresult=1
38711 else
38712 echo "$as_me: failed program was:" >&5
38713 sed 's/^/| /' conftest.$ac_ext >&5
38715 glibcxx_mresult=0
38717 rm -f conftest.$ac_objext conftest.$ac_ext
38719 cat >>confdefs.h <<_ACEOF
38720 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
38721 _ACEOF
38725 cat >conftest.$ac_ext <<_ACEOF
38726 #line $LINENO "configure"
38727 /* confdefs.h. */
38728 _ACEOF
38729 cat confdefs.h >>conftest.$ac_ext
38730 cat >>conftest.$ac_ext <<_ACEOF
38731 /* end confdefs.h. */
38732 #include <unistd.h>
38733 #include <sys/time.h>
38734 #include <sys/resource.h>
38737 main ()
38739 int f = RLIMIT_VMEM ;
38741 return 0;
38743 _ACEOF
38744 rm -f conftest.$ac_objext
38745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38746 (eval $ac_compile) 2>&5
38747 ac_status=$?
38748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749 (exit $ac_status); } &&
38750 { ac_try='test -s conftest.$ac_objext'
38751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38752 (eval $ac_try) 2>&5
38753 ac_status=$?
38754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38755 (exit $ac_status); }; }; then
38756 glibcxx_mresult=1
38757 else
38758 echo "$as_me: failed program was:" >&5
38759 sed 's/^/| /' conftest.$ac_ext >&5
38761 glibcxx_mresult=0
38763 rm -f conftest.$ac_objext conftest.$ac_ext
38765 cat >>confdefs.h <<_ACEOF
38766 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
38767 _ACEOF
38771 cat >conftest.$ac_ext <<_ACEOF
38772 #line $LINENO "configure"
38773 /* confdefs.h. */
38774 _ACEOF
38775 cat confdefs.h >>conftest.$ac_ext
38776 cat >>conftest.$ac_ext <<_ACEOF
38777 /* end confdefs.h. */
38778 #include <unistd.h>
38779 #include <sys/time.h>
38780 #include <sys/resource.h>
38783 main ()
38785 int f = RLIMIT_AS ;
38787 return 0;
38789 _ACEOF
38790 rm -f conftest.$ac_objext
38791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38792 (eval $ac_compile) 2>&5
38793 ac_status=$?
38794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38795 (exit $ac_status); } &&
38796 { ac_try='test -s conftest.$ac_objext'
38797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38798 (eval $ac_try) 2>&5
38799 ac_status=$?
38800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38801 (exit $ac_status); }; }; then
38802 glibcxx_mresult=1
38803 else
38804 echo "$as_me: failed program was:" >&5
38805 sed 's/^/| /' conftest.$ac_ext >&5
38807 glibcxx_mresult=0
38809 rm -f conftest.$ac_objext conftest.$ac_ext
38811 cat >>confdefs.h <<_ACEOF
38812 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
38813 _ACEOF
38817 # Check for rlimit, setrlimit.
38818 if test "${ac_setrlimit+set}" = set; then
38819 echo $ECHO_N "(cached) $ECHO_C" >&6
38820 else
38822 cat >conftest.$ac_ext <<_ACEOF
38823 #line $LINENO "configure"
38824 /* confdefs.h. */
38825 _ACEOF
38826 cat confdefs.h >>conftest.$ac_ext
38827 cat >>conftest.$ac_ext <<_ACEOF
38828 /* end confdefs.h. */
38829 #include <unistd.h>
38830 #include <sys/time.h>
38831 #include <sys/resource.h>
38834 main ()
38836 struct rlimit r;
38837 setrlimit(0, &r);
38839 return 0;
38841 _ACEOF
38842 rm -f conftest.$ac_objext
38843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38844 (eval $ac_compile) 2>&5
38845 ac_status=$?
38846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38847 (exit $ac_status); } &&
38848 { ac_try='test -s conftest.$ac_objext'
38849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38850 (eval $ac_try) 2>&5
38851 ac_status=$?
38852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38853 (exit $ac_status); }; }; then
38854 ac_setrlimit=yes
38855 else
38856 echo "$as_me: failed program was:" >&5
38857 sed 's/^/| /' conftest.$ac_ext >&5
38859 ac_setrlimit=no
38861 rm -f conftest.$ac_objext conftest.$ac_ext
38867 echo "$as_me:$LINENO: checking for testsuite memory limit support" >&5
38868 echo $ECHO_N "checking for testsuite memory limit support... $ECHO_C" >&6
38869 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
38870 ac_mem_limits=yes
38871 cat >>confdefs.h <<\_ACEOF
38872 #define _GLIBCXX_MEM_LIMITS 1
38873 _ACEOF
38875 else
38876 ac_mem_limits=no
38878 echo "$as_me:$LINENO: result: $ac_mem_limits" >&5
38879 echo "${ECHO_T}$ac_mem_limits" >&6
38882 # Look for setenv, so that extended locale tests can be performed.
38884 echo "$as_me:$LINENO: checking for setenv declaration" >&5
38885 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
38886 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
38887 if test "${glibcxx_cv_func_setenv_use+set}" = set; then
38888 echo $ECHO_N "(cached) $ECHO_C" >&6
38889 else
38893 ac_ext=cc
38894 ac_cpp='$CXXCPP $CPPFLAGS'
38895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38899 cat >conftest.$ac_ext <<_ACEOF
38900 #line $LINENO "configure"
38901 /* confdefs.h. */
38902 _ACEOF
38903 cat confdefs.h >>conftest.$ac_ext
38904 cat >>conftest.$ac_ext <<_ACEOF
38905 /* end confdefs.h. */
38906 #include <stdlib.h>
38908 main ()
38910 setenv(0, 0, 0);
38912 return 0;
38914 _ACEOF
38915 rm -f conftest.$ac_objext
38916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38917 (eval $ac_compile) 2>&5
38918 ac_status=$?
38919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38920 (exit $ac_status); } &&
38921 { ac_try='test -s conftest.$ac_objext'
38922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38923 (eval $ac_try) 2>&5
38924 ac_status=$?
38925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38926 (exit $ac_status); }; }; then
38927 glibcxx_cv_func_setenv_use=yes
38928 else
38929 echo "$as_me: failed program was:" >&5
38930 sed 's/^/| /' conftest.$ac_ext >&5
38932 glibcxx_cv_func_setenv_use=no
38934 rm -f conftest.$ac_objext conftest.$ac_ext
38935 ac_ext=c
38936 ac_cpp='$CPP $CPPFLAGS'
38937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38945 echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
38946 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
38947 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
38949 for ac_func in setenv
38951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38952 echo "$as_me:$LINENO: checking for $ac_func" >&5
38953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38954 if eval "test \"\${$as_ac_var+set}\" = set"; then
38955 echo $ECHO_N "(cached) $ECHO_C" >&6
38956 else
38957 cat >conftest.$ac_ext <<_ACEOF
38958 #line $LINENO "configure"
38959 /* confdefs.h. */
38960 _ACEOF
38961 cat confdefs.h >>conftest.$ac_ext
38962 cat >>conftest.$ac_ext <<_ACEOF
38963 /* end confdefs.h. */
38964 /* System header to define __stub macros and hopefully few prototypes,
38965 which can conflict with char $ac_func (); below.
38966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38967 <limits.h> exists even on freestanding compilers. */
38968 #ifdef __STDC__
38969 # include <limits.h>
38970 #else
38971 # include <assert.h>
38972 #endif
38973 /* Override any gcc2 internal prototype to avoid an error. */
38974 #ifdef __cplusplus
38975 extern "C"
38977 #endif
38978 /* We use char because int might match the return type of a gcc2
38979 builtin and then its argument prototype would still apply. */
38980 char $ac_func ();
38981 /* The GNU C library defines this for functions which it implements
38982 to always fail with ENOSYS. Some functions are actually named
38983 something starting with __ and the normal name is an alias. */
38984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38985 choke me
38986 #else
38987 char (*f) () = $ac_func;
38988 #endif
38989 #ifdef __cplusplus
38991 #endif
38994 main ()
38996 return f != $ac_func;
38998 return 0;
39000 _ACEOF
39001 rm -f conftest.$ac_objext conftest$ac_exeext
39002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39003 (eval $ac_link) 2>&5
39004 ac_status=$?
39005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39006 (exit $ac_status); } &&
39007 { ac_try='test -s conftest$ac_exeext'
39008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39009 (eval $ac_try) 2>&5
39010 ac_status=$?
39011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39012 (exit $ac_status); }; }; then
39013 eval "$as_ac_var=yes"
39014 else
39015 echo "$as_me: failed program was:" >&5
39016 sed 's/^/| /' conftest.$ac_ext >&5
39018 eval "$as_ac_var=no"
39020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39024 if test `eval echo '${'$as_ac_var'}'` = yes; then
39025 cat >>confdefs.h <<_ACEOF
39026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39027 _ACEOF
39030 done
39036 # Export file names for ABI checking.
39037 baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
39040 # Determine if checking the ABI is desirable.
39041 if test $enable_symvers = no; then
39042 enable_abi_check=no
39043 else
39044 case "$host" in
39045 *-*-cygwin*)
39046 enable_abi_check=no ;;
39048 enable_abi_check=yes ;;
39049 esac
39054 if test $enable_wchar_t = yes; then
39055 GLIBCXX_TEST_WCHAR_T_TRUE=
39056 GLIBCXX_TEST_WCHAR_T_FALSE='#'
39057 else
39058 GLIBCXX_TEST_WCHAR_T_TRUE='#'
39059 GLIBCXX_TEST_WCHAR_T_FALSE=
39064 if test $enable_abi_check = yes; then
39065 GLIBCXX_TEST_ABI_TRUE=
39066 GLIBCXX_TEST_ABI_FALSE='#'
39067 else
39068 GLIBCXX_TEST_ABI_TRUE='#'
39069 GLIBCXX_TEST_ABI_FALSE=
39074 # Propagate the target-specific source directories through the build chain.
39075 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
39076 # uses it, and it only gets used in this file.)
39077 ATOMICITY_INC_SRCDIR=config/${atomicity_include_dir}
39078 OS_INC_SRCDIR=config/${os_include_dir}
39079 FPOS_INC_SRCDIR=config/${fpos_include_dir}
39084 # Determine cross-compile flags and AM_CONDITIONALs.
39085 #AC_SUBST(GLIBCXX_IS_NATIVE)
39086 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
39087 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
39088 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH, test $need_libmath = yes)
39090 cat >confcache <<\_ACEOF
39091 # This file is a shell script that caches the results of configure
39092 # tests run on this system so they can be shared between configure
39093 # scripts and configure runs, see configure's option --config-cache.
39094 # It is not useful on other systems. If it contains results you don't
39095 # want to keep, you may remove or edit it.
39097 # config.status only pays attention to the cache file if you give it
39098 # the --recheck option to rerun configure.
39100 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39101 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39102 # following values.
39104 _ACEOF
39106 # The following way of writing the cache mishandles newlines in values,
39107 # but we know of no workaround that is simple, portable, and efficient.
39108 # So, don't put newlines in cache variables' values.
39109 # Ultrix sh set writes to stderr and can't be redirected directly,
39110 # and sets the high bit in the cache file unless we assign to the vars.
39112 (set) 2>&1 |
39113 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39114 *ac_space=\ *)
39115 # `set' does not quote correctly, so add quotes (double-quote
39116 # substitution turns \\\\ into \\, and sed turns \\ into \).
39117 sed -n \
39118 "s/'/'\\\\''/g;
39119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39122 # `set' quotes correctly as required by POSIX, so do not add quotes.
39123 sed -n \
39124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
39126 esac;
39128 sed '
39129 t clear
39130 : clear
39131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39132 t end
39133 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39134 : end' >>confcache
39135 if diff $cache_file confcache >/dev/null 2>&1; then :; else
39136 if test -w $cache_file; then
39137 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39138 cat confcache >$cache_file
39139 else
39140 echo "not updating unwritable cache $cache_file"
39143 rm -f confcache
39145 if test ${multilib} = yes; then
39146 multilib_arg="--enable-multilib"
39147 else
39148 multilib_arg=
39151 # Export all the install information.
39153 glibcxx_toolexecdir=no
39154 glibcxx_toolexeclibdir=no
39155 glibcxx_prefixdir=$prefix
39157 echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
39158 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
39160 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
39161 if test "${with_gxx_include_dir+set}" = set; then
39162 withval="$with_gxx_include_dir"
39163 case "$withval" in
39164 yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
39165 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
39166 { (exit 1); exit 1; }; } ;;
39167 no) gxx_include_dir=no ;;
39168 *) gxx_include_dir=$withval ;;
39169 esac
39170 else
39171 gxx_include_dir=no
39173 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
39174 echo "${ECHO_T}$gxx_include_dir" >&6
39176 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
39177 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
39178 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
39179 if test "${enable_version_specific_runtime_libs+set}" = set; then
39180 enableval="$enable_version_specific_runtime_libs"
39181 case "$enableval" in
39182 yes) version_specific_libs=yes ;;
39183 no) version_specific_libs=no ;;
39184 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
39185 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
39186 { (exit 1); exit 1; }; };;
39187 esac
39188 else
39189 version_specific_libs=no
39191 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
39192 echo "${ECHO_T}$version_specific_libs" >&6
39194 # Default case for install directory for include files.
39195 if test $version_specific_libs = no && test $gxx_include_dir = no; then
39196 gxx_include_dir='${prefix}'/include/c++/${gcc_version}
39199 # Version-specific runtime libs processing.
39200 if test $version_specific_libs = yes; then
39201 # Need the gcc compiler version to know where to install libraries
39202 # and header files if --enable-version-specific-runtime-libs option
39203 # is selected.
39204 if test x"$gxx_include_dir" = x"no"; then
39205 gxx_include_dir='${libdir}/gcc-lib/${host_alias}/'$gcc_version/include/c++
39207 glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
39208 glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
39211 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
39212 # Install a library built with a cross compiler in tooldir, not libdir.
39213 if test x"$glibcxx_toolexecdir" = x"no"; then
39214 if test -n "$with_cross_host" &&
39215 test x"$with_cross_host" != x"no"; then
39216 glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
39217 glibcxx_toolexeclibdir='${toolexecdir}/lib'
39218 else
39219 glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
39220 glibcxx_toolexeclibdir='${libdir}'
39222 multi_os_directory=`$CXX -print-multi-os-directory`
39223 case $multi_os_directory in
39224 .) ;; # Avoid trailing /.
39225 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
39226 esac
39229 echo "$as_me:$LINENO: checking for install location" >&5
39230 echo $ECHO_N "checking for install location... $ECHO_C" >&6
39231 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
39232 echo "${ECHO_T}$gxx_include_dir" >&6
39240 # Export all the include and flag information to Makefiles.
39242 # Used for every C++ compile we perform.
39243 GLIBCXX_INCLUDES="\
39244 -I$glibcxx_builddir/include/$host_alias \
39245 -I$glibcxx_builddir/include \
39246 -I$glibcxx_srcdir/libsupc++"
39248 # For Canadian crosses, pick this up too.
39249 if test $CANADIAN = yes; then
39250 GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES '-I${includedir}'"
39253 # Stuff in the actual top level. Currently only used by libsupc++ to
39254 # get unwind* headers from the gcc dir.
39255 #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
39256 TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
39258 # Now, export this to all the little Makefiles....
39263 # Optimization flags that are probably a good idea for thrill-seekers. Just
39264 # uncomment the lines below and make, everything else is ready to go...
39265 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
39266 OPTIMIZE_CXXFLAGS=
39269 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
39273 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
39274 grep "enable shared" > /dev/null;
39275 then
39276 LIBSUPCXX_PICFLAGS=-prefer-pic
39277 else
39278 LIBSUPCXX_PICFLAGS=
39282 ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile po/Makefile src/Makefile testsuite/Makefile"
39284 ac_config_files="$ac_config_files scripts/check_survey"
39286 ac_config_files="$ac_config_files scripts/testsuite_flags"
39289 ac_config_commands="$ac_config_commands default"
39292 cat >confcache <<\_ACEOF
39293 # This file is a shell script that caches the results of configure
39294 # tests run on this system so they can be shared between configure
39295 # scripts and configure runs, see configure's option --config-cache.
39296 # It is not useful on other systems. If it contains results you don't
39297 # want to keep, you may remove or edit it.
39299 # config.status only pays attention to the cache file if you give it
39300 # the --recheck option to rerun configure.
39302 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39303 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39304 # following values.
39306 _ACEOF
39308 # The following way of writing the cache mishandles newlines in values,
39309 # but we know of no workaround that is simple, portable, and efficient.
39310 # So, don't put newlines in cache variables' values.
39311 # Ultrix sh set writes to stderr and can't be redirected directly,
39312 # and sets the high bit in the cache file unless we assign to the vars.
39314 (set) 2>&1 |
39315 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39316 *ac_space=\ *)
39317 # `set' does not quote correctly, so add quotes (double-quote
39318 # substitution turns \\\\ into \\, and sed turns \\ into \).
39319 sed -n \
39320 "s/'/'\\\\''/g;
39321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39324 # `set' quotes correctly as required by POSIX, so do not add quotes.
39325 sed -n \
39326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
39328 esac;
39330 sed '
39331 t clear
39332 : clear
39333 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39334 t end
39335 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39336 : end' >>confcache
39337 if diff $cache_file confcache >/dev/null 2>&1; then :; else
39338 if test -w $cache_file; then
39339 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39340 cat confcache >$cache_file
39341 else
39342 echo "not updating unwritable cache $cache_file"
39345 rm -f confcache
39347 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39348 # Let make expand exec_prefix.
39349 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39351 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39352 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39353 # trailing colons and then remove the whole line if VPATH becomes empty
39354 # (actually we leave an empty line to preserve line numbers).
39355 if test "x$srcdir" = x.; then
39356 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39357 s/:*\$(srcdir):*/:/;
39358 s/:*\${srcdir}:*/:/;
39359 s/:*@srcdir@:*/:/;
39360 s/^\([^=]*=[ ]*\):*/\1/;
39361 s/:*$//;
39362 s/^[^=]*=[ ]*$//;
39366 DEFS=-DHAVE_CONFIG_H
39368 ac_libobjs=
39369 ac_ltlibobjs=
39370 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39371 # 1. Remove the extension, and $U if already installed.
39372 ac_i=`echo "$ac_i" |
39373 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39374 # 2. Add them.
39375 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39376 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39377 done
39378 LIBOBJS=$ac_libobjs
39380 LTLIBOBJS=$ac_ltlibobjs
39383 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
39384 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
39385 Usually this means the macro was only invoked conditionally." >&5
39386 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
39387 Usually this means the macro was only invoked conditionally." >&2;}
39388 { (exit 1); exit 1; }; }
39390 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
39391 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
39392 Usually this means the macro was only invoked conditionally." >&5
39393 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
39394 Usually this means the macro was only invoked conditionally." >&2;}
39395 { (exit 1); exit 1; }; }
39397 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
39398 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
39399 Usually this means the macro was only invoked conditionally." >&5
39400 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
39401 Usually this means the macro was only invoked conditionally." >&2;}
39402 { (exit 1); exit 1; }; }
39404 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
39405 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
39406 Usually this means the macro was only invoked conditionally." >&5
39407 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
39408 Usually this means the macro was only invoked conditionally." >&2;}
39409 { (exit 1); exit 1; }; }
39411 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
39412 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
39413 Usually this means the macro was only invoked conditionally." >&5
39414 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
39415 Usually this means the macro was only invoked conditionally." >&2;}
39416 { (exit 1); exit 1; }; }
39418 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
39419 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
39420 Usually this means the macro was only invoked conditionally." >&5
39421 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
39422 Usually this means the macro was only invoked conditionally." >&2;}
39423 { (exit 1); exit 1; }; }
39425 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
39426 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
39427 Usually this means the macro was only invoked conditionally." >&5
39428 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
39429 Usually this means the macro was only invoked conditionally." >&2;}
39430 { (exit 1); exit 1; }; }
39432 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
39433 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
39434 Usually this means the macro was only invoked conditionally." >&5
39435 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
39436 Usually this means the macro was only invoked conditionally." >&2;}
39437 { (exit 1); exit 1; }; }
39439 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
39440 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
39441 Usually this means the macro was only invoked conditionally." >&5
39442 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
39443 Usually this means the macro was only invoked conditionally." >&2;}
39444 { (exit 1); exit 1; }; }
39447 : ${CONFIG_STATUS=./config.status}
39448 ac_clean_files_save=$ac_clean_files
39449 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39450 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39451 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39452 cat >$CONFIG_STATUS <<_ACEOF
39453 #! $SHELL
39454 # Generated by $as_me.
39455 # Run this file to recreate the current configuration.
39456 # Compiler output produced by configure, useful for debugging
39457 # configure, is in config.log if it exists.
39459 debug=false
39460 ac_cs_recheck=false
39461 ac_cs_silent=false
39462 SHELL=\${CONFIG_SHELL-$SHELL}
39463 _ACEOF
39465 cat >>$CONFIG_STATUS <<\_ACEOF
39466 ## --------------------- ##
39467 ## M4sh Initialization. ##
39468 ## --------------------- ##
39470 # Be Bourne compatible
39471 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39472 emulate sh
39473 NULLCMD=:
39474 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39475 # is contrary to our usage. Disable this feature.
39476 alias -g '${1+"$@"}'='"$@"'
39477 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39478 set -o posix
39481 # Support unset when possible.
39482 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
39483 as_unset=unset
39484 else
39485 as_unset=false
39489 # Work around bugs in pre-3.0 UWIN ksh.
39490 $as_unset ENV MAIL MAILPATH
39491 PS1='$ '
39492 PS2='> '
39493 PS4='+ '
39495 # NLS nuisances.
39496 for as_var in \
39497 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39498 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39499 LC_TELEPHONE LC_TIME
39501 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
39502 eval $as_var=C; export $as_var
39503 else
39504 $as_unset $as_var
39506 done
39508 # Required to use basename.
39509 if expr a : '\(a\)' >/dev/null 2>&1; then
39510 as_expr=expr
39511 else
39512 as_expr=false
39515 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39516 as_basename=basename
39517 else
39518 as_basename=false
39522 # Name of the executable.
39523 as_me=`$as_basename "$0" ||
39524 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39525 X"$0" : 'X\(//\)$' \| \
39526 X"$0" : 'X\(/\)$' \| \
39527 . : '\(.\)' 2>/dev/null ||
39528 echo X/"$0" |
39529 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39530 /^X\/\(\/\/\)$/{ s//\1/; q; }
39531 /^X\/\(\/\).*/{ s//\1/; q; }
39532 s/.*/./; q'`
39535 # PATH needs CR, and LINENO needs CR and PATH.
39536 # Avoid depending upon Character Ranges.
39537 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39538 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39539 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39540 as_cr_digits='0123456789'
39541 as_cr_alnum=$as_cr_Letters$as_cr_digits
39543 # The user is always right.
39544 if test "${PATH_SEPARATOR+set}" != set; then
39545 echo "#! /bin/sh" >conf$$.sh
39546 echo "exit 0" >>conf$$.sh
39547 chmod +x conf$$.sh
39548 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39549 PATH_SEPARATOR=';'
39550 else
39551 PATH_SEPARATOR=:
39553 rm -f conf$$.sh
39557 as_lineno_1=$LINENO
39558 as_lineno_2=$LINENO
39559 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39560 test "x$as_lineno_1" != "x$as_lineno_2" &&
39561 test "x$as_lineno_3" = "x$as_lineno_2" || {
39562 # Find who we are. Look in the path if we contain no path at all
39563 # relative or not.
39564 case $0 in
39565 *[\\/]* ) as_myself=$0 ;;
39566 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39567 for as_dir in $PATH
39569 IFS=$as_save_IFS
39570 test -z "$as_dir" && as_dir=.
39571 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39572 done
39575 esac
39576 # We did not find ourselves, most probably we were run as `sh COMMAND'
39577 # in which case we are not to be found in the path.
39578 if test "x$as_myself" = x; then
39579 as_myself=$0
39581 if test ! -f "$as_myself"; then
39582 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39583 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39584 { (exit 1); exit 1; }; }
39586 case $CONFIG_SHELL in
39588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39589 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39591 IFS=$as_save_IFS
39592 test -z "$as_dir" && as_dir=.
39593 for as_base in sh bash ksh sh5; do
39594 case $as_dir in
39596 if ("$as_dir/$as_base" -c '
39597 as_lineno_1=$LINENO
39598 as_lineno_2=$LINENO
39599 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39600 test "x$as_lineno_1" != "x$as_lineno_2" &&
39601 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39602 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39603 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39604 CONFIG_SHELL=$as_dir/$as_base
39605 export CONFIG_SHELL
39606 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39607 fi;;
39608 esac
39609 done
39610 done
39612 esac
39614 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39615 # uniformly replaced by the line number. The first 'sed' inserts a
39616 # line-number line before each line; the second 'sed' does the real
39617 # work. The second script uses 'N' to pair each line-number line
39618 # with the numbered line, and appends trailing '-' during
39619 # substitution so that $LINENO is not a special case at line end.
39620 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39621 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39622 sed '=' <$as_myself |
39623 sed '
39625 s,$,-,
39626 : loop
39627 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39628 t loop
39629 s,-$,,
39630 s,^['$as_cr_digits']*\n,,
39631 ' >$as_me.lineno &&
39632 chmod +x $as_me.lineno ||
39633 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39634 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39635 { (exit 1); exit 1; }; }
39637 # Don't try to exec as it changes $[0], causing all sort of problems
39638 # (the dirname of $[0] is not the place where we might find the
39639 # original and so on. Autoconf is especially sensible to this).
39640 . ./$as_me.lineno
39641 # Exit status is that of the last command.
39642 exit
39646 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39647 *c*,-n*) ECHO_N= ECHO_C='
39648 ' ECHO_T=' ' ;;
39649 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39650 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39651 esac
39653 if expr a : '\(a\)' >/dev/null 2>&1; then
39654 as_expr=expr
39655 else
39656 as_expr=false
39659 rm -f conf$$ conf$$.exe conf$$.file
39660 echo >conf$$.file
39661 if ln -s conf$$.file conf$$ 2>/dev/null; then
39662 # We could just check for DJGPP; but this test a) works b) is more generic
39663 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39664 if test -f conf$$.exe; then
39665 # Don't use ln at all; we don't have any links
39666 as_ln_s='cp -p'
39667 else
39668 as_ln_s='ln -s'
39670 elif ln conf$$.file conf$$ 2>/dev/null; then
39671 as_ln_s=ln
39672 else
39673 as_ln_s='cp -p'
39675 rm -f conf$$ conf$$.exe conf$$.file
39677 if mkdir -p . 2>/dev/null; then
39678 as_mkdir_p=:
39679 else
39680 as_mkdir_p=false
39683 as_executable_p="test -f"
39685 # Sed expression to map a string onto a valid CPP name.
39686 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
39688 # Sed expression to map a string onto a valid variable name.
39689 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
39692 # IFS
39693 # We need space, tab and new line, in precisely that order.
39694 as_nl='
39696 IFS=" $as_nl"
39698 # CDPATH.
39699 $as_unset CDPATH
39701 exec 6>&1
39703 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39704 # report actual input values of CONFIG_FILES etc. instead of their
39705 # values after options handling. Logging --version etc. is OK.
39706 exec 5>>config.log
39708 echo
39709 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39710 ## Running $as_me. ##
39711 _ASBOX
39712 } >&5
39713 cat >&5 <<_CSEOF
39715 This file was extended by package-unused $as_me version-unused, which was
39716 generated by GNU Autoconf 2.57. Invocation command line was
39718 CONFIG_FILES = $CONFIG_FILES
39719 CONFIG_HEADERS = $CONFIG_HEADERS
39720 CONFIG_LINKS = $CONFIG_LINKS
39721 CONFIG_COMMANDS = $CONFIG_COMMANDS
39722 $ $0 $@
39724 _CSEOF
39725 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39726 echo >&5
39727 _ACEOF
39729 # Files that config.status was made for.
39730 if test -n "$ac_config_files"; then
39731 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39734 if test -n "$ac_config_headers"; then
39735 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39738 if test -n "$ac_config_links"; then
39739 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39742 if test -n "$ac_config_commands"; then
39743 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39746 cat >>$CONFIG_STATUS <<\_ACEOF
39748 ac_cs_usage="\
39749 \`$as_me' instantiates files from templates according to the
39750 current configuration.
39752 Usage: $0 [OPTIONS] [FILE]...
39754 -h, --help print this help, then exit
39755 -V, --version print version number, then exit
39756 -q, --quiet do not print progress messages
39757 -d, --debug don't remove temporary files
39758 --recheck update $as_me by reconfiguring in the same conditions
39759 --file=FILE[:TEMPLATE]
39760 instantiate the configuration file FILE
39761 --header=FILE[:TEMPLATE]
39762 instantiate the configuration header FILE
39764 Configuration files:
39765 $config_files
39767 Configuration headers:
39768 $config_headers
39770 Configuration commands:
39771 $config_commands
39773 Report bugs to <bug-autoconf@gnu.org>."
39774 _ACEOF
39776 cat >>$CONFIG_STATUS <<_ACEOF
39777 ac_cs_version="\\
39778 package-unused config.status version-unused
39779 configured by $0, generated by GNU Autoconf 2.57,
39780 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39782 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
39783 Free Software Foundation, Inc.
39784 This config.status script is free software; the Free Software Foundation
39785 gives unlimited permission to copy, distribute and modify it."
39786 srcdir=$srcdir
39787 INSTALL="$INSTALL"
39788 _ACEOF
39790 cat >>$CONFIG_STATUS <<\_ACEOF
39791 # If no file are specified by the user, then we need to provide default
39792 # value. By we need to know if files were specified by the user.
39793 ac_need_defaults=:
39794 while test $# != 0
39796 case $1 in
39797 --*=*)
39798 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39799 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39800 ac_shift=:
39803 ac_option=$1
39804 ac_optarg=$2
39805 ac_shift=shift
39807 *) # This is not an option, so the user has probably given explicit
39808 # arguments.
39809 ac_option=$1
39810 ac_need_defaults=false;;
39811 esac
39813 case $ac_option in
39814 # Handling of the options.
39815 _ACEOF
39816 cat >>$CONFIG_STATUS <<\_ACEOF
39817 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39818 ac_cs_recheck=: ;;
39819 --version | --vers* | -V )
39820 echo "$ac_cs_version"; exit 0 ;;
39821 --he | --h)
39822 # Conflict between --help and --header
39823 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39824 Try \`$0 --help' for more information." >&5
39825 echo "$as_me: error: ambiguous option: $1
39826 Try \`$0 --help' for more information." >&2;}
39827 { (exit 1); exit 1; }; };;
39828 --help | --hel | -h )
39829 echo "$ac_cs_usage"; exit 0 ;;
39830 --debug | --d* | -d )
39831 debug=: ;;
39832 --file | --fil | --fi | --f )
39833 $ac_shift
39834 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39835 ac_need_defaults=false;;
39836 --header | --heade | --head | --hea )
39837 $ac_shift
39838 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39839 ac_need_defaults=false;;
39840 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39841 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39842 ac_cs_silent=: ;;
39844 # This is an error.
39845 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39846 Try \`$0 --help' for more information." >&5
39847 echo "$as_me: error: unrecognized option: $1
39848 Try \`$0 --help' for more information." >&2;}
39849 { (exit 1); exit 1; }; } ;;
39851 *) ac_config_targets="$ac_config_targets $1" ;;
39853 esac
39854 shift
39855 done
39857 ac_configure_extra_args=
39859 if $ac_cs_silent; then
39860 exec 6>/dev/null
39861 ac_configure_extra_args="$ac_configure_extra_args --silent"
39864 _ACEOF
39865 cat >>$CONFIG_STATUS <<_ACEOF
39866 if \$ac_cs_recheck; then
39867 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39868 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39871 _ACEOF
39873 cat >>$CONFIG_STATUS <<_ACEOF
39875 # INIT-COMMANDS section.
39879 srcdir="$srcdir"
39880 host="$host"
39881 target="$target"
39882 with_multisubdir="$with_multisubdir"
39883 with_multisrctop="$with_multisrctop"
39884 with_target_subdir="$with_target_subdir"
39885 ac_configure_args="${multilib_arg} ${ac_configure_args}"
39886 multi_basedir="$multi_basedir"
39887 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
39888 CC="$CC"
39890 # No init-vars needed so far which aren't already passed by autoconf.
39893 _ACEOF
39897 cat >>$CONFIG_STATUS <<\_ACEOF
39898 for ac_config_target in $ac_config_targets
39900 case "$ac_config_target" in
39901 # Handling of arguments.
39902 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39903 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
39904 "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
39905 "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
39906 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
39907 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
39908 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
39909 "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
39910 "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
39911 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
39912 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39913 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
39914 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39915 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39916 { (exit 1); exit 1; }; };;
39917 esac
39918 done
39920 # If the user did not use the arguments to specify the items to instantiate,
39921 # then the envvar interface is used. Set only those that are not.
39922 # We use the long form for the default assignment because of an extremely
39923 # bizarre bug on SunOS 4.1.3.
39924 if $ac_need_defaults; then
39925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39927 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39930 # Have a temporary directory for convenience. Make it in the build tree
39931 # simply because there is no reason to put it here, and in addition,
39932 # creating and moving files from /tmp can sometimes cause problems.
39933 # Create a temporary directory, and hook for its removal unless debugging.
39934 $debug ||
39936 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39937 trap '{ (exit 1); exit 1; }' 1 2 13 15
39940 # Create a (secure) tmp directory for tmp files.
39943 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39944 test -n "$tmp" && test -d "$tmp"
39945 } ||
39947 tmp=./confstat$$-$RANDOM
39948 (umask 077 && mkdir $tmp)
39949 } ||
39951 echo "$me: cannot create a temporary directory in ." >&2
39952 { (exit 1); exit 1; }
39955 _ACEOF
39957 cat >>$CONFIG_STATUS <<_ACEOF
39960 # CONFIG_FILES section.
39963 # No need to generate the scripts if there are no CONFIG_FILES.
39964 # This happens for instance when ./config.status config.h
39965 if test -n "\$CONFIG_FILES"; then
39966 # Protect against being on the right side of a sed subst in config.status.
39967 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39968 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39969 s,@SHELL@,$SHELL,;t t
39970 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39971 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39972 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39973 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39974 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39975 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39976 s,@exec_prefix@,$exec_prefix,;t t
39977 s,@prefix@,$prefix,;t t
39978 s,@program_transform_name@,$program_transform_name,;t t
39979 s,@bindir@,$bindir,;t t
39980 s,@sbindir@,$sbindir,;t t
39981 s,@libexecdir@,$libexecdir,;t t
39982 s,@datadir@,$datadir,;t t
39983 s,@sysconfdir@,$sysconfdir,;t t
39984 s,@sharedstatedir@,$sharedstatedir,;t t
39985 s,@localstatedir@,$localstatedir,;t t
39986 s,@libdir@,$libdir,;t t
39987 s,@includedir@,$includedir,;t t
39988 s,@oldincludedir@,$oldincludedir,;t t
39989 s,@infodir@,$infodir,;t t
39990 s,@mandir@,$mandir,;t t
39991 s,@build_alias@,$build_alias,;t t
39992 s,@host_alias@,$host_alias,;t t
39993 s,@target_alias@,$target_alias,;t t
39994 s,@DEFS@,$DEFS,;t t
39995 s,@ECHO_C@,$ECHO_C,;t t
39996 s,@ECHO_N@,$ECHO_N,;t t
39997 s,@ECHO_T@,$ECHO_T,;t t
39998 s,@LIBS@,$LIBS,;t t
39999 s,@libtool_VERSION@,$libtool_VERSION,;t t
40000 s,@multi_basedir@,$multi_basedir,;t t
40001 s,@build@,$build,;t t
40002 s,@build_cpu@,$build_cpu,;t t
40003 s,@build_vendor@,$build_vendor,;t t
40004 s,@build_os@,$build_os,;t t
40005 s,@host@,$host,;t t
40006 s,@host_cpu@,$host_cpu,;t t
40007 s,@host_vendor@,$host_vendor,;t t
40008 s,@host_os@,$host_os,;t t
40009 s,@target@,$target,;t t
40010 s,@target_cpu@,$target_cpu,;t t
40011 s,@target_vendor@,$target_vendor,;t t
40012 s,@target_os@,$target_os,;t t
40013 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40014 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40015 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40016 s,@CYGPATH_W@,$CYGPATH_W,;t t
40017 s,@PACKAGE@,$PACKAGE,;t t
40018 s,@VERSION@,$VERSION,;t t
40019 s,@ACLOCAL@,$ACLOCAL,;t t
40020 s,@AUTOCONF@,$AUTOCONF,;t t
40021 s,@AUTOMAKE@,$AUTOMAKE,;t t
40022 s,@AUTOHEADER@,$AUTOHEADER,;t t
40023 s,@MAKEINFO@,$MAKEINFO,;t t
40024 s,@AMTAR@,$AMTAR,;t t
40025 s,@install_sh@,$install_sh,;t t
40026 s,@STRIP@,$STRIP,;t t
40027 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40028 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
40029 s,@AWK@,$AWK,;t t
40030 s,@SET_MAKE@,$SET_MAKE,;t t
40031 s,@am__leading_dot@,$am__leading_dot,;t t
40032 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
40033 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
40034 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
40035 s,@CC@,$CC,;t t
40036 s,@ac_ct_CC@,$ac_ct_CC,;t t
40037 s,@EXEEXT@,$EXEEXT,;t t
40038 s,@OBJEXT@,$OBJEXT,;t t
40039 s,@CXX@,$CXX,;t t
40040 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
40041 s,@CFLAGS@,$CFLAGS,;t t
40042 s,@CXXFLAGS@,$CXXFLAGS,;t t
40043 s,@LN_S@,$LN_S,;t t
40044 s,@AS@,$AS,;t t
40045 s,@ac_ct_AS@,$ac_ct_AS,;t t
40046 s,@AR@,$AR,;t t
40047 s,@ac_ct_AR@,$ac_ct_AR,;t t
40048 s,@RANLIB@,$RANLIB,;t t
40049 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40050 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
40051 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
40052 s,@MAINT@,$MAINT,;t t
40053 s,@LIBTOOL@,$LIBTOOL,;t t
40054 s,@CXXCPP@,$CXXCPP,;t t
40055 s,@CPPFLAGS@,$CPPFLAGS,;t t
40056 s,@enable_shared@,$enable_shared,;t t
40057 s,@enable_static@,$enable_static,;t t
40058 s,@LIBUNWIND_FLAG@,$LIBUNWIND_FLAG,;t t
40059 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
40060 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
40061 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
40062 s,@CSTDIO_H@,$CSTDIO_H,;t t
40063 s,@FPOS_H@,$FPOS_H,;t t
40064 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
40065 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
40066 s,@CPP@,$CPP,;t t
40067 s,@EGREP@,$EGREP,;t t
40068 s,@check_msgfmt@,$check_msgfmt,;t t
40069 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
40070 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
40071 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
40072 s,@USE_NLS@,$USE_NLS,;t t
40073 s,@CLOCALE_H@,$CLOCALE_H,;t t
40074 s,@CCODECVT_H@,$CCODECVT_H,;t t
40075 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
40076 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
40077 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
40078 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
40079 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
40080 s,@CMONEY_CC@,$CMONEY_CC,;t t
40081 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
40082 s,@CTIME_H@,$CTIME_H,;t t
40083 s,@CTIME_CC@,$CTIME_CC,;t t
40084 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
40085 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
40086 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
40087 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
40088 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
40089 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
40090 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
40091 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
40092 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
40093 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
40094 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
40095 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
40096 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
40097 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
40098 s,@WERROR@,$WERROR,;t t
40099 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
40100 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
40101 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
40102 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
40103 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
40104 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
40105 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
40106 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
40107 s,@baseline_dir@,$baseline_dir,;t t
40108 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
40109 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
40110 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
40111 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
40112 s,@ATOMICITY_INC_SRCDIR@,$ATOMICITY_INC_SRCDIR,;t t
40113 s,@FPOS_INC_SRCDIR@,$FPOS_INC_SRCDIR,;t t
40114 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
40115 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
40116 s,@gxx_include_dir@,$gxx_include_dir,;t t
40117 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
40118 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
40119 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
40120 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
40121 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
40122 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
40123 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
40124 s,@LIBOBJS@,$LIBOBJS,;t t
40125 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
40126 CEOF
40128 _ACEOF
40130 cat >>$CONFIG_STATUS <<\_ACEOF
40131 # Split the substitutions into bite-sized pieces for seds with
40132 # small command number limits, like on Digital OSF/1 and HP-UX.
40133 ac_max_sed_lines=48
40134 ac_sed_frag=1 # Number of current file.
40135 ac_beg=1 # First line for current file.
40136 ac_end=$ac_max_sed_lines # Line after last line for current file.
40137 ac_more_lines=:
40138 ac_sed_cmds=
40139 while $ac_more_lines; do
40140 if test $ac_beg -gt 1; then
40141 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40142 else
40143 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40145 if test ! -s $tmp/subs.frag; then
40146 ac_more_lines=false
40147 else
40148 # The purpose of the label and of the branching condition is to
40149 # speed up the sed processing (if there are no `@' at all, there
40150 # is no need to browse any of the substitutions).
40151 # These are the two extra sed commands mentioned above.
40152 (echo ':t
40153 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40154 if test -z "$ac_sed_cmds"; then
40155 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
40156 else
40157 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
40159 ac_sed_frag=`expr $ac_sed_frag + 1`
40160 ac_beg=$ac_end
40161 ac_end=`expr $ac_end + $ac_max_sed_lines`
40163 done
40164 if test -z "$ac_sed_cmds"; then
40165 ac_sed_cmds=cat
40167 fi # test -n "$CONFIG_FILES"
40169 _ACEOF
40170 cat >>$CONFIG_STATUS <<\_ACEOF
40171 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
40172 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40173 case $ac_file in
40174 - | *:- | *:-:* ) # input from stdin
40175 cat >$tmp/stdin
40176 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40177 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40178 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40179 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40180 * ) ac_file_in=$ac_file.in ;;
40181 esac
40183 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40184 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40185 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40186 X"$ac_file" : 'X\(//\)[^/]' \| \
40187 X"$ac_file" : 'X\(//\)$' \| \
40188 X"$ac_file" : 'X\(/\)' \| \
40189 . : '\(.\)' 2>/dev/null ||
40190 echo X"$ac_file" |
40191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40193 /^X\(\/\/\)$/{ s//\1/; q; }
40194 /^X\(\/\).*/{ s//\1/; q; }
40195 s/.*/./; q'`
40196 { if $as_mkdir_p; then
40197 mkdir -p "$ac_dir"
40198 else
40199 as_dir="$ac_dir"
40200 as_dirs=
40201 while test ! -d "$as_dir"; do
40202 as_dirs="$as_dir $as_dirs"
40203 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40205 X"$as_dir" : 'X\(//\)[^/]' \| \
40206 X"$as_dir" : 'X\(//\)$' \| \
40207 X"$as_dir" : 'X\(/\)' \| \
40208 . : '\(.\)' 2>/dev/null ||
40209 echo X"$as_dir" |
40210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40212 /^X\(\/\/\)$/{ s//\1/; q; }
40213 /^X\(\/\).*/{ s//\1/; q; }
40214 s/.*/./; q'`
40215 done
40216 test ! -n "$as_dirs" || mkdir $as_dirs
40217 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40218 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40219 { (exit 1); exit 1; }; }; }
40221 ac_builddir=.
40223 if test "$ac_dir" != .; then
40224 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40225 # A "../" for each directory in $ac_dir_suffix.
40226 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40227 else
40228 ac_dir_suffix= ac_top_builddir=
40231 case $srcdir in
40232 .) # No --srcdir option. We are building in place.
40233 ac_srcdir=.
40234 if test -z "$ac_top_builddir"; then
40235 ac_top_srcdir=.
40236 else
40237 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40238 fi ;;
40239 [\\/]* | ?:[\\/]* ) # Absolute path.
40240 ac_srcdir=$srcdir$ac_dir_suffix;
40241 ac_top_srcdir=$srcdir ;;
40242 *) # Relative path.
40243 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40244 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40245 esac
40246 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
40247 # absolute.
40248 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
40249 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
40250 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
40251 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
40254 case $INSTALL in
40255 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40256 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40257 esac
40259 if test x"$ac_file" != x-; then
40260 { echo "$as_me:$LINENO: creating $ac_file" >&5
40261 echo "$as_me: creating $ac_file" >&6;}
40262 rm -f "$ac_file"
40264 # Let's still pretend it is `configure' which instantiates (i.e., don't
40265 # use $as_me), people would be surprised to read:
40266 # /* config.h. Generated by config.status. */
40267 if test x"$ac_file" = x-; then
40268 configure_input=
40269 else
40270 configure_input="$ac_file. "
40272 configure_input=$configure_input"Generated from `echo $ac_file_in |
40273 sed 's,.*/,,'` by configure."
40275 # First look for the input files in the build tree, otherwise in the
40276 # src tree.
40277 ac_file_inputs=`IFS=:
40278 for f in $ac_file_in; do
40279 case $f in
40280 -) echo $tmp/stdin ;;
40281 [\\/$]*)
40282 # Absolute (can't be DOS-style, as IFS=:)
40283 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40284 echo "$as_me: error: cannot find input file: $f" >&2;}
40285 { (exit 1); exit 1; }; }
40286 echo $f;;
40287 *) # Relative
40288 if test -f "$f"; then
40289 # Build tree
40290 echo $f
40291 elif test -f "$srcdir/$f"; then
40292 # Source tree
40293 echo $srcdir/$f
40294 else
40295 # /dev/null tree
40296 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40297 echo "$as_me: error: cannot find input file: $f" >&2;}
40298 { (exit 1); exit 1; }; }
40299 fi;;
40300 esac
40301 done` || { (exit 1); exit 1; }
40302 _ACEOF
40303 cat >>$CONFIG_STATUS <<_ACEOF
40304 sed "$ac_vpsub
40305 $extrasub
40306 _ACEOF
40307 cat >>$CONFIG_STATUS <<\_ACEOF
40309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40310 s,@configure_input@,$configure_input,;t t
40311 s,@srcdir@,$ac_srcdir,;t t
40312 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40313 s,@top_srcdir@,$ac_top_srcdir,;t t
40314 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40315 s,@builddir@,$ac_builddir,;t t
40316 s,@abs_builddir@,$ac_abs_builddir,;t t
40317 s,@top_builddir@,$ac_top_builddir,;t t
40318 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40319 s,@INSTALL@,$ac_INSTALL,;t t
40320 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40321 rm -f $tmp/stdin
40322 if test x"$ac_file" != x-; then
40323 mv $tmp/out $ac_file
40324 else
40325 cat $tmp/out
40326 rm -f $tmp/out
40329 # Run the commands associated with the file.
40330 case $ac_file in
40331 scripts/check_survey ) chmod +x scripts/check_survey ;;
40332 scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
40333 esac
40334 done
40335 _ACEOF
40336 cat >>$CONFIG_STATUS <<\_ACEOF
40339 # CONFIG_HEADER section.
40342 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40343 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40345 # ac_d sets the value in "#define NAME VALUE" lines.
40346 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40347 ac_dB='[ ].*$,\1#\2'
40348 ac_dC=' '
40349 ac_dD=',;t'
40350 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40351 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
40352 ac_uB='$,\1#\2define\3'
40353 ac_uC=' '
40354 ac_uD=',;t'
40356 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40357 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40358 case $ac_file in
40359 - | *:- | *:-:* ) # input from stdin
40360 cat >$tmp/stdin
40361 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40362 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40363 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40364 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40365 * ) ac_file_in=$ac_file.in ;;
40366 esac
40368 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40369 echo "$as_me: creating $ac_file" >&6;}
40371 # First look for the input files in the build tree, otherwise in the
40372 # src tree.
40373 ac_file_inputs=`IFS=:
40374 for f in $ac_file_in; do
40375 case $f in
40376 -) echo $tmp/stdin ;;
40377 [\\/$]*)
40378 # Absolute (can't be DOS-style, as IFS=:)
40379 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40380 echo "$as_me: error: cannot find input file: $f" >&2;}
40381 { (exit 1); exit 1; }; }
40382 echo $f;;
40383 *) # Relative
40384 if test -f "$f"; then
40385 # Build tree
40386 echo $f
40387 elif test -f "$srcdir/$f"; then
40388 # Source tree
40389 echo $srcdir/$f
40390 else
40391 # /dev/null tree
40392 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40393 echo "$as_me: error: cannot find input file: $f" >&2;}
40394 { (exit 1); exit 1; }; }
40395 fi;;
40396 esac
40397 done` || { (exit 1); exit 1; }
40398 # Remove the trailing spaces.
40399 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
40401 _ACEOF
40403 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40404 # `conftest.undefs', that substitutes the proper values into
40405 # config.h.in to produce config.h. The first handles `#define'
40406 # templates, and the second `#undef' templates.
40407 # And first: Protect against being on the right side of a sed subst in
40408 # config.status. Protect against being in an unquoted here document
40409 # in config.status.
40410 rm -f conftest.defines conftest.undefs
40411 # Using a here document instead of a string reduces the quoting nightmare.
40412 # Putting comments in sed scripts is not portable.
40414 # `end' is used to avoid that the second main sed command (meant for
40415 # 0-ary CPP macros) applies to n-ary macro definitions.
40416 # See the Autoconf documentation for `clear'.
40417 cat >confdef2sed.sed <<\_ACEOF
40418 s/[\\&,]/\\&/g
40419 s,[\\$`],\\&,g
40420 t clear
40421 : clear
40422 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40423 t end
40424 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40425 : end
40426 _ACEOF
40427 # If some macros were called several times there might be several times
40428 # the same #defines, which is useless. Nevertheless, we may not want to
40429 # sort them, since we want the *last* AC-DEFINE to be honored.
40430 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40431 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40432 rm -f confdef2sed.sed
40434 # This sed command replaces #undef with comments. This is necessary, for
40435 # example, in the case of _POSIX_SOURCE, which is predefined and required
40436 # on some systems where configure will not decide to define it.
40437 cat >>conftest.undefs <<\_ACEOF
40438 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40439 _ACEOF
40441 # Break up conftest.defines because some shells have a limit on the size
40442 # of here documents, and old seds have small limits too (100 cmds).
40443 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40444 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40445 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40446 echo ' :' >>$CONFIG_STATUS
40447 rm -f conftest.tail
40448 while grep . conftest.defines >/dev/null
40450 # Write a limited-size here document to $tmp/defines.sed.
40451 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40452 # Speed up: don't consider the non `#define' lines.
40453 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
40454 # Work around the forget-to-reset-the-flag bug.
40455 echo 't clr' >>$CONFIG_STATUS
40456 echo ': clr' >>$CONFIG_STATUS
40457 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40458 echo 'CEOF
40459 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40460 rm -f $tmp/in
40461 mv $tmp/out $tmp/in
40462 ' >>$CONFIG_STATUS
40463 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40464 rm -f conftest.defines
40465 mv conftest.tail conftest.defines
40466 done
40467 rm -f conftest.defines
40468 echo ' fi # grep' >>$CONFIG_STATUS
40469 echo >>$CONFIG_STATUS
40471 # Break up conftest.undefs because some shells have a limit on the size
40472 # of here documents, and old seds have small limits too (100 cmds).
40473 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
40474 rm -f conftest.tail
40475 while grep . conftest.undefs >/dev/null
40477 # Write a limited-size here document to $tmp/undefs.sed.
40478 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40479 # Speed up: don't consider the non `#undef'
40480 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
40481 # Work around the forget-to-reset-the-flag bug.
40482 echo 't clr' >>$CONFIG_STATUS
40483 echo ': clr' >>$CONFIG_STATUS
40484 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40485 echo 'CEOF
40486 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40487 rm -f $tmp/in
40488 mv $tmp/out $tmp/in
40489 ' >>$CONFIG_STATUS
40490 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40491 rm -f conftest.undefs
40492 mv conftest.tail conftest.undefs
40493 done
40494 rm -f conftest.undefs
40496 cat >>$CONFIG_STATUS <<\_ACEOF
40497 # Let's still pretend it is `configure' which instantiates (i.e., don't
40498 # use $as_me), people would be surprised to read:
40499 # /* config.h. Generated by config.status. */
40500 if test x"$ac_file" = x-; then
40501 echo "/* Generated by configure. */" >$tmp/config.h
40502 else
40503 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
40505 cat $tmp/in >>$tmp/config.h
40506 rm -f $tmp/in
40507 if test x"$ac_file" != x-; then
40508 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40509 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40510 echo "$as_me: $ac_file is unchanged" >&6;}
40511 else
40512 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40513 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40514 X"$ac_file" : 'X\(//\)[^/]' \| \
40515 X"$ac_file" : 'X\(//\)$' \| \
40516 X"$ac_file" : 'X\(/\)' \| \
40517 . : '\(.\)' 2>/dev/null ||
40518 echo X"$ac_file" |
40519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40520 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40521 /^X\(\/\/\)$/{ s//\1/; q; }
40522 /^X\(\/\).*/{ s//\1/; q; }
40523 s/.*/./; q'`
40524 { if $as_mkdir_p; then
40525 mkdir -p "$ac_dir"
40526 else
40527 as_dir="$ac_dir"
40528 as_dirs=
40529 while test ! -d "$as_dir"; do
40530 as_dirs="$as_dir $as_dirs"
40531 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40532 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40533 X"$as_dir" : 'X\(//\)[^/]' \| \
40534 X"$as_dir" : 'X\(//\)$' \| \
40535 X"$as_dir" : 'X\(/\)' \| \
40536 . : '\(.\)' 2>/dev/null ||
40537 echo X"$as_dir" |
40538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40539 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40540 /^X\(\/\/\)$/{ s//\1/; q; }
40541 /^X\(\/\).*/{ s//\1/; q; }
40542 s/.*/./; q'`
40543 done
40544 test ! -n "$as_dirs" || mkdir $as_dirs
40545 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40546 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40547 { (exit 1); exit 1; }; }; }
40549 rm -f $ac_file
40550 mv $tmp/config.h $ac_file
40552 else
40553 cat $tmp/config.h
40554 rm -f $tmp/config.h
40556 # Compute $ac_file's index in $config_headers.
40557 _am_stamp_count=1
40558 for _am_header in $config_headers :; do
40559 case $_am_header in
40560 $ac_file | $ac_file:* )
40561 break ;;
40563 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40564 esac
40565 done
40566 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40567 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40568 X$ac_file : 'X\(//\)[^/]' \| \
40569 X$ac_file : 'X\(//\)$' \| \
40570 X$ac_file : 'X\(/\)' \| \
40571 . : '\(.\)' 2>/dev/null ||
40572 echo X$ac_file |
40573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40574 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40575 /^X\(\/\/\)$/{ s//\1/; q; }
40576 /^X\(\/\).*/{ s//\1/; q; }
40577 s/.*/./; q'`/stamp-h$_am_stamp_count
40578 done
40579 _ACEOF
40580 cat >>$CONFIG_STATUS <<\_ACEOF
40583 # CONFIG_COMMANDS section.
40585 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40586 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40587 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40588 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40589 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40590 X"$ac_dest" : 'X\(//\)[^/]' \| \
40591 X"$ac_dest" : 'X\(//\)$' \| \
40592 X"$ac_dest" : 'X\(/\)' \| \
40593 . : '\(.\)' 2>/dev/null ||
40594 echo X"$ac_dest" |
40595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40597 /^X\(\/\/\)$/{ s//\1/; q; }
40598 /^X\(\/\).*/{ s//\1/; q; }
40599 s/.*/./; q'`
40600 ac_builddir=.
40602 if test "$ac_dir" != .; then
40603 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40604 # A "../" for each directory in $ac_dir_suffix.
40605 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40606 else
40607 ac_dir_suffix= ac_top_builddir=
40610 case $srcdir in
40611 .) # No --srcdir option. We are building in place.
40612 ac_srcdir=.
40613 if test -z "$ac_top_builddir"; then
40614 ac_top_srcdir=.
40615 else
40616 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40617 fi ;;
40618 [\\/]* | ?:[\\/]* ) # Absolute path.
40619 ac_srcdir=$srcdir$ac_dir_suffix;
40620 ac_top_srcdir=$srcdir ;;
40621 *) # Relative path.
40622 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40623 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40624 esac
40625 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
40626 # absolute.
40627 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
40628 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
40629 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
40630 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
40633 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40634 echo "$as_me: executing $ac_dest commands" >&6;}
40635 case $ac_dest in
40636 default-1 )
40637 # Only add multilib support code if we just rebuilt the top-level
40638 # Makefile.
40639 case " $CONFIG_FILES " in
40640 *" Makefile "*)
40641 ac_file=Makefile . ${multi_basedir}/config-ml.in
40643 esac ;;
40644 default ) if test -n "$CONFIG_FILES"; then
40645 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
40646 # that multilib installs will end up installed in the correct place.
40647 # The testsuite needs it for multilib-aware ABI baseline files.
40648 # To work around this not being passed down from config-ml.in ->
40649 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
40650 # append it here. Only modify Makefiles that have just been created.
40652 # Also, get rid of this simulated-VPATH thing that automake does.
40653 cat > vpsed << \_EOF
40654 s!`test -f '$<' || echo '$(srcdir)/'`!!
40655 _EOF
40656 for i in libmath libsupc++ src testsuite; do
40657 case $CONFIG_FILES in
40658 *${i}/Makefile*)
40659 #echo "Adding MULTISUBDIR to $i/Makefile"
40660 sed -f vpsed $i/Makefile > tmp
40661 grep '^MULTISUBDIR =' Makefile >> tmp
40662 mv tmp $i/Makefile
40664 esac
40665 done
40666 rm vpsed
40668 (cd include && ${MAKE-make})
40670 esac
40671 done
40672 _ACEOF
40674 cat >>$CONFIG_STATUS <<\_ACEOF
40676 { (exit 0); exit 0; }
40677 _ACEOF
40678 chmod +x $CONFIG_STATUS
40679 ac_clean_files=$ac_clean_files_save
40682 # configure is writing to config.log, and then calls config.status.
40683 # config.status does its own redirection, appending to config.log.
40684 # Unfortunately, on DOS this fails, as config.log is still kept open
40685 # by configure, so config.status won't be able to write to it; its
40686 # output is simply discarded. So we exec the FD to /dev/null,
40687 # effectively closing config.log, so it can be properly (re)opened and
40688 # appended to by config.status. When coming back to configure, we
40689 # need to make the FD available again.
40690 if test "$no_create" != yes; then
40691 ac_cs_success=:
40692 ac_config_status_args=
40693 test "$silent" = yes &&
40694 ac_config_status_args="$ac_config_status_args --quiet"
40695 exec 5>/dev/null
40696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40697 exec 5>>config.log
40698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40699 # would make configure fail if this is the last instruction.
40700 $ac_cs_success || { (exit 1); exit 1; }