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 enable_decimal_float 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]
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short | recursive
) echo "Configuration of libdecnumber :";;
845 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
846 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
847 --enable-werror-always enable -Werror despite compiler version
848 --enable-maintainer-mode enable rules only needed by maintainers
849 --enable-decimal-float={no
,yes,bid
,dpd
}
850 enable decimal float extension to C. Selecting
'bid'
851 or
'dpd' choses
which decimal floating point format
854 Some influential environment variables
:
855 CC C compiler
command
856 CFLAGS C compiler flags
857 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
858 nonstandard directory
<lib dir
>
859 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
860 headers
in a nonstandard directory
<include dir
>
863 Use these variables to override the choices made by
`configure' or to help
864 it to find libraries and programs with nonstandard names/locations.
866 Report bugs to <gcc-bugs@gcc.gnu.org>.
870 if test "$ac_init_help" = "recursive"; then
871 # If there are subdirs, report their specific --help.
873 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
874 test -d $ac_dir || continue
877 if test "$ac_dir" != .; then
878 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
879 # A "../" for each directory in $ac_dir_suffix.
880 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
882 ac_dir_suffix= ac_top_builddir=
886 .) # No --srcdir option. We are building in place.
888 if test -z "$ac_top_builddir"; then
891 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
893 [\\/]* | ?:[\\/]* ) # Absolute path.
894 ac_srcdir=$srcdir$ac_dir_suffix;
895 ac_top_srcdir=$srcdir ;;
897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
901 # Do not use `cd foo
&& pwd` to compute absolute paths, because
902 # the directories may not exist.
904 .) ac_abs_builddir="$ac_dir";;
907 .) ac_abs_builddir=`pwd`;;
908 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
909 *) ac_abs_builddir=`pwd`/"$ac_dir";;
912 case $ac_abs_builddir in
913 .) ac_abs_top_builddir=${ac_top_builddir}.;;
915 case ${ac_top_builddir}. in
916 .) ac_abs_top_builddir=$ac_abs_builddir;;
917 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
918 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
921 case $ac_abs_builddir in
922 .) ac_abs_srcdir=$ac_srcdir;;
925 .) ac_abs_srcdir=$ac_abs_builddir;;
926 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
927 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
930 case $ac_abs_builddir in
931 .) ac_abs_top_srcdir=$ac_top_srcdir;;
933 case $ac_top_srcdir in
934 .) ac_abs_top_srcdir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
936 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
941 # Check for guested configure; otherwise get Cygnus style configure.
942 if test -f $ac_srcdir/configure.gnu; then
944 $SHELL $ac_srcdir/configure.gnu --help=recursive
945 elif test -f $ac_srcdir/configure; then
947 $SHELL $ac_srcdir/configure --help=recursive
948 elif test -f $ac_srcdir/configure.ac ||
949 test -f $ac_srcdir/configure.in; then
953 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959 test -n "$ac_init_help" && exit 0
960 if $ac_init_version; then
962 libdecnumber configure
963 generated by GNU Autoconf 2.59
965 Copyright (C) 2003 Free Software Foundation, Inc.
966 This configure script is free software; the Free Software Foundation
967 gives unlimited permission to copy, distribute and modify it.
973 This file contains any messages produced by compilers while
974 running configure, to aid debugging if configure makes a mistake.
976 It was created by libdecnumber $as_me , which was
977 generated by GNU Autoconf 2.59. Invocation command line was
988 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
989 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
990 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
991 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
992 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
994 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
995 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
997 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
998 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
999 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1000 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1001 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1002 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1003 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1011 test -z "$as_dir" && as_dir=.
1012 echo "PATH: $as_dir"
1027 # Keep a trace of the command line.
1028 # Strip out --no-create and --no-recursion so they do not pile up.
1029 # Strip out --silent because we don't want to record it for future runs.
1030 # Also quote any args containing shell meta-characters.
1031 # Make two passes to allow for proper duplicate-argument suppression.
1036 ac_must_keep_next=false
1042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1046 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1047 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1050 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1052 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1053 if test $ac_must_keep_next = true; then
1054 ac_must_keep_next=false # Got value, back to normal.
1057 *=* | --config-cache | -C | -disable-* | --disable-* \
1058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1060 | -with-* | --with-* | -without-* | --without-* | --x)
1061 case "$ac_configure_args0 " in
1062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1065 -* ) ac_must_keep_next=true ;;
1068 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1069 # Get rid of the leading space.
1075 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1076 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1078 # When interrupted or exit'd, cleanup temporary files, and complete
1079 # config.log. We remove comments because anyway the quotes in there
1080 # would cause problems or look ugly.
1081 # WARNING: Be sure not to use single quotes in there, as some shells,
1082 # such as our DU 5.0 friend, will then `close
' the trap.
1083 trap 'exit_status
=$?
1084 # Save into config.log some information that might help in debugging.
1089 ## ---------------- ##
1090 ## Cache variables. ##
1091 ## ---------------- ##
1094 # The following way of writing the cache mishandles newlines in values,
1097 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1100 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1105 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 ## ----------------- ##
1113 ## Output variables. ##
1114 ## ----------------- ##
1117 for ac_var
in $ac_subst_vars
1119 eval ac_val
=$
`echo $ac_var`
1120 echo "$ac_var='"'"'$ac_val'"'"'"
1124 if test -n "$ac_subst_files"; then
1131 for ac_var
in $ac_subst_files
1133 eval ac_val
=$
`echo $ac_var`
1134 echo "$ac_var='"'"'$ac_val'"'"'"
1139 if test -s confdefs.h
; then
1146 sed "/^$/d" confdefs.h |
sort
1149 test "$ac_signal" != 0 &&
1150 echo "$as_me: caught signal $ac_signal"
1151 echo "$as_me: exit $exit_status"
1153 rm -f core
*.core
&&
1154 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1157 for ac_signal in 1 2 13 15; do
1158 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1162 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1163 rm -rf conftest* confdefs.h
1164 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1167 # Predefined preprocessor variables.
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_NAME "$PACKAGE_NAME"
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_STRING "$PACKAGE_STRING"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1194 # Let the site file select an alternate cache file if it wants to.
1195 # Prefer explicitly selected file to automatically selected ones.
1196 if test -z "$CONFIG_SITE"; then
1197 if test "x$prefix" != xNONE; then
1198 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1203 for ac_site_file in $CONFIG_SITE; do
1204 if test -r "$ac_site_file"; then
1205 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1206 echo "$as_me: loading site script $ac_site_file" >&6;}
1207 sed 's
/^
/|
/' "$ac_site_file" >&5
1212 if test -r "$cache_file"; then
1213 # Some versions of bash will fail to source /dev/null (special
1214 # files actually), so we avoid doing that.
1215 if test -f "$cache_file"; then
1216 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1217 echo "$as_me: loading cache $cache_file" >&6;}
1219 [\\/]* | ?:[\\/]* ) . $cache_file;;
1220 *) . ./$cache_file;;
1224 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1225 echo "$as_me: creating cache $cache_file" >&6;}
1229 # Check that the precious variables saved in the cache have kept the same
1231 ac_cache_corrupted=false
1232 for ac_var in `(set) 2>&1 |
1233 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1234 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1235 eval ac_new_set=\$ac_env_${ac_var}_set
1236 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1237 eval ac_new_val="\$ac_env_${ac_var}_value"
1238 case $ac_old_set,$ac_new_set in
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1241 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1242 ac_cache_corrupted=: ;;
1244 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1246 ac_cache_corrupted=: ;;
1249 if test "x$ac_old_val" != "x$ac_new_val"; then
1250 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1251 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1252 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1253 echo "$as_me: former value: $ac_old_val" >&2;}
1254 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1255 echo "$as_me: current value: $ac_new_val" >&2;}
1256 ac_cache_corrupted=:
1259 # Pass precious variables to config.status.
1260 if test "$ac_new_set" = set; then
1262 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1264 *) ac_arg=$ac_var=$ac_new_val ;;
1266 case " $ac_configure_args " in
1267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1268 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1272 if $ac_cache_corrupted; then
1273 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1274 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1275 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1276 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1277 { (exit 1); exit 1; }; }
1281 ac_cpp='$CPP $CPPFLAGS'
1282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1283 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314 [\\/]* | ?:[\\/]* ) ac_macro_dir=../config ;;
1315 *) ac_macro_dir=$srcdir/../config ;;
1317 if test -d "$ac_macro_dir"; then :
1319 { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5
1320 echo "$as_me: error
: cannot
find macro directory \
`../config'" >&2;}
1321 { (exit 1); exit 1; }; }
1325 # Checks for programs.
1326 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1327 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1328 set dummy ${MAKE-make}; ac_make=`echo "$2" |
sed 'y,:./+-,___p_,'`
1329 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1330 echo $ECHO_N "(cached) $ECHO_C" >&6
1332 cat >conftest.make <<\_ACEOF
1334 @echo 'ac_maketemp="$(MAKE)"'
1336 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1337 eval `${MAKE-make} -f conftest.
make 2>/dev
/null |
grep temp
=`
1338 if test -n "$ac_maketemp"; then
1339 eval ac_cv_prog_make_${ac_make}_set=yes
1341 eval ac_cv_prog_make_${ac_make}_set=no
1345 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set
`\" = yes"; then
1346 echo "$as_me:$LINENO: result: yes" >&5
1347 echo "${ECHO_T}yes" >&6
1350 echo "$as_me:$LINENO: result: no" >&5
1351 echo "${ECHO_T}no" >&6
1352 SET_MAKE="MAKE=${MAKE-make}"
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1360 if test -n "$ac_tool_prefix"; then
1361 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1362 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_prog_CC+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 if test -n "$CC"; then
1369 ac_cv_prog_CC="$CC" # Let the user override the test.
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375 test -z "$as_dir" && as_dir=.
1376 for ac_exec_ext in '' $ac_executable_extensions; do
1377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1378 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1388 if test -n "$CC"; then
1389 echo "$as_me:$LINENO: result: $CC" >&5
1390 echo "${ECHO_T}$CC" >&6
1392 echo "$as_me:$LINENO: result: no" >&5
1393 echo "${ECHO_T}no" >&6
1397 if test -z "$ac_cv_prog_CC"; then
1399 # Extract the first word of "gcc", so it can be a program name with args.
1400 set dummy gcc; ac_word=$2
1401 echo "$as_me:$LINENO: checking for $ac_word" >&5
1402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 if test -n "$ac_ct_CC"; then
1407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413 test -z "$as_dir" && as_dir=.
1414 for ac_exec_ext in '' $ac_executable_extensions; do
1415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1416 ac_cv_prog_ac_ct_CC="gcc"
1417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1426 if test -n "$ac_ct_CC"; then
1427 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1428 echo "${ECHO_T}$ac_ct_CC" >&6
1430 echo "$as_me:$LINENO: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1439 if test -z "$CC"; then
1440 if test -n "$ac_tool_prefix"; then
1441 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1442 set dummy ${ac_tool_prefix}cc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 if test -n "$CC"; then
1449 ac_cv_prog_CC="$CC" # Let the user override the test.
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_CC="${ac_tool_prefix}cc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1468 if test -n "$CC"; then
1469 echo "$as_me:$LINENO: result: $CC" >&5
1470 echo "${ECHO_T}$CC" >&6
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1477 if test -z "$ac_cv_prog_CC"; then
1479 # Extract the first word of "cc", so it can be a program name with args.
1480 set dummy cc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 if test -n "$ac_ct_CC"; then
1487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_ac_ct_CC="cc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1506 if test -n "$ac_ct_CC"; then
1507 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1508 echo "${ECHO_T}$ac_ct_CC" >&6
1510 echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1520 if test -z "$CC"; then
1521 # Extract the first word of "cc", so it can be a program name with args.
1522 set dummy cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 if test -n "$CC"; then
1529 ac_cv_prog_CC="$CC" # Let the user override the test.
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1540 ac_prog_rejected=yes
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550 if test $ac_prog_rejected = yes; then
1551 # We found a bogon in the path, so make sure we never use it.
1552 set dummy $ac_cv_prog_CC
1554 if test $# != 0; then
1555 # We chose a different compiler from the bogus one.
1556 # However, it has the same basename, so the bogon will be chosen
1557 # first if we set CC to just the basename; use the full file name.
1559 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1565 if test -n "$CC"; then
1566 echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1574 if test -z "$CC"; then
1575 if test -n "$ac_tool_prefix"; then
1578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_CC+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 if test -n "$CC"; then
1586 ac_cv_prog_CC="$CC" # Let the user override the test.
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592 test -z "$as_dir" && as_dir=.
1593 for ac_exec_ext in '' $ac_executable_extensions; do
1594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605 if test -n "$CC"; then
1606 echo "$as_me:$LINENO: result: $CC" >&5
1607 echo "${ECHO_T}$CC" >&6
1609 echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1613 test -n "$CC" && break
1616 if test -z "$CC"; then
1620 # Extract the first word of "$ac_prog", so it can be a program name with args.
1621 set dummy $ac_prog; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 if test -n "$ac_ct_CC"; then
1628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_ac_ct_CC="$ac_prog"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1647 if test -n "$ac_ct_CC"; then
1648 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1649 echo "${ECHO_T}$ac_ct_CC" >&6
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1655 test -n "$ac_ct_CC" && break
1664 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1665 See \`config.log
' for more details." >&5
1666 echo "$as_me: error: no acceptable C compiler found in \$PATH
1667 See \`config.log' for more details.
" >&2;}
1668 { (exit 1); exit 1; }; }
1670 # Provide some information about the compiler.
1671 echo "$as_me:$LINENO:" \
1672 "checking
for C compiler version
" >&5
1673 ac_compiler=`set X $ac_compile; echo $2`
1674 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev
/null
>&5\"") >&5
1675 (eval $ac_compiler --version </dev/null >&5) 2>&5
1677 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1678 (exit $ac_status); }
1679 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev
/null
>&5\"") >&5
1680 (eval $ac_compiler -v </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); }
1690 cat >conftest.$ac_ext <<_ACEOF
1693 cat confdefs.h >>conftest.$ac_ext
1694 cat >>conftest.$ac_ext <<_ACEOF
1695 /* end confdefs.h. */
1705 ac_clean_files_save=$ac_clean_files
1706 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
1707 # Try to create an executable without -o first, disregard a.out.
1708 # It will help us diagnose broken compilers, and finding out an intuition
1710 echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
1711 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6
1712 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1713 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1714 (eval $ac_link_default) 2>&5
1716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1717 (exit $ac_status); }; then
1718 # Find the output, starting from the most likely. This scheme is
1719 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1722 # Be careful to initialize this variable, since it used to be cached.
1723 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1725 # b.out is created by i960 compilers.
1726 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1728 test -f "$ac_file" || continue
1730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1733 # This is the source file.
1736 # We found the default executable, but exeext='' is most
1740 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1741 # FIXME: I believe we export ac_cv_exeext for Libtool,
1742 # but it would be cool to find out if it's true. Does anybody
1743 # maintain Libtool? --akim.
1751 echo "$as_me: failed program was
:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
1755 See \
`config.log' for more details." >&5
1756 echo "$as_me: error: C compiler cannot create executables
1757 See \`config.log
' for more details." >&2;}
1758 { (exit 77); exit 77; }; }
1761 ac_exeext=$ac_cv_exeext
1762 echo "$as_me:$LINENO: result: $ac_file" >&5
1763 echo "${ECHO_T}$ac_file" >&6
1765 # Check the compiler produces executables we can run. If not, either
1766 # the compiler is broken, or we cross compile.
1767 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1768 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1769 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1770 # If not cross compiling, check that we can run a simple program.
1771 if test "$cross_compiling" != yes; then
1772 if { ac_try='.
/$ac_file'
1773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1777 (exit $ac_status); }; }; then
1780 if test "$cross_compiling" = maybe; then
1783 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1784 If you meant to cross compile, use \`--host'.
1785 See \
`config.log' for more details." >&5
1786 echo "$as_me: error: cannot run C compiled programs.
1787 If you meant to cross compile, use \`--host'.
1788 See \`config.log' for more details.
" >&2;}
1789 { (exit 1); exit 1; }; }
1793 echo "$as_me:$LINENO: result
: yes" >&5
1794 echo "${ECHO_T}yes" >&6
1796 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1797 ac_clean_files=$ac_clean_files_save
1798 # Check the compiler produces executables we can run. If not, either
1799 # the compiler is broken, or we cross compile.
1800 echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
1801 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6
1802 echo "$as_me:$LINENO: result
: $cross_compiling" >&5
1803 echo "${ECHO_T}$cross_compiling" >&6
1805 echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
1806 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6
1807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1808 (eval $ac_link) 2>&5
1810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1811 (exit $ac_status); }; then
1812 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1813 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1814 # work properly (i.e., refer to `conftest.exe'), while it won't with
1816 for ac_file in conftest.exe conftest conftest.*; do
1817 test -f "$ac_file" || continue
1819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1820 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1827 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
1828 See \
`config.log' for more details." >&5
1829 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1830 See \`config.log
' for more details." >&2;}
1831 { (exit 1); exit 1; }; }
1834 rm -f conftest$ac_cv_exeext
1835 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1836 echo "${ECHO_T}$ac_cv_exeext" >&6
1838 rm -f conftest.$ac_ext
1839 EXEEXT=$ac_cv_exeext
1841 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1842 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1843 if test "${ac_cv_objext+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 cat >conftest.$ac_ext <<_ACEOF
1849 cat confdefs.h >>conftest.$ac_ext
1850 cat >>conftest.$ac_ext <<_ACEOF
1851 /* end confdefs.h. */
1861 rm -f conftest.o conftest.obj
1862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1863 (eval $ac_compile) 2>&5
1865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866 (exit $ac_status); }; then
1867 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1870 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
1875 echo "$as_me: failed program was:" >&5
1876 sed 's
/^
/|
/' conftest.$ac_ext >&5
1878 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1879 See \`config.log' for more details.
" >&5
1880 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
1881 See \
`config.log' for more details." >&2;}
1882 { (exit 1); exit 1; }; }
1885 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1887 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1888 echo "${ECHO_T}$ac_cv_objext" >&6
1889 OBJEXT=$ac_cv_objext
1891 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1892 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1893 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 cat >conftest.$ac_ext <<_ACEOF
1899 cat confdefs.h >>conftest.$ac_ext
1900 cat >>conftest.$ac_ext <<_ACEOF
1901 /* end confdefs.h. */
1914 rm -f conftest.$ac_objext
1915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1916 (eval $ac_compile) 2>conftest.er1
1918 grep -v '^ *+' conftest.er1 >conftest.err
1920 cat conftest.err >&5
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); } &&
1923 { ac_try='test -z "$ac_c_werror_flag"
1924 || test ! -s conftest.err'
1925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }; } &&
1930 { ac_try='test -s conftest.$ac_objext'
1931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; }; then
1938 echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1944 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1947 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1948 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1949 GCC=`test $ac_compiler_gnu = yes && echo yes`
1950 ac_test_CFLAGS=${CFLAGS+set}
1951 ac_save_CFLAGS=$CFLAGS
1953 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1954 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1955 if test "${ac_cv_prog_cc_g+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 cat >conftest.$ac_ext <<_ACEOF
1961 cat confdefs.h >>conftest.$ac_ext
1962 cat >>conftest.$ac_ext <<_ACEOF
1963 /* end confdefs.h. */
1973 rm -f conftest.$ac_objext
1974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975 (eval $ac_compile) 2>conftest.er1
1977 grep -v '^ *+' conftest.er1 >conftest.err
1979 cat conftest.err >&5
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); } &&
1982 { ac_try='test -z "$ac_c_werror_flag"
1983 || test ! -s conftest.err'
1984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }; } &&
1989 { ac_try='test -s conftest.$ac_objext'
1990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); }; }; then
1997 echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
2002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2004 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2005 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2006 if test "$ac_test_CFLAGS" = set; then
2007 CFLAGS=$ac_save_CFLAGS
2008 elif test $ac_cv_prog_cc_g = yes; then
2009 if test "$GCC" = yes; then
2015 if test "$GCC" = yes; then
2021 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2022 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2023 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 ac_cv_prog_cc_stdc=no
2028 cat >conftest.$ac_ext <<_ACEOF
2031 cat confdefs.h >>conftest.$ac_ext
2032 cat >>conftest.$ac_ext <<_ACEOF
2033 /* end confdefs.h. */
2036 #include <sys/types.h>
2037 #include <sys/stat.h>
2038 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2039 struct buf { int x; };
2040 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2041 static char *e (p, i)
2047 static char *f (char * (*g) (char **, int), char **p, ...)
2052 s = g (p, va_arg (v,int));
2057 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2058 function prototypes and stuff, but not '\xHH' hex character constants.
2059 These don't provoke an error unfortunately, instead are silently treated
2060 as 'x'. The following induces an error, until -std1 is added to get
2061 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2062 array size at least. It's necessary to write '\x00'==0 to get something
2063 that's true only with -std1. */
2064 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2066 int test (int i, double x);
2067 struct s1 {int (*f) (int a);};
2068 struct s2 {int (*f) (double a);};
2069 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2075 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2080 # Don't try gcc -ansi; that turns off useful extensions and
2081 # breaks some systems' header files.
2082 # AIX -qlanglvl=ansi
2083 # Ultrix and OSF/1 -std1
2084 # HP-UX 10.20 and later -Ae
2085 # HP-UX older versions -Aa -D_HPUX_SOURCE
2086 # SVR4 -Xc -D__EXTENSIONS__
2087 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2089 CC="$ac_save_CC $ac_arg"
2090 rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>conftest.er1
2094 grep -v '^ *+' conftest.er1 >conftest.err
2096 cat conftest.err >&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); } &&
2099 { ac_try='test -z "$ac_c_werror_flag"
2100 || test ! -s conftest.err'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; } &&
2106 { ac_try='test -s conftest.$ac_objext'
2107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }; }; then
2112 ac_cv_prog_cc_stdc=$ac_arg
2115 echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2119 rm -f conftest.err conftest.$ac_objext
2121 rm -f conftest.$ac_ext conftest.$ac_objext
2126 case "x$ac_cv_prog_cc_stdc" in
2128 echo "$as_me:$LINENO: result: none needed" >&5
2129 echo "${ECHO_T}none needed" >&6 ;;
2131 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2132 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2133 CC="$CC $ac_cv_prog_cc_stdc" ;;
2136 # Some people use a C++ compiler to compile C. Since we use `exit',
2137 # in C++ we need to declare it. In case someone uses the same compiler
2138 # for both compiling C and C++ we need to have the C++ compiler decide
2139 # the declaration of exit, since it's the most demanding environment.
2140 cat >conftest.
$ac_ext <<_ACEOF
2145 rm -f conftest.
$ac_objext
2146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147 (eval $ac_compile) 2>conftest.er1
2149 grep -v '^ *+' conftest.er1
>conftest.err
2151 cat conftest.err
>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); } &&
2154 { ac_try
='test -z "$ac_c_werror_flag"
2155 || test ! -s conftest.err'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; } &&
2161 { ac_try
='test -s conftest.$ac_objext'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; }; then
2167 for ac_declaration
in \
2169 'extern "C" void std::exit (int) throw (); using std::exit;' \
2170 'extern "C" void std::exit (int); using std::exit;' \
2171 'extern "C" void exit (int) throw ();' \
2172 'extern "C" void exit (int);' \
2175 cat >conftest.
$ac_ext <<_ACEOF
2178 cat confdefs.h
>>conftest.
$ac_ext
2179 cat >>conftest.
$ac_ext <<_ACEOF
2180 /* end confdefs.h. */
2191 rm -f conftest.
$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>conftest.er1
2195 grep -v '^ *+' conftest.er1
>conftest.err
2197 cat conftest.err
>&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); } &&
2200 { ac_try
='test -z "$ac_c_werror_flag"
2201 || test ! -s conftest.err'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; } &&
2207 { ac_try
='test -s conftest.$ac_objext'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; }; then
2215 echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.
$ac_ext >&5
2220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2221 cat >conftest.
$ac_ext <<_ACEOF
2224 cat confdefs.h
>>conftest.
$ac_ext
2225 cat >>conftest.
$ac_ext <<_ACEOF
2226 /* end confdefs.h. */
2236 rm -f conftest.
$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>conftest.er1
2240 grep -v '^ *+' conftest.er1
>conftest.err
2242 cat conftest.err
>&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } &&
2245 { ac_try
='test -z "$ac_c_werror_flag"
2246 || test ! -s conftest.err'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; } &&
2252 { ac_try
='test -s conftest.$ac_objext'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; }; then
2260 echo "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.
$ac_ext >&5
2264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2267 if test -n "$ac_declaration"; then
2268 echo '#ifdef __cplusplus' >>confdefs.h
2269 echo $ac_declaration >>confdefs.h
2270 echo '#endif' >>confdefs.h
2274 echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.
$ac_ext >&5
2278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2280 ac_cpp
='$CPP $CPPFLAGS'
2281 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2285 if test -n "$ac_tool_prefix"; then
2286 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2287 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2288 echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2290 if test "${ac_cv_prog_RANLIB+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 if test -n "$RANLIB"; then
2294 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir
=.
2301 for ac_exec_ext
in '' $ac_executable_extensions; do
2302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2303 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 RANLIB
=$ac_cv_prog_RANLIB
2313 if test -n "$RANLIB"; then
2314 echo "$as_me:$LINENO: result: $RANLIB" >&5
2315 echo "${ECHO_T}$RANLIB" >&6
2317 echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6
2322 if test -z "$ac_cv_prog_RANLIB"; then
2323 ac_ct_RANLIB
=$RANLIB
2324 # Extract the first word of "ranlib", so it can be a program name with args.
2325 set dummy ranlib
; ac_word
=$2
2326 echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2328 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 if test -n "$ac_ct_RANLIB"; then
2332 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2338 test -z "$as_dir" && as_dir
=.
2339 for ac_exec_ext
in '' $ac_executable_extensions; do
2340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2341 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2351 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2352 if test -n "$ac_ct_RANLIB"; then
2353 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2354 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2356 echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2360 RANLIB
=$ac_ct_RANLIB
2362 RANLIB
="$ac_cv_prog_RANLIB"
2366 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2367 for ac_prog
in aclocal
2369 # Extract the first word of "$ac_prog", so it can be a program name with args.
2370 set dummy
$ac_prog; ac_word
=$2
2371 echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2373 if test "${ac_cv_prog_ACLOCAL+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 if test -n "$ACLOCAL"; then
2377 ac_cv_prog_ACLOCAL
="$ACLOCAL" # Let the user override the test.
2379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2383 test -z "$as_dir" && as_dir
=.
2384 for ac_exec_ext
in '' $ac_executable_extensions; do
2385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2386 ac_cv_prog_ACLOCAL
="$ac_prog"
2387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 ACLOCAL
=$ac_cv_prog_ACLOCAL
2396 if test -n "$ACLOCAL"; then
2397 echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2398 echo "${ECHO_T}$ACLOCAL" >&6
2400 echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2404 test -n "$ACLOCAL" && break
2406 test -n "$ACLOCAL" || ACLOCAL
="$MISSING aclocal"
2408 for ac_prog
in autoconf
2410 # Extract the first word of "$ac_prog", so it can be a program name with args.
2411 set dummy
$ac_prog; ac_word
=$2
2412 echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2414 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 if test -n "$AUTOCONF"; then
2418 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
2420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2424 test -z "$as_dir" && as_dir
=.
2425 for ac_exec_ext
in '' $ac_executable_extensions; do
2426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2427 ac_cv_prog_AUTOCONF
="$ac_prog"
2428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 AUTOCONF
=$ac_cv_prog_AUTOCONF
2437 if test -n "$AUTOCONF"; then
2438 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2439 echo "${ECHO_T}$AUTOCONF" >&6
2441 echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6
2445 test -n "$AUTOCONF" && break
2447 test -n "$AUTOCONF" || AUTOCONF
="$MISSING autoconf"
2449 for ac_prog
in autoheader
2451 # Extract the first word of "$ac_prog", so it can be a program name with args.
2452 set dummy
$ac_prog; ac_word
=$2
2453 echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2455 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 if test -n "$AUTOHEADER"; then
2459 ac_cv_prog_AUTOHEADER
="$AUTOHEADER" # Let the user override the test.
2461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2465 test -z "$as_dir" && as_dir
=.
2466 for ac_exec_ext
in '' $ac_executable_extensions; do
2467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468 ac_cv_prog_AUTOHEADER
="$ac_prog"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 AUTOHEADER
=$ac_cv_prog_AUTOHEADER
2478 if test -n "$AUTOHEADER"; then
2479 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2480 echo "${ECHO_T}$AUTOHEADER" >&6
2482 echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6
2486 test -n "$AUTOHEADER" && break
2488 test -n "$AUTOHEADER" || AUTOHEADER
="$MISSING autoheader"
2491 # Figure out what compiler warnings we can enable.
2492 # See config/warnings.m4 for details.
2496 save_CFLAGS
="$CFLAGS"
2497 for option
in -W -Wall -Wwrite-strings -Wstrict-prototypes \
2498 -Wmissing-prototypes -Wold-style-definition \
2499 -Wmissing-format-attribute -Wcast-qual; do
2500 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2502 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2503 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2504 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 cat >conftest.
$ac_ext <<_ACEOF
2511 cat confdefs.h
>>conftest.
$ac_ext
2512 cat >>conftest.
$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2523 rm -f conftest.
$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525 (eval $ac_compile) 2>conftest.er1
2527 grep -v '^ *+' conftest.er1
>conftest.err
2529 cat conftest.err
>&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 { ac_try
='test -z "$ac_c_werror_flag"
2533 || test ! -s conftest.err'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; } &&
2539 { ac_try
='test -s conftest.$ac_objext'
2540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2545 eval "$as_acx_Woption=yes"
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.
$ac_ext >&5
2550 eval "$as_acx_Woption=no"
2552 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2555 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
2556 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
2557 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
2558 WARN_CFLAGS
="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
2562 CFLAGS
="$save_CFLAGS"
2565 if test "$GCC" = yes; then
2566 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
2567 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
2568 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 save_CFLAGS
="$CFLAGS"
2572 CFLAGS
="-pedantic -Wno-long-long"
2573 cat >conftest.
$ac_ext <<_ACEOF
2576 cat confdefs.h
>>conftest.
$ac_ext
2577 cat >>conftest.
$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2588 rm -f conftest.
$ac_objext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590 (eval $ac_compile) 2>conftest.er1
2592 grep -v '^ *+' conftest.er1
>conftest.err
2594 cat conftest.err
>&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } &&
2597 { ac_try
='test -z "$ac_c_werror_flag"
2598 || test ! -s conftest.err'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; } &&
2604 { ac_try
='test -s conftest.$ac_objext'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2610 acx_cv_prog_cc_pedantic__Wno_long_long
=yes
2612 echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.
$ac_ext >&5
2615 acx_cv_prog_cc_pedantic__Wno_long_long
=no
2617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2618 CFLAGS
="$save_CFLAGS"
2620 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
2621 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
2622 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
2623 WARN_PEDANTIC
="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
2631 # Only enable with --enable-werror-always until existing warnings are
2634 # Check whether --enable-werror-always or --disable-werror-always was given.
2635 if test "${enable_werror_always+set}" = set; then
2636 enableval
="$enable_werror_always"
2639 enable_werror_always
=no
2641 if test $enable_werror_always = yes; then
2642 WERROR
="$WERROR${WERROR:+ }-Werror"
2648 # Checks for header files.
2650 ac_cpp
='$CPP $CPPFLAGS'
2651 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2652 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2653 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2654 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2655 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2656 # On Suns, sometimes $CPP names a directory.
2657 if test -n "$CPP" && test -d "$CPP"; then
2660 if test -z "$CPP"; then
2661 if test "${ac_cv_prog_CPP+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 # Double quotes because CPP needs to be expanded
2665 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2668 for ac_c_preproc_warn_flag
in '' yes
2670 # Use a header file that comes with gcc, so configuring glibc
2671 # with a fresh cross-compiler works.
2672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2673 # <limits.h> exists even on freestanding compilers.
2674 # On the NeXT, cc -E runs the code through the compiler's parser,
2675 # not just through cpp. "Syntax error" is here to catch this case.
2676 cat >conftest.
$ac_ext <<_ACEOF
2679 cat confdefs.h
>>conftest.
$ac_ext
2680 cat >>conftest.
$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2683 # include <limits.h>
2685 # include <assert.h>
2689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2690 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2692 grep -v '^ *+' conftest.er1
>conftest.err
2694 cat conftest.err
>&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } >/dev
/null
; then
2697 if test -s conftest.err
; then
2698 ac_cpp_err
=$ac_c_preproc_warn_flag
2699 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2706 if test -z "$ac_cpp_err"; then
2709 echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.
$ac_ext >&5
2712 # Broken: fails on valid input.
2715 rm -f conftest.err conftest.
$ac_ext
2717 # OK, works on sane cases. Now check whether non-existent headers
2718 # can be detected and how.
2719 cat >conftest.
$ac_ext <<_ACEOF
2722 cat confdefs.h
>>conftest.
$ac_ext
2723 cat >>conftest.
$ac_ext <<_ACEOF
2724 /* end confdefs.h. */
2725 #include <ac_nonexistent.h>
2727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2728 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2730 grep -v '^ *+' conftest.er1
>conftest.err
2732 cat conftest.err
>&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } >/dev
/null
; then
2735 if test -s conftest.err
; then
2736 ac_cpp_err
=$ac_c_preproc_warn_flag
2737 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2744 if test -z "$ac_cpp_err"; then
2745 # Broken: success on invalid input.
2748 echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.
$ac_ext >&5
2751 # Passes both tests.
2755 rm -f conftest.err conftest.
$ac_ext
2758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2759 rm -f conftest.err conftest.
$ac_ext
2760 if $ac_preproc_ok; then
2772 echo "$as_me:$LINENO: result: $CPP" >&5
2773 echo "${ECHO_T}$CPP" >&6
2775 for ac_c_preproc_warn_flag
in '' yes
2777 # Use a header file that comes with gcc, so configuring glibc
2778 # with a fresh cross-compiler works.
2779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2780 # <limits.h> exists even on freestanding compilers.
2781 # On the NeXT, cc -E runs the code through the compiler's parser,
2782 # not just through cpp. "Syntax error" is here to catch this case.
2783 cat >conftest.
$ac_ext <<_ACEOF
2786 cat confdefs.h
>>conftest.
$ac_ext
2787 cat >>conftest.
$ac_ext <<_ACEOF
2788 /* end confdefs.h. */
2790 # include <limits.h>
2792 # include <assert.h>
2796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2797 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2799 grep -v '^ *+' conftest.er1
>conftest.err
2801 cat conftest.err
>&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } >/dev
/null
; then
2804 if test -s conftest.err
; then
2805 ac_cpp_err
=$ac_c_preproc_warn_flag
2806 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2813 if test -z "$ac_cpp_err"; then
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.
$ac_ext >&5
2819 # Broken: fails on valid input.
2822 rm -f conftest.err conftest.
$ac_ext
2824 # OK, works on sane cases. Now check whether non-existent headers
2825 # can be detected and how.
2826 cat >conftest.
$ac_ext <<_ACEOF
2829 cat confdefs.h
>>conftest.
$ac_ext
2830 cat >>conftest.
$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2832 #include <ac_nonexistent.h>
2834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2835 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2837 grep -v '^ *+' conftest.er1
>conftest.err
2839 cat conftest.err
>&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } >/dev
/null
; then
2842 if test -s conftest.err
; then
2843 ac_cpp_err
=$ac_c_preproc_warn_flag
2844 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2851 if test -z "$ac_cpp_err"; then
2852 # Broken: success on invalid input.
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.
$ac_ext >&5
2858 # Passes both tests.
2862 rm -f conftest.err conftest.
$ac_ext
2865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2866 rm -f conftest.err conftest.
$ac_ext
2867 if $ac_preproc_ok; then
2870 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2873 See \`config.log' for more details." >&2;}
2874 { (exit 1); exit 1; }; }
2878 ac_cpp
='$CPP $CPPFLAGS'
2879 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2884 echo "$as_me:$LINENO: checking for egrep" >&5
2885 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2886 if test "${ac_cv_prog_egrep+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2890 then ac_cv_prog_egrep
='grep -E'
2891 else ac_cv_prog_egrep
='egrep'
2894 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2895 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2896 EGREP
=$ac_cv_prog_egrep
2899 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2900 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2901 if test "${ac_cv_header_stdc+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 cat >conftest.
$ac_ext <<_ACEOF
2907 cat confdefs.h
>>conftest.
$ac_ext
2908 cat >>conftest.
$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2923 rm -f conftest.
$ac_objext
2924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2925 (eval $ac_compile) 2>conftest.er1
2927 grep -v '^ *+' conftest.er1
>conftest.err
2929 cat conftest.err
>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } &&
2932 { ac_try
='test -z "$ac_c_werror_flag"
2933 || test ! -s conftest.err'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; } &&
2939 { ac_try
='test -s conftest.$ac_objext'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 ac_cv_header_stdc
=yes
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.
$ac_ext >&5
2950 ac_cv_header_stdc
=no
2952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2954 if test $ac_cv_header_stdc = yes; then
2955 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2956 cat >conftest.
$ac_ext <<_ACEOF
2959 cat confdefs.h
>>conftest.
$ac_ext
2960 cat >>conftest.
$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2966 $EGREP "memchr" >/dev
/null
2>&1; then
2969 ac_cv_header_stdc
=no
2975 if test $ac_cv_header_stdc = yes; then
2976 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2977 cat >conftest.
$ac_ext <<_ACEOF
2980 cat confdefs.h
>>conftest.
$ac_ext
2981 cat >>conftest.
$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2987 $EGREP "free" >/dev
/null
2>&1; then
2990 ac_cv_header_stdc
=no
2996 if test $ac_cv_header_stdc = yes; then
2997 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2998 if test "$cross_compiling" = yes; then
3001 cat >conftest.
$ac_ext <<_ACEOF
3004 cat confdefs.h
>>conftest.
$ac_ext
3005 cat >>conftest.
$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3008 #if ((' ' & 0x0FF) == 0x020)
3009 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3010 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3012 # define ISLOWER(c) \
3013 (('a' <= (c) && (c) <= 'i') \
3014 || ('j' <= (c) && (c) <= 'r') \
3015 || ('s' <= (c) && (c) <= 'z'))
3016 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3019 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3024 for (i = 0; i < 256; i++)
3025 if (XOR (islower (i), ISLOWER (i))
3026 || toupper (i) != TOUPPER (i))
3031 rm -f conftest
$ac_exeext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3033 (eval $ac_link) 2>&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3044 echo "$as_me: program exited with status $ac_status" >&5
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.
$ac_ext >&5
3049 ac_cv_header_stdc
=no
3051 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3055 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3056 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3057 if test $ac_cv_header_stdc = yes; then
3059 cat >>confdefs.h
<<\_ACEOF
3060 #define STDC_HEADERS 1
3065 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3075 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3076 inttypes.h stdint.h unistd.h
3078 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3079 echo "$as_me:$LINENO: checking for $ac_header" >&5
3080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 cat >conftest.
$ac_ext <<_ACEOF
3087 cat confdefs.h
>>conftest.
$ac_ext
3088 cat >>conftest.
$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3090 $ac_includes_default
3092 #include <$ac_header>
3094 rm -f conftest.
$ac_objext
3095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3096 (eval $ac_compile) 2>conftest.er1
3098 grep -v '^ *+' conftest.er1
>conftest.err
3100 cat conftest.err
>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try
='test -z "$ac_c_werror_flag"
3104 || test ! -s conftest.err'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; } &&
3110 { ac_try
='test -s conftest.$ac_objext'
3111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 eval "$as_ac_Header=yes"
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.
$ac_ext >&5
3121 eval "$as_ac_Header=no"
3123 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3128 cat >>confdefs.h
<<_ACEOF
3129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3141 for ac_header
in ctype.h stddef.h string.h stdio.h
3143 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3145 echo "$as_me:$LINENO: checking for $ac_header" >&5
3146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3153 # Is the header compilable?
3154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3156 cat >conftest.
$ac_ext <<_ACEOF
3159 cat confdefs.h
>>conftest.
$ac_ext
3160 cat >>conftest.
$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3162 $ac_includes_default
3163 #include <$ac_header>
3165 rm -f conftest.
$ac_objext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3167 (eval $ac_compile) 2>conftest.er1
3169 grep -v '^ *+' conftest.er1
>conftest.err
3171 cat conftest.err
>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try
='test -z "$ac_c_werror_flag"
3175 || test ! -s conftest.err'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; } &&
3181 { ac_try
='test -s conftest.$ac_objext'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; }; then
3187 ac_header_compiler
=yes
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.
$ac_ext >&5
3192 ac_header_compiler
=no
3194 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3196 echo "${ECHO_T}$ac_header_compiler" >&6
3198 # Is the header present?
3199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3201 cat >conftest.
$ac_ext <<_ACEOF
3204 cat confdefs.h
>>conftest.
$ac_ext
3205 cat >>conftest.
$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3207 #include <$ac_header>
3209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3210 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3212 grep -v '^ *+' conftest.er1
>conftest.err
3214 cat conftest.err
>&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } >/dev
/null
; then
3217 if test -s conftest.err
; then
3218 ac_cpp_err
=$ac_c_preproc_warn_flag
3219 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3226 if test -z "$ac_cpp_err"; then
3227 ac_header_preproc
=yes
3229 echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.
$ac_ext >&5
3232 ac_header_preproc
=no
3234 rm -f conftest.err conftest.
$ac_ext
3235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3236 echo "${ECHO_T}$ac_header_preproc" >&6
3238 # So? What about this header?
3239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3245 ac_header_preproc
=yes
3248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3262 ## ----------------------------------- ##
3263 ## Report this to gcc-bugs@gcc.gnu.org ##
3264 ## ----------------------------------- ##
3267 sed "s/^/$as_me: WARNING: /" >&2
3270 echo "$as_me:$LINENO: checking for $ac_header" >&5
3271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 eval "$as_ac_Header=\$ac_header_preproc"
3277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3282 cat >>confdefs.h
<<_ACEOF
3283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3292 inttype_headers
=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
3294 acx_cv_header_stdint
=stddef.h
3295 acx_cv_header_stdint_kind
="(already complete)"
3296 for i
in stdint.h
$inttype_headers; do
3297 unset ac_cv_type_uintptr_t
3298 unset ac_cv_type_uintmax_t
3299 unset ac_cv_type_int_least32_t
3300 unset ac_cv_type_int_fast32_t
3301 unset ac_cv_type_uint64_t
3302 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
3303 echo "$as_me:$LINENO: checking for uintmax_t" >&5
3304 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
3305 if test "${ac_cv_type_uintmax_t+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 cat >conftest.
$ac_ext <<_ACEOF
3311 cat confdefs.h
>>conftest.
$ac_ext
3312 cat >>conftest.
$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3314 #include <sys/types.h>
3320 if ((uintmax_t *) 0)
3322 if (sizeof (uintmax_t))
3328 rm -f conftest.
$ac_objext
3329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3330 (eval $ac_compile) 2>conftest.er1
3332 grep -v '^ *+' conftest.er1
>conftest.err
3334 cat conftest.err
>&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } &&
3337 { ac_try
='test -z "$ac_c_werror_flag"
3338 || test ! -s conftest.err'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; } &&
3344 { ac_try
='test -s conftest.$ac_objext'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 ac_cv_type_uintmax_t
=yes
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.
$ac_ext >&5
3355 ac_cv_type_uintmax_t
=no
3357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3359 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
3360 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
3361 if test $ac_cv_type_uintmax_t = yes; then
3362 acx_cv_header_stdint
=$i
3367 echo "$as_me:$LINENO: checking for uintptr_t" >&5
3368 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3369 if test "${ac_cv_type_uintptr_t+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 cat >conftest.
$ac_ext <<_ACEOF
3375 cat confdefs.h
>>conftest.
$ac_ext
3376 cat >>conftest.
$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3378 #include <sys/types.h>
3384 if ((uintptr_t *) 0)
3386 if (sizeof (uintptr_t))
3392 rm -f conftest.
$ac_objext
3393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3394 (eval $ac_compile) 2>conftest.er1
3396 grep -v '^ *+' conftest.er1
>conftest.err
3398 cat conftest.err
>&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } &&
3401 { ac_try
='test -z "$ac_c_werror_flag"
3402 || test ! -s conftest.err'
3403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; } &&
3408 { ac_try
='test -s conftest.$ac_objext'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; }; then
3414 ac_cv_type_uintptr_t
=yes
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.
$ac_ext >&5
3419 ac_cv_type_uintptr_t
=no
3421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3423 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3424 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3425 if test $ac_cv_type_uintptr_t = yes; then
3428 acx_cv_header_stdint_kind
="(mostly complete)"
3431 echo "$as_me:$LINENO: checking for int_least32_t" >&5
3432 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
3433 if test "${ac_cv_type_int_least32_t+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 cat >conftest.
$ac_ext <<_ACEOF
3439 cat confdefs.h
>>conftest.
$ac_ext
3440 cat >>conftest.
$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #include <sys/types.h>
3448 if ((int_least32_t *) 0)
3450 if (sizeof (int_least32_t))
3456 rm -f conftest.
$ac_objext
3457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3458 (eval $ac_compile) 2>conftest.er1
3460 grep -v '^ *+' conftest.er1
>conftest.err
3462 cat conftest.err
>&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } &&
3465 { ac_try
='test -z "$ac_c_werror_flag"
3466 || test ! -s conftest.err'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; } &&
3472 { ac_try
='test -s conftest.$ac_objext'
3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; }; then
3478 ac_cv_type_int_least32_t
=yes
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.
$ac_ext >&5
3483 ac_cv_type_int_least32_t
=no
3485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3487 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
3488 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
3489 if test $ac_cv_type_int_least32_t = yes; then
3492 acx_cv_header_stdint_kind
="(mostly complete)"
3495 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
3496 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
3497 if test "${ac_cv_type_int_fast32_t+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 cat >conftest.
$ac_ext <<_ACEOF
3503 cat confdefs.h
>>conftest.
$ac_ext
3504 cat >>conftest.
$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 #include <sys/types.h>
3512 if ((int_fast32_t *) 0)
3514 if (sizeof (int_fast32_t))
3520 rm -f conftest.
$ac_objext
3521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3522 (eval $ac_compile) 2>conftest.er1
3524 grep -v '^ *+' conftest.er1
>conftest.err
3526 cat conftest.err
>&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } &&
3529 { ac_try
='test -z "$ac_c_werror_flag"
3530 || test ! -s conftest.err'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try
='test -s conftest.$ac_objext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542 ac_cv_type_int_fast32_t
=yes
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.
$ac_ext >&5
3547 ac_cv_type_int_fast32_t
=no
3549 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3551 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
3552 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
3553 if test $ac_cv_type_int_fast32_t = yes; then
3556 acx_cv_header_stdint_kind
="(mostly complete)"
3559 echo "$as_me:$LINENO: checking for uint64_t" >&5
3560 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3561 if test "${ac_cv_type_uint64_t+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 cat >conftest.
$ac_ext <<_ACEOF
3567 cat confdefs.h
>>conftest.
$ac_ext
3568 cat >>conftest.
$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570 #include <sys/types.h>
3578 if (sizeof (uint64_t))
3584 rm -f conftest.
$ac_objext
3585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3586 (eval $ac_compile) 2>conftest.er1
3588 grep -v '^ *+' conftest.er1
>conftest.err
3590 cat conftest.err
>&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } &&
3593 { ac_try
='test -z "$ac_c_werror_flag"
3594 || test ! -s conftest.err'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; } &&
3600 { ac_try
='test -s conftest.$ac_objext'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3606 ac_cv_type_uint64_t
=yes
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.
$ac_ext >&5
3611 ac_cv_type_uint64_t
=no
3613 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3615 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
3616 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3617 if test $ac_cv_type_uint64_t = yes; then
3620 acx_cv_header_stdint_kind
="(lacks uint64_t)"
3625 if test "$acx_cv_header_stdint" = stddef.h
; then
3626 acx_cv_header_stdint_kind
="(lacks uintmax_t)"
3627 for i
in stdint.h
$inttype_headers; do
3628 unset ac_cv_type_uintptr_t
3629 unset ac_cv_type_uint32_t
3630 unset ac_cv_type_uint64_t
3631 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
3632 echo "$as_me:$LINENO: checking for uint32_t" >&5
3633 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3634 if test "${ac_cv_type_uint32_t+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 cat >conftest.
$ac_ext <<_ACEOF
3640 cat confdefs.h
>>conftest.
$ac_ext
3641 cat >>conftest.
$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643 #include <sys/types.h>
3651 if (sizeof (uint32_t))
3657 rm -f conftest.
$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3661 grep -v '^ *+' conftest.er1
>conftest.err
3663 cat conftest.err
>&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try
='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try
='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_cv_type_uint32_t
=yes
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.
$ac_ext >&5
3684 ac_cv_type_uint32_t
=no
3686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3688 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
3689 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3690 if test $ac_cv_type_uint32_t = yes; then
3691 acx_cv_header_stdint
=$i
3696 echo "$as_me:$LINENO: checking for uint64_t" >&5
3697 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3698 if test "${ac_cv_type_uint64_t+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 cat >conftest.
$ac_ext <<_ACEOF
3704 cat confdefs.h
>>conftest.
$ac_ext
3705 cat >>conftest.
$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3707 #include <sys/types.h>
3715 if (sizeof (uint64_t))
3721 rm -f conftest.
$ac_objext
3722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3723 (eval $ac_compile) 2>conftest.er1
3725 grep -v '^ *+' conftest.er1
>conftest.err
3727 cat conftest.err
>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } &&
3730 { ac_try
='test -z "$ac_c_werror_flag"
3731 || test ! -s conftest.err'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; } &&
3737 { ac_try
='test -s conftest.$ac_objext'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3743 ac_cv_type_uint64_t
=yes
3745 echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.
$ac_ext >&5
3748 ac_cv_type_uint64_t
=no
3750 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3752 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
3753 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3755 echo "$as_me:$LINENO: checking for uintptr_t" >&5
3756 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
3757 if test "${ac_cv_type_uintptr_t+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 cat >conftest.
$ac_ext <<_ACEOF
3763 cat confdefs.h
>>conftest.
$ac_ext
3764 cat >>conftest.
$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3766 #include <sys/types.h>
3772 if ((uintptr_t *) 0)
3774 if (sizeof (uintptr_t))
3780 rm -f conftest.
$ac_objext
3781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3782 (eval $ac_compile) 2>conftest.er1
3784 grep -v '^ *+' conftest.er1
>conftest.err
3786 cat conftest.err
>&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); } &&
3789 { ac_try
='test -z "$ac_c_werror_flag"
3790 || test ! -s conftest.err'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; } &&
3796 { ac_try
='test -s conftest.$ac_objext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 ac_cv_type_uintptr_t
=yes
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.
$ac_ext >&5
3807 ac_cv_type_uintptr_t
=no
3809 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3811 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
3812 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
3817 if test "$acx_cv_header_stdint" = stddef.h
; then
3818 acx_cv_header_stdint_kind
="(u_intXX_t style)"
3819 for i
in sys
/types.h
$inttype_headers; do
3820 unset ac_cv_type_u_int32_t
3821 unset ac_cv_type_u_int64_t
3822 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
3823 echo "$as_me:$LINENO: checking for u_int32_t" >&5
3824 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3825 if test "${ac_cv_type_u_int32_t+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 cat >conftest.
$ac_ext <<_ACEOF
3831 cat confdefs.h
>>conftest.
$ac_ext
3832 cat >>conftest.
$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834 #include <sys/types.h>
3840 if ((u_int32_t *) 0)
3842 if (sizeof (u_int32_t))
3848 rm -f conftest.
$ac_objext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3850 (eval $ac_compile) 2>conftest.er1
3852 grep -v '^ *+' conftest.er1
>conftest.err
3854 cat conftest.err
>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
3857 { ac_try
='test -z "$ac_c_werror_flag"
3858 || test ! -s conftest.err'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; } &&
3864 { ac_try
='test -s conftest.$ac_objext'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3870 ac_cv_type_u_int32_t
=yes
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.
$ac_ext >&5
3875 ac_cv_type_u_int32_t
=no
3877 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3879 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
3880 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3881 if test $ac_cv_type_u_int32_t = yes; then
3882 acx_cv_header_stdint
=$i
3887 echo "$as_me:$LINENO: checking for u_int64_t" >&5
3888 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3889 if test "${ac_cv_type_u_int64_t+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 cat >conftest.
$ac_ext <<_ACEOF
3895 cat confdefs.h
>>conftest.
$ac_ext
3896 cat >>conftest.
$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 #include <sys/types.h>
3904 if ((u_int64_t *) 0)
3906 if (sizeof (u_int64_t))
3912 rm -f conftest.
$ac_objext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3914 (eval $ac_compile) 2>conftest.er1
3916 grep -v '^ *+' conftest.er1
>conftest.err
3918 cat conftest.err
>&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try
='test -z "$ac_c_werror_flag"
3922 || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try
='test -s conftest.$ac_objext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_cv_type_u_int64_t
=yes
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.
$ac_ext >&5
3939 ac_cv_type_u_int64_t
=no
3941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3943 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
3944 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3949 if test "$acx_cv_header_stdint" = stddef.h
; then
3950 acx_cv_header_stdint_kind
="(using manual detection)"
3953 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t
=no
3954 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t
=no
3955 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t
=no
3956 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t
=no
3957 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t
=no
3959 # ----------------- Summarize what we found so far
3961 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
3962 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
3964 case `$as_basename gstdint.h ||
3965 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
3966 Xgstdint.h : 'X\(//\)$' \| \
3967 Xgstdint.h : 'X\(/\)$' \| \
3968 . : '\(.\)' 2>/dev/null ||
3970 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3971 /^X\/\(\/\/\)$/{ s//\1/; q; }
3972 /^X\/\(\/\).*/{ s//\1/; q; }
3974 stdint.h
) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
3975 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
3976 inttypes.h
) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
3977 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
3981 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
3982 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
3984 # ----------------- done included file, check C basic types --------
3986 # Lacking an uintptr_t? Test size of void *
3987 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
3988 stddef.h
:* |
*:no
) echo "$as_me:$LINENO: checking for void *" >&5
3989 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3990 if test "${ac_cv_type_void_p+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 cat >conftest.
$ac_ext <<_ACEOF
3996 cat confdefs.h
>>conftest.
$ac_ext
3997 cat >>conftest.
$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 $ac_includes_default
4005 if (sizeof (void *))
4011 rm -f conftest.
$ac_objext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>conftest.er1
4015 grep -v '^ *+' conftest.er1
>conftest.err
4017 cat conftest.err
>&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } &&
4020 { ac_try
='test -z "$ac_c_werror_flag"
4021 || test ! -s conftest.err'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try
='test -s conftest.$ac_objext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4033 ac_cv_type_void_p
=yes
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.
$ac_ext >&5
4038 ac_cv_type_void_p
=no
4040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4042 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4043 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4045 echo "$as_me:$LINENO: checking size of void *" >&5
4046 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4047 if test "${ac_cv_sizeof_void_p+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 if test "$ac_cv_type_void_p" = yes; then
4051 # The cast to unsigned long works around a bug in the HP C Compiler
4052 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4053 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4054 # This bug is HP SR number 8606223364.
4055 if test "$cross_compiling" = yes; then
4056 # Depending upon the size, compute the lo and hi bounds.
4057 cat >conftest.
$ac_ext <<_ACEOF
4060 cat confdefs.h
>>conftest.
$ac_ext
4061 cat >>conftest.
$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 $ac_includes_default
4067 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4074 rm -f conftest.
$ac_objext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>conftest.er1
4078 grep -v '^ *+' conftest.er1
>conftest.err
4080 cat conftest.err
>&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try
='test -z "$ac_c_werror_flag"
4084 || test ! -s conftest.err'
4085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; } &&
4090 { ac_try
='test -s conftest.$ac_objext'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
4098 cat >conftest.
$ac_ext <<_ACEOF
4101 cat confdefs.h
>>conftest.
$ac_ext
4102 cat >>conftest.
$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 $ac_includes_default
4108 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4115 rm -f conftest.
$ac_objext
4116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>conftest.er1
4119 grep -v '^ *+' conftest.er1
>conftest.err
4121 cat conftest.err
>&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try
='test -z "$ac_c_werror_flag"
4125 || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try
='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_hi
=$ac_mid; break
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.
$ac_ext >&5
4142 ac_lo
=`expr $ac_mid + 1`
4143 if test $ac_lo -le $ac_mid; then
4147 ac_mid
=`expr 2 '*' $ac_mid + 1`
4149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.
$ac_ext >&5
4155 cat >conftest.
$ac_ext <<_ACEOF
4158 cat confdefs.h
>>conftest.
$ac_ext
4159 cat >>conftest.
$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 $ac_includes_default
4165 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4172 rm -f conftest.
$ac_objext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4174 (eval $ac_compile) 2>conftest.er1
4176 grep -v '^ *+' conftest.er1
>conftest.err
4178 cat conftest.err
>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try
='test -z "$ac_c_werror_flag"
4182 || test ! -s conftest.err'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; } &&
4188 { ac_try
='test -s conftest.$ac_objext'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4196 cat >conftest.
$ac_ext <<_ACEOF
4199 cat confdefs.h
>>conftest.
$ac_ext
4200 cat >>conftest.
$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 $ac_includes_default
4206 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4213 rm -f conftest.
$ac_objext
4214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4215 (eval $ac_compile) 2>conftest.er1
4217 grep -v '^ *+' conftest.er1
>conftest.err
4219 cat conftest.err
>&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try
='test -z "$ac_c_werror_flag"
4223 || test ! -s conftest.err'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try
='test -s conftest.$ac_objext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 ac_lo
=$ac_mid; break
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.
$ac_ext >&5
4240 ac_hi
=`expr '(' $ac_mid ')' - 1`
4241 if test $ac_mid -le $ac_hi; then
4245 ac_mid
=`expr 2 '*' $ac_mid`
4247 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.
$ac_ext >&5
4255 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4257 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4258 # Binary search between lo and hi bounds.
4259 while test "x$ac_lo" != "x$ac_hi"; do
4260 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4261 cat >conftest.
$ac_ext <<_ACEOF
4264 cat confdefs.h
>>conftest.
$ac_ext
4265 cat >>conftest.
$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 $ac_includes_default
4271 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4278 rm -f conftest.
$ac_objext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280 (eval $ac_compile) 2>conftest.er1
4282 grep -v '^ *+' conftest.er1
>conftest.err
4284 cat conftest.err
>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try
='test -z "$ac_c_werror_flag"
4288 || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try
='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.
$ac_ext >&5
4305 ac_lo
=`expr '(' $ac_mid ')' + 1`
4307 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4310 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
4311 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4312 See \`config.log' for more details." >&5
4313 echo "$as_me: error: cannot compute sizeof (void *), 77
4314 See \`config.log' for more details." >&2;}
4315 { (exit 1); exit 1; }; } ;;
4318 if test "$cross_compiling" = yes; then
4319 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4320 See \`config.log' for more details." >&5
4321 echo "$as_me: error: cannot run test program while cross compiling
4322 See \`config.log' for more details." >&2;}
4323 { (exit 1); exit 1; }; }
4325 cat >conftest.
$ac_ext <<_ACEOF
4328 cat confdefs.h
>>conftest.
$ac_ext
4329 cat >>conftest.
$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 $ac_includes_default
4332 long longval () { return (long) (sizeof (void *)); }
4333 unsigned long ulongval () { return (long) (sizeof (void *)); }
4340 FILE *f = fopen ("conftest.val", "w");
4343 if (((long) (sizeof (void *))) < 0)
4345 long i = longval ();
4346 if (i != ((long) (sizeof (void *))))
4348 fprintf (f, "%ld\n", i);
4352 unsigned long i = ulongval ();
4353 if (i != ((long) (sizeof (void *))))
4355 fprintf (f, "%lu\n", i);
4357 exit (ferror (f) || fclose (f) != 0);
4363 rm -f conftest
$ac_exeext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4365 (eval $ac_link) 2>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 ac_cv_sizeof_void_p
=`cat conftest.val`
4376 echo "$as_me: program exited with status $ac_status" >&5
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.
$ac_ext >&5
4381 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4382 See \`config.log' for more details." >&5
4383 echo "$as_me: error: cannot compute sizeof (void *), 77
4384 See \`config.log' for more details." >&2;}
4385 { (exit 1); exit 1; }; }
4387 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4392 ac_cv_sizeof_void_p
=0
4395 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4396 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4397 cat >>confdefs.h
<<_ACEOF
4398 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4404 # Lacking an uint64_t? Test size of long
4405 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
4406 stddef.h
:*:* |
*:no
:no
) echo "$as_me:$LINENO: checking for long" >&5
4407 echo $ECHO_N "checking for long... $ECHO_C" >&6
4408 if test "${ac_cv_type_long+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 cat >conftest.
$ac_ext <<_ACEOF
4414 cat confdefs.h
>>conftest.
$ac_ext
4415 cat >>conftest.
$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4417 $ac_includes_default
4429 rm -f conftest.
$ac_objext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>conftest.er1
4433 grep -v '^ *+' conftest.er1
>conftest.err
4435 cat conftest.err
>&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } &&
4438 { ac_try
='test -z "$ac_c_werror_flag"
4439 || test ! -s conftest.err'
4440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); }; } &&
4445 { ac_try
='test -s conftest.$ac_objext'
4446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; }; then
4453 echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.
$ac_ext >&5
4458 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4460 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4461 echo "${ECHO_T}$ac_cv_type_long" >&6
4463 echo "$as_me:$LINENO: checking size of long" >&5
4464 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4465 if test "${ac_cv_sizeof_long+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 if test "$ac_cv_type_long" = yes; then
4469 # The cast to unsigned long works around a bug in the HP C Compiler
4470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4472 # This bug is HP SR number 8606223364.
4473 if test "$cross_compiling" = yes; then
4474 # Depending upon the size, compute the lo and hi bounds.
4475 cat >conftest.
$ac_ext <<_ACEOF
4478 cat confdefs.h
>>conftest.
$ac_ext
4479 cat >>conftest.
$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4481 $ac_includes_default
4485 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4492 rm -f conftest.
$ac_objext
4493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4494 (eval $ac_compile) 2>conftest.er1
4496 grep -v '^ *+' conftest.er1
>conftest.err
4498 cat conftest.err
>&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } &&
4501 { ac_try
='test -z "$ac_c_werror_flag"
4502 || test ! -s conftest.err'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; } &&
4508 { ac_try
='test -s conftest.$ac_objext'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4516 cat >conftest.
$ac_ext <<_ACEOF
4519 cat confdefs.h
>>conftest.
$ac_ext
4520 cat >>conftest.
$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4522 $ac_includes_default
4526 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4533 rm -f conftest.
$ac_objext
4534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4535 (eval $ac_compile) 2>conftest.er1
4537 grep -v '^ *+' conftest.er1
>conftest.err
4539 cat conftest.err
>&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } &&
4542 { ac_try
='test -z "$ac_c_werror_flag"
4543 || test ! -s conftest.err'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; } &&
4549 { ac_try
='test -s conftest.$ac_objext'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4555 ac_hi
=$ac_mid; break
4557 echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.
$ac_ext >&5
4560 ac_lo
=`expr $ac_mid + 1`
4561 if test $ac_lo -le $ac_mid; then
4565 ac_mid
=`expr 2 '*' $ac_mid + 1`
4567 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4570 echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.
$ac_ext >&5
4573 cat >conftest.
$ac_ext <<_ACEOF
4576 cat confdefs.h
>>conftest.
$ac_ext
4577 cat >>conftest.
$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 $ac_includes_default
4583 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4590 rm -f conftest.
$ac_objext
4591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4592 (eval $ac_compile) 2>conftest.er1
4594 grep -v '^ *+' conftest.er1
>conftest.err
4596 cat conftest.err
>&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try
='test -z "$ac_c_werror_flag"
4600 || test ! -s conftest.err'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; } &&
4606 { ac_try
='test -s conftest.$ac_objext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4614 cat >conftest.
$ac_ext <<_ACEOF
4617 cat confdefs.h
>>conftest.
$ac_ext
4618 cat >>conftest.
$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 $ac_includes_default
4624 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4631 rm -f conftest.
$ac_objext
4632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>conftest.er1
4635 grep -v '^ *+' conftest.er1
>conftest.err
4637 cat conftest.err
>&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try
='test -z "$ac_c_werror_flag"
4641 || test ! -s conftest.err'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; } &&
4647 { ac_try
='test -s conftest.$ac_objext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4653 ac_lo
=$ac_mid; break
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.
$ac_ext >&5
4658 ac_hi
=`expr '(' $ac_mid ')' - 1`
4659 if test $ac_mid -le $ac_hi; then
4663 ac_mid
=`expr 2 '*' $ac_mid`
4665 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4668 echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.
$ac_ext >&5
4673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4676 # Binary search between lo and hi bounds.
4677 while test "x$ac_lo" != "x$ac_hi"; do
4678 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4679 cat >conftest.
$ac_ext <<_ACEOF
4682 cat confdefs.h
>>conftest.
$ac_ext
4683 cat >>conftest.
$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4685 $ac_includes_default
4689 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4696 rm -f conftest.
$ac_objext
4697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698 (eval $ac_compile) 2>conftest.er1
4700 grep -v '^ *+' conftest.er1
>conftest.err
4702 cat conftest.err
>&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } &&
4705 { ac_try
='test -z "$ac_c_werror_flag"
4706 || test ! -s conftest.err'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; } &&
4712 { ac_try
='test -s conftest.$ac_objext'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.
$ac_ext >&5
4723 ac_lo
=`expr '(' $ac_mid ')' + 1`
4725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4728 ?
*) ac_cv_sizeof_long
=$ac_lo;;
4729 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4730 See \`config.log' for more details." >&5
4731 echo "$as_me: error: cannot compute sizeof (long), 77
4732 See \`config.log' for more details." >&2;}
4733 { (exit 1); exit 1; }; } ;;
4736 if test "$cross_compiling" = yes; then
4737 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4738 See \`config.log' for more details." >&5
4739 echo "$as_me: error: cannot run test program while cross compiling
4740 See \`config.log' for more details." >&2;}
4741 { (exit 1); exit 1; }; }
4743 cat >conftest.
$ac_ext <<_ACEOF
4746 cat confdefs.h
>>conftest.
$ac_ext
4747 cat >>conftest.
$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 $ac_includes_default
4750 long longval () { return (long) (sizeof (long)); }
4751 unsigned long ulongval () { return (long) (sizeof (long)); }
4758 FILE *f = fopen ("conftest.val", "w");
4761 if (((long) (sizeof (long))) < 0)
4763 long i = longval ();
4764 if (i != ((long) (sizeof (long))))
4766 fprintf (f, "%ld\n", i);
4770 unsigned long i = ulongval ();
4771 if (i != ((long) (sizeof (long))))
4773 fprintf (f, "%lu\n", i);
4775 exit (ferror (f) || fclose (f) != 0);
4781 rm -f conftest
$ac_exeext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4783 (eval $ac_link) 2>&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4792 ac_cv_sizeof_long
=`cat conftest.val`
4794 echo "$as_me: program exited with status $ac_status" >&5
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.
$ac_ext >&5
4799 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4800 See \`config.log' for more details." >&5
4801 echo "$as_me: error: cannot compute sizeof (long), 77
4802 See \`config.log' for more details." >&2;}
4803 { (exit 1); exit 1; }; }
4805 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4813 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4814 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4815 cat >>confdefs.h
<<_ACEOF
4816 #define SIZEOF_LONG $ac_cv_sizeof_long
4822 if test $acx_cv_header_stdint = stddef.h
; then
4823 # Lacking a good header? Test size of everything and deduce all types.
4824 echo "$as_me:$LINENO: checking for int" >&5
4825 echo $ECHO_N "checking for int... $ECHO_C" >&6
4826 if test "${ac_cv_type_int+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 cat >conftest.
$ac_ext <<_ACEOF
4832 cat confdefs.h
>>conftest.
$ac_ext
4833 cat >>conftest.
$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4835 $ac_includes_default
4847 rm -f conftest.
$ac_objext
4848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4849 (eval $ac_compile) 2>conftest.er1
4851 grep -v '^ *+' conftest.er1
>conftest.err
4853 cat conftest.err
>&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } &&
4856 { ac_try
='test -z "$ac_c_werror_flag"
4857 || test ! -s conftest.err'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; } &&
4863 { ac_try
='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.
$ac_ext >&5
4876 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4878 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4879 echo "${ECHO_T}$ac_cv_type_int" >&6
4881 echo "$as_me:$LINENO: checking size of int" >&5
4882 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4883 if test "${ac_cv_sizeof_int+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 if test "$ac_cv_type_int" = yes; then
4887 # The cast to unsigned long works around a bug in the HP C Compiler
4888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4890 # This bug is HP SR number 8606223364.
4891 if test "$cross_compiling" = yes; then
4892 # Depending upon the size, compute the lo and hi bounds.
4893 cat >conftest.
$ac_ext <<_ACEOF
4896 cat confdefs.h
>>conftest.
$ac_ext
4897 cat >>conftest.
$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4899 $ac_includes_default
4903 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4910 rm -f conftest.
$ac_objext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912 (eval $ac_compile) 2>conftest.er1
4914 grep -v '^ *+' conftest.er1
>conftest.err
4916 cat conftest.err
>&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } &&
4919 { ac_try
='test -z "$ac_c_werror_flag"
4920 || test ! -s conftest.err'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; } &&
4926 { ac_try
='test -s conftest.$ac_objext'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4934 cat >conftest.
$ac_ext <<_ACEOF
4937 cat confdefs.h
>>conftest.
$ac_ext
4938 cat >>conftest.
$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 $ac_includes_default
4944 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4951 rm -f conftest.
$ac_objext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953 (eval $ac_compile) 2>conftest.er1
4955 grep -v '^ *+' conftest.er1
>conftest.err
4957 cat conftest.err
>&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } &&
4960 { ac_try
='test -z "$ac_c_werror_flag"
4961 || test ! -s conftest.err'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; } &&
4967 { ac_try
='test -s conftest.$ac_objext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4973 ac_hi
=$ac_mid; break
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.
$ac_ext >&5
4978 ac_lo
=`expr $ac_mid + 1`
4979 if test $ac_lo -le $ac_mid; then
4983 ac_mid
=`expr 2 '*' $ac_mid + 1`
4985 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.
$ac_ext >&5
4991 cat >conftest.
$ac_ext <<_ACEOF
4994 cat confdefs.h
>>conftest.
$ac_ext
4995 cat >>conftest.
$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4997 $ac_includes_default
5001 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5008 rm -f conftest.
$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>conftest.er1
5012 grep -v '^ *+' conftest.er1
>conftest.err
5014 cat conftest.err
>&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try
='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try
='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5032 cat >conftest.
$ac_ext <<_ACEOF
5035 cat confdefs.h
>>conftest.
$ac_ext
5036 cat >>conftest.
$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5038 $ac_includes_default
5042 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5049 rm -f conftest.
$ac_objext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051 (eval $ac_compile) 2>conftest.er1
5053 grep -v '^ *+' conftest.er1
>conftest.err
5055 cat conftest.err
>&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } &&
5058 { ac_try
='test -z "$ac_c_werror_flag"
5059 || test ! -s conftest.err'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; } &&
5065 { ac_try
='test -s conftest.$ac_objext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 ac_lo
=$ac_mid; break
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.
$ac_ext >&5
5076 ac_hi
=`expr '(' $ac_mid ')' - 1`
5077 if test $ac_mid -le $ac_hi; then
5081 ac_mid
=`expr 2 '*' $ac_mid`
5083 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.
$ac_ext >&5
5091 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5093 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5094 # Binary search between lo and hi bounds.
5095 while test "x$ac_lo" != "x$ac_hi"; do
5096 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5097 cat >conftest.
$ac_ext <<_ACEOF
5100 cat confdefs.h
>>conftest.
$ac_ext
5101 cat >>conftest.
$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 $ac_includes_default
5107 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5114 rm -f conftest.
$ac_objext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5116 (eval $ac_compile) 2>conftest.er1
5118 grep -v '^ *+' conftest.er1
>conftest.err
5120 cat conftest.err
>&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try
='test -z "$ac_c_werror_flag"
5124 || test ! -s conftest.err'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; } &&
5130 { ac_try
='test -s conftest.$ac_objext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.
$ac_ext >&5
5141 ac_lo
=`expr '(' $ac_mid ')' + 1`
5143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5146 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5148 See \`config.log' for more details." >&5
5149 echo "$as_me: error: cannot compute sizeof (int), 77
5150 See \`config.log' for more details." >&2;}
5151 { (exit 1); exit 1; }; } ;;
5154 if test "$cross_compiling" = yes; then
5155 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5156 See \`config.log' for more details." >&5
5157 echo "$as_me: error: cannot run test program while cross compiling
5158 See \`config.log' for more details." >&2;}
5159 { (exit 1); exit 1; }; }
5161 cat >conftest.
$ac_ext <<_ACEOF
5164 cat confdefs.h
>>conftest.
$ac_ext
5165 cat >>conftest.
$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5167 $ac_includes_default
5168 long longval () { return (long) (sizeof (int)); }
5169 unsigned long ulongval () { return (long) (sizeof (int)); }
5176 FILE *f = fopen ("conftest.val", "w");
5179 if (((long) (sizeof (int))) < 0)
5181 long i = longval ();
5182 if (i != ((long) (sizeof (int))))
5184 fprintf (f, "%ld\n", i);
5188 unsigned long i = ulongval ();
5189 if (i != ((long) (sizeof (int))))
5191 fprintf (f, "%lu\n", i);
5193 exit (ferror (f) || fclose (f) != 0);
5199 rm -f conftest
$ac_exeext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5201 (eval $ac_link) 2>&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; }; then
5210 ac_cv_sizeof_int
=`cat conftest.val`
5212 echo "$as_me: program exited with status $ac_status" >&5
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.
$ac_ext >&5
5217 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5218 See \`config.log' for more details." >&5
5219 echo "$as_me: error: cannot compute sizeof (int), 77
5220 See \`config.log' for more details." >&2;}
5221 { (exit 1); exit 1; }; }
5223 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5231 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5232 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5233 cat >>confdefs.h
<<_ACEOF
5234 #define SIZEOF_INT $ac_cv_sizeof_int
5238 echo "$as_me:$LINENO: checking for short" >&5
5239 echo $ECHO_N "checking for short... $ECHO_C" >&6
5240 if test "${ac_cv_type_short+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 cat >conftest.
$ac_ext <<_ACEOF
5246 cat confdefs.h
>>conftest.
$ac_ext
5247 cat >>conftest.
$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5249 $ac_includes_default
5261 rm -f conftest.
$ac_objext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263 (eval $ac_compile) 2>conftest.er1
5265 grep -v '^ *+' conftest.er1
>conftest.err
5267 cat conftest.err
>&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try
='test -z "$ac_c_werror_flag"
5271 || test ! -s conftest.err'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; } &&
5277 { ac_try
='test -s conftest.$ac_objext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_cv_type_short
=yes
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.
$ac_ext >&5
5290 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5292 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5293 echo "${ECHO_T}$ac_cv_type_short" >&6
5295 echo "$as_me:$LINENO: checking size of short" >&5
5296 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5297 if test "${ac_cv_sizeof_short+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 if test "$ac_cv_type_short" = yes; then
5301 # The cast to unsigned long works around a bug in the HP C Compiler
5302 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5303 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5304 # This bug is HP SR number 8606223364.
5305 if test "$cross_compiling" = yes; then
5306 # Depending upon the size, compute the lo and hi bounds.
5307 cat >conftest.
$ac_ext <<_ACEOF
5310 cat confdefs.h
>>conftest.
$ac_ext
5311 cat >>conftest.
$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 $ac_includes_default
5317 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5324 rm -f conftest.
$ac_objext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5326 (eval $ac_compile) 2>conftest.er1
5328 grep -v '^ *+' conftest.er1
>conftest.err
5330 cat conftest.err
>&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } &&
5333 { ac_try
='test -z "$ac_c_werror_flag"
5334 || test ! -s conftest.err'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; } &&
5340 { ac_try
='test -s conftest.$ac_objext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5348 cat >conftest.
$ac_ext <<_ACEOF
5351 cat confdefs.h
>>conftest.
$ac_ext
5352 cat >>conftest.
$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5354 $ac_includes_default
5358 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5365 rm -f conftest.
$ac_objext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>conftest.er1
5369 grep -v '^ *+' conftest.er1
>conftest.err
5371 cat conftest.err
>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try
='test -z "$ac_c_werror_flag"
5375 || test ! -s conftest.err'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; } &&
5381 { ac_try
='test -s conftest.$ac_objext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 ac_hi
=$ac_mid; break
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.
$ac_ext >&5
5392 ac_lo
=`expr $ac_mid + 1`
5393 if test $ac_lo -le $ac_mid; then
5397 ac_mid
=`expr 2 '*' $ac_mid + 1`
5399 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.
$ac_ext >&5
5405 cat >conftest.
$ac_ext <<_ACEOF
5408 cat confdefs.h
>>conftest.
$ac_ext
5409 cat >>conftest.
$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 $ac_includes_default
5415 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5422 rm -f conftest.
$ac_objext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424 (eval $ac_compile) 2>conftest.er1
5426 grep -v '^ *+' conftest.er1
>conftest.err
5428 cat conftest.err
>&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
5431 { ac_try
='test -z "$ac_c_werror_flag"
5432 || test ! -s conftest.err'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try
='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5446 cat >conftest.
$ac_ext <<_ACEOF
5449 cat confdefs.h
>>conftest.
$ac_ext
5450 cat >>conftest.
$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 $ac_includes_default
5456 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5463 rm -f conftest.
$ac_objext
5464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5465 (eval $ac_compile) 2>conftest.er1
5467 grep -v '^ *+' conftest.er1
>conftest.err
5469 cat conftest.err
>&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } &&
5472 { ac_try
='test -z "$ac_c_werror_flag"
5473 || test ! -s conftest.err'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; } &&
5479 { ac_try
='test -s conftest.$ac_objext'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; }; then
5485 ac_lo
=$ac_mid; break
5487 echo "$as_me: failed program was:" >&5
5488 sed 's/^/| /' conftest.
$ac_ext >&5
5490 ac_hi
=`expr '(' $ac_mid ')' - 1`
5491 if test $ac_mid -le $ac_hi; then
5495 ac_mid
=`expr 2 '*' $ac_mid`
5497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5500 echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.
$ac_ext >&5
5505 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5508 # Binary search between lo and hi bounds.
5509 while test "x$ac_lo" != "x$ac_hi"; do
5510 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5511 cat >conftest.
$ac_ext <<_ACEOF
5514 cat confdefs.h
>>conftest.
$ac_ext
5515 cat >>conftest.
$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 $ac_includes_default
5521 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5528 rm -f conftest.
$ac_objext
5529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5530 (eval $ac_compile) 2>conftest.er1
5532 grep -v '^ *+' conftest.er1
>conftest.err
5534 cat conftest.err
>&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try
='test -z "$ac_c_werror_flag"
5538 || test ! -s conftest.err'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; } &&
5544 { ac_try
='test -s conftest.$ac_objext'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.
$ac_ext >&5
5555 ac_lo
=`expr '(' $ac_mid ')' + 1`
5557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5560 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5561 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5562 See \`config.log' for more details." >&5
5563 echo "$as_me: error: cannot compute sizeof (short), 77
5564 See \`config.log' for more details." >&2;}
5565 { (exit 1); exit 1; }; } ;;
5568 if test "$cross_compiling" = yes; then
5569 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5570 See \`config.log' for more details." >&5
5571 echo "$as_me: error: cannot run test program while cross compiling
5572 See \`config.log' for more details." >&2;}
5573 { (exit 1); exit 1; }; }
5575 cat >conftest.
$ac_ext <<_ACEOF
5578 cat confdefs.h
>>conftest.
$ac_ext
5579 cat >>conftest.
$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 $ac_includes_default
5582 long longval () { return (long) (sizeof (short)); }
5583 unsigned long ulongval () { return (long) (sizeof (short)); }
5590 FILE *f = fopen ("conftest.val", "w");
5593 if (((long) (sizeof (short))) < 0)
5595 long i = longval ();
5596 if (i != ((long) (sizeof (short))))
5598 fprintf (f, "%ld\n", i);
5602 unsigned long i = ulongval ();
5603 if (i != ((long) (sizeof (short))))
5605 fprintf (f, "%lu\n", i);
5607 exit (ferror (f) || fclose (f) != 0);
5613 rm -f conftest
$ac_exeext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615 (eval $ac_link) 2>&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5624 ac_cv_sizeof_short
=`cat conftest.val`
5626 echo "$as_me: program exited with status $ac_status" >&5
5627 echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.
$ac_ext >&5
5631 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5632 See \`config.log' for more details." >&5
5633 echo "$as_me: error: cannot compute sizeof (short), 77
5634 See \`config.log' for more details." >&2;}
5635 { (exit 1); exit 1; }; }
5637 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5642 ac_cv_sizeof_short
=0
5645 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5646 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5647 cat >>confdefs.h
<<_ACEOF
5648 #define SIZEOF_SHORT $ac_cv_sizeof_short
5652 echo "$as_me:$LINENO: checking for char" >&5
5653 echo $ECHO_N "checking for char... $ECHO_C" >&6
5654 if test "${ac_cv_type_char+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 cat >conftest.
$ac_ext <<_ACEOF
5660 cat confdefs.h
>>conftest.
$ac_ext
5661 cat >>conftest.
$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 $ac_includes_default
5675 rm -f conftest.
$ac_objext
5676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677 (eval $ac_compile) 2>conftest.er1
5679 grep -v '^ *+' conftest.er1
>conftest.err
5681 cat conftest.err
>&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try
='test -z "$ac_c_werror_flag"
5685 || test ! -s conftest.err'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try
='test -s conftest.$ac_objext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.
$ac_ext >&5
5704 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5706 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5707 echo "${ECHO_T}$ac_cv_type_char" >&6
5709 echo "$as_me:$LINENO: checking size of char" >&5
5710 echo $ECHO_N "checking size of char... $ECHO_C" >&6
5711 if test "${ac_cv_sizeof_char+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 if test "$ac_cv_type_char" = yes; then
5715 # The cast to unsigned long works around a bug in the HP C Compiler
5716 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5717 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5718 # This bug is HP SR number 8606223364.
5719 if test "$cross_compiling" = yes; then
5720 # Depending upon the size, compute the lo and hi bounds.
5721 cat >conftest.
$ac_ext <<_ACEOF
5724 cat confdefs.h
>>conftest.
$ac_ext
5725 cat >>conftest.
$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5727 $ac_includes_default
5731 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
5738 rm -f conftest.
$ac_objext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5740 (eval $ac_compile) 2>conftest.er1
5742 grep -v '^ *+' conftest.er1
>conftest.err
5744 cat conftest.err
>&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } &&
5747 { ac_try
='test -z "$ac_c_werror_flag"
5748 || test ! -s conftest.err'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; } &&
5754 { ac_try
='test -s conftest.$ac_objext'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; }; then
5762 cat >conftest.
$ac_ext <<_ACEOF
5765 cat confdefs.h
>>conftest.
$ac_ext
5766 cat >>conftest.
$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5768 $ac_includes_default
5772 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5779 rm -f conftest.
$ac_objext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781 (eval $ac_compile) 2>conftest.er1
5783 grep -v '^ *+' conftest.er1
>conftest.err
5785 cat conftest.err
>&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try
='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try
='test -s conftest.$ac_objext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_hi
=$ac_mid; break
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.
$ac_ext >&5
5806 ac_lo
=`expr $ac_mid + 1`
5807 if test $ac_lo -le $ac_mid; then
5811 ac_mid
=`expr 2 '*' $ac_mid + 1`
5813 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.
$ac_ext >&5
5819 cat >conftest.
$ac_ext <<_ACEOF
5822 cat confdefs.h
>>conftest.
$ac_ext
5823 cat >>conftest.
$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 $ac_includes_default
5829 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
5836 rm -f conftest.
$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838 (eval $ac_compile) 2>conftest.er1
5840 grep -v '^ *+' conftest.er1
>conftest.err
5842 cat conftest.err
>&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try
='test -z "$ac_c_werror_flag"
5846 || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try
='test -s conftest.$ac_objext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5860 cat >conftest.
$ac_ext <<_ACEOF
5863 cat confdefs.h
>>conftest.
$ac_ext
5864 cat >>conftest.
$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5866 $ac_includes_default
5870 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5877 rm -f conftest.
$ac_objext
5878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5879 (eval $ac_compile) 2>conftest.er1
5881 grep -v '^ *+' conftest.er1
>conftest.err
5883 cat conftest.err
>&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } &&
5886 { ac_try
='test -z "$ac_c_werror_flag"
5887 || test ! -s conftest.err'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; } &&
5893 { ac_try
='test -s conftest.$ac_objext'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; }; then
5899 ac_lo
=$ac_mid; break
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.
$ac_ext >&5
5904 ac_hi
=`expr '(' $ac_mid ')' - 1`
5905 if test $ac_mid -le $ac_hi; then
5909 ac_mid
=`expr 2 '*' $ac_mid`
5911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.
$ac_ext >&5
5919 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5921 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5922 # Binary search between lo and hi bounds.
5923 while test "x$ac_lo" != "x$ac_hi"; do
5924 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5925 cat >conftest.
$ac_ext <<_ACEOF
5928 cat confdefs.h
>>conftest.
$ac_ext
5929 cat >>conftest.
$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 $ac_includes_default
5935 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5942 rm -f conftest.
$ac_objext
5943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5944 (eval $ac_compile) 2>conftest.er1
5946 grep -v '^ *+' conftest.er1
>conftest.err
5948 cat conftest.err
>&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } &&
5951 { ac_try
='test -z "$ac_c_werror_flag"
5952 || test ! -s conftest.err'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; } &&
5958 { ac_try
='test -s conftest.$ac_objext'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; }; then
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.
$ac_ext >&5
5969 ac_lo
=`expr '(' $ac_mid ')' + 1`
5971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5974 ?
*) ac_cv_sizeof_char
=$ac_lo;;
5975 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5976 See \`config.log' for more details." >&5
5977 echo "$as_me: error: cannot compute sizeof (char), 77
5978 See \`config.log' for more details." >&2;}
5979 { (exit 1); exit 1; }; } ;;
5982 if test "$cross_compiling" = yes; then
5983 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5984 See \`config.log' for more details." >&5
5985 echo "$as_me: error: cannot run test program while cross compiling
5986 See \`config.log' for more details." >&2;}
5987 { (exit 1); exit 1; }; }
5989 cat >conftest.
$ac_ext <<_ACEOF
5992 cat confdefs.h
>>conftest.
$ac_ext
5993 cat >>conftest.
$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 $ac_includes_default
5996 long longval () { return (long) (sizeof (char)); }
5997 unsigned long ulongval () { return (long) (sizeof (char)); }
6004 FILE *f = fopen ("conftest.val", "w");
6007 if (((long) (sizeof (char))) < 0)
6009 long i = longval ();
6010 if (i != ((long) (sizeof (char))))
6012 fprintf (f, "%ld\n", i);
6016 unsigned long i = ulongval ();
6017 if (i != ((long) (sizeof (char))))
6019 fprintf (f, "%lu\n", i);
6021 exit (ferror (f) || fclose (f) != 0);
6027 rm -f conftest
$ac_exeext
6028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6029 (eval $ac_link) 2>&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6038 ac_cv_sizeof_char
=`cat conftest.val`
6040 echo "$as_me: program exited with status $ac_status" >&5
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.
$ac_ext >&5
6045 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6046 See \`config.log' for more details." >&5
6047 echo "$as_me: error: cannot compute sizeof (char), 77
6048 See \`config.log' for more details." >&2;}
6049 { (exit 1); exit 1; }; }
6051 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6059 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6060 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6061 cat >>confdefs.h
<<_ACEOF
6062 #define SIZEOF_CHAR $ac_cv_sizeof_char
6067 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
6068 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
6069 case "$ac_cv_sizeof_char" in
6070 1) acx_cv_type_int8_t
=char
;;
6071 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
6072 echo "$as_me: error: no 8-bit type" >&2;}
6073 { (exit please report a bug
); exit please report a bug
; }; }
6075 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
6076 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
6078 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
6079 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
6080 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
6081 2:*) acx_cv_type_int16_t
=int
;;
6082 *:2) acx_cv_type_int16_t
=short
;;
6083 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
6084 echo "$as_me: error: no 16-bit type" >&2;}
6085 { (exit please report a bug
); exit please report a bug
; }; }
6087 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
6088 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
6090 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
6091 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
6092 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
6093 4:*) acx_cv_type_int32_t
=int
;;
6094 *:4) acx_cv_type_int32_t
=long
;;
6095 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
6096 echo "$as_me: error: no 32-bit type" >&2;}
6097 { (exit please report a bug
); exit please report a bug
; }; }
6099 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
6100 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
6103 # These tests are here to make the output prettier
6105 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
6106 case "$ac_cv_sizeof_long" in
6107 8) acx_cv_type_int64_t
=long
;;
6109 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
6110 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
6111 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
6112 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
6115 # Now we can use the above types
6117 if test "$ac_cv_type_uintptr_t" != yes; then
6118 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
6119 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
6120 case $ac_cv_sizeof_void_p in
6121 2) acx_cv_type_intptr_t
=int16_t
;;
6122 4) acx_cv_type_intptr_t
=int32_t
;;
6123 8) acx_cv_type_intptr_t
=int64_t
;;
6124 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
6125 echo "$as_me: error: no equivalent for intptr_t" >&2;}
6126 { (exit please report a bug
); exit please report a bug
; }; }
6128 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
6129 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
6132 # ----------------- done all checks, emit header -------------
6133 ac_config_commands
="$ac_config_commands gstdint.h"
6138 # Checks for typedefs, structures, and compiler characteristics.
6139 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6140 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6141 if test "${ac_cv_c_const+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 cat >conftest.
$ac_ext <<_ACEOF
6147 cat confdefs.h
>>conftest.
$ac_ext
6148 cat >>conftest.
$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6154 /* FIXME: Include the comments suggested by Paul. */
6156 /* Ultrix mips cc rejects this. */
6157 typedef int charset[2];
6159 /* SunOS 4.1.1 cc rejects this. */
6160 char const *const *ccp;
6162 /* NEC SVR4.0.2 mips cc rejects this. */
6163 struct point {int x, y;};
6164 static struct point const zero = {0,0};
6165 /* AIX XL C 1.02.0.0 rejects this.
6166 It does not let you subtract one const X* pointer from another in
6167 an arm of an if-expression whose if-part is not a constant
6169 const char *g = "string";
6170 ccp = &g + (g ? g-g : 0);
6171 /* HPUX 7.0 cc rejects these. */
6174 ccp = (char const *const *) p;
6175 { /* SCO 3.2v4 cc rejects this. */
6177 char const *s = 0 ? (char *) 0 : (char const *) 0;
6181 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6183 const int *foo = &x[0];
6186 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6187 typedef const int *iptr;
6191 { /* AIX XL C 1.02.0.0 rejects this saying
6192 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6193 struct s { int j; const int *ap[3]; };
6194 struct s *b; b->j = 5;
6196 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6205 rm -f conftest.
$ac_objext
6206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6207 (eval $ac_compile) 2>conftest.er1
6209 grep -v '^ *+' conftest.er1
>conftest.err
6211 cat conftest.err
>&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } &&
6214 { ac_try
='test -z "$ac_c_werror_flag"
6215 || test ! -s conftest.err'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; } &&
6221 { ac_try
='test -s conftest.$ac_objext'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6229 echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.
$ac_ext >&5
6234 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6236 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6237 echo "${ECHO_T}$ac_cv_c_const" >&6
6238 if test $ac_cv_c_const = no
; then
6240 cat >>confdefs.h
<<\_ACEOF
6246 echo "$as_me:$LINENO: checking for off_t" >&5
6247 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6248 if test "${ac_cv_type_off_t+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 cat >conftest.
$ac_ext <<_ACEOF
6254 cat confdefs.h
>>conftest.
$ac_ext
6255 cat >>conftest.
$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 $ac_includes_default
6269 rm -f conftest.
$ac_objext
6270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6271 (eval $ac_compile) 2>conftest.er1
6273 grep -v '^ *+' conftest.er1
>conftest.err
6275 cat conftest.err
>&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
6278 { ac_try
='test -z "$ac_c_werror_flag"
6279 || test ! -s conftest.err'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; } &&
6285 { ac_try
='test -s conftest.$ac_objext'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 ac_cv_type_off_t
=yes
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.
$ac_ext >&5
6298 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6300 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6301 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6302 if test $ac_cv_type_off_t = yes; then
6306 cat >>confdefs.h
<<_ACEOF
6312 echo "$as_me:$LINENO: checking for int" >&5
6313 echo $ECHO_N "checking for int... $ECHO_C" >&6
6314 if test "${ac_cv_type_int+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 cat >conftest.
$ac_ext <<_ACEOF
6320 cat confdefs.h
>>conftest.
$ac_ext
6321 cat >>conftest.
$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 $ac_includes_default
6335 rm -f conftest.
$ac_objext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>conftest.er1
6339 grep -v '^ *+' conftest.er1
>conftest.err
6341 cat conftest.err
>&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } &&
6344 { ac_try
='test -z "$ac_c_werror_flag"
6345 || test ! -s conftest.err'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; } &&
6351 { ac_try
='test -s conftest.$ac_objext'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; }; then
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.
$ac_ext >&5
6364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6366 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6367 echo "${ECHO_T}$ac_cv_type_int" >&6
6369 echo "$as_me:$LINENO: checking size of int" >&5
6370 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6371 if test "${ac_cv_sizeof_int+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 if test "$ac_cv_type_int" = yes; then
6375 # The cast to unsigned long works around a bug in the HP C Compiler
6376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6378 # This bug is HP SR number 8606223364.
6379 if test "$cross_compiling" = yes; then
6380 # Depending upon the size, compute the lo and hi bounds.
6381 cat >conftest.
$ac_ext <<_ACEOF
6384 cat confdefs.h
>>conftest.
$ac_ext
6385 cat >>conftest.
$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6387 $ac_includes_default
6391 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6398 rm -f conftest.
$ac_objext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>conftest.er1
6402 grep -v '^ *+' conftest.er1
>conftest.err
6404 cat conftest.err
>&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try
='test -z "$ac_c_werror_flag"
6408 || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try
='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6422 cat >conftest.
$ac_ext <<_ACEOF
6425 cat confdefs.h
>>conftest.
$ac_ext
6426 cat >>conftest.
$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428 $ac_includes_default
6432 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6439 rm -f conftest.
$ac_objext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441 (eval $ac_compile) 2>conftest.er1
6443 grep -v '^ *+' conftest.er1
>conftest.err
6445 cat conftest.err
>&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
6448 { ac_try
='test -z "$ac_c_werror_flag"
6449 || test ! -s conftest.err'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try
='test -s conftest.$ac_objext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_hi
=$ac_mid; break
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.
$ac_ext >&5
6466 ac_lo
=`expr $ac_mid + 1`
6467 if test $ac_lo -le $ac_mid; then
6471 ac_mid
=`expr 2 '*' $ac_mid + 1`
6473 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.
$ac_ext >&5
6479 cat >conftest.
$ac_ext <<_ACEOF
6482 cat confdefs.h
>>conftest.
$ac_ext
6483 cat >>conftest.
$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 $ac_includes_default
6489 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6496 rm -f conftest.
$ac_objext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6498 (eval $ac_compile) 2>conftest.er1
6500 grep -v '^ *+' conftest.er1
>conftest.err
6502 cat conftest.err
>&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } &&
6505 { ac_try
='test -z "$ac_c_werror_flag"
6506 || test ! -s conftest.err'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; } &&
6512 { ac_try
='test -s conftest.$ac_objext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6520 cat >conftest.
$ac_ext <<_ACEOF
6523 cat confdefs.h
>>conftest.
$ac_ext
6524 cat >>conftest.
$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6530 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6537 rm -f conftest.
$ac_objext
6538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539 (eval $ac_compile) 2>conftest.er1
6541 grep -v '^ *+' conftest.er1
>conftest.err
6543 cat conftest.err
>&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } &&
6546 { ac_try
='test -z "$ac_c_werror_flag"
6547 || test ! -s conftest.err'
6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; } &&
6553 { ac_try
='test -s conftest.$ac_objext'
6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6559 ac_lo
=$ac_mid; break
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.
$ac_ext >&5
6564 ac_hi
=`expr '(' $ac_mid ')' - 1`
6565 if test $ac_mid -le $ac_hi; then
6569 ac_mid
=`expr 2 '*' $ac_mid`
6571 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.
$ac_ext >&5
6579 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6581 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6582 # Binary search between lo and hi bounds.
6583 while test "x$ac_lo" != "x$ac_hi"; do
6584 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6585 cat >conftest.
$ac_ext <<_ACEOF
6588 cat confdefs.h
>>conftest.
$ac_ext
6589 cat >>conftest.
$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6591 $ac_includes_default
6595 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6602 rm -f conftest.
$ac_objext
6603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6604 (eval $ac_compile) 2>conftest.er1
6606 grep -v '^ *+' conftest.er1
>conftest.err
6608 cat conftest.err
>&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } &&
6611 { ac_try
='test -z "$ac_c_werror_flag"
6612 || test ! -s conftest.err'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; } &&
6618 { ac_try
='test -s conftest.$ac_objext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.
$ac_ext >&5
6629 ac_lo
=`expr '(' $ac_mid ')' + 1`
6631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6634 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6635 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6636 See \`config.log' for more details." >&5
6637 echo "$as_me: error: cannot compute sizeof (int), 77
6638 See \`config.log' for more details." >&2;}
6639 { (exit 1); exit 1; }; } ;;
6642 if test "$cross_compiling" = yes; then
6643 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6644 See \`config.log' for more details." >&5
6645 echo "$as_me: error: cannot run test program while cross compiling
6646 See \`config.log' for more details." >&2;}
6647 { (exit 1); exit 1; }; }
6649 cat >conftest.
$ac_ext <<_ACEOF
6652 cat confdefs.h
>>conftest.
$ac_ext
6653 cat >>conftest.
$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6655 $ac_includes_default
6656 long longval () { return (long) (sizeof (int)); }
6657 unsigned long ulongval () { return (long) (sizeof (int)); }
6664 FILE *f = fopen ("conftest.val", "w");
6667 if (((long) (sizeof (int))) < 0)
6669 long i = longval ();
6670 if (i != ((long) (sizeof (int))))
6672 fprintf (f, "%ld\n", i);
6676 unsigned long i = ulongval ();
6677 if (i != ((long) (sizeof (int))))
6679 fprintf (f, "%lu\n", i);
6681 exit (ferror (f) || fclose (f) != 0);
6687 rm -f conftest
$ac_exeext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6689 (eval $ac_link) 2>&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); }; }; then
6698 ac_cv_sizeof_int
=`cat conftest.val`
6700 echo "$as_me: program exited with status $ac_status" >&5
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.
$ac_ext >&5
6705 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6706 See \`config.log' for more details." >&5
6707 echo "$as_me: error: cannot compute sizeof (int), 77
6708 See \`config.log' for more details." >&2;}
6709 { (exit 1); exit 1; }; }
6711 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6719 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6720 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6721 cat >>confdefs.h
<<_ACEOF
6722 #define SIZEOF_INT $ac_cv_sizeof_int
6726 echo "$as_me:$LINENO: checking for long" >&5
6727 echo $ECHO_N "checking for long... $ECHO_C" >&6
6728 if test "${ac_cv_type_long+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 cat >conftest.
$ac_ext <<_ACEOF
6734 cat confdefs.h
>>conftest.
$ac_ext
6735 cat >>conftest.
$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 $ac_includes_default
6749 rm -f conftest.
$ac_objext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6751 (eval $ac_compile) 2>conftest.er1
6753 grep -v '^ *+' conftest.er1
>conftest.err
6755 cat conftest.err
>&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try
='test -z "$ac_c_werror_flag"
6759 || test ! -s conftest.err'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; } &&
6765 { ac_try
='test -s conftest.$ac_objext'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.
$ac_ext >&5
6778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6780 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6781 echo "${ECHO_T}$ac_cv_type_long" >&6
6783 echo "$as_me:$LINENO: checking size of long" >&5
6784 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6785 if test "${ac_cv_sizeof_long+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 if test "$ac_cv_type_long" = yes; then
6789 # The cast to unsigned long works around a bug in the HP C Compiler
6790 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6791 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6792 # This bug is HP SR number 8606223364.
6793 if test "$cross_compiling" = yes; then
6794 # Depending upon the size, compute the lo and hi bounds.
6795 cat >conftest.
$ac_ext <<_ACEOF
6798 cat confdefs.h
>>conftest.
$ac_ext
6799 cat >>conftest.
$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 $ac_includes_default
6805 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6812 rm -f conftest.
$ac_objext
6813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6814 (eval $ac_compile) 2>conftest.er1
6816 grep -v '^ *+' conftest.er1
>conftest.err
6818 cat conftest.err
>&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } &&
6821 { ac_try
='test -z "$ac_c_werror_flag"
6822 || test ! -s conftest.err'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; } &&
6828 { ac_try
='test -s conftest.$ac_objext'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; }; then
6836 cat >conftest.
$ac_ext <<_ACEOF
6839 cat confdefs.h
>>conftest.
$ac_ext
6840 cat >>conftest.
$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6842 $ac_includes_default
6846 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6853 rm -f conftest.
$ac_objext
6854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855 (eval $ac_compile) 2>conftest.er1
6857 grep -v '^ *+' conftest.er1
>conftest.err
6859 cat conftest.err
>&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } &&
6862 { ac_try
='test -z "$ac_c_werror_flag"
6863 || test ! -s conftest.err'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; } &&
6869 { ac_try
='test -s conftest.$ac_objext'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6875 ac_hi
=$ac_mid; break
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.
$ac_ext >&5
6880 ac_lo
=`expr $ac_mid + 1`
6881 if test $ac_lo -le $ac_mid; then
6885 ac_mid
=`expr 2 '*' $ac_mid + 1`
6887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6890 echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.
$ac_ext >&5
6893 cat >conftest.
$ac_ext <<_ACEOF
6896 cat confdefs.h
>>conftest.
$ac_ext
6897 cat >>conftest.
$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899 $ac_includes_default
6903 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6910 rm -f conftest.
$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912 (eval $ac_compile) 2>conftest.er1
6914 grep -v '^ *+' conftest.er1
>conftest.err
6916 cat conftest.err
>&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } &&
6919 { ac_try
='test -z "$ac_c_werror_flag"
6920 || test ! -s conftest.err'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; } &&
6926 { ac_try
='test -s conftest.$ac_objext'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6934 cat >conftest.
$ac_ext <<_ACEOF
6937 cat confdefs.h
>>conftest.
$ac_ext
6938 cat >>conftest.
$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6940 $ac_includes_default
6944 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6951 rm -f conftest.
$ac_objext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6953 (eval $ac_compile) 2>conftest.er1
6955 grep -v '^ *+' conftest.er1
>conftest.err
6957 cat conftest.err
>&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try
='test -z "$ac_c_werror_flag"
6961 || test ! -s conftest.err'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; } &&
6967 { ac_try
='test -s conftest.$ac_objext'
6968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); }; }; then
6973 ac_lo
=$ac_mid; break
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.
$ac_ext >&5
6978 ac_hi
=`expr '(' $ac_mid ')' - 1`
6979 if test $ac_mid -le $ac_hi; then
6983 ac_mid
=`expr 2 '*' $ac_mid`
6985 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6988 echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.
$ac_ext >&5
6993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6995 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6996 # Binary search between lo and hi bounds.
6997 while test "x$ac_lo" != "x$ac_hi"; do
6998 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6999 cat >conftest.
$ac_ext <<_ACEOF
7002 cat confdefs.h
>>conftest.
$ac_ext
7003 cat >>conftest.
$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7005 $ac_includes_default
7009 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7016 rm -f conftest.
$ac_objext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7018 (eval $ac_compile) 2>conftest.er1
7020 grep -v '^ *+' conftest.er1
>conftest.err
7022 cat conftest.err
>&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } &&
7025 { ac_try
='test -z "$ac_c_werror_flag"
7026 || test ! -s conftest.err'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; } &&
7032 { ac_try
='test -s conftest.$ac_objext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7040 echo "$as_me: failed program was:" >&5
7041 sed 's/^/| /' conftest.
$ac_ext >&5
7043 ac_lo
=`expr '(' $ac_mid ')' + 1`
7045 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7048 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7049 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7050 See \`config.log' for more details." >&5
7051 echo "$as_me: error: cannot compute sizeof (long), 77
7052 See \`config.log' for more details." >&2;}
7053 { (exit 1); exit 1; }; } ;;
7056 if test "$cross_compiling" = yes; then
7057 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7058 See \`config.log' for more details." >&5
7059 echo "$as_me: error: cannot run test program while cross compiling
7060 See \`config.log' for more details." >&2;}
7061 { (exit 1); exit 1; }; }
7063 cat >conftest.
$ac_ext <<_ACEOF
7066 cat confdefs.h
>>conftest.
$ac_ext
7067 cat >>conftest.
$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7069 $ac_includes_default
7070 long longval () { return (long) (sizeof (long)); }
7071 unsigned long ulongval () { return (long) (sizeof (long)); }
7078 FILE *f = fopen ("conftest.val", "w");
7081 if (((long) (sizeof (long))) < 0)
7083 long i = longval ();
7084 if (i != ((long) (sizeof (long))))
7086 fprintf (f, "%ld\n", i);
7090 unsigned long i = ulongval ();
7091 if (i != ((long) (sizeof (long))))
7093 fprintf (f, "%lu\n", i);
7095 exit (ferror (f) || fclose (f) != 0);
7101 rm -f conftest
$ac_exeext
7102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7103 (eval $ac_link) 2>&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 ac_cv_sizeof_long
=`cat conftest.val`
7114 echo "$as_me: program exited with status $ac_status" >&5
7115 echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.
$ac_ext >&5
7119 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7120 See \`config.log' for more details." >&5
7121 echo "$as_me: error: cannot compute sizeof (long), 77
7122 See \`config.log' for more details." >&2;}
7123 { (exit 1); exit 1; }; }
7125 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7133 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7134 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7135 cat >>confdefs.h
<<_ACEOF
7136 #define SIZEOF_LONG $ac_cv_sizeof_long
7141 # Checks for library functions.
7142 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7143 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7144 if test "${ac_cv_header_stdc+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 cat >conftest.
$ac_ext <<_ACEOF
7150 cat confdefs.h
>>conftest.
$ac_ext
7151 cat >>conftest.
$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7166 rm -f conftest.
$ac_objext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7168 (eval $ac_compile) 2>conftest.er1
7170 grep -v '^ *+' conftest.er1
>conftest.err
7172 cat conftest.err
>&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } &&
7175 { ac_try
='test -z "$ac_c_werror_flag"
7176 || test ! -s conftest.err'
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; } &&
7182 { ac_try
='test -s conftest.$ac_objext'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; }; then
7188 ac_cv_header_stdc
=yes
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.
$ac_ext >&5
7193 ac_cv_header_stdc
=no
7195 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7197 if test $ac_cv_header_stdc = yes; then
7198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7199 cat >conftest.
$ac_ext <<_ACEOF
7202 cat confdefs.h
>>conftest.
$ac_ext
7203 cat >>conftest.
$ac_ext <<_ACEOF
7204 /* end confdefs.h. */
7208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7209 $EGREP "memchr" >/dev
/null
2>&1; then
7212 ac_cv_header_stdc
=no
7218 if test $ac_cv_header_stdc = yes; then
7219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7220 cat >conftest.
$ac_ext <<_ACEOF
7223 cat confdefs.h
>>conftest.
$ac_ext
7224 cat >>conftest.
$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7230 $EGREP "free" >/dev
/null
2>&1; then
7233 ac_cv_header_stdc
=no
7239 if test $ac_cv_header_stdc = yes; then
7240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7241 if test "$cross_compiling" = yes; then
7244 cat >conftest.
$ac_ext <<_ACEOF
7247 cat confdefs.h
>>conftest.
$ac_ext
7248 cat >>conftest.
$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7251 #if ((' ' & 0x0FF) == 0x020)
7252 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7253 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7255 # define ISLOWER(c) \
7256 (('a' <= (c) && (c) <= 'i') \
7257 || ('j' <= (c) && (c) <= 'r') \
7258 || ('s' <= (c) && (c) <= 'z'))
7259 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7262 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7267 for (i = 0; i < 256; i++)
7268 if (XOR (islower (i), ISLOWER (i))
7269 || toupper (i) != TOUPPER (i))
7274 rm -f conftest
$ac_exeext
7275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7276 (eval $ac_link) 2>&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7287 echo "$as_me: program exited with status $ac_status" >&5
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.
$ac_ext >&5
7292 ac_cv_header_stdc
=no
7294 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7298 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7299 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7300 if test $ac_cv_header_stdc = yes; then
7302 cat >>confdefs.h
<<\_ACEOF
7303 #define STDC_HEADERS 1
7309 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7310 if test "${enable_maintainer_mode+set}" = set; then
7311 enableval
="$enable_maintainer_mode"
7314 enable_maintainer_mode
=no
7317 if test "x$enable_maintainer_mode" = xno
; then
7324 # Default decimal format
7325 # If you change the defaults here, be sure to change them in the GCC directory also
7326 echo "$as_me:$LINENO: checking for decimal floating point" >&5
7327 echo $ECHO_N "checking for decimal floating point... $ECHO_C" >&6
7328 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7329 if test "${enable_decimal_float+set}" = set; then
7330 enableval
="$enable_decimal_float"
7332 case $enable_decimal_float in
7333 yes | no | bid | dpd
) ;;
7334 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7335 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7336 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7337 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7338 { (exit 1); exit 1; }; } ;;
7344 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
7345 enable_decimal_float
=yes
7348 enable_decimal_float
=no
7354 # x86's use BID format instead of DPD
7355 # In theory --enable-decimal-float=no should not compile anything
7356 # For the sake of simplicity, just use the default format in this directory
7357 if test x
$enable_decimal_float = xyes
-o x
$enable_decimal_float = xno
; then
7359 i?
86*-*-linux* | x86_64
*-*-linux*)
7360 enable_decimal_float
=bid
7363 enable_decimal_float
=dpd
7368 echo "$as_me:$LINENO: result: $enable_decimal_float" >&5
7369 echo "${ECHO_T}$enable_decimal_float" >&6
7372 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7373 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7374 if test "${ac_cv_c_bigendian+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 # See if sys/param.h defines the BYTE_ORDER macro.
7378 cat >conftest.
$ac_ext <<_ACEOF
7381 cat confdefs.h
>>conftest.
$ac_ext
7382 cat >>conftest.
$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 #include <sys/types.h>
7385 #include <sys/param.h>
7390 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7398 rm -f conftest.
$ac_objext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7400 (eval $ac_compile) 2>conftest.er1
7402 grep -v '^ *+' conftest.er1
>conftest.err
7404 cat conftest.err
>&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try
='test -z "$ac_c_werror_flag"
7408 || test ! -s conftest.err'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; } &&
7414 { ac_try
='test -s conftest.$ac_objext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 # It does; now see whether it defined to BIG_ENDIAN or not.
7421 cat >conftest.
$ac_ext <<_ACEOF
7424 cat confdefs.h
>>conftest.
$ac_ext
7425 cat >>conftest.
$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 #include <sys/types.h>
7428 #include <sys/param.h>
7433 #if BYTE_ORDER != BIG_ENDIAN
7441 rm -f conftest.
$ac_objext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443 (eval $ac_compile) 2>conftest.er1
7445 grep -v '^ *+' conftest.er1
>conftest.err
7447 cat conftest.err
>&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try
='test -z "$ac_c_werror_flag"
7451 || test ! -s conftest.err'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; } &&
7457 { ac_try
='test -s conftest.$ac_objext'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_c_bigendian
=yes
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.
$ac_ext >&5
7468 ac_cv_c_bigendian
=no
7470 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.
$ac_ext >&5
7475 # It does not; compile a test program.
7476 if test "$cross_compiling" = yes; then
7477 # try to guess the endianness by grepping values into an object file
7478 ac_cv_c_bigendian
=unknown
7479 cat >conftest.
$ac_ext <<_ACEOF
7482 cat confdefs.h
>>conftest.
$ac_ext
7483 cat >>conftest.
$ac_ext <<_ACEOF
7484 /* end confdefs.h. */
7485 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7486 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7487 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7488 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7489 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7490 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7494 _ascii (); _ebcdic ();
7499 rm -f conftest.
$ac_objext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501 (eval $ac_compile) 2>conftest.er1
7503 grep -v '^ *+' conftest.er1
>conftest.err
7505 cat conftest.err
>&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try
='test -z "$ac_c_werror_flag"
7509 || test ! -s conftest.err'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; } &&
7515 { ac_try
='test -s conftest.$ac_objext'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; }; then
7521 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7522 ac_cv_c_bigendian
=yes
7524 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7525 if test "$ac_cv_c_bigendian" = unknown
; then
7526 ac_cv_c_bigendian
=no
7528 # finding both strings is unlikely to happen, but who knows?
7529 ac_cv_c_bigendian
=unknown
7533 echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.
$ac_ext >&5
7537 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7539 cat >conftest.
$ac_ext <<_ACEOF
7542 cat confdefs.h
>>conftest.
$ac_ext
7543 cat >>conftest.
$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7548 /* Are we little or big endian? From Harbison&Steele. */
7552 char c[sizeof (long)];
7555 exit (u.c[sizeof (long) - 1] == 1);
7558 rm -f conftest
$ac_exeext
7559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7560 (eval $ac_link) 2>&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; }; then
7569 ac_cv_c_bigendian
=no
7571 echo "$as_me: program exited with status $ac_status" >&5
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.
$ac_ext >&5
7576 ac_cv_c_bigendian
=yes
7578 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7581 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7583 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7584 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7585 case $ac_cv_c_bigendian in
7588 cat >>confdefs.h
<<\_ACEOF
7589 #define WORDS_BIGENDIAN 1
7595 { { echo "$as_me:$LINENO: error: unknown endianness
7596 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7597 echo "$as_me: error: unknown endianness
7598 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7599 { (exit 1); exit 1; }; } ;;
7605 ac_config_headers
="$ac_config_headers config.h:config.in"
7607 ac_config_files
="$ac_config_files Makefile"
7609 cat >confcache
<<\_ACEOF
7610 # This file is a shell script that caches the results of configure
7611 # tests run on this system so they can be shared between configure
7612 # scripts and configure runs, see configure's option --config-cache.
7613 # It is not useful on other systems. If it contains results you don't
7614 # want to keep, you may remove or edit it.
7616 # config.status only pays attention to the cache file if you give it
7617 # the --recheck option to rerun configure.
7619 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7620 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7625 # The following way of writing the cache mishandles newlines in values,
7626 # but we know of no workaround that is simple, portable, and efficient.
7627 # So, don't put newlines in cache variables' values.
7628 # Ultrix sh set writes to stderr and can't be redirected directly,
7629 # and sets the high bit in the cache file unless we assign to the vars.
7632 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7634 # `set' does not quote correctly, so add quotes (double-quote
7635 # substitution turns \\\\ into \\, and sed turns \\ into \).
7638 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7641 # `set' quotes correctly as required by POSIX, so do not add quotes.
7643 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7652 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7654 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
7655 if test -w $cache_file; then
7656 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7657 cat confcache
>$cache_file
7659 echo "not updating unwritable cache $cache_file"
7664 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7665 # Let make expand exec_prefix.
7666 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7668 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7669 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7670 # trailing colons and then remove the whole line if VPATH becomes empty
7671 # (actually we leave an empty line to preserve line numbers).
7672 if test "x$srcdir" = x.
; then
7673 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7674 s/:*\$(srcdir):*/:/;
7675 s/:*\${srcdir}:*/:/;
7677 s/^\([^=]*=[ ]*\):*/\1/;
7683 DEFS
=-DHAVE_CONFIG_H
7687 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7688 # 1. Remove the extension, and $U if already installed.
7689 ac_i
=`echo "$ac_i" |
7690 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7692 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7693 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7697 LTLIBOBJS
=$ac_ltlibobjs
7701 : ${CONFIG_STATUS=./config.status}
7702 ac_clean_files_save
=$ac_clean_files
7703 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7704 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7705 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7706 cat >$CONFIG_STATUS <<_ACEOF
7708 # Generated by $as_me.
7709 # Run this file to recreate the current configuration.
7710 # Compiler output produced by configure, useful for debugging
7711 # configure, is in config.log if it exists.
7716 SHELL=\${CONFIG_SHELL-$SHELL}
7719 cat >>$CONFIG_STATUS <<\_ACEOF
7720 ## --------------------- ##
7721 ## M4sh Initialization. ##
7722 ## --------------------- ##
7724 # Be Bourne compatible
7725 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7728 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7729 # is contrary to our usage. Disable this feature.
7730 alias -g '${1+"$@"}'='"$@"'
7731 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7734 DUALCASE
=1; export DUALCASE
# for MKS sh
7736 # Support unset when possible.
7737 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7744 # Work around bugs in pre-3.0 UWIN ksh.
7745 $as_unset ENV MAIL MAILPATH
7752 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7753 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7754 LC_TELEPHONE LC_TIME
7756 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7757 eval $as_var=C
; export $as_var
7763 # Required to use basename.
7764 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7770 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7771 as_basename
=basename
7777 # Name of the executable.
7778 as_me
=`$as_basename "$0" ||
7779 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7780 X"$0" : 'X\(//\)$' \| \
7781 X"$0" : 'X\(/\)$' \| \
7782 . : '\(.\)' 2>/dev/null ||
7784 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7785 /^X\/\(\/\/\)$/{ s//\1/; q; }
7786 /^X\/\(\/\).*/{ s//\1/; q; }
7790 # PATH needs CR, and LINENO needs CR and PATH.
7791 # Avoid depending upon Character Ranges.
7792 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7793 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7794 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7795 as_cr_digits
='0123456789'
7796 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7798 # The user is always right.
7799 if test "${PATH_SEPARATOR+set}" != set; then
7800 echo "#! /bin/sh" >conf$$.sh
7801 echo "exit 0" >>conf$$.sh
7803 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7814 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
7815 test "x$as_lineno_1" != "x$as_lineno_2" &&
7816 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
7817 # Find who we are. Look in the path if we contain no path at all
7820 *[\\/]* ) as_myself
=$0 ;;
7821 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7825 test -z "$as_dir" && as_dir
=.
7826 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
7831 # We did not find ourselves, most probably we were run as `sh COMMAND'
7832 # in which case we are not to be found in the path.
7833 if test "x$as_myself" = x
; then
7836 if test ! -f "$as_myself"; then
7837 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7838 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7839 { (exit 1); exit 1; }; }
7841 case $CONFIG_SHELL in
7843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7844 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
7847 test -z "$as_dir" && as_dir
=.
7848 for as_base
in sh bash ksh sh5
; do
7851 if ("$as_dir/$as_base" -c '
7854 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7855 test "x$as_lineno_1" != "x$as_lineno_2" &&
7856 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
7857 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
7858 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
7859 CONFIG_SHELL
=$as_dir/$as_base
7861 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7869 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7870 # uniformly replaced by the line number. The first 'sed' inserts a
7871 # line-number line before each line; the second 'sed' does the real
7872 # work. The second script uses 'N' to pair each line-number line
7873 # with the numbered line, and appends trailing '-' during
7874 # substitution so that $LINENO is not a special case at line end.
7875 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7876 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7877 sed '=' <$as_myself |
7882 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7885 s,^['$as_cr_digits']*\n,,
7887 chmod +x
$as_me.lineno ||
7888 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7889 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7890 { (exit 1); exit 1; }; }
7892 # Don't try to exec as it changes $[0], causing all sort of problems
7893 # (the dirname of $[0] is not the place where we might find the
7894 # original and so on. Autoconf is especially sensible to this).
7896 # Exit status is that of the last command.
7901 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7902 *c
*,-n*) ECHO_N
= ECHO_C
='
7904 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
7905 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
7908 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7914 rm -f conf$$ conf$$.exe conf$$.
file
7916 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7917 # We could just check for DJGPP; but this test a) works b) is more generic
7918 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7919 if test -f conf$$.exe
; then
7920 # Don't use ln at all; we don't have any links
7925 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7930 rm -f conf$$ conf$$.exe conf$$.
file
7932 if mkdir
-p .
2>/dev
/null
; then
7935 test -d .
/-p && rmdir .
/-p
7939 as_executable_p
="test -f"
7941 # Sed expression to map a string onto a valid CPP name.
7942 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7944 # Sed expression to map a string onto a valid variable name.
7945 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7949 # We need space, tab and new line, in precisely that order.
7959 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7960 # report actual input values of CONFIG_FILES etc. instead of their
7961 # values after options handling. Logging --version etc. is OK.
7965 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7966 ## Running $as_me. ##
7971 This file was extended by libdecnumber $as_me , which was
7972 generated by GNU Autoconf 2.59. Invocation command line was
7974 CONFIG_FILES = $CONFIG_FILES
7975 CONFIG_HEADERS = $CONFIG_HEADERS
7976 CONFIG_LINKS = $CONFIG_LINKS
7977 CONFIG_COMMANDS = $CONFIG_COMMANDS
7981 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7985 # Files that config.status was made for.
7986 if test -n "$ac_config_files"; then
7987 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7990 if test -n "$ac_config_headers"; then
7991 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7994 if test -n "$ac_config_links"; then
7995 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7998 if test -n "$ac_config_commands"; then
7999 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8002 cat >>$CONFIG_STATUS <<\_ACEOF
8005 \`$as_me' instantiates files from templates according to the
8006 current configuration.
8008 Usage: $0 [OPTIONS] [FILE]...
8010 -h, --help print this help, then exit
8011 -V, --version print version number, then exit
8012 -q, --quiet do not print progress messages
8013 -d, --debug don't remove temporary files
8014 --recheck update $as_me by reconfiguring in the same conditions
8015 --file=FILE[:TEMPLATE]
8016 instantiate the configuration file FILE
8017 --header=FILE[:TEMPLATE]
8018 instantiate the configuration header FILE
8020 Configuration files:
8023 Configuration headers:
8026 Configuration commands:
8029 Report bugs to <bug-autoconf@gnu.org>."
8032 cat >>$CONFIG_STATUS <<_ACEOF
8034 libdecnumber config.status
8035 configured by $0, generated by GNU Autoconf 2.59,
8036 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8038 Copyright (C) 2003 Free Software Foundation, Inc.
8039 This config.status script is free software; the Free Software Foundation
8040 gives unlimited permission to copy, distribute and modify it."
8044 cat >>$CONFIG_STATUS <<\_ACEOF
8045 # If no file are specified by the user, then we need to provide default
8046 # value. By we need to know if files were specified by the user.
8052 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8053 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8061 *) # This is not an option, so the user has probably given explicit
8064 ac_need_defaults
=false
;;
8068 # Handling of the options.
8070 cat >>$CONFIG_STATUS <<\_ACEOF
8071 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8073 --version |
--vers* |
-V )
8074 echo "$ac_cs_version"; exit 0 ;;
8076 # Conflict between --help and --header
8077 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8078 Try \`$0 --help' for more information." >&5
8079 echo "$as_me: error: ambiguous option: $1
8080 Try \`$0 --help' for more information." >&2;}
8081 { (exit 1); exit 1; }; };;
8082 --help |
--hel |
-h )
8083 echo "$ac_cs_usage"; exit 0 ;;
8084 --debug |
--d* |
-d )
8086 --file |
--fil |
--fi |
--f )
8088 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8089 ac_need_defaults
=false
;;
8090 --header |
--heade |
--head |
--hea )
8092 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8093 ac_need_defaults
=false
;;
8094 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8095 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8099 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8100 Try \`$0 --help' for more information." >&5
8101 echo "$as_me: error: unrecognized option: $1
8102 Try \`$0 --help' for more information." >&2;}
8103 { (exit 1); exit 1; }; } ;;
8105 *) ac_config_targets
="$ac_config_targets $1" ;;
8111 ac_configure_extra_args
=
8113 if $ac_cs_silent; then
8115 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8119 cat >>$CONFIG_STATUS <<_ACEOF
8120 if \$ac_cs_recheck; then
8121 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8122 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8127 cat >>$CONFIG_STATUS <<_ACEOF
8129 # INIT-COMMANDS section.
8135 acx_cv_header_stdint="$acx_cv_header_stdint"
8136 acx_cv_type_int8_t="$acx_cv_type_int8_t"
8137 acx_cv_type_int16_t="$acx_cv_type_int16_t"
8138 acx_cv_type_int32_t="$acx_cv_type_int32_t"
8139 acx_cv_type_int64_t="$acx_cv_type_int64_t"
8140 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
8141 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
8142 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
8143 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
8144 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
8145 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
8146 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
8147 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
8148 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
8155 cat >>$CONFIG_STATUS <<\_ACEOF
8156 for ac_config_target
in $ac_config_targets
8158 case "$ac_config_target" in
8159 # Handling of arguments.
8160 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8161 "gstdint.h" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS gstdint.h" ;;
8162 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8163 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8164 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8165 { (exit 1); exit 1; }; };;
8169 # If the user did not use the arguments to specify the items to instantiate,
8170 # then the envvar interface is used. Set only those that are not.
8171 # We use the long form for the default assignment because of an extremely
8172 # bizarre bug on SunOS 4.1.3.
8173 if $ac_need_defaults; then
8174 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8175 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8176 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8179 # Have a temporary directory for convenience. Make it in the build tree
8180 # simply because there is no reason to put it here, and in addition,
8181 # creating and moving files from /tmp can sometimes cause problems.
8182 # Create a temporary directory, and hook for its removal unless debugging.
8185 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8186 trap '{ (exit 1); exit 1; }' 1 2 13 15
8189 # Create a (secure) tmp directory for tmp files.
8192 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8193 test -n "$tmp" && test -d "$tmp"
8196 tmp
=.
/confstat$$
-$RANDOM
8197 (umask 077 && mkdir
$tmp)
8200 echo "$me: cannot create a temporary directory in ." >&2
8201 { (exit 1); exit 1; }
8206 cat >>$CONFIG_STATUS <<_ACEOF
8209 # CONFIG_FILES section.
8212 # No need to generate the scripts if there are no CONFIG_FILES.
8213 # This happens for instance when ./config.status config.h
8214 if test -n "\$CONFIG_FILES"; then
8215 # Protect against being on the right side of a sed subst in config.status.
8216 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8217 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8218 s,@SHELL@,$SHELL,;t t
8219 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8220 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8221 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8222 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8223 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8224 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8225 s,@exec_prefix@,$exec_prefix,;t t
8226 s,@prefix@,$prefix,;t t
8227 s,@program_transform_name@,$program_transform_name,;t t
8228 s,@bindir@,$bindir,;t t
8229 s,@sbindir@,$sbindir,;t t
8230 s,@libexecdir@,$libexecdir,;t t
8231 s,@datadir@,$datadir,;t t
8232 s,@sysconfdir@,$sysconfdir,;t t
8233 s,@sharedstatedir@,$sharedstatedir,;t t
8234 s,@localstatedir@,$localstatedir,;t t
8235 s,@libdir@,$libdir,;t t
8236 s,@includedir@,$includedir,;t t
8237 s,@oldincludedir@,$oldincludedir,;t t
8238 s,@infodir@,$infodir,;t t
8239 s,@mandir@,$mandir,;t t
8240 s,@build_alias@,$build_alias,;t t
8241 s,@host_alias@,$host_alias,;t t
8242 s,@target_alias@,$target_alias,;t t
8244 s,@ECHO_C@,$ECHO_C,;t t
8245 s,@ECHO_N@,$ECHO_N,;t t
8246 s,@ECHO_T@,$ECHO_T,;t t
8248 s,@SET_MAKE@,$SET_MAKE,;t t
8250 s,@CFLAGS@,$CFLAGS,;t t
8251 s,@LDFLAGS@,$LDFLAGS,;t t
8252 s,@CPPFLAGS@,$CPPFLAGS,;t t
8253 s,@ac_ct_CC@,$ac_ct_CC,;t t
8254 s,@EXEEXT@,$EXEEXT,;t t
8255 s,@OBJEXT@,$OBJEXT,;t t
8256 s,@RANLIB@,$RANLIB,;t t
8257 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8258 s,@ACLOCAL@,$ACLOCAL,;t t
8259 s,@AUTOCONF@,$AUTOCONF,;t t
8260 s,@AUTOHEADER@,$AUTOHEADER,;t t
8261 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8262 s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t
8263 s,@WERROR@,$WERROR,;t t
8265 s,@EGREP@,$EGREP,;t t
8266 s,@MAINT@,$MAINT,;t t
8267 s,@enable_decimal_float@,$enable_decimal_float,;t t
8268 s,@LIBOBJS@,$LIBOBJS,;t t
8269 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8274 cat >>$CONFIG_STATUS <<\_ACEOF
8275 # Split the substitutions into bite-sized pieces for seds with
8276 # small command number limits, like on Digital OSF/1 and HP-UX.
8278 ac_sed_frag
=1 # Number of current file.
8279 ac_beg
=1 # First line for current file.
8280 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8283 while $ac_more_lines; do
8284 if test $ac_beg -gt 1; then
8285 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8287 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8289 if test ! -s $tmp/subs.frag
; then
8292 # The purpose of the label and of the branching condition is to
8293 # speed up the sed processing (if there are no `@' at all, there
8294 # is no need to browse any of the substitutions).
8295 # These are the two extra sed commands mentioned above.
8297 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8298 if test -z "$ac_sed_cmds"; then
8299 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8301 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8303 ac_sed_frag
=`expr $ac_sed_frag + 1`
8305 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8308 if test -z "$ac_sed_cmds"; then
8311 fi # test -n "$CONFIG_FILES"
8314 cat >>$CONFIG_STATUS <<\_ACEOF
8315 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8316 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8318 - |
*:- |
*:-:* ) # input from stdin
8320 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8321 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8322 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8323 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8324 * ) ac_file_in
=$ac_file.
in ;;
8327 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8328 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8329 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8330 X"$ac_file" : 'X\(//\)[^/]' \| \
8331 X"$ac_file" : 'X\(//\)$' \| \
8332 X"$ac_file" : 'X\(/\)' \| \
8333 . : '\(.\)' 2>/dev/null ||
8335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8337 /^X\(\/\/\)$/{ s//\1/; q; }
8338 /^X\(\/\).*/{ s//\1/; q; }
8340 { if $as_mkdir_p; then
8345 while test ! -d "$as_dir"; do
8346 as_dirs
="$as_dir $as_dirs"
8347 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8349 X"$as_dir" : 'X\(//\)[^/]' \| \
8350 X"$as_dir" : 'X\(//\)$' \| \
8351 X"$as_dir" : 'X\(/\)' \| \
8352 . : '\(.\)' 2>/dev/null ||
8354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8355 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8356 /^X\(\/\/\)$/{ s//\1/; q; }
8357 /^X\(\/\).*/{ s//\1/; q; }
8360 test ! -n "$as_dirs" || mkdir
$as_dirs
8361 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8362 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8363 { (exit 1); exit 1; }; }; }
8367 if test "$ac_dir" != .
; then
8368 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8369 # A "../" for each directory in $ac_dir_suffix.
8370 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8372 ac_dir_suffix
= ac_top_builddir
=
8376 .
) # No --srcdir option. We are building in place.
8378 if test -z "$ac_top_builddir"; then
8381 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8383 [\\/]* | ?
:[\\/]* ) # Absolute path.
8384 ac_srcdir
=$srcdir$ac_dir_suffix;
8385 ac_top_srcdir
=$srcdir ;;
8387 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8388 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8391 # Do not use `cd foo && pwd` to compute absolute paths, because
8392 # the directories may not exist.
8394 .
) ac_abs_builddir
="$ac_dir";;
8397 .
) ac_abs_builddir
=`pwd`;;
8398 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8399 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8402 case $ac_abs_builddir in
8403 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8405 case ${ac_top_builddir}.
in
8406 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8407 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8408 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8411 case $ac_abs_builddir in
8412 .
) ac_abs_srcdir
=$ac_srcdir;;
8415 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8416 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8417 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8420 case $ac_abs_builddir in
8421 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8423 case $ac_top_srcdir in
8424 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8425 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8426 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8432 if test x
"$ac_file" != x-
; then
8433 { echo "$as_me:$LINENO: creating $ac_file" >&5
8434 echo "$as_me: creating $ac_file" >&6;}
8437 # Let's still pretend it is `configure' which instantiates (i.e., don't
8438 # use $as_me), people would be surprised to read:
8439 # /* config.h. Generated by config.status. */
8440 if test x
"$ac_file" = x-
; then
8443 configure_input
="$ac_file. "
8445 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8446 sed 's,.*/,,'` by configure."
8448 # First look for the input files in the build tree, otherwise in the
8450 ac_file_inputs
=`IFS=:
8451 for f in $ac_file_in; do
8453 -) echo $tmp/stdin ;;
8455 # Absolute (can't be DOS-style, as IFS=:)
8456 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8457 echo "$as_me: error: cannot find input file: $f" >&2;}
8458 { (exit 1); exit 1; }; }
8461 if test -f "$f"; then
8464 elif test -f "$srcdir/$f"; then
8469 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8470 echo "$as_me: error: cannot find input file: $f" >&2;}
8471 { (exit 1); exit 1; }; }
8474 done` ||
{ (exit 1); exit 1; }
8476 cat >>$CONFIG_STATUS <<_ACEOF
8480 cat >>$CONFIG_STATUS <<\_ACEOF
8482 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8483 s
,@configure_input@
,$configure_input,;t t
8484 s
,@srcdir@
,$ac_srcdir,;t t
8485 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8486 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8487 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8488 s
,@builddir@
,$ac_builddir,;t t
8489 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8490 s
,@top_builddir@
,$ac_top_builddir,;t t
8491 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8492 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8494 if test x"$ac_file" != x-; then
8495 mv $tmp/out $ac_file
8503 cat >>$CONFIG_STATUS <<\_ACEOF
8506 # CONFIG_HEADER section.
8509 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8510 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8512 # ac_d sets the value in "#define NAME VALUE" lines.
8513 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8514 ac_dB
='[ ].*$,\1#\2'
8517 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8518 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8519 ac_uB
='$,\1#\2define\3'
8523 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8524 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8526 - |
*:- |
*:-:* ) # input from stdin
8528 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8529 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8530 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8531 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8532 * ) ac_file_in
=$ac_file.
in ;;
8535 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8536 echo "$as_me: creating $ac_file" >&6;}
8538 # First look for the input files in the build tree, otherwise in the
8540 ac_file_inputs
=`IFS=:
8541 for f in $ac_file_in; do
8543 -) echo $tmp/stdin ;;
8545 # Absolute (can't be DOS-style, as IFS=:)
8546 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8547 echo "$as_me: error: cannot find input file: $f" >&2;}
8548 { (exit 1); exit 1; }; }
8549 # Do quote $f, to prevent DOS paths from being IFS'd.
8552 if test -f "$f"; then
8555 elif test -f "$srcdir/$f"; then
8560 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8561 echo "$as_me: error: cannot find input file: $f" >&2;}
8562 { (exit 1); exit 1; }; }
8565 done` ||
{ (exit 1); exit 1; }
8566 # Remove the trailing spaces.
8567 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8571 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8572 # `conftest.undefs', that substitutes the proper values into
8573 # config.h.in to produce config.h. The first handles `#define'
8574 # templates, and the second `#undef' templates.
8575 # And first: Protect against being on the right side of a sed subst in
8576 # config.status. Protect against being in an unquoted here document
8578 rm -f conftest.defines conftest.undefs
8579 # Using a here document instead of a string reduces the quoting nightmare.
8580 # Putting comments in sed scripts is not portable.
8582 # `end' is used to avoid that the second main sed command (meant for
8583 # 0-ary CPP macros) applies to n-ary macro definitions.
8584 # See the Autoconf documentation for `clear'.
8585 cat >confdef2sed.
sed <<\_ACEOF
8590 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8592 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8595 # If some macros were called several times there might be several times
8596 # the same #defines, which is useless. Nevertheless, we may not want to
8597 # sort them, since we want the *last* AC-DEFINE to be honored.
8598 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8599 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8600 rm -f confdef2sed.sed
8602 # This sed command replaces #undef with comments. This is necessary, for
8603 # example, in the case of _POSIX_SOURCE, which is predefined and required
8604 # on some systems where configure will not decide to define it.
8605 cat >>conftest.undefs <<\_ACEOF
8606 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8609 # Break up conftest.defines because some shells have a limit on the size
8610 # of here documents, and old seds have small limits too (100 cmds).
8611 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8612 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8613 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8614 echo ' :' >>$CONFIG_STATUS
8616 while grep . conftest.defines >/dev/null
8618 # Write a limited-size here document to $tmp/defines.sed.
8619 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8620 # Speed up: don't consider the non `#define' lines.
8621 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8622 # Work around the forget-to-reset-the-flag bug.
8623 echo 't clr' >>$CONFIG_STATUS
8624 echo ': clr' >>$CONFIG_STATUS
8625 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8627 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8631 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8632 rm -f conftest.defines
8633 mv conftest.
tail conftest.defines
8635 rm -f conftest.defines
8636 echo ' fi # grep' >>$CONFIG_STATUS
8637 echo >>$CONFIG_STATUS
8639 # Break up conftest.undefs because some shells have a limit on the size
8640 # of here documents, and old seds have small limits too (100 cmds).
8641 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8643 while grep . conftest.undefs
>/dev
/null
8645 # Write a limited-size here document to $tmp/undefs.sed.
8646 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8647 # Speed up: don't consider the non
`#undef'
8648 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8649 # Work around the forget-to-reset-the-flag bug.
8650 echo 't clr' >>$CONFIG_STATUS
8651 echo ': clr' >>$CONFIG_STATUS
8652 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8654 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8658 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8659 rm -f conftest.undefs
8660 mv conftest.tail conftest.undefs
8662 rm -f conftest.undefs
8664 cat >>$CONFIG_STATUS <<\_ACEOF
8665 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8666 # use $as_me), people would be surprised to read:
8667 # /* config.h. Generated by config.status. */
8668 if test x
"$ac_file" = x-
; then
8669 echo "/* Generated by configure. */" >$tmp/config.h
8671 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8673 cat $tmp/in >>$tmp/config.h
8675 if test x
"$ac_file" != x-
; then
8676 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8677 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8678 echo "$as_me: $ac_file is unchanged" >&6;}
8680 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8681 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8682 X"$ac_file" : 'X\(//\)[^/]' \| \
8683 X"$ac_file" : 'X\(//\)$' \| \
8684 X"$ac_file" : 'X\(/\)' \| \
8685 . : '\(.\)' 2>/dev/null ||
8687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8689 /^X\(\/\/\)$/{ s//\1/; q; }
8690 /^X\(\/\).*/{ s//\1/; q; }
8692 { if $as_mkdir_p; then
8697 while test ! -d "$as_dir"; do
8698 as_dirs
="$as_dir $as_dirs"
8699 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8700 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8701 X"$as_dir" : 'X\(//\)[^/]' \| \
8702 X"$as_dir" : 'X\(//\)$' \| \
8703 X"$as_dir" : 'X\(/\)' \| \
8704 . : '\(.\)' 2>/dev/null ||
8706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8708 /^X\(\/\/\)$/{ s//\1/; q; }
8709 /^X\(\/\).*/{ s//\1/; q; }
8712 test ! -n "$as_dirs" || mkdir
$as_dirs
8713 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8714 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8715 { (exit 1); exit 1; }; }; }
8718 mv $tmp/config.h
$ac_file
8724 # Run the commands associated with the file.
8726 config.h
) echo timestamp
> stamp-h1
;;
8730 cat >>$CONFIG_STATUS <<\_ACEOF
8733 # CONFIG_COMMANDS section.
8735 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
8736 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8737 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8738 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8739 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8740 X"$ac_dest" : 'X\(//\)[^/]' \| \
8741 X"$ac_dest" : 'X\(//\)$' \| \
8742 X"$ac_dest" : 'X\(/\)' \| \
8743 . : '\(.\)' 2>/dev/null ||
8745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8747 /^X\(\/\/\)$/{ s//\1/; q; }
8748 /^X\(\/\).*/{ s//\1/; q; }
8750 { if $as_mkdir_p; then
8755 while test ! -d "$as_dir"; do
8756 as_dirs
="$as_dir $as_dirs"
8757 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8759 X"$as_dir" : 'X\(//\)[^/]' \| \
8760 X"$as_dir" : 'X\(//\)$' \| \
8761 X"$as_dir" : 'X\(/\)' \| \
8762 . : '\(.\)' 2>/dev/null ||
8764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8765 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8766 /^X\(\/\/\)$/{ s//\1/; q; }
8767 /^X\(\/\).*/{ s//\1/; q; }
8770 test ! -n "$as_dirs" || mkdir
$as_dirs
8771 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8772 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8773 { (exit 1); exit 1; }; }; }
8777 if test "$ac_dir" != .
; then
8778 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8779 # A "../" for each directory in $ac_dir_suffix.
8780 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8782 ac_dir_suffix
= ac_top_builddir
=
8786 .
) # No --srcdir option. We are building in place.
8788 if test -z "$ac_top_builddir"; then
8791 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8793 [\\/]* | ?
:[\\/]* ) # Absolute path.
8794 ac_srcdir
=$srcdir$ac_dir_suffix;
8795 ac_top_srcdir
=$srcdir ;;
8797 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8798 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8801 # Do not use `cd foo && pwd` to compute absolute paths, because
8802 # the directories may not exist.
8804 .
) ac_abs_builddir
="$ac_dir";;
8807 .
) ac_abs_builddir
=`pwd`;;
8808 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8809 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8812 case $ac_abs_builddir in
8813 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8815 case ${ac_top_builddir}.
in
8816 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8817 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8818 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8821 case $ac_abs_builddir in
8822 .
) ac_abs_srcdir
=$ac_srcdir;;
8825 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8826 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8827 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8830 case $ac_abs_builddir in
8831 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8833 case $ac_top_srcdir in
8834 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8835 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8836 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8841 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8842 echo "$as_me: executing $ac_dest commands" >&6;}
8845 if test "$GCC" = yes; then
8846 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
8848 echo "/* generated for $CC */" > tmp-stdint.h
8851 sed 's/^ *//' >> tmp-stdint.h
<<EOF
8853 #ifndef GCC_GENERATED_STDINT_H
8854 #define GCC_GENERATED_STDINT_H 1
8856 #include <sys/types.h>
8859 if test "$acx_cv_header_stdint" != stdint.h
; then
8860 echo "#include <stddef.h>" >> tmp-stdint.h
8862 if test "$acx_cv_header_stdint" != stddef.h
; then
8863 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
8866 sed 's/^ *//' >> tmp-stdint.h
<<EOF
8867 /* glibc uses these symbols as guards to prevent redefinitions. */
8868 #ifdef __int8_t_defined
8873 #ifdef __uint32_t_defined
8879 # ----------------- done header, emit basic int types -------------
8880 if test "$acx_cv_header_stdint" = stddef.h
; then
8881 sed 's/^ *//' >> tmp-stdint.h
<<EOF
8885 #ifndef __uint8_t_defined
8886 #define __uint8_t_defined
8887 typedef unsigned $acx_cv_type_int8_t uint8_t;
8893 #ifndef __uint16_t_defined
8894 #define __uint16_t_defined
8895 typedef unsigned $acx_cv_type_int16_t uint16_t;
8901 #ifndef __uint32_t_defined
8902 #define __uint32_t_defined
8903 typedef unsigned $acx_cv_type_int32_t uint32_t;
8909 #ifndef __int8_t_defined
8910 #define __int8_t_defined
8911 typedef $acx_cv_type_int8_t int8_t;
8917 #ifndef __int16_t_defined
8918 #define __int16_t_defined
8919 typedef $acx_cv_type_int16_t int16_t;
8925 #ifndef __int32_t_defined
8926 #define __int32_t_defined
8927 typedef $acx_cv_type_int32_t int32_t;
8931 elif test "$ac_cv_type_u_int32_t" = yes; then
8932 sed 's/^ *//' >> tmp-stdint.h
<<EOF
8934 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
8947 #ifndef __uint8_t_defined
8948 #define __uint8_t_defined
8949 typedef u_int8_t uint8_t;
8955 #ifndef __uint16_t_defined
8956 #define __uint16_t_defined
8957 typedef u_int16_t uint16_t;
8963 #ifndef __uint32_t_defined
8964 #define __uint32_t_defined
8965 typedef u_int32_t uint32_t;
8970 sed 's/^ *//' >> tmp-stdint.h
<<EOF
8972 /* Some systems have guard macros to prevent redefinitions, define them. */
8994 # ------------- done basic int types, emit int64_t types ------------
8995 if test "$ac_cv_type_uint64_t" = yes; then
8996 sed 's/^ *//' >> tmp-stdint.h
<<EOF
8998 /* system headers have good uint64_t and int64_t */
9006 elif test "$ac_cv_type_u_int64_t" = yes; then
9007 sed 's/^ *//' >> tmp-stdint.h
<<EOF
9009 /* system headers have an u_int64_t (and int64_t) */
9015 #ifndef __uint64_t_defined
9016 #define __uint64_t_defined
9017 typedef u_int64_t uint64_t;
9021 elif test -n "$acx_cv_type_int64_t"; then
9022 sed 's/^ *//' >> tmp-stdint.h
<<EOF
9024 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
9027 typedef $acx_cv_type_int64_t int64_t;
9031 #ifndef __uint64_t_defined
9032 #define __uint64_t_defined
9033 typedef unsigned $acx_cv_type_int64_t uint64_t;
9038 sed 's/^ *//' >> tmp-stdint.h
<<EOF
9040 /* some common heuristics for int64_t, using compiler-specific tests */
9041 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
9044 #ifndef __int64_t_defined
9045 typedef long long int64_t;
9050 typedef unsigned long long uint64_t;
9053 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
9054 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
9055 does not implement __extension__. But that compiler doesn't define
9057 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
9058 # define __extension__
9063 __extension__ typedef long long int64_t;
9067 __extension__ typedef unsigned long long uint64_t;
9070 #elif !defined __STRICT_ANSI__
9071 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
9075 typedef __int64 int64_t;
9079 typedef unsigned __int64 uint64_t;
9081 # endif /* compiler */
9083 #endif /* ANSI version */
9087 # ------------- done int64_t types, emit intptr types ------------
9088 if test "$ac_cv_type_uintptr_t" != yes; then
9089 sed 's/^ *//' >> tmp-stdint.h
<<EOF
9091 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
9092 #ifndef __uintptr_t_defined
9093 typedef u$acx_cv_type_intptr_t uintptr_t;
9095 #ifndef __intptr_t_defined
9096 typedef $acx_cv_type_intptr_t intptr_t;
9101 # ------------- done intptr types, emit int_least types ------------
9102 if test "$ac_cv_type_int_least32_t" != yes; then
9103 sed 's/^ *//' >> tmp-stdint.h
<<EOF
9105 /* Define int_least types */
9106 typedef int8_t int_least8_t;
9107 typedef int16_t int_least16_t;
9108 typedef int32_t int_least32_t;
9110 typedef int64_t int_least64_t;
9113 typedef uint8_t uint_least8_t;
9114 typedef uint16_t uint_least16_t;
9115 typedef uint32_t uint_least32_t;
9117 typedef uint64_t uint_least64_t;
9122 # ------------- done intptr types, emit int_fast types ------------
9123 if test "$ac_cv_type_int_fast32_t" != yes; then
9124 sed 's/^ *//' >> tmp-stdint.h
<<EOF
9126 /* Define int_fast types. short is often slow */
9127 typedef int8_t int_fast8_t;
9128 typedef int int_fast16_t;
9129 typedef int32_t int_fast32_t;
9131 typedef int64_t int_fast64_t;
9134 typedef uint8_t uint_fast8_t;
9135 typedef unsigned int uint_fast16_t;
9136 typedef uint32_t uint_fast32_t;
9138 typedef uint64_t uint_fast64_t;
9143 if test "$ac_cv_type_uintmax_t" != yes; then
9144 sed 's/^ *//' >> tmp-stdint.h
<<EOF
9146 /* Define intmax based on what we found */
9148 typedef int64_t intmax_t;
9150 typedef long intmax_t;
9153 typedef uint64_t uintmax_t;
9155 typedef unsigned long uintmax_t;
9160 sed 's/^ *//' >> tmp-stdint.h
<<EOF
9162 #endif /* GCC_GENERATED_STDINT_H */
9165 if test -r gstdint.h
&& cmp -s tmp-stdint.h gstdint.h
; then
9168 mv -f tmp-stdint.h gstdint.h
9176 cat >>$CONFIG_STATUS <<\_ACEOF
9178 { (exit 0); exit 0; }
9180 chmod +x
$CONFIG_STATUS
9181 ac_clean_files
=$ac_clean_files_save
9184 # configure is writing to config.log, and then calls config.status.
9185 # config.status does its own redirection, appending to config.log.
9186 # Unfortunately, on DOS this fails, as config.log is still kept open
9187 # by configure, so config.status won't be able to write to it; its
9188 # output is simply discarded. So we exec the FD to /dev/null,
9189 # effectively closing config.log, so it can be properly (re)opened and
9190 # appended to by config.status. When coming back to configure, we
9191 # need to make the FD available again.
9192 if test "$no_create" != yes; then
9194 ac_config_status_args
=
9195 test "$silent" = yes &&
9196 ac_config_status_args
="$ac_config_status_args --quiet"
9198 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9200 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9201 # would make configure fail if this is the last instruction.
9202 $ac_cs_success ||
{ (exit 1); exit 1; }