2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libdecnumber .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='libdecnumber'
271 PACKAGE_TARNAME='libdecnumber'
273 PACKAGE_STRING='libdecnumber '
274 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
276 ac_unique_file="decNumber.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 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 SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB ACLOCAL AUTOCONF AUTOHEADER WARN_CFLAGS WARN_PEDANTIC WERROR CPP EGREP MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os enable_decimal_float ADDITIONAL_OBJS LIBOBJS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures libdecnumber to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libdecnumber :";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-werror-always enable -Werror despite compiler version
853 --enable-maintainer-mode enable rules only needed by maintainers
854 --enable-decimal-float={no,yes,bid,dpd}
855 enable decimal float extension to C. Selecting 'bid'
856 or 'dpd' choses which decimal floating point format
859 Some influential environment variables:
860 CC C compiler command
861 CFLAGS C compiler flags
862 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
863 nonstandard directory <lib dir>
864 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
865 headers in a nonstandard directory <include dir>
868 Use these variables to override the choices made by `configure' or to help
869 it to find libraries and programs with nonstandard names/locations.
871 Report bugs to <gcc-bugs@gcc.gnu.org>.
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 ac_dir_suffix= ac_top_builddir=
891 .) # No --srcdir option. We are building in place.
893 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
909 .) ac_abs_builddir="$ac_dir";;
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 case ${ac_top_builddir}. in
921 .) ac_abs_top_builddir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 case $ac_top_srcdir in
939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
967 libdecnumber configure
968 generated by GNU Autoconf 2.59
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
981 It was created by libdecnumber $as_me , which was
982 generated by GNU Autoconf 2.59. Invocation command line was
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1041 ac_must_keep_next=false
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1070 -* ) ac_must_keep_next=true ;;
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1099 # The following way of writing the cache mishandles newlines in values,
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1122 for ac_var in $ac_subst_vars
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1129 if test -n "$ac_subst_files"; then
1136 for ac_var in $ac_subst_files
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -s confdefs.h; then
1151 sed "/^$/d" confdefs.h | sort
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1172 # Predefined preprocessor variables.
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1234 # Check that the precious variables saved in the cache have kept the same
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319 [\\/]* | ?:[\\/]* ) ac_macro_dir=../config ;;
1320 *) ac_macro_dir=$srcdir/../config ;;
1322 if test -d "$ac_macro_dir"; then :
1324 { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5
1325 echo "$as_me: error: cannot find macro directory \`../config'" >&2;}
1326 { (exit 1); exit 1; }; }
1330 # Checks for programs.
1331 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1332 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1333 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1334 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1335 echo $ECHO_N "(cached) $ECHO_C" >&6
1337 cat >conftest.make <<\_ACEOF
1339 @echo 'ac_maketemp="$(MAKE)"'
1341 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1342 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1343 if test -n "$ac_maketemp"; then
1344 eval ac_cv_prog_make_${ac_make}_set=yes
1346 eval ac_cv_prog_make_${ac_make}_set=no
1350 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1351 echo "$as_me:$LINENO: result: yes" >&5
1352 echo "${ECHO_T}yes" >&6
1355 echo "$as_me:$LINENO: result: no" >&5
1356 echo "${ECHO_T}no" >&6
1357 SET_MAKE="MAKE=${MAKE-make}"
1361 ac_cpp='$CPP $CPPFLAGS'
1362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365 if test -n "$ac_tool_prefix"; then
1366 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1367 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1368 echo "$as_me:$LINENO: checking for $ac_word" >&5
1369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1370 if test "${ac_cv_prog_CC+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1373 if test -n "$CC"; then
1374 ac_cv_prog_CC="$CC" # Let the user override the test.
1376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1380 test -z "$as_dir" && as_dir=.
1381 for ac_exec_ext in '' $ac_executable_extensions; do
1382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1383 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393 if test -n "$CC"; then
1394 echo "$as_me:$LINENO: result: $CC" >&5
1395 echo "${ECHO_T}$CC" >&6
1397 echo "$as_me:$LINENO: result: no" >&5
1398 echo "${ECHO_T}no" >&6
1402 if test -z "$ac_cv_prog_CC"; then
1404 # Extract the first word of "gcc", so it can be a program name with args.
1405 set dummy gcc; ac_word=$2
1406 echo "$as_me:$LINENO: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 if test -n "$ac_ct_CC"; then
1412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1418 test -z "$as_dir" && as_dir=.
1419 for ac_exec_ext in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1421 ac_cv_prog_ac_ct_CC="gcc"
1422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1431 if test -n "$ac_ct_CC"; then
1432 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1433 echo "${ECHO_T}$ac_ct_CC" >&6
1435 echo "$as_me:$LINENO: result: no" >&5
1436 echo "${ECHO_T}no" >&6
1444 if test -z "$CC"; then
1445 if test -n "$ac_tool_prefix"; then
1446 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1447 set dummy ${ac_tool_prefix}cc; ac_word=$2
1448 echo "$as_me:$LINENO: checking for $ac_word" >&5
1449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450 if test "${ac_cv_prog_CC+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 if test -n "$CC"; then
1454 ac_cv_prog_CC="$CC" # Let the user override the test.
1456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460 test -z "$as_dir" && as_dir=.
1461 for ac_exec_ext in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463 ac_cv_prog_CC="${ac_tool_prefix}cc"
1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473 if test -n "$CC"; then
1474 echo "$as_me:$LINENO: result: $CC" >&5
1475 echo "${ECHO_T}$CC" >&6
1477 echo "$as_me:$LINENO: result: no" >&5
1478 echo "${ECHO_T}no" >&6
1482 if test -z "$ac_cv_prog_CC"; then
1484 # Extract the first word of "cc", so it can be a program name with args.
1485 set dummy cc; ac_word=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 if test -n "$ac_ct_CC"; then
1492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 ac_cv_prog_ac_ct_CC="cc"
1502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1511 if test -n "$ac_ct_CC"; then
1512 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1513 echo "${ECHO_T}$ac_ct_CC" >&6
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1525 if test -z "$CC"; then
1526 # Extract the first word of "cc", so it can be a program name with args.
1527 set dummy cc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1545 ac_prog_rejected=yes
1549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555 if test $ac_prog_rejected = yes; then
1556 # We found a bogon in the path, so make sure we never use it.
1557 set dummy $ac_cv_prog_CC
1559 if test $# != 0; then
1560 # We chose a different compiler from the bogus one.
1561 # However, it has the same basename, so the bogon will be chosen
1562 # first if we set CC to just the basename; use the full file name.
1564 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1570 if test -n "$CC"; then
1571 echo "$as_me:$LINENO: result: $CC" >&5
1572 echo "${ECHO_T}$CC" >&6
1574 echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1579 if test -z "$CC"; then
1580 if test -n "$ac_tool_prefix"; then
1583 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1585 echo "$as_me:$LINENO: checking for $ac_word" >&5
1586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587 if test "${ac_cv_prog_CC+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 if test -n "$CC"; then
1591 ac_cv_prog_CC="$CC" # Let the user override the test.
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 test -z "$as_dir" && as_dir=.
1598 for ac_exec_ext in '' $ac_executable_extensions; do
1599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 if test -n "$CC"; then
1611 echo "$as_me:$LINENO: result: $CC" >&5
1612 echo "${ECHO_T}$CC" >&6
1614 echo "$as_me:$LINENO: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1618 test -n "$CC" && break
1621 if test -z "$CC"; then
1625 # Extract the first word of "$ac_prog", so it can be a program name with args.
1626 set dummy $ac_prog; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 if test -n "$ac_ct_CC"; then
1633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_ac_ct_CC="$ac_prog"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1652 if test -n "$ac_ct_CC"; then
1653 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1654 echo "${ECHO_T}$ac_ct_CC" >&6
1656 echo "$as_me:$LINENO: result: no" >&5
1657 echo "${ECHO_T}no" >&6
1660 test -n "$ac_ct_CC" && break
1669 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1670 See \`config.log' for more details." >&5
1671 echo "$as_me: error: no acceptable C compiler found in \$PATH
1672 See \`config.log' for more details." >&2;}
1673 { (exit 1); exit 1; }; }
1675 # Provide some information about the compiler.
1676 echo "$as_me:$LINENO:" \
1677 "checking for C compiler version" >&5
1678 ac_compiler=`set X $ac_compile; echo $2`
1679 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1680 (eval $ac_compiler --version </dev/null >&5) 2>&5
1682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1683 (exit $ac_status); }
1684 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1685 (eval $ac_compiler -v </dev/null >&5) 2>&5
1687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1688 (exit $ac_status); }
1689 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1690 (eval $ac_compiler -V </dev/null >&5) 2>&5
1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693 (exit $ac_status); }
1695 cat >conftest.$ac_ext <<_ACEOF
1698 cat confdefs.h >>conftest.$ac_ext
1699 cat >>conftest.$ac_ext <<_ACEOF
1700 /* end confdefs.h. */
1710 ac_clean_files_save=$ac_clean_files
1711 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1712 # Try to create an executable without -o first, disregard a.out.
1713 # It will help us diagnose broken compilers, and finding out an intuition
1715 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1716 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1717 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1718 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1719 (eval $ac_link_default) 2>&5
1721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1722 (exit $ac_status); }; then
1723 # Find the output, starting from the most likely. This scheme is
1724 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1727 # Be careful to initialize this variable, since it used to be cached.
1728 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1730 # b.out is created by i960 compilers.
1731 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1733 test -f "$ac_file" || continue
1735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1738 # This is the source file.
1741 # We found the default executable, but exeext='' is most
1745 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1746 # FIXME: I believe we export ac_cv_exeext for Libtool,
1747 # but it would be cool to find out if it's true. Does anybody
1748 # maintain Libtool? --akim.
1756 echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1759 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1760 See \`config.log' for more details." >&5
1761 echo "$as_me: error: C compiler cannot create executables
1762 See \`config.log' for more details." >&2;}
1763 { (exit 77); exit 77; }; }
1766 ac_exeext=$ac_cv_exeext
1767 echo "$as_me:$LINENO: result: $ac_file" >&5
1768 echo "${ECHO_T}$ac_file" >&6
1770 # Check the compiler produces executables we can run. If not, either
1771 # the compiler is broken, or we cross compile.
1772 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1773 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1774 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1775 # If not cross compiling, check that we can run a simple program.
1776 if test "$cross_compiling" != yes; then
1777 if { ac_try='./$ac_file'
1778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1782 (exit $ac_status); }; }; then
1785 if test "$cross_compiling" = maybe; then
1788 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1789 If you meant to cross compile, use \`--host'.
1790 See \`config.log' for more details." >&5
1791 echo "$as_me: error: cannot run C compiled programs.
1792 If you meant to cross compile, use \`--host'.
1793 See \`config.log' for more details." >&2;}
1794 { (exit 1); exit 1; }; }
1798 echo "$as_me:$LINENO: result: yes" >&5
1799 echo "${ECHO_T}yes" >&6
1801 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1802 ac_clean_files=$ac_clean_files_save
1803 # Check the compiler produces executables we can run. If not, either
1804 # the compiler is broken, or we cross compile.
1805 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1806 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1807 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1808 echo "${ECHO_T}$cross_compiling" >&6
1810 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1811 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1813 (eval $ac_link) 2>&5
1815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816 (exit $ac_status); }; then
1817 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1818 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1819 # work properly (i.e., refer to `conftest.exe'), while it won't with
1821 for ac_file in conftest.exe conftest conftest.*; do
1822 test -f "$ac_file" || continue
1824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1825 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1832 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1835 See \`config.log' for more details." >&2;}
1836 { (exit 1); exit 1; }; }
1839 rm -f conftest$ac_cv_exeext
1840 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1841 echo "${ECHO_T}$ac_cv_exeext" >&6
1843 rm -f conftest.$ac_ext
1844 EXEEXT=$ac_cv_exeext
1846 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1847 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1848 if test "${ac_cv_objext+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 cat >conftest.$ac_ext <<_ACEOF
1854 cat confdefs.h >>conftest.$ac_ext
1855 cat >>conftest.$ac_ext <<_ACEOF
1856 /* end confdefs.h. */
1866 rm -f conftest.o conftest.obj
1867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1868 (eval $ac_compile) 2>&5
1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 (exit $ac_status); }; then
1872 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1875 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1880 echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1883 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1884 See \`config.log' for more details." >&5
1885 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1886 See \`config.log' for more details." >&2;}
1887 { (exit 1); exit 1; }; }
1890 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1892 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1893 echo "${ECHO_T}$ac_cv_objext" >&6
1894 OBJEXT=$ac_cv_objext
1896 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1897 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1898 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 cat >conftest.$ac_ext <<_ACEOF
1904 cat confdefs.h >>conftest.$ac_ext
1905 cat >>conftest.$ac_ext <<_ACEOF
1906 /* end confdefs.h. */
1919 rm -f conftest.$ac_objext
1920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1921 (eval $ac_compile) 2>conftest.er1
1923 grep -v '^ *+' conftest.er1 >conftest.err
1925 cat conftest.err >&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); } &&
1928 { ac_try='test -z "$ac_c_werror_flag"
1929 || test ! -s conftest.err'
1930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }; } &&
1935 { ac_try='test -s conftest.$ac_objext'
1936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1943 echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1949 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1952 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1953 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1954 GCC=`test $ac_compiler_gnu = yes && echo yes`
1955 ac_test_CFLAGS=${CFLAGS+set}
1956 ac_save_CFLAGS=$CFLAGS
1958 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1959 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1960 if test "${ac_cv_prog_cc_g+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 cat >conftest.$ac_ext <<_ACEOF
1966 cat confdefs.h >>conftest.$ac_ext
1967 cat >>conftest.$ac_ext <<_ACEOF
1968 /* end confdefs.h. */
1978 rm -f conftest.$ac_objext
1979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1980 (eval $ac_compile) 2>conftest.er1
1982 grep -v '^ *+' conftest.er1 >conftest.err
1984 cat conftest.err >&5
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); } &&
1987 { ac_try='test -z "$ac_c_werror_flag"
1988 || test ! -s conftest.err'
1989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }; } &&
1994 { ac_try='test -s conftest.$ac_objext'
1995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; }; then
2002 echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2009 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2010 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2011 if test "$ac_test_CFLAGS" = set; then
2012 CFLAGS=$ac_save_CFLAGS
2013 elif test $ac_cv_prog_cc_g = yes; then
2014 if test "$GCC" = yes; then
2020 if test "$GCC" = yes; then
2026 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2027 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2028 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 ac_cv_prog_cc_stdc=no
2033 cat >conftest.$ac_ext <<_ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2041 #include <sys/types.h>
2042 #include <sys/stat.h>
2043 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2044 struct buf { int x; };
2045 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2046 static char *e (p, i)
2052 static char *f (char * (*g) (char **, int), char **p, ...)
2057 s = g (p, va_arg (v,int));
2062 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2063 function prototypes and stuff, but not '\xHH' hex character constants.
2064 These don't provoke an error unfortunately, instead are silently treated
2065 as 'x'. The following induces an error, until -std1 is added to get
2066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2067 array size at least. It's necessary to write '\x00'==0 to get something
2068 that's true only with -std1. */
2069 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2071 int test (int i, double x);
2072 struct s1 {int (*f) (int a);};
2073 struct s2 {int (*f) (double a);};
2074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2080 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2085 # Don't try gcc -ansi; that turns off useful extensions and
2086 # breaks some systems' header files.
2087 # AIX -qlanglvl=ansi
2088 # Ultrix and OSF/1 -std1
2089 # HP-UX 10.20 and later -Ae
2090 # HP-UX older versions -Aa -D_HPUX_SOURCE
2091 # SVR4 -Xc -D__EXTENSIONS__
2092 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2094 CC="$ac_save_CC $ac_arg"
2095 rm -f conftest.$ac_objext
2096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097 (eval $ac_compile) 2>conftest.er1
2099 grep -v '^ *+' conftest.er1 >conftest.err
2101 cat conftest.err >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); } &&
2104 { ac_try='test -z "$ac_c_werror_flag"
2105 || test ! -s conftest.err'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; } &&
2111 { ac_try='test -s conftest.$ac_objext'
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; }; then
2117 ac_cv_prog_cc_stdc=$ac_arg
2120 echo "$as_me: failed program was:" >&5
2121 sed 's/^/| /' conftest.$ac_ext >&5
2124 rm -f conftest.err conftest.$ac_objext
2126 rm -f conftest.$ac_ext conftest.$ac_objext
2131 case "x$ac_cv_prog_cc_stdc" in
2133 echo "$as_me:$LINENO: result: none needed" >&5
2134 echo "${ECHO_T}none needed" >&6 ;;
2136 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2137 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2138 CC="$CC $ac_cv_prog_cc_stdc" ;;
2141 # Some people use a C++ compiler to compile C. Since we use `exit',
2142 # in C++ we need to declare it. In case someone uses the same compiler
2143 # for both compiling C and C++ we need to have the C++ compiler decide
2144 # the declaration of exit, since it's the most demanding environment.
2145 cat >conftest.$ac_ext <<_ACEOF
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>conftest.er1
2154 grep -v '^ *+' conftest.er1 >conftest.err
2156 cat conftest.err >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); } &&
2159 { ac_try='test -z "$ac_c_werror_flag"
2160 || test ! -s conftest.err'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; } &&
2166 { ac_try='test -s conftest.$ac_objext'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2172 for ac_declaration in \
2174 'extern "C" void std::exit (int) throw (); using std::exit;' \
2175 'extern "C" void std::exit (int); using std::exit;' \
2176 'extern "C" void exit (int) throw ();' \
2177 'extern "C" void exit (int);' \
2180 cat >conftest.$ac_ext <<_ACEOF
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h. */
2196 rm -f conftest.$ac_objext
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>conftest.er1
2200 grep -v '^ *+' conftest.er1 >conftest.err
2202 cat conftest.err >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); } &&
2205 { ac_try='test -z "$ac_c_werror_flag"
2206 || test ! -s conftest.err'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; } &&
2212 { ac_try='test -s conftest.$ac_objext'
2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2226 cat >conftest.$ac_ext <<_ACEOF
2229 cat confdefs.h >>conftest.$ac_ext
2230 cat >>conftest.$ac_ext <<_ACEOF
2231 /* end confdefs.h. */
2241 rm -f conftest.$ac_objext
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>conftest.er1
2245 grep -v '^ *+' conftest.er1 >conftest.err
2247 cat conftest.err >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); } &&
2250 { ac_try='test -z "$ac_c_werror_flag"
2251 || test ! -s conftest.err'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2265 echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.$ac_ext >&5
2269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2272 if test -n "$ac_declaration"; then
2273 echo '#ifdef __cplusplus' >>confdefs.h
2274 echo $ac_declaration >>confdefs.h
2275 echo '#endif' >>confdefs.h
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2285 ac_cpp='$CPP $CPPFLAGS'
2286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2290 if test -n "$ac_tool_prefix"; then
2291 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2292 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2293 echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295 if test "${ac_cv_prog_RANLIB+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 if test -n "$RANLIB"; then
2299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 RANLIB=$ac_cv_prog_RANLIB
2318 if test -n "$RANLIB"; then
2319 echo "$as_me:$LINENO: result: $RANLIB" >&5
2320 echo "${ECHO_T}$RANLIB" >&6
2322 echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6
2327 if test -z "$ac_cv_prog_RANLIB"; then
2328 ac_ct_RANLIB=$RANLIB
2329 # Extract the first word of "ranlib", so it can be a program name with args.
2330 set dummy ranlib; ac_word=$2
2331 echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 if test -n "$ac_ct_RANLIB"; then
2337 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346 ac_cv_prog_ac_ct_RANLIB="ranlib"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2356 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2357 if test -n "$ac_ct_RANLIB"; then
2358 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2359 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2361 echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6
2365 RANLIB=$ac_ct_RANLIB
2367 RANLIB="$ac_cv_prog_RANLIB"
2371 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2372 for ac_prog in aclocal
2374 # Extract the first word of "$ac_prog", so it can be a program name with args.
2375 set dummy $ac_prog; ac_word=$2
2376 echo "$as_me:$LINENO: checking for $ac_word" >&5
2377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2378 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 if test -n "$ACLOCAL"; then
2382 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2391 ac_cv_prog_ACLOCAL="$ac_prog"
2392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 ACLOCAL=$ac_cv_prog_ACLOCAL
2401 if test -n "$ACLOCAL"; then
2402 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2403 echo "${ECHO_T}$ACLOCAL" >&6
2405 echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2409 test -n "$ACLOCAL" && break
2411 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
2413 for ac_prog in autoconf
2415 # Extract the first word of "$ac_prog", so it can be a program name with args.
2416 set dummy $ac_prog; ac_word=$2
2417 echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 if test -n "$AUTOCONF"; then
2423 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2432 ac_cv_prog_AUTOCONF="$ac_prog"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 AUTOCONF=$ac_cv_prog_AUTOCONF
2442 if test -n "$AUTOCONF"; then
2443 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2444 echo "${ECHO_T}$AUTOCONF" >&6
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2450 test -n "$AUTOCONF" && break
2452 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2454 for ac_prog in autoheader
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 if test -n "$AUTOHEADER"; then
2464 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473 ac_cv_prog_AUTOHEADER="$ac_prog"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2483 if test -n "$AUTOHEADER"; then
2484 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2485 echo "${ECHO_T}$AUTOHEADER" >&6
2487 echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6
2491 test -n "$AUTOHEADER" && break
2493 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2496 # Figure out what compiler warnings we can enable.
2497 # See config/warnings.m4 for details.
2501 save_CFLAGS="$CFLAGS"
2502 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2503 -Wmissing-prototypes -Wold-style-definition \
2504 -Wmissing-format-attribute -Wcast-qual; do
2505 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2507 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2508 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2509 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 cat >conftest.$ac_ext <<_ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h. */
2528 rm -f conftest.$ac_objext
2529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530 (eval $ac_compile) 2>conftest.er1
2532 grep -v '^ *+' conftest.er1 >conftest.err
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try='test -z "$ac_c_werror_flag"
2538 || test ! -s conftest.err'
2539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; } &&
2544 { ac_try='test -s conftest.$ac_objext'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 eval "$as_acx_Woption=yes"
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2555 eval "$as_acx_Woption=no"
2557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2560 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2561 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2562 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2563 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2567 CFLAGS="$save_CFLAGS"
2570 if test "$GCC" = yes; then
2571 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2572 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2573 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 save_CFLAGS="$CFLAGS"
2577 CFLAGS="-pedantic -Wno-long-long"
2578 cat >conftest.$ac_ext <<_ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>conftest.er1
2597 grep -v '^ *+' conftest.er1 >conftest.err
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } &&
2602 { ac_try='test -z "$ac_c_werror_flag"
2603 || test ! -s conftest.err'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; } &&
2609 { ac_try='test -s conftest.$ac_objext'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2615 acx_cv_prog_cc_pedantic__Wno_long_long=yes
2617 echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2620 acx_cv_prog_cc_pedantic__Wno_long_long=no
2622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2623 CFLAGS="$save_CFLAGS"
2625 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2626 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2627 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2628 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
2636 # Only enable with --enable-werror-always until existing warnings are
2639 # Check whether --enable-werror-always or --disable-werror-always was given.
2640 if test "${enable_werror_always+set}" = set; then
2641 enableval="$enable_werror_always"
2644 enable_werror_always=no
2646 if test $enable_werror_always = yes; then
2647 WERROR="$WERROR${WERROR:+ }-Werror"
2653 # Checks for header files.
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2660 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2661 # On Suns, sometimes $CPP names a directory.
2662 if test -n "$CPP" && test -d "$CPP"; then
2665 if test -z "$CPP"; then
2666 if test "${ac_cv_prog_CPP+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 # Double quotes because CPP needs to be expanded
2670 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2673 for ac_c_preproc_warn_flag in '' yes
2675 # Use a header file that comes with gcc, so configuring glibc
2676 # with a fresh cross-compiler works.
2677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2678 # <limits.h> exists even on freestanding compilers.
2679 # On the NeXT, cc -E runs the code through the compiler's parser,
2680 # not just through cpp. "Syntax error" is here to catch this case.
2681 cat >conftest.$ac_ext <<_ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2688 # include <limits.h>
2690 # include <assert.h>
2694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } >/dev/null; then
2702 if test -s conftest.err; then
2703 ac_cpp_err=$ac_c_preproc_warn_flag
2704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2711 if test -z "$ac_cpp_err"; then
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2717 # Broken: fails on valid input.
2720 rm -f conftest.err conftest.$ac_ext
2722 # OK, works on sane cases. Now check whether non-existent headers
2723 # can be detected and how.
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2730 #include <ac_nonexistent.h>
2732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2735 grep -v '^ *+' conftest.er1 >conftest.err
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } >/dev/null; then
2740 if test -s conftest.err; then
2741 ac_cpp_err=$ac_c_preproc_warn_flag
2742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2749 if test -z "$ac_cpp_err"; then
2750 # Broken: success on invalid input.
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 # Passes both tests.
2760 rm -f conftest.err conftest.$ac_ext
2763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2764 rm -f conftest.err conftest.$ac_ext
2765 if $ac_preproc_ok; then
2777 echo "$as_me:$LINENO: result: $CPP" >&5
2778 echo "${ECHO_T}$CPP" >&6
2780 for ac_c_preproc_warn_flag in '' yes
2782 # Use a header file that comes with gcc, so configuring glibc
2783 # with a fresh cross-compiler works.
2784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2785 # <limits.h> exists even on freestanding compilers.
2786 # On the NeXT, cc -E runs the code through the compiler's parser,
2787 # not just through cpp. "Syntax error" is here to catch this case.
2788 cat >conftest.$ac_ext <<_ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2795 # include <limits.h>
2797 # include <assert.h>
2801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2804 grep -v '^ *+' conftest.er1 >conftest.err
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } >/dev/null; then
2809 if test -s conftest.err; then
2810 ac_cpp_err=$ac_c_preproc_warn_flag
2811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2818 if test -z "$ac_cpp_err"; then
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2824 # Broken: fails on valid input.
2827 rm -f conftest.err conftest.$ac_ext
2829 # OK, works on sane cases. Now check whether non-existent headers
2830 # can be detected and how.
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2837 #include <ac_nonexistent.h>
2839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2842 grep -v '^ *+' conftest.er1 >conftest.err
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } >/dev/null; then
2847 if test -s conftest.err; then
2848 ac_cpp_err=$ac_c_preproc_warn_flag
2849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2856 if test -z "$ac_cpp_err"; then
2857 # Broken: success on invalid input.
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 # Passes both tests.
2867 rm -f conftest.err conftest.$ac_ext
2870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2871 rm -f conftest.err conftest.$ac_ext
2872 if $ac_preproc_ok; then
2875 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2878 See \`config.log' for more details." >&2;}
2879 { (exit 1); exit 1; }; }
2883 ac_cpp='$CPP $CPPFLAGS'
2884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889 echo "$as_me:$LINENO: checking for egrep" >&5
2890 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2891 if test "${ac_cv_prog_egrep+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2895 then ac_cv_prog_egrep='grep -E'
2896 else ac_cv_prog_egrep='egrep'
2899 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2900 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2901 EGREP=$ac_cv_prog_egrep
2904 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2905 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2906 if test "${ac_cv_header_stdc+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2928 rm -f conftest.$ac_objext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2930 (eval $ac_compile) 2>conftest.er1
2932 grep -v '^ *+' conftest.er1 >conftest.err
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } &&
2937 { ac_try='test -z "$ac_c_werror_flag"
2938 || test ! -s conftest.err'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; } &&
2944 { ac_try='test -s conftest.$ac_objext'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2950 ac_cv_header_stdc=yes
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2955 ac_cv_header_stdc=no
2957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2959 if test $ac_cv_header_stdc = yes; then
2960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2961 cat >conftest.$ac_ext <<_ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2971 $EGREP "memchr" >/dev/null 2>&1; then
2974 ac_cv_header_stdc=no
2980 if test $ac_cv_header_stdc = yes; then
2981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2982 cat >conftest.$ac_ext <<_ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2992 $EGREP "free" >/dev/null 2>&1; then
2995 ac_cv_header_stdc=no
3001 if test $ac_cv_header_stdc = yes; then
3002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3003 if test "$cross_compiling" = yes; then
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3013 #if ((' ' & 0x0FF) == 0x020)
3014 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3015 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3017 # define ISLOWER(c) \
3018 (('a' <= (c) && (c) <= 'i') \
3019 || ('j' <= (c) && (c) <= 'r') \
3020 || ('s' <= (c) && (c) <= 'z'))
3021 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3024 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3029 for (i = 0; i < 256; i++)
3030 if (XOR (islower (i), ISLOWER (i))
3031 || toupper (i) != TOUPPER (i))
3036 rm -f conftest$ac_exeext
3037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3038 (eval $ac_link) 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3049 echo "$as_me: program exited with status $ac_status" >&5
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3054 ac_cv_header_stdc=no
3056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3060 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3061 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3062 if test $ac_cv_header_stdc = yes; then
3064 cat >>confdefs.h <<\_ACEOF
3065 #define STDC_HEADERS 1
3070 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3080 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3081 inttypes.h stdint.h unistd.h
3083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3084 echo "$as_me:$LINENO: checking for $ac_header" >&5
3085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 cat >conftest.$ac_ext <<_ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3095 $ac_includes_default
3097 #include <$ac_header>
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_c_werror_flag"
3109 || test ! -s conftest.err'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; } &&
3115 { ac_try='test -s conftest.$ac_objext'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 eval "$as_ac_Header=yes"
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3126 eval "$as_ac_Header=no"
3128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3133 cat >>confdefs.h <<_ACEOF
3134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3146 for ac_header in ctype.h stddef.h string.h stdio.h
3148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3150 echo "$as_me:$LINENO: checking for $ac_header" >&5
3151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3158 # Is the header compilable?
3159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3161 cat >conftest.$ac_ext <<_ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3167 $ac_includes_default
3168 #include <$ac_header>
3170 rm -f conftest.$ac_objext
3171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3172 (eval $ac_compile) 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_c_werror_flag"
3180 || test ! -s conftest.err'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; } &&
3186 { ac_try='test -s conftest.$ac_objext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 ac_header_compiler=yes
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 ac_header_compiler=no
3199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3201 echo "${ECHO_T}$ac_header_compiler" >&6
3203 # Is the header present?
3204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212 #include <$ac_header>
3214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3217 grep -v '^ *+' conftest.er1 >conftest.err
3219 cat conftest.err >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } >/dev/null; then
3222 if test -s conftest.err; then
3223 ac_cpp_err=$ac_c_preproc_warn_flag
3224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3231 if test -z "$ac_cpp_err"; then
3232 ac_header_preproc=yes
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3237 ac_header_preproc=no
3239 rm -f conftest.err conftest.$ac_ext
3240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3241 echo "${ECHO_T}$ac_header_preproc" >&6
3243 # So? What about this header?
3244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3250 ac_header_preproc=yes
3253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3267 ## ----------------------------------- ##
3268 ## Report this to gcc-bugs@gcc.gnu.org ##
3269 ## ----------------------------------- ##
3272 sed "s/^/$as_me: WARNING: /" >&2
3275 echo "$as_me:$LINENO: checking for $ac_header" >&5
3276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 eval "$as_ac_Header=\$ac_header_preproc"
3282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3287 cat >>confdefs.h <<_ACEOF
3288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3297 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
3299 acx_cv_header_stdint=stddef.h
3300 acx_cv_header_stdint_kind="(already complete)"
3301 for i in stdint.h $inttype_headers; do
3302 unset ac_cv_type_uintptr_t
3303 unset ac_cv_type_uintmax_t
3304 unset ac_cv_type_int_least32_t
3305 unset ac_cv_type_int_fast32_t
3306 unset ac_cv_type_uint64_t
3307 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
3308 echo "$as_me:$LINENO: checking for uintmax_t" >&5
3309 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
3310 if test "${ac_cv_type_uintmax_t+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 cat >conftest.$ac_ext <<_ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3319 #include <sys/types.h>
3325 if ((uintmax_t *) 0)
3327 if (sizeof (uintmax_t))
3333 rm -f conftest.$ac_objext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>conftest.er1
3337 grep -v '^ *+' conftest.er1 >conftest.err
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try='test -z "$ac_c_werror_flag"
3343 || test ! -s conftest.err'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest.$ac_objext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_cv_type_uintmax_t=yes
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3360 ac_cv_type_uintmax_t=no
3362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3364 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
3365 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
3366 if test $ac_cv_type_uintmax_t = yes; then
3367 acx_cv_header_stdint=$i
3372 echo "$as_me:$LINENO: checking for uintptr_t" >&5
3373 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3374 if test "${ac_cv_type_uintptr_t+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383 #include <sys/types.h>
3389 if ((uintptr_t *) 0)
3391 if (sizeof (uintptr_t))
3397 rm -f conftest.$ac_objext
3398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -z "$ac_c_werror_flag"
3407 || test ! -s conftest.err'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3419 ac_cv_type_uintptr_t=yes
3421 echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3424 ac_cv_type_uintptr_t=no
3426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3428 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3429 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3430 if test $ac_cv_type_uintptr_t = yes; then
3433 acx_cv_header_stdint_kind="(mostly complete)"
3436 echo "$as_me:$LINENO: checking for int_least32_t" >&5
3437 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
3438 if test "${ac_cv_type_int_least32_t+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <sys/types.h>
3453 if ((int_least32_t *) 0)
3455 if (sizeof (int_least32_t))
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try='test -z "$ac_c_werror_flag"
3471 || test ! -s conftest.err'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; } &&
3477 { ac_try='test -s conftest.$ac_objext'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 ac_cv_type_int_least32_t=yes
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 ac_cv_type_int_least32_t=no
3490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3492 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
3493 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
3494 if test $ac_cv_type_int_least32_t = yes; then
3497 acx_cv_header_stdint_kind="(mostly complete)"
3500 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
3501 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
3502 if test "${ac_cv_type_int_fast32_t+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 cat >conftest.$ac_ext <<_ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3511 #include <sys/types.h>
3517 if ((int_fast32_t *) 0)
3519 if (sizeof (int_fast32_t))
3525 rm -f conftest.$ac_objext
3526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3527 (eval $ac_compile) 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try='test -z "$ac_c_werror_flag"
3535 || test ! -s conftest.err'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; } &&
3541 { ac_try='test -s conftest.$ac_objext'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3547 ac_cv_type_int_fast32_t=yes
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 ac_cv_type_int_fast32_t=no
3554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3556 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
3557 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
3558 if test $ac_cv_type_int_fast32_t = yes; then
3561 acx_cv_header_stdint_kind="(mostly complete)"
3564 echo "$as_me:$LINENO: checking for uint64_t" >&5
3565 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3566 if test "${ac_cv_type_uint64_t+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 cat >conftest.$ac_ext <<_ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3575 #include <sys/types.h>
3583 if (sizeof (uint64_t))
3589 rm -f conftest.$ac_objext
3590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591 (eval $ac_compile) 2>conftest.er1
3593 grep -v '^ *+' conftest.er1 >conftest.err
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } &&
3598 { ac_try='test -z "$ac_c_werror_flag"
3599 || test ! -s conftest.err'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; } &&
3605 { ac_try='test -s conftest.$ac_objext'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3611 ac_cv_type_uint64_t=yes
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 ac_cv_type_uint64_t=no
3618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3620 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
3621 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3622 if test $ac_cv_type_uint64_t = yes; then
3625 acx_cv_header_stdint_kind="(lacks uint64_t)"
3630 if test "$acx_cv_header_stdint" = stddef.h; then
3631 acx_cv_header_stdint_kind="(lacks uintmax_t)"
3632 for i in stdint.h $inttype_headers; do
3633 unset ac_cv_type_uintptr_t
3634 unset ac_cv_type_uint32_t
3635 unset ac_cv_type_uint64_t
3636 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
3637 echo "$as_me:$LINENO: checking for uint32_t" >&5
3638 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3639 if test "${ac_cv_type_uint32_t+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 cat >conftest.$ac_ext <<_ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 #include <sys/types.h>
3656 if (sizeof (uint32_t))
3662 rm -f conftest.$ac_objext
3663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664 (eval $ac_compile) 2>conftest.er1
3666 grep -v '^ *+' conftest.er1 >conftest.err
3668 cat conftest.err >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 { ac_try='test -z "$ac_c_werror_flag"
3672 || test ! -s conftest.err'
3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; } &&
3678 { ac_try='test -s conftest.$ac_objext'
3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
3684 ac_cv_type_uint32_t=yes
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3689 ac_cv_type_uint32_t=no
3691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3693 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
3694 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3695 if test $ac_cv_type_uint32_t = yes; then
3696 acx_cv_header_stdint=$i
3701 echo "$as_me:$LINENO: checking for uint64_t" >&5
3702 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3703 if test "${ac_cv_type_uint64_t+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 cat >conftest.$ac_ext <<_ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3712 #include <sys/types.h>
3720 if (sizeof (uint64_t))
3726 rm -f conftest.$ac_objext
3727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3728 (eval $ac_compile) 2>conftest.er1
3730 grep -v '^ *+' conftest.er1 >conftest.err
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } &&
3735 { ac_try='test -z "$ac_c_werror_flag"
3736 || test ! -s conftest.err'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; } &&
3742 { ac_try='test -s conftest.$ac_objext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_cv_type_uint64_t=yes
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3753 ac_cv_type_uint64_t=no
3755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3757 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
3758 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3760 echo "$as_me:$LINENO: checking for uintptr_t" >&5
3761 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3762 if test "${ac_cv_type_uintptr_t+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 cat >conftest.$ac_ext <<_ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3771 #include <sys/types.h>
3777 if ((uintptr_t *) 0)
3779 if (sizeof (uintptr_t))
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>conftest.er1
3789 grep -v '^ *+' conftest.er1 >conftest.err
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -z "$ac_c_werror_flag"
3795 || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try='test -s conftest.$ac_objext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 ac_cv_type_uintptr_t=yes
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 ac_cv_type_uintptr_t=no
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3817 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3822 if test "$acx_cv_header_stdint" = stddef.h; then
3823 acx_cv_header_stdint_kind="(u_intXX_t style)"
3824 for i in sys/types.h $inttype_headers; do
3825 unset ac_cv_type_u_int32_t
3826 unset ac_cv_type_u_int64_t
3827 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
3828 echo "$as_me:$LINENO: checking for u_int32_t" >&5
3829 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3830 if test "${ac_cv_type_u_int32_t+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839 #include <sys/types.h>
3845 if ((u_int32_t *) 0)
3847 if (sizeof (u_int32_t))
3853 rm -f conftest.$ac_objext
3854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3855 (eval $ac_compile) 2>conftest.er1
3857 grep -v '^ *+' conftest.er1 >conftest.err
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } &&
3862 { ac_try='test -z "$ac_c_werror_flag"
3863 || test ! -s conftest.err'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; } &&
3869 { ac_try='test -s conftest.$ac_objext'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
3875 ac_cv_type_u_int32_t=yes
3877 echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3880 ac_cv_type_u_int32_t=no
3882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3884 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
3885 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3886 if test $ac_cv_type_u_int32_t = yes; then
3887 acx_cv_header_stdint=$i
3892 echo "$as_me:$LINENO: checking for u_int64_t" >&5
3893 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3894 if test "${ac_cv_type_u_int64_t+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3903 #include <sys/types.h>
3909 if ((u_int64_t *) 0)
3911 if (sizeof (u_int64_t))
3917 rm -f conftest.$ac_objext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919 (eval $ac_compile) 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -z "$ac_c_werror_flag"
3927 || test ! -s conftest.err'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; } &&
3933 { ac_try='test -s conftest.$ac_objext'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3939 ac_cv_type_u_int64_t=yes
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 ac_cv_type_u_int64_t=no
3946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3948 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
3949 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3954 if test "$acx_cv_header_stdint" = stddef.h; then
3955 acx_cv_header_stdint_kind="(using manual detection)"
3958 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
3959 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
3960 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
3961 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
3962 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
3964 # ----------------- Summarize what we found so far
3966 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
3967 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
3969 case `$as_basename gstdint.h ||
3970 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
3971 Xgstdint.h : 'X\(//\)$' \| \
3972 Xgstdint.h : 'X\(/\)$' \| \
3973 . : '\(.\)' 2>/dev/null ||
3975 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3976 /^X\/\(\/\/\)$/{ s//\1/; q; }
3977 /^X\/\(\/\).*/{ s//\1/; q; }
3979 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
3980 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
3981 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
3982 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
3986 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
3987 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
3989 # ----------------- done included file, check C basic types --------
3991 # Lacking an uintptr_t? Test size of void *
3992 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
3993 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
3994 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3995 if test "${ac_cv_type_void_p+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 cat >conftest.$ac_ext <<_ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004 $ac_includes_default
4010 if (sizeof (void *))
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
4020 grep -v '^ *+' conftest.er1 >conftest.err
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_c_werror_flag"
4026 || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_cv_type_void_p=yes
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4043 ac_cv_type_void_p=no
4045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4047 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4048 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4050 echo "$as_me:$LINENO: checking size of void *" >&5
4051 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4052 if test "${ac_cv_sizeof_void_p+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 if test "$ac_cv_type_void_p" = yes; then
4056 # The cast to unsigned long works around a bug in the HP C Compiler
4057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4059 # This bug is HP SR number 8606223364.
4060 if test "$cross_compiling" = yes; then
4061 # Depending upon the size, compute the lo and hi bounds.
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4072 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4079 rm -f conftest.$ac_objext
4080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4081 (eval $ac_compile) 2>conftest.er1
4083 grep -v '^ *+' conftest.er1 >conftest.err
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } &&
4088 { ac_try='test -z "$ac_c_werror_flag"
4089 || test ! -s conftest.err'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; } &&
4095 { ac_try='test -s conftest.$ac_objext'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 $ac_includes_default
4113 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4120 rm -f conftest.$ac_objext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>conftest.er1
4124 grep -v '^ *+' conftest.er1 >conftest.err
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } &&
4129 { ac_try='test -z "$ac_c_werror_flag"
4130 || test ! -s conftest.err'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4142 ac_hi=$ac_mid; break
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 ac_lo=`expr $ac_mid + 1`
4148 if test $ac_lo -le $ac_mid; then
4152 ac_mid=`expr 2 '*' $ac_mid + 1`
4154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4166 $ac_includes_default
4170 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4177 rm -f conftest.$ac_objext
4178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4179 (eval $ac_compile) 2>conftest.er1
4181 grep -v '^ *+' conftest.er1 >conftest.err
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } &&
4186 { ac_try='test -z "$ac_c_werror_flag"
4187 || test ! -s conftest.err'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; } &&
4193 { ac_try='test -s conftest.$ac_objext'
4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 $ac_includes_default
4211 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4218 rm -f conftest.$ac_objext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220 (eval $ac_compile) 2>conftest.er1
4222 grep -v '^ *+' conftest.er1 >conftest.err
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_c_werror_flag"
4228 || test ! -s conftest.err'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_lo=$ac_mid; break
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4245 ac_hi=`expr '(' $ac_mid ')' - 1`
4246 if test $ac_mid -le $ac_hi; then
4250 ac_mid=`expr 2 '*' $ac_mid`
4252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4263 # Binary search between lo and hi bounds.
4264 while test "x$ac_lo" != "x$ac_hi"; do
4265 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4266 cat >conftest.$ac_ext <<_ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 $ac_includes_default
4276 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4283 rm -f conftest.$ac_objext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>conftest.er1
4287 grep -v '^ *+' conftest.er1 >conftest.err
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -z "$ac_c_werror_flag"
4293 || test ! -s conftest.err'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; } &&
4299 { ac_try='test -s conftest.$ac_objext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 ac_lo=`expr '(' $ac_mid ')' + 1`
4312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4316 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4317 See \`config.log' for more details." >&5
4318 echo "$as_me: error: cannot compute sizeof (void *), 77
4319 See \`config.log' for more details." >&2;}
4320 { (exit 1); exit 1; }; } ;;
4323 if test "$cross_compiling" = yes; then
4324 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4325 See \`config.log' for more details." >&5
4326 echo "$as_me: error: cannot run test program while cross compiling
4327 See \`config.log' for more details." >&2;}
4328 { (exit 1); exit 1; }; }
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 $ac_includes_default
4337 long longval () { return (long) (sizeof (void *)); }
4338 unsigned long ulongval () { return (long) (sizeof (void *)); }
4345 FILE *f = fopen ("conftest.val", "w");
4348 if (((long) (sizeof (void *))) < 0)
4350 long i = longval ();
4351 if (i != ((long) (sizeof (void *))))
4353 fprintf (f, "%ld\n", i);
4357 unsigned long i = ulongval ();
4358 if (i != ((long) (sizeof (void *))))
4360 fprintf (f, "%lu\n", i);
4362 exit (ferror (f) || fclose (f) != 0);
4368 rm -f conftest$ac_exeext
4369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4370 (eval $ac_link) 2>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_sizeof_void_p=`cat conftest.val`
4381 echo "$as_me: program exited with status $ac_status" >&5
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4386 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4387 See \`config.log' for more details." >&5
4388 echo "$as_me: error: cannot compute sizeof (void *), 77
4389 See \`config.log' for more details." >&2;}
4390 { (exit 1); exit 1; }; }
4392 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4397 ac_cv_sizeof_void_p=0
4400 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4401 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4402 cat >>confdefs.h <<_ACEOF
4403 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4409 # Lacking an uint64_t? Test size of long
4410 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
4411 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
4412 echo $ECHO_N "checking for long... $ECHO_C" >&6
4413 if test "${ac_cv_type_long+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 cat >conftest.$ac_ext <<_ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4422 $ac_includes_default
4434 rm -f conftest.$ac_objext
4435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436 (eval $ac_compile) 2>conftest.er1
4438 grep -v '^ *+' conftest.er1 >conftest.err
4440 cat conftest.err >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } &&
4443 { ac_try='test -z "$ac_c_werror_flag"
4444 || test ! -s conftest.err'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; } &&
4450 { ac_try='test -s conftest.$ac_objext'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4465 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4466 echo "${ECHO_T}$ac_cv_type_long" >&6
4468 echo "$as_me:$LINENO: checking size of long" >&5
4469 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4470 if test "${ac_cv_sizeof_long+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if test "$ac_cv_type_long" = yes; then
4474 # The cast to unsigned long works around a bug in the HP C Compiler
4475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4477 # This bug is HP SR number 8606223364.
4478 if test "$cross_compiling" = yes; then
4479 # Depending upon the size, compute the lo and hi bounds.
4480 cat >conftest.$ac_ext <<_ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 $ac_includes_default
4490 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4497 rm -f conftest.$ac_objext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>conftest.er1
4501 grep -v '^ *+' conftest.er1 >conftest.err
4503 cat conftest.err >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } &&
4506 { ac_try='test -z "$ac_c_werror_flag"
4507 || test ! -s conftest.err'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; } &&
4513 { ac_try='test -s conftest.$ac_objext'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4521 cat >conftest.$ac_ext <<_ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 $ac_includes_default
4531 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4538 rm -f conftest.$ac_objext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>conftest.er1
4542 grep -v '^ *+' conftest.er1 >conftest.err
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_hi=$ac_mid; break
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 ac_lo=`expr $ac_mid + 1`
4566 if test $ac_lo -le $ac_mid; then
4570 ac_mid=`expr 2 '*' $ac_mid + 1`
4572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 $ac_includes_default
4588 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4595 rm -f conftest.$ac_objext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>conftest.er1
4599 grep -v '^ *+' conftest.er1 >conftest.err
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -z "$ac_c_werror_flag"
4605 || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4619 cat >conftest.$ac_ext <<_ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 $ac_includes_default
4629 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>conftest.er1
4640 grep -v '^ *+' conftest.er1 >conftest.err
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try='test -z "$ac_c_werror_flag"
4646 || test ! -s conftest.err'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; } &&
4652 { ac_try='test -s conftest.$ac_objext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4658 ac_lo=$ac_mid; break
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 ac_hi=`expr '(' $ac_mid ')' - 1`
4664 if test $ac_mid -le $ac_hi; then
4668 ac_mid=`expr 2 '*' $ac_mid`
4670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681 # Binary search between lo and hi bounds.
4682 while test "x$ac_lo" != "x$ac_hi"; do
4683 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4684 cat >conftest.$ac_ext <<_ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 $ac_includes_default
4694 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4701 rm -f conftest.$ac_objext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4703 (eval $ac_compile) 2>conftest.er1
4705 grep -v '^ *+' conftest.er1 >conftest.err
4707 cat conftest.err >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try='test -z "$ac_c_werror_flag"
4711 || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try='test -s conftest.$ac_objext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 ac_lo=`expr '(' $ac_mid ')' + 1`
4730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4733 ?*) ac_cv_sizeof_long=$ac_lo;;
4734 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4735 See \`config.log' for more details." >&5
4736 echo "$as_me: error: cannot compute sizeof (long), 77
4737 See \`config.log' for more details." >&2;}
4738 { (exit 1); exit 1; }; } ;;
4741 if test "$cross_compiling" = yes; then
4742 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4743 See \`config.log' for more details." >&5
4744 echo "$as_me: error: cannot run test program while cross compiling
4745 See \`config.log' for more details." >&2;}
4746 { (exit 1); exit 1; }; }
4748 cat >conftest.$ac_ext <<_ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754 $ac_includes_default
4755 long longval () { return (long) (sizeof (long)); }
4756 unsigned long ulongval () { return (long) (sizeof (long)); }
4763 FILE *f = fopen ("conftest.val", "w");
4766 if (((long) (sizeof (long))) < 0)
4768 long i = longval ();
4769 if (i != ((long) (sizeof (long))))
4771 fprintf (f, "%ld\n", i);
4775 unsigned long i = ulongval ();
4776 if (i != ((long) (sizeof (long))))
4778 fprintf (f, "%lu\n", i);
4780 exit (ferror (f) || fclose (f) != 0);
4786 rm -f conftest$ac_exeext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4788 (eval $ac_link) 2>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 ac_cv_sizeof_long=`cat conftest.val`
4799 echo "$as_me: program exited with status $ac_status" >&5
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4804 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4805 See \`config.log' for more details." >&5
4806 echo "$as_me: error: cannot compute sizeof (long), 77
4807 See \`config.log' for more details." >&2;}
4808 { (exit 1); exit 1; }; }
4810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4818 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4819 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4820 cat >>confdefs.h <<_ACEOF
4821 #define SIZEOF_LONG $ac_cv_sizeof_long
4827 if test $acx_cv_header_stdint = stddef.h; then
4828 # Lacking a good header? Test size of everything and deduce all types.
4829 echo "$as_me:$LINENO: checking for int" >&5
4830 echo $ECHO_N "checking for int... $ECHO_C" >&6
4831 if test "${ac_cv_type_int+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 cat >conftest.$ac_ext <<_ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 $ac_includes_default
4852 rm -f conftest.$ac_objext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854 (eval $ac_compile) 2>conftest.er1
4856 grep -v '^ *+' conftest.er1 >conftest.err
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try='test -z "$ac_c_werror_flag"
4862 || test ! -s conftest.err'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; } &&
4868 { ac_try='test -s conftest.$ac_objext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4876 echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4883 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4884 echo "${ECHO_T}$ac_cv_type_int" >&6
4886 echo "$as_me:$LINENO: checking size of int" >&5
4887 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4888 if test "${ac_cv_sizeof_int+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 if test "$ac_cv_type_int" = yes; then
4892 # The cast to unsigned long works around a bug in the HP C Compiler
4893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4895 # This bug is HP SR number 8606223364.
4896 if test "$cross_compiling" = yes; then
4897 # Depending upon the size, compute the lo and hi bounds.
4898 cat >conftest.$ac_ext <<_ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 $ac_includes_default
4908 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4915 rm -f conftest.$ac_objext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4917 (eval $ac_compile) 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try='test -z "$ac_c_werror_flag"
4925 || test ! -s conftest.err'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; } &&
4931 { ac_try='test -s conftest.$ac_objext'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4939 cat >conftest.$ac_ext <<_ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4945 $ac_includes_default
4949 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4956 rm -f conftest.$ac_objext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958 (eval $ac_compile) 2>conftest.er1
4960 grep -v '^ *+' conftest.er1 >conftest.err
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -z "$ac_c_werror_flag"
4966 || test ! -s conftest.err'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try='test -s conftest.$ac_objext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 ac_hi=$ac_mid; break
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 ac_lo=`expr $ac_mid + 1`
4984 if test $ac_lo -le $ac_mid; then
4988 ac_mid=`expr 2 '*' $ac_mid + 1`
4990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4996 cat >conftest.$ac_ext <<_ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002 $ac_includes_default
5006 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5013 rm -f conftest.$ac_objext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015 (eval $ac_compile) 2>conftest.er1
5017 grep -v '^ *+' conftest.er1 >conftest.err
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try='test -z "$ac_c_werror_flag"
5023 || test ! -s conftest.err'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; } &&
5029 { ac_try='test -s conftest.$ac_objext'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; }; then
5037 cat >conftest.$ac_ext <<_ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 $ac_includes_default
5047 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5054 rm -f conftest.$ac_objext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -z "$ac_c_werror_flag"
5064 || test ! -s conftest.err'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; } &&
5070 { ac_try='test -s conftest.$ac_objext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 ac_lo=$ac_mid; break
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 ac_hi=`expr '(' $ac_mid ')' - 1`
5082 if test $ac_mid -le $ac_hi; then
5086 ac_mid=`expr 2 '*' $ac_mid`
5088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5099 # Binary search between lo and hi bounds.
5100 while test "x$ac_lo" != "x$ac_hi"; do
5101 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5102 cat >conftest.$ac_ext <<_ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 $ac_includes_default
5112 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5119 rm -f conftest.$ac_objext
5120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121 (eval $ac_compile) 2>conftest.er1
5123 grep -v '^ *+' conftest.er1 >conftest.err
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest.$ac_objext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 ac_lo=`expr '(' $ac_mid ')' + 1`
5148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5151 ?*) ac_cv_sizeof_int=$ac_lo;;
5152 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5153 See \`config.log' for more details." >&5
5154 echo "$as_me: error: cannot compute sizeof (int), 77
5155 See \`config.log' for more details." >&2;}
5156 { (exit 1); exit 1; }; } ;;
5159 if test "$cross_compiling" = yes; then
5160 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5161 See \`config.log' for more details." >&5
5162 echo "$as_me: error: cannot run test program while cross compiling
5163 See \`config.log' for more details." >&2;}
5164 { (exit 1); exit 1; }; }
5166 cat >conftest.$ac_ext <<_ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 $ac_includes_default
5173 long longval () { return (long) (sizeof (int)); }
5174 unsigned long ulongval () { return (long) (sizeof (int)); }
5181 FILE *f = fopen ("conftest.val", "w");
5184 if (((long) (sizeof (int))) < 0)
5186 long i = longval ();
5187 if (i != ((long) (sizeof (int))))
5189 fprintf (f, "%ld\n", i);
5193 unsigned long i = ulongval ();
5194 if (i != ((long) (sizeof (int))))
5196 fprintf (f, "%lu\n", i);
5198 exit (ferror (f) || fclose (f) != 0);
5204 rm -f conftest$ac_exeext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206 (eval $ac_link) 2>&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_sizeof_int=`cat conftest.val`
5217 echo "$as_me: program exited with status $ac_status" >&5
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5222 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5223 See \`config.log' for more details." >&5
5224 echo "$as_me: error: cannot compute sizeof (int), 77
5225 See \`config.log' for more details." >&2;}
5226 { (exit 1); exit 1; }; }
5228 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5236 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5237 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5238 cat >>confdefs.h <<_ACEOF
5239 #define SIZEOF_INT $ac_cv_sizeof_int
5243 echo "$as_me:$LINENO: checking for short" >&5
5244 echo $ECHO_N "checking for short... $ECHO_C" >&6
5245 if test "${ac_cv_type_short+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 cat >conftest.$ac_ext <<_ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 $ac_includes_default
5266 rm -f conftest.$ac_objext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268 (eval $ac_compile) 2>conftest.er1
5270 grep -v '^ *+' conftest.er1 >conftest.err
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -z "$ac_c_werror_flag"
5276 || test ! -s conftest.err'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 ac_cv_type_short=yes
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5297 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5298 echo "${ECHO_T}$ac_cv_type_short" >&6
5300 echo "$as_me:$LINENO: checking size of short" >&5
5301 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5302 if test "${ac_cv_sizeof_short+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 if test "$ac_cv_type_short" = yes; then
5306 # The cast to unsigned long works around a bug in the HP C Compiler
5307 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5308 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5309 # This bug is HP SR number 8606223364.
5310 if test "$cross_compiling" = yes; then
5311 # Depending upon the size, compute the lo and hi bounds.
5312 cat >conftest.$ac_ext <<_ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5318 $ac_includes_default
5322 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5333 grep -v '^ *+' conftest.er1 >conftest.err
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_c_werror_flag"
5339 || test ! -s conftest.err'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; } &&
5345 { ac_try='test -s conftest.$ac_objext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5353 cat >conftest.$ac_ext <<_ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 $ac_includes_default
5363 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5370 rm -f conftest.$ac_objext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5372 (eval $ac_compile) 2>conftest.er1
5374 grep -v '^ *+' conftest.er1 >conftest.err
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
5379 { ac_try='test -z "$ac_c_werror_flag"
5380 || test ! -s conftest.err'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; } &&
5386 { ac_try='test -s conftest.$ac_objext'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; }; then
5392 ac_hi=$ac_mid; break
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5397 ac_lo=`expr $ac_mid + 1`
5398 if test $ac_lo -le $ac_mid; then
5402 ac_mid=`expr 2 '*' $ac_mid + 1`
5404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5410 cat >conftest.$ac_ext <<_ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 $ac_includes_default
5420 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5427 rm -f conftest.$ac_objext
5428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5429 (eval $ac_compile) 2>conftest.er1
5431 grep -v '^ *+' conftest.er1 >conftest.err
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } &&
5436 { ac_try='test -z "$ac_c_werror_flag"
5437 || test ! -s conftest.err'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; } &&
5443 { ac_try='test -s conftest.$ac_objext'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; }; then
5451 cat >conftest.$ac_ext <<_ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 $ac_includes_default
5461 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5468 rm -f conftest.$ac_objext
5469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5470 (eval $ac_compile) 2>conftest.er1
5472 grep -v '^ *+' conftest.er1 >conftest.err
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } &&
5477 { ac_try='test -z "$ac_c_werror_flag"
5478 || test ! -s conftest.err'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; } &&
5484 { ac_try='test -s conftest.$ac_objext'
5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; }; then
5490 ac_lo=$ac_mid; break
5492 echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5495 ac_hi=`expr '(' $ac_mid ')' - 1`
5496 if test $ac_mid -le $ac_hi; then
5500 ac_mid=`expr 2 '*' $ac_mid`
5502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5513 # Binary search between lo and hi bounds.
5514 while test "x$ac_lo" != "x$ac_hi"; do
5515 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5516 cat >conftest.$ac_ext <<_ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 $ac_includes_default
5526 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5533 rm -f conftest.$ac_objext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535 (eval $ac_compile) 2>conftest.er1
5537 grep -v '^ *+' conftest.er1 >conftest.err
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } &&
5542 { ac_try='test -z "$ac_c_werror_flag"
5543 || test ! -s conftest.err'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; } &&
5549 { ac_try='test -s conftest.$ac_objext'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; }; then
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5560 ac_lo=`expr '(' $ac_mid ')' + 1`
5562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5565 ?*) ac_cv_sizeof_short=$ac_lo;;
5566 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5567 See \`config.log' for more details." >&5
5568 echo "$as_me: error: cannot compute sizeof (short), 77
5569 See \`config.log' for more details." >&2;}
5570 { (exit 1); exit 1; }; } ;;
5573 if test "$cross_compiling" = yes; then
5574 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5575 See \`config.log' for more details." >&5
5576 echo "$as_me: error: cannot run test program while cross compiling
5577 See \`config.log' for more details." >&2;}
5578 { (exit 1); exit 1; }; }
5580 cat >conftest.$ac_ext <<_ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 $ac_includes_default
5587 long longval () { return (long) (sizeof (short)); }
5588 unsigned long ulongval () { return (long) (sizeof (short)); }
5595 FILE *f = fopen ("conftest.val", "w");
5598 if (((long) (sizeof (short))) < 0)
5600 long i = longval ();
5601 if (i != ((long) (sizeof (short))))
5603 fprintf (f, "%ld\n", i);
5607 unsigned long i = ulongval ();
5608 if (i != ((long) (sizeof (short))))
5610 fprintf (f, "%lu\n", i);
5612 exit (ferror (f) || fclose (f) != 0);
5618 rm -f conftest$ac_exeext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5620 (eval $ac_link) 2>&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 ac_cv_sizeof_short=`cat conftest.val`
5631 echo "$as_me: program exited with status $ac_status" >&5
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5636 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5637 See \`config.log' for more details." >&5
5638 echo "$as_me: error: cannot compute sizeof (short), 77
5639 See \`config.log' for more details." >&2;}
5640 { (exit 1); exit 1; }; }
5642 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5647 ac_cv_sizeof_short=0
5650 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5651 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5652 cat >>confdefs.h <<_ACEOF
5653 #define SIZEOF_SHORT $ac_cv_sizeof_short
5657 echo "$as_me:$LINENO: checking for char" >&5
5658 echo $ECHO_N "checking for char... $ECHO_C" >&6
5659 if test "${ac_cv_type_char+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 cat >conftest.$ac_ext <<_ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5668 $ac_includes_default
5680 rm -f conftest.$ac_objext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682 (eval $ac_compile) 2>conftest.er1
5684 grep -v '^ *+' conftest.er1 >conftest.err
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } &&
5689 { ac_try='test -z "$ac_c_werror_flag"
5690 || test ! -s conftest.err'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; } &&
5696 { ac_try='test -s conftest.$ac_objext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5711 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5712 echo "${ECHO_T}$ac_cv_type_char" >&6
5714 echo "$as_me:$LINENO: checking size of char" >&5
5715 echo $ECHO_N "checking size of char... $ECHO_C" >&6
5716 if test "${ac_cv_sizeof_char+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 if test "$ac_cv_type_char" = yes; then
5720 # The cast to unsigned long works around a bug in the HP C Compiler
5721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5723 # This bug is HP SR number 8606223364.
5724 if test "$cross_compiling" = yes; then
5725 # Depending upon the size, compute the lo and hi bounds.
5726 cat >conftest.$ac_ext <<_ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 $ac_includes_default
5736 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
5743 rm -f conftest.$ac_objext
5744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5745 (eval $ac_compile) 2>conftest.er1
5747 grep -v '^ *+' conftest.er1 >conftest.err
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } &&
5752 { ac_try='test -z "$ac_c_werror_flag"
5753 || test ! -s conftest.err'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; } &&
5759 { ac_try='test -s conftest.$ac_objext'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5767 cat >conftest.$ac_ext <<_ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 $ac_includes_default
5777 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5784 rm -f conftest.$ac_objext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>conftest.er1
5788 grep -v '^ *+' conftest.er1 >conftest.err
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try='test -z "$ac_c_werror_flag"
5794 || test ! -s conftest.err'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; } &&
5800 { ac_try='test -s conftest.$ac_objext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_hi=$ac_mid; break
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 ac_lo=`expr $ac_mid + 1`
5812 if test $ac_lo -le $ac_mid; then
5816 ac_mid=`expr 2 '*' $ac_mid + 1`
5818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 cat >conftest.$ac_ext <<_ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 $ac_includes_default
5834 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
5841 rm -f conftest.$ac_objext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>conftest.er1
5845 grep -v '^ *+' conftest.er1 >conftest.err
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5865 cat >conftest.$ac_ext <<_ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 $ac_includes_default
5875 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5882 rm -f conftest.$ac_objext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>conftest.er1
5886 grep -v '^ *+' conftest.er1 >conftest.err
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_c_werror_flag"
5892 || test ! -s conftest.err'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; } &&
5898 { ac_try='test -s conftest.$ac_objext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_lo=$ac_mid; break
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5909 ac_hi=`expr '(' $ac_mid ')' - 1`
5910 if test $ac_mid -le $ac_hi; then
5914 ac_mid=`expr 2 '*' $ac_mid`
5916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5927 # Binary search between lo and hi bounds.
5928 while test "x$ac_lo" != "x$ac_hi"; do
5929 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5930 cat >conftest.$ac_ext <<_ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 $ac_includes_default
5940 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5947 rm -f conftest.$ac_objext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>conftest.er1
5951 grep -v '^ *+' conftest.er1 >conftest.err
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -z "$ac_c_werror_flag"
5957 || test ! -s conftest.err'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; } &&
5963 { ac_try='test -s conftest.$ac_objext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5974 ac_lo=`expr '(' $ac_mid ')' + 1`
5976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5979 ?*) ac_cv_sizeof_char=$ac_lo;;
5980 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5981 See \`config.log' for more details." >&5
5982 echo "$as_me: error: cannot compute sizeof (char), 77
5983 See \`config.log' for more details." >&2;}
5984 { (exit 1); exit 1; }; } ;;
5987 if test "$cross_compiling" = yes; then
5988 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5989 See \`config.log' for more details." >&5
5990 echo "$as_me: error: cannot run test program while cross compiling
5991 See \`config.log' for more details." >&2;}
5992 { (exit 1); exit 1; }; }
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 $ac_includes_default
6001 long longval () { return (long) (sizeof (char)); }
6002 unsigned long ulongval () { return (long) (sizeof (char)); }
6009 FILE *f = fopen ("conftest.val", "w");
6012 if (((long) (sizeof (char))) < 0)
6014 long i = longval ();
6015 if (i != ((long) (sizeof (char))))
6017 fprintf (f, "%ld\n", i);
6021 unsigned long i = ulongval ();
6022 if (i != ((long) (sizeof (char))))
6024 fprintf (f, "%lu\n", i);
6026 exit (ferror (f) || fclose (f) != 0);
6032 rm -f conftest$ac_exeext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034 (eval $ac_link) 2>&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6043 ac_cv_sizeof_char=`cat conftest.val`
6045 echo "$as_me: program exited with status $ac_status" >&5
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6050 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6051 See \`config.log' for more details." >&5
6052 echo "$as_me: error: cannot compute sizeof (char), 77
6053 See \`config.log' for more details." >&2;}
6054 { (exit 1); exit 1; }; }
6056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6064 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6065 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6066 cat >>confdefs.h <<_ACEOF
6067 #define SIZEOF_CHAR $ac_cv_sizeof_char
6072 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
6073 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
6074 case "$ac_cv_sizeof_char" in
6075 1) acx_cv_type_int8_t=char ;;
6076 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
6077 echo "$as_me: error: no 8-bit type" >&2;}
6078 { (exit please report a bug); exit please report a bug; }; }
6080 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
6081 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
6083 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
6084 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
6085 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
6086 2:*) acx_cv_type_int16_t=int ;;
6087 *:2) acx_cv_type_int16_t=short ;;
6088 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
6089 echo "$as_me: error: no 16-bit type" >&2;}
6090 { (exit please report a bug); exit please report a bug; }; }
6092 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
6093 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
6095 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
6096 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
6097 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
6098 4:*) acx_cv_type_int32_t=int ;;
6099 *:4) acx_cv_type_int32_t=long ;;
6100 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
6101 echo "$as_me: error: no 32-bit type" >&2;}
6102 { (exit please report a bug); exit please report a bug; }; }
6104 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
6105 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
6108 # These tests are here to make the output prettier
6110 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
6111 case "$ac_cv_sizeof_long" in
6112 8) acx_cv_type_int64_t=long ;;
6114 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
6115 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
6116 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
6117 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
6120 # Now we can use the above types
6122 if test "$ac_cv_type_uintptr_t" != yes; then
6123 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
6124 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
6125 case $ac_cv_sizeof_void_p in
6126 2) acx_cv_type_intptr_t=int16_t ;;
6127 4) acx_cv_type_intptr_t=int32_t ;;
6128 8) acx_cv_type_intptr_t=int64_t ;;
6129 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
6130 echo "$as_me: error: no equivalent for intptr_t" >&2;}
6131 { (exit please report a bug); exit please report a bug; }; }
6133 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
6134 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
6137 # ----------------- done all checks, emit header -------------
6138 ac_config_commands="$ac_config_commands gstdint.h"
6143 # Checks for typedefs, structures, and compiler characteristics.
6144 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6145 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6146 if test "${ac_cv_c_const+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 cat >conftest.$ac_ext <<_ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6159 /* FIXME: Include the comments suggested by Paul. */
6161 /* Ultrix mips cc rejects this. */
6162 typedef int charset[2];
6164 /* SunOS 4.1.1 cc rejects this. */
6165 char const *const *ccp;
6167 /* NEC SVR4.0.2 mips cc rejects this. */
6168 struct point {int x, y;};
6169 static struct point const zero = {0,0};
6170 /* AIX XL C 1.02.0.0 rejects this.
6171 It does not let you subtract one const X* pointer from another in
6172 an arm of an if-expression whose if-part is not a constant
6174 const char *g = "string";
6175 ccp = &g + (g ? g-g : 0);
6176 /* HPUX 7.0 cc rejects these. */
6179 ccp = (char const *const *) p;
6180 { /* SCO 3.2v4 cc rejects this. */
6182 char const *s = 0 ? (char *) 0 : (char const *) 0;
6186 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6188 const int *foo = &x[0];
6191 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6192 typedef const int *iptr;
6196 { /* AIX XL C 1.02.0.0 rejects this saying
6197 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6198 struct s { int j; const int *ap[3]; };
6199 struct s *b; b->j = 5;
6201 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6210 rm -f conftest.$ac_objext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212 (eval $ac_compile) 2>conftest.er1
6214 grep -v '^ *+' conftest.er1 >conftest.err
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try='test -z "$ac_c_werror_flag"
6220 || test ! -s conftest.err'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; } &&
6226 { ac_try='test -s conftest.$ac_objext'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6241 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6242 echo "${ECHO_T}$ac_cv_c_const" >&6
6243 if test $ac_cv_c_const = no; then
6245 cat >>confdefs.h <<\_ACEOF
6251 echo "$as_me:$LINENO: checking for off_t" >&5
6252 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6253 if test "${ac_cv_type_off_t+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 $ac_includes_default
6274 rm -f conftest.$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>conftest.er1
6278 grep -v '^ *+' conftest.er1 >conftest.err
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } &&
6283 { ac_try='test -z "$ac_c_werror_flag"
6284 || test ! -s conftest.err'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; } &&
6290 { ac_try='test -s conftest.$ac_objext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_cv_type_off_t=yes
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6305 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6306 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6307 if test $ac_cv_type_off_t = yes; then
6311 cat >>confdefs.h <<_ACEOF
6317 echo "$as_me:$LINENO: checking for int" >&5
6318 echo $ECHO_N "checking for int... $ECHO_C" >&6
6319 if test "${ac_cv_type_int+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 cat >conftest.$ac_ext <<_ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6328 $ac_includes_default
6340 rm -f conftest.$ac_objext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>conftest.er1
6344 grep -v '^ *+' conftest.er1 >conftest.err
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try='test -z "$ac_c_werror_flag"
6350 || test ! -s conftest.err'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; } &&
6356 { ac_try='test -s conftest.$ac_objext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6371 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6372 echo "${ECHO_T}$ac_cv_type_int" >&6
6374 echo "$as_me:$LINENO: checking size of int" >&5
6375 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6376 if test "${ac_cv_sizeof_int+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 if test "$ac_cv_type_int" = yes; then
6380 # The cast to unsigned long works around a bug in the HP C Compiler
6381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6383 # This bug is HP SR number 8606223364.
6384 if test "$cross_compiling" = yes; then
6385 # Depending upon the size, compute the lo and hi bounds.
6386 cat >conftest.$ac_ext <<_ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 $ac_includes_default
6396 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6407 grep -v '^ *+' conftest.er1 >conftest.err
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_c_werror_flag"
6413 || test ! -s conftest.err'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest.$ac_objext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6427 cat >conftest.$ac_ext <<_ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6433 $ac_includes_default
6437 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6444 rm -f conftest.$ac_objext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6446 (eval $ac_compile) 2>conftest.er1
6448 grep -v '^ *+' conftest.er1 >conftest.err
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } &&
6453 { ac_try='test -z "$ac_c_werror_flag"
6454 || test ! -s conftest.err'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; } &&
6460 { ac_try='test -s conftest.$ac_objext'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6466 ac_hi=$ac_mid; break
6468 echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6471 ac_lo=`expr $ac_mid + 1`
6472 if test $ac_lo -le $ac_mid; then
6476 ac_mid=`expr 2 '*' $ac_mid + 1`
6478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6484 cat >conftest.$ac_ext <<_ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 $ac_includes_default
6494 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6501 rm -f conftest.$ac_objext
6502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6503 (eval $ac_compile) 2>conftest.er1
6505 grep -v '^ *+' conftest.er1 >conftest.err
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } &&
6510 { ac_try='test -z "$ac_c_werror_flag"
6511 || test ! -s conftest.err'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; } &&
6517 { ac_try='test -s conftest.$ac_objext'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6525 cat >conftest.$ac_ext <<_ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 $ac_includes_default
6535 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6542 rm -f conftest.$ac_objext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
6546 grep -v '^ *+' conftest.er1 >conftest.err
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -z "$ac_c_werror_flag"
6552 || test ! -s conftest.err'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 ac_lo=$ac_mid; break
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6569 ac_hi=`expr '(' $ac_mid ')' - 1`
6570 if test $ac_mid -le $ac_hi; then
6574 ac_mid=`expr 2 '*' $ac_mid`
6576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6587 # Binary search between lo and hi bounds.
6588 while test "x$ac_lo" != "x$ac_hi"; do
6589 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6590 cat >conftest.$ac_ext <<_ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6596 $ac_includes_default
6600 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6607 rm -f conftest.$ac_objext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6609 (eval $ac_compile) 2>conftest.er1
6611 grep -v '^ *+' conftest.er1 >conftest.err
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -z "$ac_c_werror_flag"
6617 || test ! -s conftest.err'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
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
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6634 ac_lo=`expr '(' $ac_mid ')' + 1`
6636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6639 ?*) ac_cv_sizeof_int=$ac_lo;;
6640 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6641 See \`config.log' for more details." >&5
6642 echo "$as_me: error: cannot compute sizeof (int), 77
6643 See \`config.log' for more details." >&2;}
6644 { (exit 1); exit 1; }; } ;;
6647 if test "$cross_compiling" = yes; then
6648 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6649 See \`config.log' for more details." >&5
6650 echo "$as_me: error: cannot run test program while cross compiling
6651 See \`config.log' for more details." >&2;}
6652 { (exit 1); exit 1; }; }
6654 cat >conftest.$ac_ext <<_ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660 $ac_includes_default
6661 long longval () { return (long) (sizeof (int)); }
6662 unsigned long ulongval () { return (long) (sizeof (int)); }
6669 FILE *f = fopen ("conftest.val", "w");
6672 if (((long) (sizeof (int))) < 0)
6674 long i = longval ();
6675 if (i != ((long) (sizeof (int))))
6677 fprintf (f, "%ld\n", i);
6681 unsigned long i = ulongval ();
6682 if (i != ((long) (sizeof (int))))
6684 fprintf (f, "%lu\n", i);
6686 exit (ferror (f) || fclose (f) != 0);
6692 rm -f conftest$ac_exeext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6694 (eval $ac_link) 2>&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_cv_sizeof_int=`cat conftest.val`
6705 echo "$as_me: program exited with status $ac_status" >&5
6706 echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6710 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6711 See \`config.log' for more details." >&5
6712 echo "$as_me: error: cannot compute sizeof (int), 77
6713 See \`config.log' for more details." >&2;}
6714 { (exit 1); exit 1; }; }
6716 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6724 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6725 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6726 cat >>confdefs.h <<_ACEOF
6727 #define SIZEOF_INT $ac_cv_sizeof_int
6731 echo "$as_me:$LINENO: checking for long" >&5
6732 echo $ECHO_N "checking for long... $ECHO_C" >&6
6733 if test "${ac_cv_type_long+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 cat >conftest.$ac_ext <<_ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 $ac_includes_default
6754 rm -f conftest.$ac_objext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756 (eval $ac_compile) 2>conftest.er1
6758 grep -v '^ *+' conftest.er1 >conftest.err
6760 cat conftest.err >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try='test -z "$ac_c_werror_flag"
6764 || test ! -s conftest.err'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; } &&
6770 { ac_try='test -s conftest.$ac_objext'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6785 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6786 echo "${ECHO_T}$ac_cv_type_long" >&6
6788 echo "$as_me:$LINENO: checking size of long" >&5
6789 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6790 if test "${ac_cv_sizeof_long+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 if test "$ac_cv_type_long" = yes; then
6794 # The cast to unsigned long works around a bug in the HP C Compiler
6795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6797 # This bug is HP SR number 8606223364.
6798 if test "$cross_compiling" = yes; then
6799 # Depending upon the size, compute the lo and hi bounds.
6800 cat >conftest.$ac_ext <<_ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 $ac_includes_default
6810 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6817 rm -f conftest.$ac_objext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6819 (eval $ac_compile) 2>conftest.er1
6821 grep -v '^ *+' conftest.er1 >conftest.err
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try='test -z "$ac_c_werror_flag"
6827 || test ! -s conftest.err'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; } &&
6833 { ac_try='test -s conftest.$ac_objext'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6841 cat >conftest.$ac_ext <<_ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 $ac_includes_default
6851 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6858 rm -f conftest.$ac_objext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860 (eval $ac_compile) 2>conftest.er1
6862 grep -v '^ *+' conftest.er1 >conftest.err
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } &&
6867 { ac_try='test -z "$ac_c_werror_flag"
6868 || test ! -s conftest.err'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
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
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6880 ac_hi=$ac_mid; break
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6885 ac_lo=`expr $ac_mid + 1`
6886 if test $ac_lo -le $ac_mid; then
6890 ac_mid=`expr 2 '*' $ac_mid + 1`
6892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6898 cat >conftest.$ac_ext <<_ACEOF
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h. */
6904 $ac_includes_default
6908 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6915 rm -f conftest.$ac_objext
6916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6917 (eval $ac_compile) 2>conftest.er1
6919 grep -v '^ *+' conftest.er1 >conftest.err
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } &&
6924 { ac_try='test -z "$ac_c_werror_flag"
6925 || test ! -s conftest.err'
6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; } &&
6931 { ac_try='test -s conftest.$ac_objext'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6939 cat >conftest.$ac_ext <<_ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 $ac_includes_default
6949 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6956 rm -f conftest.$ac_objext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958 (eval $ac_compile) 2>conftest.er1
6960 grep -v '^ *+' conftest.er1 >conftest.err
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } &&
6965 { ac_try='test -z "$ac_c_werror_flag"
6966 || test ! -s conftest.err'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; } &&
6972 { ac_try='test -s conftest.$ac_objext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 ac_lo=$ac_mid; break
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6983 ac_hi=`expr '(' $ac_mid ')' - 1`
6984 if test $ac_mid -le $ac_hi; then
6988 ac_mid=`expr 2 '*' $ac_mid`
6990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7001 # Binary search between lo and hi bounds.
7002 while test "x$ac_lo" != "x$ac_hi"; do
7003 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7004 cat >conftest.$ac_ext <<_ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7010 $ac_includes_default
7014 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7021 rm -f conftest.$ac_objext
7022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7023 (eval $ac_compile) 2>conftest.er1
7025 grep -v '^ *+' conftest.er1 >conftest.err
7027 cat conftest.err >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } &&
7030 { ac_try='test -z "$ac_c_werror_flag"
7031 || test ! -s conftest.err'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; } &&
7037 { ac_try='test -s conftest.$ac_objext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7048 ac_lo=`expr '(' $ac_mid ')' + 1`
7050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7053 ?*) ac_cv_sizeof_long=$ac_lo;;
7054 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7055 See \`config.log' for more details." >&5
7056 echo "$as_me: error: cannot compute sizeof (long), 77
7057 See \`config.log' for more details." >&2;}
7058 { (exit 1); exit 1; }; } ;;
7061 if test "$cross_compiling" = yes; then
7062 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7063 See \`config.log' for more details." >&5
7064 echo "$as_me: error: cannot run test program while cross compiling
7065 See \`config.log' for more details." >&2;}
7066 { (exit 1); exit 1; }; }
7068 cat >conftest.$ac_ext <<_ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 $ac_includes_default
7075 long longval () { return (long) (sizeof (long)); }
7076 unsigned long ulongval () { return (long) (sizeof (long)); }
7083 FILE *f = fopen ("conftest.val", "w");
7086 if (((long) (sizeof (long))) < 0)
7088 long i = longval ();
7089 if (i != ((long) (sizeof (long))))
7091 fprintf (f, "%ld\n", i);
7095 unsigned long i = ulongval ();
7096 if (i != ((long) (sizeof (long))))
7098 fprintf (f, "%lu\n", i);
7100 exit (ferror (f) || fclose (f) != 0);
7106 rm -f conftest$ac_exeext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108 (eval $ac_link) 2>&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; }; then
7117 ac_cv_sizeof_long=`cat conftest.val`
7119 echo "$as_me: program exited with status $ac_status" >&5
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7125 See \`config.log' for more details." >&5
7126 echo "$as_me: error: cannot compute sizeof (long), 77
7127 See \`config.log' for more details." >&2;}
7128 { (exit 1); exit 1; }; }
7130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7138 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7139 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7140 cat >>confdefs.h <<_ACEOF
7141 #define SIZEOF_LONG $ac_cv_sizeof_long
7146 # Checks for library functions.
7147 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7148 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7149 if test "${ac_cv_header_stdc+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 cat >conftest.$ac_ext <<_ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7171 rm -f conftest.$ac_objext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173 (eval $ac_compile) 2>conftest.er1
7175 grep -v '^ *+' conftest.er1 >conftest.err
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } &&
7180 { ac_try='test -z "$ac_c_werror_flag"
7181 || test ! -s conftest.err'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; } &&
7187 { ac_try='test -s conftest.$ac_objext'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 ac_cv_header_stdc=yes
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7198 ac_cv_header_stdc=no
7200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7202 if test $ac_cv_header_stdc = yes; then
7203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7204 cat >conftest.$ac_ext <<_ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7214 $EGREP "memchr" >/dev/null 2>&1; then
7217 ac_cv_header_stdc=no
7223 if test $ac_cv_header_stdc = yes; then
7224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7225 cat >conftest.$ac_ext <<_ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7235 $EGREP "free" >/dev/null 2>&1; then
7238 ac_cv_header_stdc=no
7244 if test $ac_cv_header_stdc = yes; then
7245 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7246 if test "$cross_compiling" = yes; then
7249 cat >conftest.$ac_ext <<_ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7256 #if ((' ' & 0x0FF) == 0x020)
7257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7260 # define ISLOWER(c) \
7261 (('a' <= (c) && (c) <= 'i') \
7262 || ('j' <= (c) && (c) <= 'r') \
7263 || ('s' <= (c) && (c) <= 'z'))
7264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7272 for (i = 0; i < 256; i++)
7273 if (XOR (islower (i), ISLOWER (i))
7274 || toupper (i) != TOUPPER (i))
7279 rm -f conftest$ac_exeext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281 (eval $ac_link) 2>&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7292 echo "$as_me: program exited with status $ac_status" >&5
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7297 ac_cv_header_stdc=no
7299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7303 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7304 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7305 if test $ac_cv_header_stdc = yes; then
7307 cat >>confdefs.h <<\_ACEOF
7308 #define STDC_HEADERS 1
7314 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7315 if test "${enable_maintainer_mode+set}" = set; then
7316 enableval="$enable_maintainer_mode"
7319 enable_maintainer_mode=no
7322 if test "x$enable_maintainer_mode" = xno; then
7330 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
7331 if test -f $ac_dir/install-sh; then
7333 ac_install_sh="$ac_aux_dir/install-sh -c"
7335 elif test -f $ac_dir/install.sh; then
7337 ac_install_sh="$ac_aux_dir/install.sh -c"
7339 elif test -f $ac_dir/shtool; then
7341 ac_install_sh="$ac_aux_dir/shtool install -c"
7345 if test -z "$ac_aux_dir"; then
7346 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
7347 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
7348 { (exit 1); exit 1; }; }
7350 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
7351 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
7352 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
7354 # Make sure we can run config.sub.
7355 $ac_config_sub sun4 >/dev/null 2>&1 ||
7356 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
7357 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
7358 { (exit 1); exit 1; }; }
7360 echo "$as_me:$LINENO: checking build system type" >&5
7361 echo $ECHO_N "checking build system type... $ECHO_C" >&6
7362 if test "${ac_cv_build+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 ac_cv_build_alias=$build_alias
7366 test -z "$ac_cv_build_alias" &&
7367 ac_cv_build_alias=`$ac_config_guess`
7368 test -z "$ac_cv_build_alias" &&
7369 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7370 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7371 { (exit 1); exit 1; }; }
7372 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
7373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
7374 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
7375 { (exit 1); exit 1; }; }
7378 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7379 echo "${ECHO_T}$ac_cv_build" >&6
7381 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7382 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7383 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7386 echo "$as_me:$LINENO: checking host system type" >&5
7387 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7388 if test "${ac_cv_host+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 ac_cv_host_alias=$host_alias
7392 test -z "$ac_cv_host_alias" &&
7393 ac_cv_host_alias=$ac_cv_build_alias
7394 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7396 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7397 { (exit 1); exit 1; }; }
7400 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7401 echo "${ECHO_T}$ac_cv_host" >&6
7403 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7404 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7405 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7408 echo "$as_me:$LINENO: checking target system type" >&5
7409 echo $ECHO_N "checking target system type... $ECHO_C" >&6
7410 if test "${ac_cv_target+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 ac_cv_target_alias=$target_alias
7414 test "x$ac_cv_target_alias" = "x" &&
7415 ac_cv_target_alias=$ac_cv_host_alias
7416 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
7417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
7418 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
7419 { (exit 1); exit 1; }; }
7422 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
7423 echo "${ECHO_T}$ac_cv_target" >&6
7424 target=$ac_cv_target
7425 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7426 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7427 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7430 # The aliases save the names the user supplied, while $host etc.
7431 # will get canonicalized.
7432 test -n "$target_alias" &&
7433 test "$program_prefix$program_suffix$program_transform_name" = \
7435 program_prefix=${target_alias}-
7437 # Default decimal format
7438 # If you change the defaults here, be sure to change them in the GCC directory also
7439 echo "$as_me:$LINENO: checking for decimal floating point" >&5
7440 echo $ECHO_N "checking for decimal floating point... $ECHO_C" >&6
7441 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7442 if test "${enable_decimal_float+set}" = set; then
7443 enableval="$enable_decimal_float"
7445 case $enable_decimal_float in
7446 yes | no | bid | dpd) ;;
7447 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7448 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7449 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7450 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7451 { (exit 1); exit 1; }; } ;;
7457 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7458 enable_decimal_float=yes
7461 enable_decimal_float=no
7467 # x86's use BID format instead of DPD
7468 # In theory --enable-decimal-float=no should not compile anything
7469 # For the sake of simplicity, just use the default format in this directory
7470 if test x$enable_decimal_float = xyes -o x$enable_decimal_float = xno; then
7472 i?86*-*-linux* | x86_64*-*-linux*)
7473 enable_decimal_float=bid
7476 enable_decimal_float=dpd
7481 # If BID is being used, additional objects should be linked in.
7482 if test x$enable_decimal_float = xbid; then
7483 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)"
7488 echo "$as_me:$LINENO: result: $enable_decimal_float" >&5
7489 echo "${ECHO_T}$enable_decimal_float" >&6
7493 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7494 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7495 if test "${ac_cv_c_bigendian+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 # See if sys/param.h defines the BYTE_ORDER macro.
7499 cat >conftest.$ac_ext <<_ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7505 #include <sys/types.h>
7506 #include <sys/param.h>
7511 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7519 rm -f conftest.$ac_objext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7521 (eval $ac_compile) 2>conftest.er1
7523 grep -v '^ *+' conftest.er1 >conftest.err
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try='test -z "$ac_c_werror_flag"
7529 || test ! -s conftest.err'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; } &&
7535 { ac_try='test -s conftest.$ac_objext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 # It does; now see whether it defined to BIG_ENDIAN or not.
7542 cat >conftest.$ac_ext <<_ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7548 #include <sys/types.h>
7549 #include <sys/param.h>
7554 #if BYTE_ORDER != BIG_ENDIAN
7562 rm -f conftest.$ac_objext
7563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7564 (eval $ac_compile) 2>conftest.er1
7566 grep -v '^ *+' conftest.er1 >conftest.err
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try='test -z "$ac_c_werror_flag"
7572 || test ! -s conftest.err'
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; } &&
7578 { ac_try='test -s conftest.$ac_objext'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; }; then
7584 ac_cv_c_bigendian=yes
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7589 ac_cv_c_bigendian=no
7591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7596 # It does not; compile a test program.
7597 if test "$cross_compiling" = yes; then
7598 # try to guess the endianness by grepping values into an object file
7599 ac_cv_c_bigendian=unknown
7600 cat >conftest.$ac_ext <<_ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7607 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7608 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7609 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7610 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7611 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7615 _ascii (); _ebcdic ();
7620 rm -f conftest.$ac_objext
7621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7622 (eval $ac_compile) 2>conftest.er1
7624 grep -v '^ *+' conftest.er1 >conftest.err
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } &&
7629 { ac_try='test -z "$ac_c_werror_flag"
7630 || test ! -s conftest.err'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; } &&
7636 { ac_try='test -s conftest.$ac_objext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7643 ac_cv_c_bigendian=yes
7645 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7646 if test "$ac_cv_c_bigendian" = unknown; then
7647 ac_cv_c_bigendian=no
7649 # finding both strings is unlikely to happen, but who knows?
7650 ac_cv_c_bigendian=unknown
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7660 cat >conftest.$ac_ext <<_ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7669 /* Are we little or big endian? From Harbison&Steele. */
7673 char c[sizeof (long)];
7676 exit (u.c[sizeof (long) - 1] == 1);
7679 rm -f conftest$ac_exeext
7680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7681 (eval $ac_link) 2>&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; }; then
7690 ac_cv_c_bigendian=no
7692 echo "$as_me: program exited with status $ac_status" >&5
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7697 ac_cv_c_bigendian=yes
7699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7704 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7705 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7706 case $ac_cv_c_bigendian in
7709 cat >>confdefs.h <<\_ACEOF
7710 #define WORDS_BIGENDIAN 1
7716 { { echo "$as_me:$LINENO: error: unknown endianness
7717 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7718 echo "$as_me: error: unknown endianness
7719 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7720 { (exit 1); exit 1; }; } ;;
7726 ac_config_headers="$ac_config_headers config.h:config.in"
7728 ac_config_files="$ac_config_files Makefile"
7730 cat >confcache <<\_ACEOF
7731 # This file is a shell script that caches the results of configure
7732 # tests run on this system so they can be shared between configure
7733 # scripts and configure runs, see configure's option --config-cache.
7734 # It is not useful on other systems. If it contains results you don't
7735 # want to keep, you may remove or edit it.
7737 # config.status only pays attention to the cache file if you give it
7738 # the --recheck option to rerun configure.
7740 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7741 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7746 # The following way of writing the cache mishandles newlines in values,
7747 # but we know of no workaround that is simple, portable, and efficient.
7748 # So, don't put newlines in cache variables' values.
7749 # Ultrix sh set writes to stderr and can't be redirected directly,
7750 # and sets the high bit in the cache file unless we assign to the vars.
7753 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7755 # `set' does not quote correctly, so add quotes (double-quote
7756 # substitution turns \\\\ into \\, and sed turns \\ into \).
7759 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7762 # `set' quotes correctly as required by POSIX, so do not add quotes.
7764 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7771 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7773 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7775 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7776 if test -w $cache_file; then
7777 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7778 cat confcache >$cache_file
7780 echo "not updating unwritable cache $cache_file"
7785 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7786 # Let make expand exec_prefix.
7787 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7789 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7790 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7791 # trailing colons and then remove the whole line if VPATH becomes empty
7792 # (actually we leave an empty line to preserve line numbers).
7793 if test "x$srcdir" = x.; then
7794 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7795 s/:*\$(srcdir):*/:/;
7796 s/:*\${srcdir}:*/:/;
7798 s/^\([^=]*=[ ]*\):*/\1/;
7804 DEFS=-DHAVE_CONFIG_H
7808 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7809 # 1. Remove the extension, and $U if already installed.
7810 ac_i=`echo "$ac_i" |
7811 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7813 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7814 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7818 LTLIBOBJS=$ac_ltlibobjs
7822 : ${CONFIG_STATUS=./config.status}
7823 ac_clean_files_save=$ac_clean_files
7824 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7825 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7826 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7827 cat >$CONFIG_STATUS <<_ACEOF
7829 # Generated by $as_me.
7830 # Run this file to recreate the current configuration.
7831 # Compiler output produced by configure, useful for debugging
7832 # configure, is in config.log if it exists.
7837 SHELL=\${CONFIG_SHELL-$SHELL}
7840 cat >>$CONFIG_STATUS <<\_ACEOF
7841 ## --------------------- ##
7842 ## M4sh Initialization. ##
7843 ## --------------------- ##
7845 # Be Bourne compatible
7846 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7849 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7850 # is contrary to our usage. Disable this feature.
7851 alias -g '${1+"$@"}'='"$@"'
7852 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7855 DUALCASE=1; export DUALCASE # for MKS sh
7857 # Support unset when possible.
7858 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7865 # Work around bugs in pre-3.0 UWIN ksh.
7866 $as_unset ENV MAIL MAILPATH
7873 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7874 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7875 LC_TELEPHONE LC_TIME
7877 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7878 eval $as_var=C; export $as_var
7884 # Required to use basename.
7885 if expr a : '\(a\)' >/dev/null 2>&1; then
7891 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7892 as_basename=basename
7898 # Name of the executable.
7899 as_me=`$as_basename "$0" ||
7900 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7901 X"$0" : 'X\(//\)$' \| \
7902 X"$0" : 'X\(/\)$' \| \
7903 . : '\(.\)' 2>/dev/null ||
7905 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7906 /^X\/\(\/\/\)$/{ s//\1/; q; }
7907 /^X\/\(\/\).*/{ s//\1/; q; }
7911 # PATH needs CR, and LINENO needs CR and PATH.
7912 # Avoid depending upon Character Ranges.
7913 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7914 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7915 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7916 as_cr_digits='0123456789'
7917 as_cr_alnum=$as_cr_Letters$as_cr_digits
7919 # The user is always right.
7920 if test "${PATH_SEPARATOR+set}" != set; then
7921 echo "#! /bin/sh" >conf$$.sh
7922 echo "exit 0" >>conf$$.sh
7924 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7935 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7936 test "x$as_lineno_1" != "x$as_lineno_2" &&
7937 test "x$as_lineno_3" = "x$as_lineno_2" || {
7938 # Find who we are. Look in the path if we contain no path at all
7941 *[\\/]* ) as_myself=$0 ;;
7942 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 test -z "$as_dir" && as_dir=.
7947 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7952 # We did not find ourselves, most probably we were run as `sh COMMAND'
7953 # in which case we are not to be found in the path.
7954 if test "x$as_myself" = x; then
7957 if test ! -f "$as_myself"; then
7958 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7959 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7960 { (exit 1); exit 1; }; }
7962 case $CONFIG_SHELL in
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7968 test -z "$as_dir" && as_dir=.
7969 for as_base in sh bash ksh sh5; do
7972 if ("$as_dir/$as_base" -c '
7975 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7976 test "x$as_lineno_1" != "x$as_lineno_2" &&
7977 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7978 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7979 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7980 CONFIG_SHELL=$as_dir/$as_base
7982 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7990 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7991 # uniformly replaced by the line number. The first 'sed' inserts a
7992 # line-number line before each line; the second 'sed' does the real
7993 # work. The second script uses 'N' to pair each line-number line
7994 # with the numbered line, and appends trailing '-' during
7995 # substitution so that $LINENO is not a special case at line end.
7996 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7997 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7998 sed '=' <$as_myself |
8003 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8006 s,^['$as_cr_digits']*\n,,
8008 chmod +x $as_me.lineno ||
8009 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8010 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8011 { (exit 1); exit 1; }; }
8013 # Don't try to exec as it changes $[0], causing all sort of problems
8014 # (the dirname of $[0] is not the place where we might find the
8015 # original and so on. Autoconf is especially sensible to this).
8017 # Exit status is that of the last command.
8022 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8023 *c*,-n*) ECHO_N= ECHO_C='
8025 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8026 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8029 if expr a : '\(a\)' >/dev/null 2>&1; then
8035 rm -f conf$$ conf$$.exe conf$$.file
8037 if ln -s conf$$.file conf$$ 2>/dev/null; then
8038 # We could just check for DJGPP; but this test a) works b) is more generic
8039 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8040 if test -f conf$$.exe; then
8041 # Don't use ln at all; we don't have any links
8046 elif ln conf$$.file conf$$ 2>/dev/null; then
8051 rm -f conf$$ conf$$.exe conf$$.file
8053 if mkdir -p . 2>/dev/null; then
8056 test -d ./-p && rmdir ./-p
8060 as_executable_p="test -f"
8062 # Sed expression to map a string onto a valid CPP name.
8063 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8065 # Sed expression to map a string onto a valid variable name.
8066 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8070 # We need space, tab and new line, in precisely that order.
8080 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8081 # report actual input values of CONFIG_FILES etc. instead of their
8082 # values after options handling. Logging --version etc. is OK.
8086 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8087 ## Running $as_me. ##
8092 This file was extended by libdecnumber $as_me , which was
8093 generated by GNU Autoconf 2.59. Invocation command line was
8095 CONFIG_FILES = $CONFIG_FILES
8096 CONFIG_HEADERS = $CONFIG_HEADERS
8097 CONFIG_LINKS = $CONFIG_LINKS
8098 CONFIG_COMMANDS = $CONFIG_COMMANDS
8102 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8106 # Files that config.status was made for.
8107 if test -n "$ac_config_files"; then
8108 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8111 if test -n "$ac_config_headers"; then
8112 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8115 if test -n "$ac_config_links"; then
8116 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8119 if test -n "$ac_config_commands"; then
8120 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8123 cat >>$CONFIG_STATUS <<\_ACEOF
8126 \`$as_me' instantiates files from templates according to the
8127 current configuration.
8129 Usage: $0 [OPTIONS] [FILE]...
8131 -h, --help print this help, then exit
8132 -V, --version print version number, then exit
8133 -q, --quiet do not print progress messages
8134 -d, --debug don't remove temporary files
8135 --recheck update $as_me by reconfiguring in the same conditions
8136 --file=FILE[:TEMPLATE]
8137 instantiate the configuration file FILE
8138 --header=FILE[:TEMPLATE]
8139 instantiate the configuration header FILE
8141 Configuration files:
8144 Configuration headers:
8147 Configuration commands:
8150 Report bugs to <bug-autoconf@gnu.org>."
8153 cat >>$CONFIG_STATUS <<_ACEOF
8155 libdecnumber config.status
8156 configured by $0, generated by GNU Autoconf 2.59,
8157 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8159 Copyright (C) 2003 Free Software Foundation, Inc.
8160 This config.status script is free software; the Free Software Foundation
8161 gives unlimited permission to copy, distribute and modify it."
8165 cat >>$CONFIG_STATUS <<\_ACEOF
8166 # If no file are specified by the user, then we need to provide default
8167 # value. By we need to know if files were specified by the user.
8173 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8174 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8182 *) # This is not an option, so the user has probably given explicit
8185 ac_need_defaults=false;;
8189 # Handling of the options.
8191 cat >>$CONFIG_STATUS <<\_ACEOF
8192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8194 --version | --vers* | -V )
8195 echo "$ac_cs_version"; exit 0 ;;
8197 # Conflict between --help and --header
8198 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8199 Try \`$0 --help' for more information." >&5
8200 echo "$as_me: error: ambiguous option: $1
8201 Try \`$0 --help' for more information." >&2;}
8202 { (exit 1); exit 1; }; };;
8203 --help | --hel | -h )
8204 echo "$ac_cs_usage"; exit 0 ;;
8205 --debug | --d* | -d )
8207 --file | --fil | --fi | --f )
8209 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8210 ac_need_defaults=false;;
8211 --header | --heade | --head | --hea )
8213 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8214 ac_need_defaults=false;;
8215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8216 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8220 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8221 Try \`$0 --help' for more information." >&5
8222 echo "$as_me: error: unrecognized option: $1
8223 Try \`$0 --help' for more information." >&2;}
8224 { (exit 1); exit 1; }; } ;;
8226 *) ac_config_targets="$ac_config_targets $1" ;;
8232 ac_configure_extra_args=
8234 if $ac_cs_silent; then
8236 ac_configure_extra_args="$ac_configure_extra_args --silent"
8240 cat >>$CONFIG_STATUS <<_ACEOF
8241 if \$ac_cs_recheck; then
8242 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8243 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8248 cat >>$CONFIG_STATUS <<_ACEOF
8250 # INIT-COMMANDS section.
8256 acx_cv_header_stdint="$acx_cv_header_stdint"
8257 acx_cv_type_int8_t="$acx_cv_type_int8_t"
8258 acx_cv_type_int16_t="$acx_cv_type_int16_t"
8259 acx_cv_type_int32_t="$acx_cv_type_int32_t"
8260 acx_cv_type_int64_t="$acx_cv_type_int64_t"
8261 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
8262 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
8263 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
8264 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
8265 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
8266 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
8267 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
8268 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
8269 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
8276 cat >>$CONFIG_STATUS <<\_ACEOF
8277 for ac_config_target in $ac_config_targets
8279 case "$ac_config_target" in
8280 # Handling of arguments.
8281 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8282 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
8283 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8284 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8285 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8286 { (exit 1); exit 1; }; };;
8290 # If the user did not use the arguments to specify the items to instantiate,
8291 # then the envvar interface is used. Set only those that are not.
8292 # We use the long form for the default assignment because of an extremely
8293 # bizarre bug on SunOS 4.1.3.
8294 if $ac_need_defaults; then
8295 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8296 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8297 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8300 # Have a temporary directory for convenience. Make it in the build tree
8301 # simply because there is no reason to put it here, and in addition,
8302 # creating and moving files from /tmp can sometimes cause problems.
8303 # Create a temporary directory, and hook for its removal unless debugging.
8306 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8307 trap '{ (exit 1); exit 1; }' 1 2 13 15
8310 # Create a (secure) tmp directory for tmp files.
8313 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8314 test -n "$tmp" && test -d "$tmp"
8317 tmp=./confstat$$-$RANDOM
8318 (umask 077 && mkdir $tmp)
8321 echo "$me: cannot create a temporary directory in ." >&2
8322 { (exit 1); exit 1; }
8327 cat >>$CONFIG_STATUS <<_ACEOF
8330 # CONFIG_FILES section.
8333 # No need to generate the scripts if there are no CONFIG_FILES.
8334 # This happens for instance when ./config.status config.h
8335 if test -n "\$CONFIG_FILES"; then
8336 # Protect against being on the right side of a sed subst in config.status.
8337 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8338 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8339 s,@SHELL@,$SHELL,;t t
8340 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8341 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8342 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8343 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8344 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8345 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8346 s,@exec_prefix@,$exec_prefix,;t t
8347 s,@prefix@,$prefix,;t t
8348 s,@program_transform_name@,$program_transform_name,;t t
8349 s,@bindir@,$bindir,;t t
8350 s,@sbindir@,$sbindir,;t t
8351 s,@libexecdir@,$libexecdir,;t t
8352 s,@datadir@,$datadir,;t t
8353 s,@sysconfdir@,$sysconfdir,;t t
8354 s,@sharedstatedir@,$sharedstatedir,;t t
8355 s,@localstatedir@,$localstatedir,;t t
8356 s,@libdir@,$libdir,;t t
8357 s,@includedir@,$includedir,;t t
8358 s,@oldincludedir@,$oldincludedir,;t t
8359 s,@infodir@,$infodir,;t t
8360 s,@mandir@,$mandir,;t t
8361 s,@build_alias@,$build_alias,;t t
8362 s,@host_alias@,$host_alias,;t t
8363 s,@target_alias@,$target_alias,;t t
8365 s,@ECHO_C@,$ECHO_C,;t t
8366 s,@ECHO_N@,$ECHO_N,;t t
8367 s,@ECHO_T@,$ECHO_T,;t t
8369 s,@SET_MAKE@,$SET_MAKE,;t t
8371 s,@CFLAGS@,$CFLAGS,;t t
8372 s,@LDFLAGS@,$LDFLAGS,;t t
8373 s,@CPPFLAGS@,$CPPFLAGS,;t t
8374 s,@ac_ct_CC@,$ac_ct_CC,;t t
8375 s,@EXEEXT@,$EXEEXT,;t t
8376 s,@OBJEXT@,$OBJEXT,;t t
8377 s,@RANLIB@,$RANLIB,;t t
8378 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8379 s,@ACLOCAL@,$ACLOCAL,;t t
8380 s,@AUTOCONF@,$AUTOCONF,;t t
8381 s,@AUTOHEADER@,$AUTOHEADER,;t t
8382 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8383 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
8384 s,@WERROR@,$WERROR,;t t
8386 s,@EGREP@,$EGREP,;t t
8387 s,@MAINT@,$MAINT,;t t
8388 s,@build@,$build,;t t
8389 s,@build_cpu@,$build_cpu,;t t
8390 s,@build_vendor@,$build_vendor,;t t
8391 s,@build_os@,$build_os,;t t
8393 s,@host_cpu@,$host_cpu,;t t
8394 s,@host_vendor@,$host_vendor,;t t
8395 s,@host_os@,$host_os,;t t
8396 s,@target@,$target,;t t
8397 s,@target_cpu@,$target_cpu,;t t
8398 s,@target_vendor@,$target_vendor,;t t
8399 s,@target_os@,$target_os,;t t
8400 s,@enable_decimal_float@,$enable_decimal_float,;t t
8401 s,@ADDITIONAL_OBJS@,$ADDITIONAL_OBJS,;t t
8402 s,@LIBOBJS@,$LIBOBJS,;t t
8403 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8408 cat >>$CONFIG_STATUS <<\_ACEOF
8409 # Split the substitutions into bite-sized pieces for seds with
8410 # small command number limits, like on Digital OSF/1 and HP-UX.
8412 ac_sed_frag=1 # Number of current file.
8413 ac_beg=1 # First line for current file.
8414 ac_end=$ac_max_sed_lines # Line after last line for current file.
8417 while $ac_more_lines; do
8418 if test $ac_beg -gt 1; then
8419 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8421 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8423 if test ! -s $tmp/subs.frag; then
8426 # The purpose of the label and of the branching condition is to
8427 # speed up the sed processing (if there are no `@' at all, there
8428 # is no need to browse any of the substitutions).
8429 # These are the two extra sed commands mentioned above.
8431 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8432 if test -z "$ac_sed_cmds"; then
8433 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8435 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8437 ac_sed_frag=`expr $ac_sed_frag + 1`
8439 ac_end=`expr $ac_end + $ac_max_sed_lines`
8442 if test -z "$ac_sed_cmds"; then
8445 fi # test -n "$CONFIG_FILES"
8448 cat >>$CONFIG_STATUS <<\_ACEOF
8449 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8450 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8452 - | *:- | *:-:* ) # input from stdin
8454 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8455 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8456 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8457 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8458 * ) ac_file_in=$ac_file.in ;;
8461 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8462 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8463 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8464 X"$ac_file" : 'X\(//\)[^/]' \| \
8465 X"$ac_file" : 'X\(//\)$' \| \
8466 X"$ac_file" : 'X\(/\)' \| \
8467 . : '\(.\)' 2>/dev/null ||
8469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8470 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8471 /^X\(\/\/\)$/{ s//\1/; q; }
8472 /^X\(\/\).*/{ s//\1/; q; }
8474 { if $as_mkdir_p; then
8479 while test ! -d "$as_dir"; do
8480 as_dirs="$as_dir $as_dirs"
8481 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8482 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8483 X"$as_dir" : 'X\(//\)[^/]' \| \
8484 X"$as_dir" : 'X\(//\)$' \| \
8485 X"$as_dir" : 'X\(/\)' \| \
8486 . : '\(.\)' 2>/dev/null ||
8488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8490 /^X\(\/\/\)$/{ s//\1/; q; }
8491 /^X\(\/\).*/{ s//\1/; q; }
8494 test ! -n "$as_dirs" || mkdir $as_dirs
8495 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8496 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8497 { (exit 1); exit 1; }; }; }
8501 if test "$ac_dir" != .; then
8502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8503 # A "../" for each directory in $ac_dir_suffix.
8504 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8506 ac_dir_suffix= ac_top_builddir=
8510 .) # No --srcdir option. We are building in place.
8512 if test -z "$ac_top_builddir"; then
8515 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8517 [\\/]* | ?:[\\/]* ) # Absolute path.
8518 ac_srcdir=$srcdir$ac_dir_suffix;
8519 ac_top_srcdir=$srcdir ;;
8521 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8522 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8525 # Do not use `cd foo && pwd` to compute absolute paths, because
8526 # the directories may not exist.
8528 .) ac_abs_builddir="$ac_dir";;
8531 .) ac_abs_builddir=`pwd`;;
8532 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8533 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8536 case $ac_abs_builddir in
8537 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8539 case ${ac_top_builddir}. in
8540 .) ac_abs_top_builddir=$ac_abs_builddir;;
8541 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8542 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8545 case $ac_abs_builddir in
8546 .) ac_abs_srcdir=$ac_srcdir;;
8549 .) ac_abs_srcdir=$ac_abs_builddir;;
8550 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8551 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8554 case $ac_abs_builddir in
8555 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8557 case $ac_top_srcdir in
8558 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8559 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8560 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8566 if test x"$ac_file" != x-; then
8567 { echo "$as_me:$LINENO: creating $ac_file" >&5
8568 echo "$as_me: creating $ac_file" >&6;}
8571 # Let's still pretend it is `configure' which instantiates (i.e., don't
8572 # use $as_me), people would be surprised to read:
8573 # /* config.h. Generated by config.status. */
8574 if test x"$ac_file" = x-; then
8577 configure_input="$ac_file. "
8579 configure_input=$configure_input"Generated from `echo $ac_file_in |
8580 sed 's,.*/,,'` by configure."
8582 # First look for the input files in the build tree, otherwise in the
8584 ac_file_inputs=`IFS=:
8585 for f in $ac_file_in; do
8587 -) echo $tmp/stdin ;;
8589 # Absolute (can't be DOS-style, as IFS=:)
8590 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8591 echo "$as_me: error: cannot find input file: $f" >&2;}
8592 { (exit 1); exit 1; }; }
8595 if test -f "$f"; then
8598 elif test -f "$srcdir/$f"; then
8603 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8604 echo "$as_me: error: cannot find input file: $f" >&2;}
8605 { (exit 1); exit 1; }; }
8608 done` || { (exit 1); exit 1; }
8610 cat >>$CONFIG_STATUS <<_ACEOF
8614 cat >>$CONFIG_STATUS <<\_ACEOF
8616 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8617 s,@configure_input@,$configure_input,;t t
8618 s,@srcdir@,$ac_srcdir,;t t
8619 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8620 s,@top_srcdir@,$ac_top_srcdir,;t t
8621 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8622 s,@builddir@,$ac_builddir,;t t
8623 s,@abs_builddir@,$ac_abs_builddir,;t t
8624 s,@top_builddir@,$ac_top_builddir,;t t
8625 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8626 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8628 if test x"$ac_file" != x-; then
8629 mv $tmp/out $ac_file
8637 cat >>$CONFIG_STATUS <<\_ACEOF
8640 # CONFIG_HEADER section.
8643 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8644 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8646 # ac_d sets the value in "#define NAME VALUE" lines.
8647 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8648 ac_dB='[ ].*$,\1#\2'
8651 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8652 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8653 ac_uB='$,\1#\2define\3'
8657 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8658 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8660 - | *:- | *:-:* ) # input from stdin
8662 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8663 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8664 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8665 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8666 * ) ac_file_in=$ac_file.in ;;
8669 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8670 echo "$as_me: creating $ac_file" >&6;}
8672 # First look for the input files in the build tree, otherwise in the
8674 ac_file_inputs=`IFS=:
8675 for f in $ac_file_in; do
8677 -) echo $tmp/stdin ;;
8679 # Absolute (can't be DOS-style, as IFS=:)
8680 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8681 echo "$as_me: error: cannot find input file: $f" >&2;}
8682 { (exit 1); exit 1; }; }
8683 # Do quote $f, to prevent DOS paths from being IFS'd.
8686 if test -f "$f"; then
8689 elif test -f "$srcdir/$f"; then
8694 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8695 echo "$as_me: error: cannot find input file: $f" >&2;}
8696 { (exit 1); exit 1; }; }
8699 done` || { (exit 1); exit 1; }
8700 # Remove the trailing spaces.
8701 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8705 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8706 # `conftest.undefs', that substitutes the proper values into
8707 # config.h.in to produce config.h. The first handles `#define'
8708 # templates, and the second `#undef' templates.
8709 # And first: Protect against being on the right side of a sed subst in
8710 # config.status. Protect against being in an unquoted here document
8712 rm -f conftest.defines conftest.undefs
8713 # Using a here document instead of a string reduces the quoting nightmare.
8714 # Putting comments in sed scripts is not portable.
8716 # `end' is used to avoid that the second main sed command (meant for
8717 # 0-ary CPP macros) applies to n-ary macro definitions.
8718 # See the Autoconf documentation for `clear'.
8719 cat >confdef2sed.sed <<\_ACEOF
8724 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8726 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8729 # If some macros were called several times there might be several times
8730 # the same #defines, which is useless. Nevertheless, we may not want to
8731 # sort them, since we want the *last* AC-DEFINE to be honored.
8732 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8733 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8734 rm -f confdef2sed.sed
8736 # This sed command replaces #undef with comments. This is necessary, for
8737 # example, in the case of _POSIX_SOURCE, which is predefined and required
8738 # on some systems where configure will not decide to define it.
8739 cat >>conftest.undefs <<\_ACEOF
8740 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8743 # Break up conftest.defines because some shells have a limit on the size
8744 # of here documents, and old seds have small limits too (100 cmds).
8745 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8746 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8747 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8748 echo ' :' >>$CONFIG_STATUS
8750 while grep . conftest.defines >/dev/null
8752 # Write a limited-size here document to $tmp/defines.sed.
8753 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8754 # Speed up: don't consider the non `#define' lines.
8755 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8756 # Work around the forget-to-reset-the-flag bug.
8757 echo 't clr' >>$CONFIG_STATUS
8758 echo ': clr' >>$CONFIG_STATUS
8759 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8761 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8765 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8766 rm -f conftest.defines
8767 mv conftest.tail conftest.defines
8769 rm -f conftest.defines
8770 echo ' fi # grep' >>$CONFIG_STATUS
8771 echo >>$CONFIG_STATUS
8773 # Break up conftest.undefs because some shells have a limit on the size
8774 # of here documents, and old seds have small limits too (100 cmds).
8775 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8777 while grep . conftest.undefs >/dev/null
8779 # Write a limited-size here document to $tmp/undefs.sed.
8780 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8781 # Speed up: don't consider the non `#undef'
8782 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8783 # Work around the forget-to-reset-the-flag bug.
8784 echo 't clr' >>$CONFIG_STATUS
8785 echo ': clr' >>$CONFIG_STATUS
8786 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8788 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8792 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8793 rm -f conftest.undefs
8794 mv conftest.tail conftest.undefs
8796 rm -f conftest.undefs
8798 cat >>$CONFIG_STATUS <<\_ACEOF
8799 # Let's still pretend it is `configure' which instantiates (i.e., don't
8800 # use $as_me), people would be surprised to read:
8801 # /* config.h. Generated by config.status. */
8802 if test x"$ac_file" = x-; then
8803 echo "/* Generated by configure. */" >$tmp/config.h
8805 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8807 cat $tmp/in >>$tmp/config.h
8809 if test x"$ac_file" != x-; then
8810 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8811 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8812 echo "$as_me: $ac_file is unchanged" >&6;}
8814 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8815 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8816 X"$ac_file" : 'X\(//\)[^/]' \| \
8817 X"$ac_file" : 'X\(//\)$' \| \
8818 X"$ac_file" : 'X\(/\)' \| \
8819 . : '\(.\)' 2>/dev/null ||
8821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8823 /^X\(\/\/\)$/{ s//\1/; q; }
8824 /^X\(\/\).*/{ s//\1/; q; }
8826 { if $as_mkdir_p; then
8831 while test ! -d "$as_dir"; do
8832 as_dirs="$as_dir $as_dirs"
8833 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8835 X"$as_dir" : 'X\(//\)[^/]' \| \
8836 X"$as_dir" : 'X\(//\)$' \| \
8837 X"$as_dir" : 'X\(/\)' \| \
8838 . : '\(.\)' 2>/dev/null ||
8840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8841 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8842 /^X\(\/\/\)$/{ s//\1/; q; }
8843 /^X\(\/\).*/{ s//\1/; q; }
8846 test ! -n "$as_dirs" || mkdir $as_dirs
8847 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8848 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8849 { (exit 1); exit 1; }; }; }
8852 mv $tmp/config.h $ac_file
8858 # Run the commands associated with the file.
8860 config.h ) echo timestamp > stamp-h1 ;;
8864 cat >>$CONFIG_STATUS <<\_ACEOF
8867 # CONFIG_COMMANDS section.
8869 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8870 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8871 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8872 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8873 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8874 X"$ac_dest" : 'X\(//\)[^/]' \| \
8875 X"$ac_dest" : 'X\(//\)$' \| \
8876 X"$ac_dest" : 'X\(/\)' \| \
8877 . : '\(.\)' 2>/dev/null ||
8879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8881 /^X\(\/\/\)$/{ s//\1/; q; }
8882 /^X\(\/\).*/{ s//\1/; q; }
8884 { if $as_mkdir_p; then
8889 while test ! -d "$as_dir"; do
8890 as_dirs="$as_dir $as_dirs"
8891 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8893 X"$as_dir" : 'X\(//\)[^/]' \| \
8894 X"$as_dir" : 'X\(//\)$' \| \
8895 X"$as_dir" : 'X\(/\)' \| \
8896 . : '\(.\)' 2>/dev/null ||
8898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8900 /^X\(\/\/\)$/{ s//\1/; q; }
8901 /^X\(\/\).*/{ s//\1/; q; }
8904 test ! -n "$as_dirs" || mkdir $as_dirs
8905 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8906 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8907 { (exit 1); exit 1; }; }; }
8911 if test "$ac_dir" != .; then
8912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8913 # A "../" for each directory in $ac_dir_suffix.
8914 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8916 ac_dir_suffix= ac_top_builddir=
8920 .) # No --srcdir option. We are building in place.
8922 if test -z "$ac_top_builddir"; then
8925 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8927 [\\/]* | ?:[\\/]* ) # Absolute path.
8928 ac_srcdir=$srcdir$ac_dir_suffix;
8929 ac_top_srcdir=$srcdir ;;
8931 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8932 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8935 # Do not use `cd foo && pwd` to compute absolute paths, because
8936 # the directories may not exist.
8938 .) ac_abs_builddir="$ac_dir";;
8941 .) ac_abs_builddir=`pwd`;;
8942 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8943 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8946 case $ac_abs_builddir in
8947 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8949 case ${ac_top_builddir}. in
8950 .) ac_abs_top_builddir=$ac_abs_builddir;;
8951 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8952 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8955 case $ac_abs_builddir in
8956 .) ac_abs_srcdir=$ac_srcdir;;
8959 .) ac_abs_srcdir=$ac_abs_builddir;;
8960 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8961 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8964 case $ac_abs_builddir in
8965 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8967 case $ac_top_srcdir in
8968 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8969 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8970 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8975 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8976 echo "$as_me: executing $ac_dest commands" >&6;}
8979 if test "$GCC" = yes; then
8980 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
8982 echo "/* generated for $CC */" > tmp-stdint.h
8985 sed 's/^ *//' >> tmp-stdint.h <<EOF
8987 #ifndef GCC_GENERATED_STDINT_H
8988 #define GCC_GENERATED_STDINT_H 1
8990 #include <sys/types.h>
8993 if test "$acx_cv_header_stdint" != stdint.h; then
8994 echo "#include <stddef.h>" >> tmp-stdint.h
8996 if test "$acx_cv_header_stdint" != stddef.h; then
8997 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
9000 sed 's/^ *//' >> tmp-stdint.h <<EOF
9001 /* glibc uses these symbols as guards to prevent redefinitions. */
9002 #ifdef __int8_t_defined
9007 #ifdef __uint32_t_defined
9013 # ----------------- done header, emit basic int types -------------
9014 if test "$acx_cv_header_stdint" = stddef.h; then
9015 sed 's/^ *//' >> tmp-stdint.h <<EOF
9019 #ifndef __uint8_t_defined
9020 #define __uint8_t_defined
9021 typedef unsigned $acx_cv_type_int8_t uint8_t;
9027 #ifndef __uint16_t_defined
9028 #define __uint16_t_defined
9029 typedef unsigned $acx_cv_type_int16_t uint16_t;
9035 #ifndef __uint32_t_defined
9036 #define __uint32_t_defined
9037 typedef unsigned $acx_cv_type_int32_t uint32_t;
9043 #ifndef __int8_t_defined
9044 #define __int8_t_defined
9045 typedef $acx_cv_type_int8_t int8_t;
9051 #ifndef __int16_t_defined
9052 #define __int16_t_defined
9053 typedef $acx_cv_type_int16_t int16_t;
9059 #ifndef __int32_t_defined
9060 #define __int32_t_defined
9061 typedef $acx_cv_type_int32_t int32_t;
9065 elif test "$ac_cv_type_u_int32_t" = yes; then
9066 sed 's/^ *//' >> tmp-stdint.h <<EOF
9068 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
9081 #ifndef __uint8_t_defined
9082 #define __uint8_t_defined
9083 typedef u_int8_t uint8_t;
9089 #ifndef __uint16_t_defined
9090 #define __uint16_t_defined
9091 typedef u_int16_t uint16_t;
9097 #ifndef __uint32_t_defined
9098 #define __uint32_t_defined
9099 typedef u_int32_t uint32_t;
9104 sed 's/^ *//' >> tmp-stdint.h <<EOF
9106 /* Some systems have guard macros to prevent redefinitions, define them. */
9128 # ------------- done basic int types, emit int64_t types ------------
9129 if test "$ac_cv_type_uint64_t" = yes; then
9130 sed 's/^ *//' >> tmp-stdint.h <<EOF
9132 /* system headers have good uint64_t and int64_t */
9140 elif test "$ac_cv_type_u_int64_t" = yes; then
9141 sed 's/^ *//' >> tmp-stdint.h <<EOF
9143 /* system headers have an u_int64_t (and int64_t) */
9149 #ifndef __uint64_t_defined
9150 #define __uint64_t_defined
9151 typedef u_int64_t uint64_t;
9155 elif test -n "$acx_cv_type_int64_t"; then
9156 sed 's/^ *//' >> tmp-stdint.h <<EOF
9158 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
9161 typedef $acx_cv_type_int64_t int64_t;
9165 #ifndef __uint64_t_defined
9166 #define __uint64_t_defined
9167 typedef unsigned $acx_cv_type_int64_t uint64_t;
9172 sed 's/^ *//' >> tmp-stdint.h <<EOF
9174 /* some common heuristics for int64_t, using compiler-specific tests */
9175 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
9178 #ifndef __int64_t_defined
9179 typedef long long int64_t;
9184 typedef unsigned long long uint64_t;
9187 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
9188 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
9189 does not implement __extension__. But that compiler doesn't define
9191 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
9192 # define __extension__
9197 __extension__ typedef long long int64_t;
9201 __extension__ typedef unsigned long long uint64_t;
9204 #elif !defined __STRICT_ANSI__
9205 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
9209 typedef __int64 int64_t;
9213 typedef unsigned __int64 uint64_t;
9215 # endif /* compiler */
9217 #endif /* ANSI version */
9221 # ------------- done int64_t types, emit intptr types ------------
9222 if test "$ac_cv_type_uintptr_t" != yes; then
9223 sed 's/^ *//' >> tmp-stdint.h <<EOF
9225 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
9226 #ifndef __uintptr_t_defined
9227 typedef u$acx_cv_type_intptr_t uintptr_t;
9229 #ifndef __intptr_t_defined
9230 typedef $acx_cv_type_intptr_t intptr_t;
9235 # ------------- done intptr types, emit int_least types ------------
9236 if test "$ac_cv_type_int_least32_t" != yes; then
9237 sed 's/^ *//' >> tmp-stdint.h <<EOF
9239 /* Define int_least types */
9240 typedef int8_t int_least8_t;
9241 typedef int16_t int_least16_t;
9242 typedef int32_t int_least32_t;
9244 typedef int64_t int_least64_t;
9247 typedef uint8_t uint_least8_t;
9248 typedef uint16_t uint_least16_t;
9249 typedef uint32_t uint_least32_t;
9251 typedef uint64_t uint_least64_t;
9256 # ------------- done intptr types, emit int_fast types ------------
9257 if test "$ac_cv_type_int_fast32_t" != yes; then
9258 sed 's/^ *//' >> tmp-stdint.h <<EOF
9260 /* Define int_fast types. short is often slow */
9261 typedef int8_t int_fast8_t;
9262 typedef int int_fast16_t;
9263 typedef int32_t int_fast32_t;
9265 typedef int64_t int_fast64_t;
9268 typedef uint8_t uint_fast8_t;
9269 typedef unsigned int uint_fast16_t;
9270 typedef uint32_t uint_fast32_t;
9272 typedef uint64_t uint_fast64_t;
9277 if test "$ac_cv_type_uintmax_t" != yes; then
9278 sed 's/^ *//' >> tmp-stdint.h <<EOF
9280 /* Define intmax based on what we found */
9282 typedef int64_t intmax_t;
9284 typedef long intmax_t;
9287 typedef uint64_t uintmax_t;
9289 typedef unsigned long uintmax_t;
9294 sed 's/^ *//' >> tmp-stdint.h <<EOF
9296 #endif /* GCC_GENERATED_STDINT_H */
9299 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
9302 mv -f tmp-stdint.h gstdint.h
9310 cat >>$CONFIG_STATUS <<\_ACEOF
9312 { (exit 0); exit 0; }
9314 chmod +x $CONFIG_STATUS
9315 ac_clean_files=$ac_clean_files_save
9318 # configure is writing to config.log, and then calls config.status.
9319 # config.status does its own redirection, appending to config.log.
9320 # Unfortunately, on DOS this fails, as config.log is still kept open
9321 # by configure, so config.status won't be able to write to it; its
9322 # output is simply discarded. So we exec the FD to /dev/null,
9323 # effectively closing config.log, so it can be properly (re)opened and
9324 # appended to by config.status. When coming back to configure, we
9325 # need to make the FD available again.
9326 if test "$no_create" != yes; then
9328 ac_config_status_args=
9329 test "$silent" = yes &&
9330 ac_config_status_args="$ac_config_status_args --quiet"
9332 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9334 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9335 # would make configure fail if this is the last instruction.
9336 $ac_cs_success || { (exit 1); exit 1; }