2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libsndfile ardour-special.
5 # Report bugs to <ardour@ardour.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='libsndfile'
271 PACKAGE_TARNAME='libsndfile'
272 PACKAGE_VERSION='ardour-special'
273 PACKAGE_STRING='libsndfile ardour-special'
274 PACKAGE_BUGREPORT='ardour@ardour.org'
276 ac_unique_file="src/sndfile.c"
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT autogen INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CPP EGREP GETCONF ac_ct_GETCONF TYPEOF_SF_COUNT_T SIZEOF_SF_COUNT_T SF_COUNT_MAX PKG_CONFIG SQLITE3_CFLAGS SQLITE3_LIBS htmldocdir HTML_BGCOLOUR HTML_FGCOLOUR SHLIB_VERSION_ARG SHARED_VERSION_INFO OS_SPECIFIC_CFLAGS OS_SPECIFIC_LINKS ALSA_LIBS FLAC_LIBS ENABLE_EXPERIMENTAL_CODE COMPILER_IS_GCC GCC_MAJOR_VERSION LIBTOOL_DEPS 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 libsndfile ardour-special to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libsndfile ardour-special:";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-experimental enable experimental code
853 --enable-gcc-werror enable -Werror in all Makefiles
854 --disable-gcc-pipe disable gcc -pipe option
855 --disable-gcc-opt disable gcc optimisations
856 --disable-cpu-clip disable tricky cpu specific clipper
857 --enable-bow-docs enable black-on-white html docs
858 --disable-sqlite disable use of sqlite
859 --disable-flac disable use of FLAC
860 --disable-alsa disable use of ALSA
861 --disable-largefile omit support for large files
863 Some influential environment variables:
864 CC C compiler command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
867 nonstandard directory <lib dir>
868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
869 headers in a nonstandard directory <include dir>
872 Use these variables to override the choices made by `configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
875 Report bugs to <ardour@ardour.org>.
879 if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883 test -d $ac_dir || continue
886 if test "$ac_dir" != .; then
887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888 # A "../" for each directory in $ac_dir_suffix.
889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 ac_dir_suffix= ac_top_builddir=
895 .) # No --srcdir option. We are building in place.
897 if test -z "$ac_top_builddir"; then
900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902 [\\/]* | ?:[\\/]* ) # Absolute path.
903 ac_srcdir=$srcdir$ac_dir_suffix;
904 ac_top_srcdir=$srcdir ;;
906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907 ac_top_srcdir=$ac_top_builddir$srcdir ;;
910 # Do not use `cd foo && pwd` to compute absolute paths, because
911 # the directories may not exist.
913 .) ac_abs_builddir="$ac_dir";;
916 .) ac_abs_builddir=`pwd`;;
917 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
918 *) ac_abs_builddir=`pwd`/"$ac_dir";;
921 case $ac_abs_builddir in
922 .) ac_abs_top_builddir=${ac_top_builddir}.;;
924 case ${ac_top_builddir}. in
925 .) ac_abs_top_builddir=$ac_abs_builddir;;
926 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
927 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
930 case $ac_abs_builddir in
931 .) ac_abs_srcdir=$ac_srcdir;;
934 .) ac_abs_srcdir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
936 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
939 case $ac_abs_builddir in
940 .) ac_abs_top_srcdir=$ac_top_srcdir;;
942 case $ac_top_srcdir in
943 .) ac_abs_top_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
945 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950 # Check for guested configure; otherwise get Cygnus style configure.
951 if test -f $ac_srcdir/configure.gnu; then
953 $SHELL $ac_srcdir/configure.gnu --help=recursive
954 elif test -f $ac_srcdir/configure; then
956 $SHELL $ac_srcdir/configure --help=recursive
957 elif test -f $ac_srcdir/configure.ac ||
958 test -f $ac_srcdir/configure.in; then
962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
971 libsndfile configure ardour-special
972 generated by GNU Autoconf 2.59
974 Copyright (C) 2003 Free Software Foundation, Inc.
975 This configure script is free software; the Free Software Foundation
976 gives unlimited permission to copy, distribute and modify it.
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
985 It was created by libsndfile $as_me ardour-special, which was
986 generated by GNU Autoconf 2.59. Invocation command line was
997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 test -z "$as_dir" && as_dir=.
1021 echo "PATH: $as_dir"
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Strip out --silent because we don't want to record it for future runs.
1039 # Also quote any args containing shell meta-characters.
1040 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_must_keep_next=false
1051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1055 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062 if test $ac_must_keep_next = true; then
1063 ac_must_keep_next=false # Got value, back to normal.
1066 *=* | --config-cache | -C | -disable-* | --disable-* \
1067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069 | -with-* | --with-* | -without-* | --without-* | --x)
1070 case "$ac_configure_args0 " in
1071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074 -* ) ac_must_keep_next=true ;;
1077 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078 # Get rid of the leading space.
1084 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087 # When interrupted or exit'd, cleanup temporary files, and complete
1088 # config.log. We remove comments because anyway the quotes in there
1089 # would cause problems or look ugly.
1090 # WARNING: Be sure not to use single quotes in there, as some shells,
1091 # such as our DU 5.0 friend, will then `close' the trap.
1092 trap 'exit_status=$?
1093 # Save into config.log some information that might help in debugging.
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1103 # The following way of writing the cache mishandles newlines in values,
1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1126 for ac_var in $ac_subst_vars
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1133 if test -n "$ac_subst_files"; then
1140 for ac_var in $ac_subst_files
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1148 if test -s confdefs.h; then
1155 sed "/^$/d" confdefs.h | sort
1158 test "$ac_signal" != 0 &&
1159 echo "$as_me: caught signal $ac_signal"
1160 echo "$as_me: exit $exit_status"
1162 rm -f core *.core &&
1163 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166 for ac_signal in 1 2 13 15; do
1167 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1172 rm -rf conftest* confdefs.h
1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 # Predefined preprocessor variables.
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203 # Let the site file select an alternate cache file if it wants to.
1204 # Prefer explicitly selected file to automatically selected ones.
1205 if test -z "$CONFIG_SITE"; then
1206 if test "x$prefix" != xNONE; then
1207 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212 for ac_site_file in $CONFIG_SITE; do
1213 if test -r "$ac_site_file"; then
1214 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215 echo "$as_me: loading site script $ac_site_file" >&6;}
1216 sed 's/^/| /' "$ac_site_file" >&5
1221 if test -r "$cache_file"; then
1222 # Some versions of bash will fail to source /dev/null (special
1223 # files actually), so we avoid doing that.
1224 if test -f "$cache_file"; then
1225 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1228 [\\/]* | ?:[\\/]* ) . $cache_file;;
1229 *) . ./$cache_file;;
1233 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1238 # Check that the precious variables saved in the cache have kept the same
1240 ac_cache_corrupted=false
1241 for ac_var in `(set) 2>&1 |
1242 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244 eval ac_new_set=\$ac_env_${ac_var}_set
1245 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246 eval ac_new_val="\$ac_env_${ac_var}_value"
1247 case $ac_old_set,$ac_new_set in
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1258 if test "x$ac_old_val" != "x$ac_new_val"; then
1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1262 echo "$as_me: former value: $ac_old_val" >&2;}
1263 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1264 echo "$as_me: current value: $ac_new_val" >&2;}
1265 ac_cache_corrupted=:
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg=$ac_var=$ac_new_val ;;
1275 case " $ac_configure_args " in
1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1277 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281 if $ac_cache_corrupted; then
1282 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286 { (exit 1); exit 1; }; }
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324 if test -f $ac_dir/install-sh; then
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 elif test -f $ac_dir/install.sh; then
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 elif test -f $ac_dir/shtool; then
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341 { (exit 1); exit 1; }; }
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347 # Make sure we can run config.sub.
1348 $ac_config_sub sun4 >/dev/null 2>&1 ||
1349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351 { (exit 1); exit 1; }; }
1353 echo "$as_me:$LINENO: checking build system type" >&5
1354 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355 if test "${ac_cv_build+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 ac_cv_build_alias=$build_alias
1359 test -z "$ac_cv_build_alias" &&
1360 ac_cv_build_alias=`$ac_config_guess`
1361 test -z "$ac_cv_build_alias" &&
1362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364 { (exit 1); exit 1; }; }
1365 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1371 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372 echo "${ECHO_T}$ac_cv_build" >&6
1374 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379 echo "$as_me:$LINENO: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401 echo "$as_me:$LINENO: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 # The aliases save the names the user supplied, while $host etc.
1424 # will get canonicalized.
1425 test -n "$target_alias" &&
1426 test "$program_prefix$program_suffix$program_transform_name" = \
1428 program_prefix=${target_alias}-
1430 ac_config_headers="$ac_config_headers src/config.h"
1434 ac_cpp='$CPP $CPPFLAGS'
1435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1440 #------------------------------------------------------------------------------------
1441 # Rules for library version information:
1443 # 1. Start with version information of `0:0:0' for each libtool library.
1444 # 2. Update the version information only immediately before a public release of
1445 # your software. More frequent updates are unnecessary, and only guarantee
1446 # that the current interface number gets larger faster.
1447 # 3. If the library source code has changed at all since the last update, then
1448 # increment revision (`c:r:a' becomes `c:r+1:a').
1449 # 4. If any interfaces have been added, removed, or changed since the last update,
1450 # increment current, and set revision to 0.
1451 # 5. If any interfaces have been added since the last public release, then increment
1453 # 6. If any interfaces have been removed since the last public release, then set age
1456 SHARED_VERSION_INFO="1:16:0"
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463 if test -n "$ac_tool_prefix"; then
1464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1465 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1466 echo "$as_me:$LINENO: checking for $ac_word" >&5
1467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468 if test "${ac_cv_prog_CC+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC="$CC" # Let the user override the test.
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 test -z "$as_dir" && as_dir=.
1479 for ac_exec_ext in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 if test -n "$CC"; then
1492 echo "$as_me:$LINENO: result: $CC" >&5
1493 echo "${ECHO_T}$CC" >&6
1495 echo "$as_me:$LINENO: result: no" >&5
1496 echo "${ECHO_T}no" >&6
1500 if test -z "$ac_cv_prog_CC"; then
1502 # Extract the first word of "gcc", so it can be a program name with args.
1503 set dummy gcc; ac_word=$2
1504 echo "$as_me:$LINENO: checking for $ac_word" >&5
1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 if test -n "$ac_ct_CC"; then
1510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516 test -z "$as_dir" && as_dir=.
1517 for ac_exec_ext in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519 ac_cv_prog_ac_ct_CC="gcc"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1529 if test -n "$ac_ct_CC"; then
1530 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531 echo "${ECHO_T}$ac_ct_CC" >&6
1533 echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1542 if test -z "$CC"; then
1543 if test -n "$ac_tool_prefix"; then
1544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1545 set dummy ${ac_tool_prefix}cc; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_CC="${ac_tool_prefix}cc"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 if test -n "$CC"; then
1572 echo "$as_me:$LINENO: result: $CC" >&5
1573 echo "${ECHO_T}$CC" >&6
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1580 if test -z "$ac_cv_prog_CC"; then
1582 # Extract the first word of "cc", so it can be a program name with args.
1583 set dummy cc; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC="cc"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1623 if test -z "$CC"; then
1624 # Extract the first word of "cc", so it can be a program name with args.
1625 set dummy cc; ac_word=$2
1626 echo "$as_me:$LINENO: checking for $ac_word" >&5
1627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628 if test "${ac_cv_prog_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 if test -n "$CC"; then
1632 ac_cv_prog_CC="$CC" # Let the user override the test.
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1643 ac_prog_rejected=yes
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 if test $ac_prog_rejected = yes; then
1654 # We found a bogon in the path, so make sure we never use it.
1655 set dummy $ac_cv_prog_CC
1657 if test $# != 0; then
1658 # We chose a different compiler from the bogus one.
1659 # However, it has the same basename, so the bogon will be chosen
1660 # first if we set CC to just the basename; use the full file name.
1662 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1668 if test -n "$CC"; then
1669 echo "$as_me:$LINENO: result: $CC" >&5
1670 echo "${ECHO_T}$CC" >&6
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1677 if test -z "$CC"; then
1678 if test -n "$ac_tool_prefix"; then
1681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1682 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_CC+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC="$CC" # Let the user override the test.
1691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 test -z "$as_dir" && as_dir=.
1696 for ac_exec_ext in '' $ac_executable_extensions; do
1697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 if test -n "$CC"; then
1709 echo "$as_me:$LINENO: result: $CC" >&5
1710 echo "${ECHO_T}$CC" >&6
1712 echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1716 test -n "$CC" && break
1719 if test -z "$CC"; then
1723 # Extract the first word of "$ac_prog", so it can be a program name with args.
1724 set dummy $ac_prog; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_ac_ct_CC="$ac_prog"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750 if test -n "$ac_ct_CC"; then
1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752 echo "${ECHO_T}$ac_ct_CC" >&6
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1758 test -n "$ac_ct_CC" && break
1767 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1768 See \`config.log' for more details." >&5
1769 echo "$as_me: error: no acceptable C compiler found in \$PATH
1770 See \`config.log' for more details." >&2;}
1771 { (exit 1); exit 1; }; }
1773 # Provide some information about the compiler.
1774 echo "$as_me:$LINENO:" \
1775 "checking for C compiler version" >&5
1776 ac_compiler=`set X $ac_compile; echo $2`
1777 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1778 (eval $ac_compiler --version </dev/null >&5) 2>&5
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); }
1782 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1783 (eval $ac_compiler -v </dev/null >&5) 2>&5
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1788 (eval $ac_compiler -V </dev/null >&5) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1793 cat >conftest.$ac_ext <<_ACEOF
1796 cat confdefs.h >>conftest.$ac_ext
1797 cat >>conftest.$ac_ext <<_ACEOF
1798 /* end confdefs.h. */
1808 ac_clean_files_save=$ac_clean_files
1809 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1810 # Try to create an executable without -o first, disregard a.out.
1811 # It will help us diagnose broken compilers, and finding out an intuition
1813 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1814 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1815 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1816 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1817 (eval $ac_link_default) 2>&5
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 # Find the output, starting from the most likely. This scheme is
1822 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1825 # Be careful to initialize this variable, since it used to be cached.
1826 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1828 # b.out is created by i960 compilers.
1829 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1831 test -f "$ac_file" || continue
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1836 # This is the source file.
1839 # We found the default executable, but exeext='' is most
1843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844 # FIXME: I believe we export ac_cv_exeext for Libtool,
1845 # but it would be cool to find out if it's true. Does anybody
1846 # maintain Libtool? --akim.
1854 echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: C compiler cannot create executables
1860 See \`config.log' for more details." >&2;}
1861 { (exit 77); exit 77; }; }
1864 ac_exeext=$ac_cv_exeext
1865 echo "$as_me:$LINENO: result: $ac_file" >&5
1866 echo "${ECHO_T}$ac_file" >&6
1868 # Check the compiler produces executables we can run. If not, either
1869 # the compiler is broken, or we cross compile.
1870 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1871 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1872 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1873 # If not cross compiling, check that we can run a simple program.
1874 if test "$cross_compiling" != yes; then
1875 if { ac_try='./$ac_file'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; }; then
1883 if test "$cross_compiling" = maybe; then
1886 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1887 If you meant to cross compile, use \`--host'.
1888 See \`config.log' for more details." >&5
1889 echo "$as_me: error: cannot run C compiled programs.
1890 If you meant to cross compile, use \`--host'.
1891 See \`config.log' for more details." >&2;}
1892 { (exit 1); exit 1; }; }
1896 echo "$as_me:$LINENO: result: yes" >&5
1897 echo "${ECHO_T}yes" >&6
1899 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1900 ac_clean_files=$ac_clean_files_save
1901 # Check the compiler produces executables we can run. If not, either
1902 # the compiler is broken, or we cross compile.
1903 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1904 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1905 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1906 echo "${ECHO_T}$cross_compiling" >&6
1908 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1909 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911 (eval $ac_link) 2>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; then
1915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1917 # work properly (i.e., refer to `conftest.exe'), while it won't with
1919 for ac_file in conftest.exe conftest conftest.*; do
1920 test -f "$ac_file" || continue
1922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }
1937 rm -f conftest$ac_cv_exeext
1938 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1939 echo "${ECHO_T}$ac_cv_exeext" >&6
1941 rm -f conftest.$ac_ext
1942 EXEEXT=$ac_cv_exeext
1944 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1945 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1946 if test "${ac_cv_objext+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 cat >conftest.$ac_ext <<_ACEOF
1952 cat confdefs.h >>conftest.$ac_ext
1953 cat >>conftest.$ac_ext <<_ACEOF
1954 /* end confdefs.h. */
1964 rm -f conftest.o conftest.obj
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; then
1970 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1978 echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1981 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1982 See \`config.log' for more details." >&5
1983 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1984 See \`config.log' for more details." >&2;}
1985 { (exit 1); exit 1; }; }
1988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1990 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1991 echo "${ECHO_T}$ac_cv_objext" >&6
1992 OBJEXT=$ac_cv_objext
1994 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1995 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1996 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 cat >conftest.$ac_ext <<_ACEOF
2002 cat confdefs.h >>conftest.$ac_ext
2003 cat >>conftest.$ac_ext <<_ACEOF
2004 /* end confdefs.h. */
2017 rm -f conftest.$ac_objext
2018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019 (eval $ac_compile) 2>conftest.er1
2021 grep -v '^ *+' conftest.er1 >conftest.err
2023 cat conftest.err >&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try='test -z "$ac_c_werror_flag"
2027 || test ! -s conftest.err'
2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; } &&
2033 { ac_try='test -s conftest.$ac_objext'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
2041 echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2050 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2052 GCC=`test $ac_compiler_gnu = yes && echo yes`
2053 ac_test_CFLAGS=${CFLAGS+set}
2054 ac_save_CFLAGS=$CFLAGS
2056 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2058 if test "${ac_cv_prog_cc_g+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 cat >conftest.$ac_ext <<_ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h. */
2076 rm -f conftest.$ac_objext
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078 (eval $ac_compile) 2>conftest.er1
2080 grep -v '^ *+' conftest.er1 >conftest.err
2082 cat conftest.err >&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
2085 { ac_try='test -z "$ac_c_werror_flag"
2086 || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2100 echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2107 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2108 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2109 if test "$ac_test_CFLAGS" = set; then
2110 CFLAGS=$ac_save_CFLAGS
2111 elif test $ac_cv_prog_cc_g = yes; then
2112 if test "$GCC" = yes; then
2118 if test "$GCC" = yes; then
2124 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2125 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2126 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 ac_cv_prog_cc_stdc=no
2131 cat >conftest.$ac_ext <<_ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2139 #include <sys/types.h>
2140 #include <sys/stat.h>
2141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2142 struct buf { int x; };
2143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2144 static char *e (p, i)
2150 static char *f (char * (*g) (char **, int), char **p, ...)
2155 s = g (p, va_arg (v,int));
2160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2161 function prototypes and stuff, but not '\xHH' hex character constants.
2162 These don't provoke an error unfortunately, instead are silently treated
2163 as 'x'. The following induces an error, until -std1 is added to get
2164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2165 array size at least. It's necessary to write '\x00'==0 to get something
2166 that's true only with -std1. */
2167 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2169 int test (int i, double x);
2170 struct s1 {int (*f) (int a);};
2171 struct s2 {int (*f) (double a);};
2172 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2178 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2183 # Don't try gcc -ansi; that turns off useful extensions and
2184 # breaks some systems' header files.
2185 # AIX -qlanglvl=ansi
2186 # Ultrix and OSF/1 -std1
2187 # HP-UX 10.20 and later -Ae
2188 # HP-UX older versions -Aa -D_HPUX_SOURCE
2189 # SVR4 -Xc -D__EXTENSIONS__
2190 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2192 CC="$ac_save_CC $ac_arg"
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2197 grep -v '^ *+' conftest.er1 >conftest.err
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 ac_cv_prog_cc_stdc=$ac_arg
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2222 rm -f conftest.err conftest.$ac_objext
2224 rm -f conftest.$ac_ext conftest.$ac_objext
2229 case "x$ac_cv_prog_cc_stdc" in
2231 echo "$as_me:$LINENO: result: none needed" >&5
2232 echo "${ECHO_T}none needed" >&6 ;;
2234 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2235 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2236 CC="$CC $ac_cv_prog_cc_stdc" ;;
2239 # Some people use a C++ compiler to compile C. Since we use `exit',
2240 # in C++ we need to declare it. In case someone uses the same compiler
2241 # for both compiling C and C++ we need to have the C++ compiler decide
2242 # the declaration of exit, since it's the most demanding environment.
2243 cat >conftest.$ac_ext <<_ACEOF
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>conftest.er1
2252 grep -v '^ *+' conftest.er1 >conftest.err
2254 cat conftest.err >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -z "$ac_c_werror_flag"
2258 || test ! -s conftest.err'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 for ac_declaration in \
2272 'extern "C" void std::exit (int) throw (); using std::exit;' \
2273 'extern "C" void std::exit (int); using std::exit;' \
2274 'extern "C" void exit (int) throw ();' \
2275 'extern "C" void exit (int);' \
2278 cat >conftest.$ac_ext <<_ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>conftest.er1
2298 grep -v '^ *+' conftest.er1 >conftest.err
2300 cat conftest.err >&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try='test -z "$ac_c_werror_flag"
2304 || test ! -s conftest.err'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; } &&
2310 { ac_try='test -s conftest.$ac_objext'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; }; then
2318 echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2324 cat >conftest.$ac_ext <<_ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2339 rm -f conftest.$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>conftest.er1
2343 grep -v '^ *+' conftest.er1 >conftest.err
2345 cat conftest.err >&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } &&
2348 { ac_try='test -z "$ac_c_werror_flag"
2349 || test ! -s conftest.err'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2370 if test -n "$ac_declaration"; then
2371 echo '#ifdef __cplusplus' >>confdefs.h
2372 echo $ac_declaration >>confdefs.h
2373 echo '#endif' >>confdefs.h
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390 # Extract the first word of "autogen", so it can be a program name with args.
2391 set dummy autogen; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_autogen+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 if test -n "$autogen"; then
2398 ac_cv_prog_autogen="$autogen" # Let the user override the test.
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407 ac_cv_prog_autogen="yes"
2408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 test -z "$ac_cv_prog_autogen" && ac_cv_prog_autogen="no"
2417 autogen=$ac_cv_prog_autogen
2418 if test -n "$autogen"; then
2419 echo "$as_me:$LINENO: result: $autogen" >&5
2420 echo "${ECHO_T}$autogen" >&6
2422 echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6
2427 # Find a good install program. We prefer a C program (faster),
2428 # so one script is as good as another. But avoid the broken or
2429 # incompatible versions:
2430 # SysV /etc/install, /usr/sbin/install
2431 # SunOS /usr/etc/install
2432 # IRIX /sbin/install
2434 # AmigaOS /C/install, which installs bootblocks on floppy discs
2435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2438 # OS/2's system install, which has a completely different semantic
2439 # ./install, which can be erroneously created by make from ./install.sh.
2440 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2441 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2442 if test -z "$INSTALL"; then
2443 if test "${ac_cv_path_install+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 # Account for people who put trailing slashes in PATH elements.
2453 ./ | .// | /cC/* | \
2454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2455 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2458 # OSF1 and SCO ODT 3.0 have their own names for install.
2459 # Don't use installbsd from OSF since it installs stuff as root
2461 for ac_prog in ginstall scoinst install; do
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2464 if test $ac_prog = install &&
2465 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466 # AIX install. It has an incompatible calling convention.
2468 elif test $ac_prog = install &&
2469 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2470 # program-specific install script used by HP pwplus--don't use.
2473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2485 if test "${ac_cv_path_install+set}" = set; then
2486 INSTALL=$ac_cv_path_install
2488 # As a last resort, use the slow shell script. We don't cache a
2489 # path for INSTALL within a source directory, because that will
2490 # break other packages using the cache if that directory is
2491 # removed, or if the path is relative.
2492 INSTALL=$ac_install_sh
2495 echo "$as_me:$LINENO: result: $INSTALL" >&5
2496 echo "${ECHO_T}$INSTALL" >&6
2498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2499 # It thinks the first close brace ends the variable substitution.
2500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2506 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2507 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2509 if test "$LN_S" = "ln -s"; then
2510 echo "$as_me:$LINENO: result: yes" >&5
2511 echo "${ECHO_T}yes" >&6
2513 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2514 echo "${ECHO_T}no, using $LN_S" >&6
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2525 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2526 # On Suns, sometimes $CPP names a directory.
2527 if test -n "$CPP" && test -d "$CPP"; then
2530 if test -z "$CPP"; then
2531 if test "${ac_cv_prog_CPP+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 # Double quotes because CPP needs to be expanded
2535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2538 for ac_c_preproc_warn_flag in '' yes
2540 # Use a header file that comes with gcc, so configuring glibc
2541 # with a fresh cross-compiler works.
2542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2543 # <limits.h> exists even on freestanding compilers.
2544 # On the NeXT, cc -E runs the code through the compiler's parser,
2545 # not just through cpp. "Syntax error" is here to catch this case.
2546 cat >conftest.$ac_ext <<_ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2553 # include <limits.h>
2555 # include <assert.h>
2559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2562 grep -v '^ *+' conftest.er1 >conftest.err
2564 cat conftest.err >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } >/dev/null; then
2567 if test -s conftest.err; then
2568 ac_cpp_err=$ac_c_preproc_warn_flag
2569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2576 if test -z "$ac_cpp_err"; then
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2582 # Broken: fails on valid input.
2585 rm -f conftest.err conftest.$ac_ext
2587 # OK, works on sane cases. Now check whether non-existent headers
2588 # can be detected and how.
2589 cat >conftest.$ac_ext <<_ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2595 #include <ac_nonexistent.h>
2597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } >/dev/null; then
2605 if test -s conftest.err; then
2606 ac_cpp_err=$ac_c_preproc_warn_flag
2607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2614 if test -z "$ac_cpp_err"; then
2615 # Broken: success on invalid input.
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2621 # Passes both tests.
2625 rm -f conftest.err conftest.$ac_ext
2628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2629 rm -f conftest.err conftest.$ac_ext
2630 if $ac_preproc_ok; then
2642 echo "$as_me:$LINENO: result: $CPP" >&5
2643 echo "${ECHO_T}$CPP" >&6
2645 for ac_c_preproc_warn_flag in '' yes
2647 # Use a header file that comes with gcc, so configuring glibc
2648 # with a fresh cross-compiler works.
2649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2650 # <limits.h> exists even on freestanding compilers.
2651 # On the NeXT, cc -E runs the code through the compiler's parser,
2652 # not just through cpp. "Syntax error" is here to catch this case.
2653 cat >conftest.$ac_ext <<_ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h. */
2660 # include <limits.h>
2662 # include <assert.h>
2666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2669 grep -v '^ *+' conftest.er1 >conftest.err
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } >/dev/null; then
2674 if test -s conftest.err; then
2675 ac_cpp_err=$ac_c_preproc_warn_flag
2676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2683 if test -z "$ac_cpp_err"; then
2686 echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2689 # Broken: fails on valid input.
2692 rm -f conftest.err conftest.$ac_ext
2694 # OK, works on sane cases. Now check whether non-existent headers
2695 # can be detected and how.
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2702 #include <ac_nonexistent.h>
2704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2707 grep -v '^ *+' conftest.er1 >conftest.err
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } >/dev/null; then
2712 if test -s conftest.err; then
2713 ac_cpp_err=$ac_c_preproc_warn_flag
2714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2721 if test -z "$ac_cpp_err"; then
2722 # Broken: success on invalid input.
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2728 # Passes both tests.
2732 rm -f conftest.err conftest.$ac_ext
2735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2736 rm -f conftest.err conftest.$ac_ext
2737 if $ac_preproc_ok; then
2740 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2741 See \`config.log' for more details." >&5
2742 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2743 See \`config.log' for more details." >&2;}
2744 { (exit 1); exit 1; }; }
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754 echo "$as_me:$LINENO: checking for egrep" >&5
2755 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2756 if test "${ac_cv_prog_egrep+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2760 then ac_cv_prog_egrep='grep -E'
2761 else ac_cv_prog_egrep='egrep'
2764 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2765 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2766 EGREP=$ac_cv_prog_egrep
2769 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2770 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2771 if test "${ac_cv_header_stdc+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 cat >conftest.$ac_ext <<_ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795 (eval $ac_compile) 2>conftest.er1
2797 grep -v '^ *+' conftest.er1 >conftest.err
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 ac_cv_header_stdc=yes
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 ac_cv_header_stdc=no
2822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2824 if test $ac_cv_header_stdc = yes; then
2825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2826 cat >conftest.$ac_ext <<_ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2836 $EGREP "memchr" >/dev/null 2>&1; then
2839 ac_cv_header_stdc=no
2845 if test $ac_cv_header_stdc = yes; then
2846 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2847 cat >conftest.$ac_ext <<_ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2857 $EGREP "free" >/dev/null 2>&1; then
2860 ac_cv_header_stdc=no
2866 if test $ac_cv_header_stdc = yes; then
2867 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2868 if test "$cross_compiling" = yes; then
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2878 #if ((' ' & 0x0FF) == 0x020)
2879 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2880 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2882 # define ISLOWER(c) \
2883 (('a' <= (c) && (c) <= 'i') \
2884 || ('j' <= (c) && (c) <= 'r') \
2885 || ('s' <= (c) && (c) <= 'z'))
2886 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2889 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2894 for (i = 0; i < 256; i++)
2895 if (XOR (islower (i), ISLOWER (i))
2896 || toupper (i) != TOUPPER (i))
2901 rm -f conftest$ac_exeext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2903 (eval $ac_link) 2>&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2914 echo "$as_me: program exited with status $ac_status" >&5
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2919 ac_cv_header_stdc=no
2921 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2925 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2926 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2927 if test $ac_cv_header_stdc = yes; then
2929 cat >>confdefs.h <<\_ACEOF
2930 #define STDC_HEADERS 1
2936 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2946 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2947 inttypes.h stdint.h unistd.h
2949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2950 echo "$as_me:$LINENO: checking for $ac_header" >&5
2951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 cat >conftest.$ac_ext <<_ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2961 $ac_includes_default
2963 #include <$ac_header>
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>conftest.er1
2969 grep -v '^ *+' conftest.er1 >conftest.err
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -z "$ac_c_werror_flag"
2975 || test ! -s conftest.err'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 eval "$as_ac_Header=yes"
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2992 eval "$as_ac_Header=no"
2994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2999 cat >>confdefs.h <<_ACEOF
3000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3009 for ac_header in endian.h
3011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3013 echo "$as_me:$LINENO: checking for $ac_header" >&5
3014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3021 # Is the header compilable?
3022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030 $ac_includes_default
3031 #include <$ac_header>
3033 rm -f conftest.$ac_objext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3035 (eval $ac_compile) 2>conftest.er1
3037 grep -v '^ *+' conftest.er1 >conftest.err
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } &&
3042 { ac_try='test -z "$ac_c_werror_flag"
3043 || test ! -s conftest.err'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_header_compiler=yes
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3060 ac_header_compiler=no
3062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3064 echo "${ECHO_T}$ac_header_compiler" >&6
3066 # Is the header present?
3067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3069 cat >conftest.$ac_ext <<_ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3075 #include <$ac_header>
3077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3080 grep -v '^ *+' conftest.er1 >conftest.err
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } >/dev/null; then
3085 if test -s conftest.err; then
3086 ac_cpp_err=$ac_c_preproc_warn_flag
3087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3094 if test -z "$ac_cpp_err"; then
3095 ac_header_preproc=yes
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3100 ac_header_preproc=no
3102 rm -f conftest.err conftest.$ac_ext
3103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3104 echo "${ECHO_T}$ac_header_preproc" >&6
3106 # So? What about this header?
3107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3113 ac_header_preproc=yes
3116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3130 ## -------------------------------- ##
3131 ## Report this to ardour@ardour.org ##
3132 ## -------------------------------- ##
3135 sed "s/^/$as_me: WARNING: /" >&2
3138 echo "$as_me:$LINENO: checking for $ac_header" >&5
3139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 eval "$as_ac_Header=\$ac_header_preproc"
3145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3150 cat >>confdefs.h <<_ACEOF
3151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3159 for ac_header in byteswap.h
3161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3163 echo "$as_me:$LINENO: checking for $ac_header" >&5
3164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3171 # Is the header compilable?
3172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3174 cat >conftest.$ac_ext <<_ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3180 $ac_includes_default
3181 #include <$ac_header>
3183 rm -f conftest.$ac_objext
3184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3185 (eval $ac_compile) 2>conftest.er1
3187 grep -v '^ *+' conftest.er1 >conftest.err
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } &&
3192 { ac_try='test -z "$ac_c_werror_flag"
3193 || test ! -s conftest.err'
3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; } &&
3199 { ac_try='test -s conftest.$ac_objext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 ac_header_compiler=yes
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3210 ac_header_compiler=no
3212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3214 echo "${ECHO_T}$ac_header_compiler" >&6
3216 # Is the header present?
3217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3219 cat >conftest.$ac_ext <<_ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3225 #include <$ac_header>
3227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } >/dev/null; then
3235 if test -s conftest.err; then
3236 ac_cpp_err=$ac_c_preproc_warn_flag
3237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3244 if test -z "$ac_cpp_err"; then
3245 ac_header_preproc=yes
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3250 ac_header_preproc=no
3252 rm -f conftest.err conftest.$ac_ext
3253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3254 echo "${ECHO_T}$ac_header_preproc" >&6
3256 # So? What about this header?
3257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3263 ac_header_preproc=yes
3266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3280 ## -------------------------------- ##
3281 ## Report this to ardour@ardour.org ##
3282 ## -------------------------------- ##
3285 sed "s/^/$as_me: WARNING: /" >&2
3288 echo "$as_me:$LINENO: checking for $ac_header" >&5
3289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 eval "$as_ac_Header=\$ac_header_preproc"
3295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3300 cat >>confdefs.h <<_ACEOF
3301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3309 for ac_header in locale.h
3311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3313 echo "$as_me:$LINENO: checking for $ac_header" >&5
3314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3321 # Is the header compilable?
3322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3324 cat >conftest.$ac_ext <<_ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3330 $ac_includes_default
3331 #include <$ac_header>
3333 rm -f conftest.$ac_objext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>conftest.er1
3337 grep -v '^ *+' conftest.er1 >conftest.err
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try='test -z "$ac_c_werror_flag"
3343 || test ! -s conftest.err'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest.$ac_objext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_header_compiler=yes
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3360 ac_header_compiler=no
3362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3364 echo "${ECHO_T}$ac_header_compiler" >&6
3366 # Is the header present?
3367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375 #include <$ac_header>
3377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3380 grep -v '^ *+' conftest.er1 >conftest.err
3382 cat conftest.err >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } >/dev/null; then
3385 if test -s conftest.err; then
3386 ac_cpp_err=$ac_c_preproc_warn_flag
3387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3394 if test -z "$ac_cpp_err"; then
3395 ac_header_preproc=yes
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 ac_header_preproc=no
3402 rm -f conftest.err conftest.$ac_ext
3403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3404 echo "${ECHO_T}$ac_header_preproc" >&6
3406 # So? What about this header?
3407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3413 ac_header_preproc=yes
3416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3430 ## -------------------------------- ##
3431 ## Report this to ardour@ardour.org ##
3432 ## -------------------------------- ##
3435 sed "s/^/$as_me: WARNING: /" >&2
3438 echo "$as_me:$LINENO: checking for $ac_header" >&5
3439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 eval "$as_ac_Header=\$ac_header_preproc"
3445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3450 cat >>confdefs.h <<_ACEOF
3451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3459 for ac_header in inttypes.h
3461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3463 echo "$as_me:$LINENO: checking for $ac_header" >&5
3464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3471 # Is the header compilable?
3472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3474 cat >conftest.$ac_ext <<_ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 $ac_includes_default
3481 #include <$ac_header>
3483 rm -f conftest.$ac_objext
3484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485 (eval $ac_compile) 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } &&
3492 { ac_try='test -z "$ac_c_werror_flag"
3493 || test ! -s conftest.err'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; } &&
3499 { ac_try='test -s conftest.$ac_objext'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 ac_header_compiler=yes
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 ac_header_compiler=no
3512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3514 echo "${ECHO_T}$ac_header_compiler" >&6
3516 # Is the header present?
3517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3519 cat >conftest.$ac_ext <<_ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3525 #include <$ac_header>
3527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3530 grep -v '^ *+' conftest.er1 >conftest.err
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } >/dev/null; then
3535 if test -s conftest.err; then
3536 ac_cpp_err=$ac_c_preproc_warn_flag
3537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3544 if test -z "$ac_cpp_err"; then
3545 ac_header_preproc=yes
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3550 ac_header_preproc=no
3552 rm -f conftest.err conftest.$ac_ext
3553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3554 echo "${ECHO_T}$ac_header_preproc" >&6
3556 # So? What about this header?
3557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3563 ac_header_preproc=yes
3566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3580 ## -------------------------------- ##
3581 ## Report this to ardour@ardour.org ##
3582 ## -------------------------------- ##
3585 sed "s/^/$as_me: WARNING: /" >&2
3588 echo "$as_me:$LINENO: checking for $ac_header" >&5
3589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 eval "$as_ac_Header=\$ac_header_preproc"
3595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3600 cat >>confdefs.h <<_ACEOF
3601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3609 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3610 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3611 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 cat >conftest.$ac_ext <<_ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3620 #include <sys/types.h>
3621 #include <sys/wait.h>
3623 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3626 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3634 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3639 rm -f conftest.$ac_objext
3640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3641 (eval $ac_compile) 2>conftest.er1
3643 grep -v '^ *+' conftest.er1 >conftest.err
3645 cat conftest.err >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } &&
3648 { ac_try='test -z "$ac_c_werror_flag"
3649 || test ! -s conftest.err'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; } &&
3655 { ac_try='test -s conftest.$ac_objext'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; }; then
3661 ac_cv_header_sys_wait_h=yes
3663 echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3666 ac_cv_header_sys_wait_h=no
3668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3670 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3671 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3672 if test $ac_cv_header_sys_wait_h = yes; then
3674 cat >>confdefs.h <<\_ACEOF
3675 #define HAVE_SYS_WAIT_H 1
3681 echo "$as_me:$LINENO: checking whether S_IRGRP is declared" >&5
3682 echo $ECHO_N "checking whether S_IRGRP is declared... $ECHO_C" >&6
3683 if test "${ac_cv_have_decl_S_IRGRP+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 cat >conftest.$ac_ext <<_ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3692 $ac_includes_default
3697 char *p = (char *) S_IRGRP;
3704 rm -f conftest.$ac_objext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706 (eval $ac_compile) 2>conftest.er1
3708 grep -v '^ *+' conftest.er1 >conftest.err
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
3713 { ac_try='test -z "$ac_c_werror_flag"
3714 || test ! -s conftest.err'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; } &&
3720 { ac_try='test -s conftest.$ac_objext'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 ac_cv_have_decl_S_IRGRP=yes
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3731 ac_cv_have_decl_S_IRGRP=no
3733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3735 echo "$as_me:$LINENO: result: $ac_cv_have_decl_S_IRGRP" >&5
3736 echo "${ECHO_T}$ac_cv_have_decl_S_IRGRP" >&6
3737 if test $ac_cv_have_decl_S_IRGRP = yes; then
3739 cat >>confdefs.h <<_ACEOF
3740 #define HAVE_DECL_S_IRGRP 1
3745 cat >>confdefs.h <<_ACEOF
3746 #define HAVE_DECL_S_IRGRP 0
3754 cat >>confdefs.h <<_ACEOF
3755 #define HAVE_DECL_S_IRGRP ${HAVE_DECL_S_IRGRP}
3759 #====================================================================================
3760 # Check for support of the struct hack.
3762 echo "$as_me:$LINENO: checking C99 struct flexible array support" >&5
3763 echo $ECHO_N "checking C99 struct flexible array support... $ECHO_C" >&6
3764 if test "${ac_cv_c99_flexible_array+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 # Initialize to unknown
3768 ac_cv_c99_flexible_array=no
3770 cat >conftest.$ac_ext <<_ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3786 MY_STRUCT *p = calloc (1, sizeof (MY_STRUCT) + 42);
3791 rm -f conftest.$ac_objext conftest$ac_exeext
3792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3793 (eval $ac_link) 2>conftest.er1
3795 grep -v '^ *+' conftest.er1 >conftest.err
3797 cat conftest.err >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } &&
3800 { ac_try='test -z "$ac_c_werror_flag"
3801 || test ! -s conftest.err'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; } &&
3807 { ac_try='test -s conftest$ac_exeext'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; }; then
3813 ac_cv_c99_flexible_array=yes
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 ac_cv_c99_flexible_array=no
3821 rm -f conftest.err conftest.$ac_objext \
3822 conftest$ac_exeext conftest.$ac_ext
3824 echo "$as_me:$LINENO: result: $ac_cv_c99_flexible_array" >&5
3825 echo "${ECHO_T}$ac_cv_c99_flexible_array" >&6
3828 if test x$ac_cv_c99_flexible_array = xyes ; then
3830 cat >>confdefs.h <<\_ACEOF
3831 #define HAVE_FLEXIBLE_ARRAY 1
3835 { echo "$as_me:$LINENO: WARNING: *** This compiler does not support the 1999 ISO C Standard ***" >&5
3836 echo "$as_me: WARNING: *** This compiler does not support the 1999 ISO C Standard ***" >&2;}
3837 { echo "$as_me:$LINENO: WARNING: *** feature known as the flexible array struct member. ***" >&5
3838 echo "$as_me: WARNING: *** feature known as the flexible array struct member. ***" >&2;}
3839 cat >>confdefs.h <<\_ACEOF
3840 #define HAVE_FLEXIBLE_ARRAY 0
3845 #====================================================================================
3846 # Couple of initializations here. Fill in real values later.
3848 SHLIB_VERSION_ARG=""
3850 #====================================================================================
3851 # Finished checking, handle options.
3853 # Check whether --enable-experimental or --disable-experimental was given.
3854 if test "${enable_experimental+set}" = set; then
3855 enableval="$enable_experimental"
3860 if test x$enable_experimental = xyes ; then
3864 cat >>confdefs.h <<_ACEOF
3865 #define ENABLE_EXPERIMENTAL_CODE ${EXPERIMENTAL_CODE}
3869 # Check whether --enable-gcc-werror or --disable-gcc-werror was given.
3870 if test "${enable_gcc_werror+set}" = set; then
3871 enableval="$enable_gcc_werror"
3875 # Check whether --enable-gcc-pipe or --disable-gcc-pipe was given.
3876 if test "${enable_gcc_pipe+set}" = set; then
3877 enableval="$enable_gcc_pipe"
3881 # Check whether --enable-gcc-opt or --disable-gcc-opt was given.
3882 if test "${enable_gcc_opt+set}" = set; then
3883 enableval="$enable_gcc_opt"
3887 # Check whether --enable-cpu-clip or --disable-cpu-clip was given.
3888 if test "${enable_cpu_clip+set}" = set; then
3889 enableval="$enable_cpu_clip"
3893 # Check whether --enable-bow-docs or --disable-bow-docs was given.
3894 if test "${enable_bow_docs+set}" = set; then
3895 enableval="$enable_bow_docs"
3899 # Check whether --enable-sqlite or --disable-sqlite was given.
3900 if test "${enable_sqlite+set}" = set; then
3901 enableval="$enable_sqlite"
3905 # Check whether --enable-flac or --disable-flac was given.
3906 if test "${enable_flac+set}" = set; then
3907 enableval="$enable_flac"
3911 # Check whether --enable-alsa or --disable-alsa was given.
3912 if test "${enable_alsa+set}" = set; then
3913 enableval="$enable_alsa"
3917 #====================================================================================
3918 # Check types and their sizes.
3920 echo "$as_me:$LINENO: checking for short" >&5
3921 echo $ECHO_N "checking for short... $ECHO_C" >&6
3922 if test "${ac_cv_type_short+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 cat >conftest.$ac_ext <<_ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3931 $ac_includes_default
3943 rm -f conftest.$ac_objext
3944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3945 (eval $ac_compile) 2>conftest.er1
3947 grep -v '^ *+' conftest.er1 >conftest.err
3949 cat conftest.err >&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } &&
3952 { ac_try='test -z "$ac_c_werror_flag"
3953 || test ! -s conftest.err'
3954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; } &&
3959 { ac_try='test -s conftest.$ac_objext'
3960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; }; then
3965 ac_cv_type_short=yes
3967 echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3974 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3975 echo "${ECHO_T}$ac_cv_type_short" >&6
3977 echo "$as_me:$LINENO: checking size of short" >&5
3978 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3979 if test "${ac_cv_sizeof_short+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 if test "$ac_cv_type_short" = yes; then
3983 # The cast to unsigned long works around a bug in the HP C Compiler
3984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3986 # This bug is HP SR number 8606223364.
3987 if test "$cross_compiling" = yes; then
3988 # Depending upon the size, compute the lo and hi bounds.
3989 cat >conftest.$ac_ext <<_ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995 $ac_includes_default
3999 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4006 rm -f conftest.$ac_objext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008 (eval $ac_compile) 2>conftest.er1
4010 grep -v '^ *+' conftest.er1 >conftest.err
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -z "$ac_c_werror_flag"
4016 || test ! -s conftest.err'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest.$ac_objext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4030 cat >conftest.$ac_ext <<_ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4036 $ac_includes_default
4040 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4047 rm -f conftest.$ac_objext
4048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4049 (eval $ac_compile) 2>conftest.er1
4051 grep -v '^ *+' conftest.er1 >conftest.err
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } &&
4056 { ac_try='test -z "$ac_c_werror_flag"
4057 || test ! -s conftest.err'
4058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; } &&
4063 { ac_try='test -s conftest.$ac_objext'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; }; then
4069 ac_hi=$ac_mid; break
4071 echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4074 ac_lo=`expr $ac_mid + 1`
4075 if test $ac_lo -le $ac_mid; then
4079 ac_mid=`expr 2 '*' $ac_mid + 1`
4081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4087 cat >conftest.$ac_ext <<_ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4093 $ac_includes_default
4097 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4104 rm -f conftest.$ac_objext
4105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106 (eval $ac_compile) 2>conftest.er1
4108 grep -v '^ *+' conftest.er1 >conftest.err
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag"
4114 || test ! -s conftest.err'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 $ac_includes_default
4138 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>conftest.er1
4149 grep -v '^ *+' conftest.er1 >conftest.err
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try='test -z "$ac_c_werror_flag"
4155 || test ! -s conftest.err'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 ac_lo=$ac_mid; break
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 ac_hi=`expr '(' $ac_mid ')' - 1`
4173 if test $ac_mid -le $ac_hi; then
4177 ac_mid=`expr 2 '*' $ac_mid`
4179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4190 # Binary search between lo and hi bounds.
4191 while test "x$ac_lo" != "x$ac_hi"; do
4192 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4193 cat >conftest.$ac_ext <<_ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199 $ac_includes_default
4203 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4210 rm -f conftest.$ac_objext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4212 (eval $ac_compile) 2>conftest.er1
4214 grep -v '^ *+' conftest.er1 >conftest.err
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } &&
4219 { ac_try='test -z "$ac_c_werror_flag"
4220 || test ! -s conftest.err'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; } &&
4226 { ac_try='test -s conftest.$ac_objext'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; }; then
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4237 ac_lo=`expr '(' $ac_mid ')' + 1`
4239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4242 ?*) ac_cv_sizeof_short=$ac_lo;;
4243 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4244 See \`config.log' for more details." >&5
4245 echo "$as_me: error: cannot compute sizeof (short), 77
4246 See \`config.log' for more details." >&2;}
4247 { (exit 1); exit 1; }; } ;;
4250 if test "$cross_compiling" = yes; then
4251 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4252 See \`config.log' for more details." >&5
4253 echo "$as_me: error: cannot run test program while cross compiling
4254 See \`config.log' for more details." >&2;}
4255 { (exit 1); exit 1; }; }
4257 cat >conftest.$ac_ext <<_ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4263 $ac_includes_default
4264 long longval () { return (long) (sizeof (short)); }
4265 unsigned long ulongval () { return (long) (sizeof (short)); }
4272 FILE *f = fopen ("conftest.val", "w");
4275 if (((long) (sizeof (short))) < 0)
4277 long i = longval ();
4278 if (i != ((long) (sizeof (short))))
4280 fprintf (f, "%ld\n", i);
4284 unsigned long i = ulongval ();
4285 if (i != ((long) (sizeof (short))))
4287 fprintf (f, "%lu\n", i);
4289 exit (ferror (f) || fclose (f) != 0);
4295 rm -f conftest$ac_exeext
4296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4297 (eval $ac_link) 2>&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 ac_cv_sizeof_short=`cat conftest.val`
4308 echo "$as_me: program exited with status $ac_status" >&5
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4313 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4314 See \`config.log' for more details." >&5
4315 echo "$as_me: error: cannot compute sizeof (short), 77
4316 See \`config.log' for more details." >&2;}
4317 { (exit 1); exit 1; }; }
4319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4324 ac_cv_sizeof_short=0
4327 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4328 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4329 cat >>confdefs.h <<_ACEOF
4330 #define SIZEOF_SHORT $ac_cv_sizeof_short
4334 echo "$as_me:$LINENO: checking for int" >&5
4335 echo $ECHO_N "checking for int... $ECHO_C" >&6
4336 if test "${ac_cv_type_int+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 $ac_includes_default
4357 rm -f conftest.$ac_objext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4359 (eval $ac_compile) 2>conftest.er1
4361 grep -v '^ *+' conftest.er1 >conftest.err
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } &&
4366 { ac_try='test -z "$ac_c_werror_flag"
4367 || test ! -s conftest.err'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try='test -s conftest.$ac_objext'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4388 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4389 echo "${ECHO_T}$ac_cv_type_int" >&6
4391 echo "$as_me:$LINENO: checking size of int" >&5
4392 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4393 if test "${ac_cv_sizeof_int+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 if test "$ac_cv_type_int" = yes; then
4397 # The cast to unsigned long works around a bug in the HP C Compiler
4398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4400 # This bug is HP SR number 8606223364.
4401 if test "$cross_compiling" = yes; then
4402 # Depending upon the size, compute the lo and hi bounds.
4403 cat >conftest.$ac_ext <<_ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4409 $ac_includes_default
4413 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4420 rm -f conftest.$ac_objext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422 (eval $ac_compile) 2>conftest.er1
4424 grep -v '^ *+' conftest.er1 >conftest.err
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -z "$ac_c_werror_flag"
4430 || test ! -s conftest.err'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; } &&
4436 { ac_try='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4444 cat >conftest.$ac_ext <<_ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 $ac_includes_default
4454 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4461 rm -f conftest.$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>conftest.er1
4465 grep -v '^ *+' conftest.er1 >conftest.err
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag"
4471 || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try='test -s conftest.$ac_objext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_hi=$ac_mid; break
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4488 ac_lo=`expr $ac_mid + 1`
4489 if test $ac_lo -le $ac_mid; then
4493 ac_mid=`expr 2 '*' $ac_mid + 1`
4495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4498 echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4501 cat >conftest.$ac_ext <<_ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 $ac_includes_default
4511 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4518 rm -f conftest.$ac_objext
4519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520 (eval $ac_compile) 2>conftest.er1
4522 grep -v '^ *+' conftest.er1 >conftest.err
4524 cat conftest.err >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } &&
4527 { ac_try='test -z "$ac_c_werror_flag"
4528 || test ! -s conftest.err'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; } &&
4534 { ac_try='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4542 cat >conftest.$ac_ext <<_ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4548 $ac_includes_default
4552 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4559 rm -f conftest.$ac_objext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>conftest.er1
4563 grep -v '^ *+' conftest.er1 >conftest.err
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } &&
4568 { ac_try='test -z "$ac_c_werror_flag"
4569 || test ! -s conftest.err'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; } &&
4575 { ac_try='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4581 ac_lo=$ac_mid; break
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4586 ac_hi=`expr '(' $ac_mid ')' - 1`
4587 if test $ac_mid -le $ac_hi; then
4591 ac_mid=`expr 2 '*' $ac_mid`
4593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4604 # Binary search between lo and hi bounds.
4605 while test "x$ac_lo" != "x$ac_hi"; do
4606 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4607 cat >conftest.$ac_ext <<_ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4617 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>conftest.er1
4628 grep -v '^ *+' conftest.er1 >conftest.err
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -z "$ac_c_werror_flag"
4634 || test ! -s conftest.err'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; } &&
4640 { ac_try='test -s conftest.$ac_objext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4651 ac_lo=`expr '(' $ac_mid ')' + 1`
4653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4656 ?*) ac_cv_sizeof_int=$ac_lo;;
4657 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4658 See \`config.log' for more details." >&5
4659 echo "$as_me: error: cannot compute sizeof (int), 77
4660 See \`config.log' for more details." >&2;}
4661 { (exit 1); exit 1; }; } ;;
4664 if test "$cross_compiling" = yes; then
4665 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4666 See \`config.log' for more details." >&5
4667 echo "$as_me: error: cannot run test program while cross compiling
4668 See \`config.log' for more details." >&2;}
4669 { (exit 1); exit 1; }; }
4671 cat >conftest.$ac_ext <<_ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4677 $ac_includes_default
4678 long longval () { return (long) (sizeof (int)); }
4679 unsigned long ulongval () { return (long) (sizeof (int)); }
4686 FILE *f = fopen ("conftest.val", "w");
4689 if (((long) (sizeof (int))) < 0)
4691 long i = longval ();
4692 if (i != ((long) (sizeof (int))))
4694 fprintf (f, "%ld\n", i);
4698 unsigned long i = ulongval ();
4699 if (i != ((long) (sizeof (int))))
4701 fprintf (f, "%lu\n", i);
4703 exit (ferror (f) || fclose (f) != 0);
4709 rm -f conftest$ac_exeext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4711 (eval $ac_link) 2>&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 ac_cv_sizeof_int=`cat conftest.val`
4722 echo "$as_me: program exited with status $ac_status" >&5
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4727 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4728 See \`config.log' for more details." >&5
4729 echo "$as_me: error: cannot compute sizeof (int), 77
4730 See \`config.log' for more details." >&2;}
4731 { (exit 1); exit 1; }; }
4733 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4741 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4742 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4743 cat >>confdefs.h <<_ACEOF
4744 #define SIZEOF_INT $ac_cv_sizeof_int
4748 echo "$as_me:$LINENO: checking for long" >&5
4749 echo $ECHO_N "checking for long... $ECHO_C" >&6
4750 if test "${ac_cv_type_long+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 cat >conftest.$ac_ext <<_ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 $ac_includes_default
4771 rm -f conftest.$ac_objext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773 (eval $ac_compile) 2>conftest.er1
4775 grep -v '^ *+' conftest.er1 >conftest.err
4777 cat conftest.err >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try='test -z "$ac_c_werror_flag"
4781 || test ! -s conftest.err'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; } &&
4787 { ac_try='test -s conftest.$ac_objext'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; }; then
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4802 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4803 echo "${ECHO_T}$ac_cv_type_long" >&6
4805 echo "$as_me:$LINENO: checking size of long" >&5
4806 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4807 if test "${ac_cv_sizeof_long+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 if test "$ac_cv_type_long" = yes; then
4811 # The cast to unsigned long works around a bug in the HP C Compiler
4812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4814 # This bug is HP SR number 8606223364.
4815 if test "$cross_compiling" = yes; then
4816 # Depending upon the size, compute the lo and hi bounds.
4817 cat >conftest.$ac_ext <<_ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 $ac_includes_default
4827 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4834 rm -f conftest.$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>conftest.er1
4838 grep -v '^ *+' conftest.er1 >conftest.err
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -z "$ac_c_werror_flag"
4844 || test ! -s conftest.err'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; } &&
4850 { ac_try='test -s conftest.$ac_objext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4858 cat >conftest.$ac_ext <<_ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4864 $ac_includes_default
4868 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4875 rm -f conftest.$ac_objext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877 (eval $ac_compile) 2>conftest.er1
4879 grep -v '^ *+' conftest.er1 >conftest.err
4881 cat conftest.err >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } &&
4884 { ac_try='test -z "$ac_c_werror_flag"
4885 || test ! -s conftest.err'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; } &&
4891 { ac_try='test -s conftest.$ac_objext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_hi=$ac_mid; break
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4902 ac_lo=`expr $ac_mid + 1`
4903 if test $ac_lo -le $ac_mid; then
4907 ac_mid=`expr 2 '*' $ac_mid + 1`
4909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4915 cat >conftest.$ac_ext <<_ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 $ac_includes_default
4925 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4932 rm -f conftest.$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934 (eval $ac_compile) 2>conftest.er1
4936 grep -v '^ *+' conftest.er1 >conftest.err
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } &&
4941 { ac_try='test -z "$ac_c_werror_flag"
4942 || test ! -s conftest.err'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; } &&
4948 { ac_try='test -s conftest.$ac_objext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4956 cat >conftest.$ac_ext <<_ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 $ac_includes_default
4966 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4973 rm -f conftest.$ac_objext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975 (eval $ac_compile) 2>conftest.er1
4977 grep -v '^ *+' conftest.er1 >conftest.err
4979 cat conftest.err >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try='test -z "$ac_c_werror_flag"
4983 || test ! -s conftest.err'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; } &&
4989 { ac_try='test -s conftest.$ac_objext'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4995 ac_lo=$ac_mid; break
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5000 ac_hi=`expr '(' $ac_mid ')' - 1`
5001 if test $ac_mid -le $ac_hi; then
5005 ac_mid=`expr 2 '*' $ac_mid`
5007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5018 # Binary search between lo and hi bounds.
5019 while test "x$ac_lo" != "x$ac_hi"; do
5020 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5021 cat >conftest.$ac_ext <<_ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 $ac_includes_default
5031 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5038 rm -f conftest.$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>conftest.er1
5042 grep -v '^ *+' conftest.er1 >conftest.err
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } &&
5047 { ac_try='test -z "$ac_c_werror_flag"
5048 || test ! -s conftest.err'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; } &&
5054 { ac_try='test -s conftest.$ac_objext'
5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 ac_lo=`expr '(' $ac_mid ')' + 1`
5067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5070 ?*) ac_cv_sizeof_long=$ac_lo;;
5071 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5072 See \`config.log' for more details." >&5
5073 echo "$as_me: error: cannot compute sizeof (long), 77
5074 See \`config.log' for more details." >&2;}
5075 { (exit 1); exit 1; }; } ;;
5078 if test "$cross_compiling" = yes; then
5079 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5080 See \`config.log' for more details." >&5
5081 echo "$as_me: error: cannot run test program while cross compiling
5082 See \`config.log' for more details." >&2;}
5083 { (exit 1); exit 1; }; }
5085 cat >conftest.$ac_ext <<_ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5091 $ac_includes_default
5092 long longval () { return (long) (sizeof (long)); }
5093 unsigned long ulongval () { return (long) (sizeof (long)); }
5100 FILE *f = fopen ("conftest.val", "w");
5103 if (((long) (sizeof (long))) < 0)
5105 long i = longval ();
5106 if (i != ((long) (sizeof (long))))
5108 fprintf (f, "%ld\n", i);
5112 unsigned long i = ulongval ();
5113 if (i != ((long) (sizeof (long))))
5115 fprintf (f, "%lu\n", i);
5117 exit (ferror (f) || fclose (f) != 0);
5123 rm -f conftest$ac_exeext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5125 (eval $ac_link) 2>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 ac_cv_sizeof_long=`cat conftest.val`
5136 echo "$as_me: program exited with status $ac_status" >&5
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5141 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5142 See \`config.log' for more details." >&5
5143 echo "$as_me: error: cannot compute sizeof (long), 77
5144 See \`config.log' for more details." >&2;}
5145 { (exit 1); exit 1; }; }
5147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5155 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5156 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5157 cat >>confdefs.h <<_ACEOF
5158 #define SIZEOF_LONG $ac_cv_sizeof_long
5162 echo "$as_me:$LINENO: checking for float" >&5
5163 echo $ECHO_N "checking for float... $ECHO_C" >&6
5164 if test "${ac_cv_type_float+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 cat >conftest.$ac_ext <<_ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 $ac_includes_default
5185 rm -f conftest.$ac_objext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5187 (eval $ac_compile) 2>conftest.er1
5189 grep -v '^ *+' conftest.er1 >conftest.err
5191 cat conftest.err >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } &&
5194 { ac_try='test -z "$ac_c_werror_flag"
5195 || test ! -s conftest.err'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; } &&
5201 { ac_try='test -s conftest.$ac_objext'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 ac_cv_type_float=yes
5209 echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.$ac_ext >&5
5214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5216 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5217 echo "${ECHO_T}$ac_cv_type_float" >&6
5219 echo "$as_me:$LINENO: checking size of float" >&5
5220 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5221 if test "${ac_cv_sizeof_float+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 if test "$ac_cv_type_float" = yes; then
5225 # The cast to unsigned long works around a bug in the HP C Compiler
5226 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5227 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5228 # This bug is HP SR number 8606223364.
5229 if test "$cross_compiling" = yes; then
5230 # Depending upon the size, compute the lo and hi bounds.
5231 cat >conftest.$ac_ext <<_ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 $ac_includes_default
5241 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5248 rm -f conftest.$ac_objext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5250 (eval $ac_compile) 2>conftest.er1
5252 grep -v '^ *+' conftest.er1 >conftest.err
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try='test -z "$ac_c_werror_flag"
5258 || test ! -s conftest.err'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; } &&
5264 { ac_try='test -s conftest.$ac_objext'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5272 cat >conftest.$ac_ext <<_ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 $ac_includes_default
5282 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5289 rm -f conftest.$ac_objext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5291 (eval $ac_compile) 2>conftest.er1
5293 grep -v '^ *+' conftest.er1 >conftest.err
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try='test -z "$ac_c_werror_flag"
5299 || test ! -s conftest.err'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try='test -s conftest.$ac_objext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 ac_hi=$ac_mid; break
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5316 ac_lo=`expr $ac_mid + 1`
5317 if test $ac_lo -le $ac_mid; then
5321 ac_mid=`expr 2 '*' $ac_mid + 1`
5323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5326 echo "$as_me: failed program was:" >&5
5327 sed 's/^/| /' conftest.$ac_ext >&5
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 $ac_includes_default
5339 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5346 rm -f conftest.$ac_objext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348 (eval $ac_compile) 2>conftest.er1
5350 grep -v '^ *+' conftest.er1 >conftest.err
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } &&
5355 { ac_try='test -z "$ac_c_werror_flag"
5356 || test ! -s conftest.err'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; } &&
5362 { ac_try='test -s conftest.$ac_objext'
5363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; }; then
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376 $ac_includes_default
5380 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389 (eval $ac_compile) 2>conftest.er1
5391 grep -v '^ *+' conftest.er1 >conftest.err
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try='test -z "$ac_c_werror_flag"
5397 || test ! -s conftest.err'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; } &&
5403 { ac_try='test -s conftest.$ac_objext'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5409 ac_lo=$ac_mid; break
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5414 ac_hi=`expr '(' $ac_mid ')' - 1`
5415 if test $ac_mid -le $ac_hi; then
5419 ac_mid=`expr 2 '*' $ac_mid`
5421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5432 # Binary search between lo and hi bounds.
5433 while test "x$ac_lo" != "x$ac_hi"; do
5434 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5435 cat >conftest.$ac_ext <<_ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441 $ac_includes_default
5445 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5452 rm -f conftest.$ac_objext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454 (eval $ac_compile) 2>conftest.er1
5456 grep -v '^ *+' conftest.er1 >conftest.err
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } &&
5461 { ac_try='test -z "$ac_c_werror_flag"
5462 || test ! -s conftest.err'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; } &&
5468 { ac_try='test -s conftest.$ac_objext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5479 ac_lo=`expr '(' $ac_mid ')' + 1`
5481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5484 ?*) ac_cv_sizeof_float=$ac_lo;;
5485 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5486 See \`config.log' for more details." >&5
5487 echo "$as_me: error: cannot compute sizeof (float), 77
5488 See \`config.log' for more details." >&2;}
5489 { (exit 1); exit 1; }; } ;;
5492 if test "$cross_compiling" = yes; then
5493 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5494 See \`config.log' for more details." >&5
5495 echo "$as_me: error: cannot run test program while cross compiling
5496 See \`config.log' for more details." >&2;}
5497 { (exit 1); exit 1; }; }
5499 cat >conftest.$ac_ext <<_ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 $ac_includes_default
5506 long longval () { return (long) (sizeof (float)); }
5507 unsigned long ulongval () { return (long) (sizeof (float)); }
5514 FILE *f = fopen ("conftest.val", "w");
5517 if (((long) (sizeof (float))) < 0)
5519 long i = longval ();
5520 if (i != ((long) (sizeof (float))))
5522 fprintf (f, "%ld\n", i);
5526 unsigned long i = ulongval ();
5527 if (i != ((long) (sizeof (float))))
5529 fprintf (f, "%lu\n", i);
5531 exit (ferror (f) || fclose (f) != 0);
5537 rm -f conftest$ac_exeext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5539 (eval $ac_link) 2>&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
5548 ac_cv_sizeof_float=`cat conftest.val`
5550 echo "$as_me: program exited with status $ac_status" >&5
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5555 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5556 See \`config.log' for more details." >&5
5557 echo "$as_me: error: cannot compute sizeof (float), 77
5558 See \`config.log' for more details." >&2;}
5559 { (exit 1); exit 1; }; }
5561 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5566 ac_cv_sizeof_float=0
5569 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5570 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5571 cat >>confdefs.h <<_ACEOF
5572 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5576 echo "$as_me:$LINENO: checking for double" >&5
5577 echo $ECHO_N "checking for double... $ECHO_C" >&6
5578 if test "${ac_cv_type_double+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 cat >conftest.$ac_ext <<_ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5587 $ac_includes_default
5593 if (sizeof (double))
5599 rm -f conftest.$ac_objext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5601 (eval $ac_compile) 2>conftest.er1
5603 grep -v '^ *+' conftest.er1 >conftest.err
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } &&
5608 { ac_try='test -z "$ac_c_werror_flag"
5609 || test ! -s conftest.err'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; } &&
5615 { ac_try='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 ac_cv_type_double=yes
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5626 ac_cv_type_double=no
5628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5630 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5631 echo "${ECHO_T}$ac_cv_type_double" >&6
5633 echo "$as_me:$LINENO: checking size of double" >&5
5634 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5635 if test "${ac_cv_sizeof_double+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 if test "$ac_cv_type_double" = yes; then
5639 # The cast to unsigned long works around a bug in the HP C Compiler
5640 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5641 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5642 # This bug is HP SR number 8606223364.
5643 if test "$cross_compiling" = yes; then
5644 # Depending upon the size, compute the lo and hi bounds.
5645 cat >conftest.$ac_ext <<_ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 $ac_includes_default
5655 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5662 rm -f conftest.$ac_objext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664 (eval $ac_compile) 2>conftest.er1
5666 grep -v '^ *+' conftest.er1 >conftest.err
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5686 cat >conftest.$ac_ext <<_ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 $ac_includes_default
5696 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5703 rm -f conftest.$ac_objext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5705 (eval $ac_compile) 2>conftest.er1
5707 grep -v '^ *+' conftest.er1 >conftest.err
5709 cat conftest.err >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } &&
5712 { ac_try='test -z "$ac_c_werror_flag"
5713 || test ! -s conftest.err'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; } &&
5719 { ac_try='test -s conftest.$ac_objext'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; }; then
5725 ac_hi=$ac_mid; break
5727 echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5730 ac_lo=`expr $ac_mid + 1`
5731 if test $ac_lo -le $ac_mid; then
5735 ac_mid=`expr 2 '*' $ac_mid + 1`
5737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 cat >conftest.$ac_ext <<_ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 $ac_includes_default
5753 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5760 rm -f conftest.$ac_objext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762 (eval $ac_compile) 2>conftest.er1
5764 grep -v '^ *+' conftest.er1 >conftest.err
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try='test -z "$ac_c_werror_flag"
5770 || test ! -s conftest.err'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; } &&
5776 { ac_try='test -s conftest.$ac_objext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5784 cat >conftest.$ac_ext <<_ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 $ac_includes_default
5794 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5801 rm -f conftest.$ac_objext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803 (eval $ac_compile) 2>conftest.er1
5805 grep -v '^ *+' conftest.er1 >conftest.err
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } &&
5810 { ac_try='test -z "$ac_c_werror_flag"
5811 || test ! -s conftest.err'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; } &&
5817 { ac_try='test -s conftest.$ac_objext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_lo=$ac_mid; break
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5828 ac_hi=`expr '(' $ac_mid ')' - 1`
5829 if test $ac_mid -le $ac_hi; then
5833 ac_mid=`expr 2 '*' $ac_mid`
5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846 # Binary search between lo and hi bounds.
5847 while test "x$ac_lo" != "x$ac_hi"; do
5848 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5849 cat >conftest.$ac_ext <<_ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 $ac_includes_default
5859 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>conftest.er1
5870 grep -v '^ *+' conftest.er1 >conftest.err
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -z "$ac_c_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5893 ac_lo=`expr '(' $ac_mid ')' + 1`
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898 ?*) ac_cv_sizeof_double=$ac_lo;;
5899 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5900 See \`config.log' for more details." >&5
5901 echo "$as_me: error: cannot compute sizeof (double), 77
5902 See \`config.log' for more details." >&2;}
5903 { (exit 1); exit 1; }; } ;;
5906 if test "$cross_compiling" = yes; then
5907 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5908 See \`config.log' for more details." >&5
5909 echo "$as_me: error: cannot run test program while cross compiling
5910 See \`config.log' for more details." >&2;}
5911 { (exit 1); exit 1; }; }
5913 cat >conftest.$ac_ext <<_ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 $ac_includes_default
5920 long longval () { return (long) (sizeof (double)); }
5921 unsigned long ulongval () { return (long) (sizeof (double)); }
5928 FILE *f = fopen ("conftest.val", "w");
5931 if (((long) (sizeof (double))) < 0)
5933 long i = longval ();
5934 if (i != ((long) (sizeof (double))))
5936 fprintf (f, "%ld\n", i);
5940 unsigned long i = ulongval ();
5941 if (i != ((long) (sizeof (double))))
5943 fprintf (f, "%lu\n", i);
5945 exit (ferror (f) || fclose (f) != 0);
5951 rm -f conftest$ac_exeext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953 (eval $ac_link) 2>&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 ac_cv_sizeof_double=`cat conftest.val`
5964 echo "$as_me: program exited with status $ac_status" >&5
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5969 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5970 See \`config.log' for more details." >&5
5971 echo "$as_me: error: cannot compute sizeof (double), 77
5972 See \`config.log' for more details." >&2;}
5973 { (exit 1); exit 1; }; }
5975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5980 ac_cv_sizeof_double=0
5983 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5984 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5985 cat >>confdefs.h <<_ACEOF
5986 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5990 echo "$as_me:$LINENO: checking for void*" >&5
5991 echo $ECHO_N "checking for void*... $ECHO_C" >&6
5992 if test "${ac_cv_type_voidp+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 cat >conftest.$ac_ext <<_ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 $ac_includes_default
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>conftest.er1
6017 grep -v '^ *+' conftest.er1 >conftest.err
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try='test -s conftest.$ac_objext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_type_voidp=yes
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
6045 echo "${ECHO_T}$ac_cv_type_voidp" >&6
6047 echo "$as_me:$LINENO: checking size of void*" >&5
6048 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
6049 if test "${ac_cv_sizeof_voidp+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 if test "$ac_cv_type_voidp" = yes; then
6053 # The cast to unsigned long works around a bug in the HP C Compiler
6054 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6055 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6056 # This bug is HP SR number 8606223364.
6057 if test "$cross_compiling" = yes; then
6058 # Depending upon the size, compute the lo and hi bounds.
6059 cat >conftest.$ac_ext <<_ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6065 $ac_includes_default
6069 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6080 grep -v '^ *+' conftest.er1 >conftest.err
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6100 cat >conftest.$ac_ext <<_ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6106 $ac_includes_default
6110 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
6117 rm -f conftest.$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119 (eval $ac_compile) 2>conftest.er1
6121 grep -v '^ *+' conftest.er1 >conftest.err
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try='test -z "$ac_c_werror_flag"
6127 || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_hi=$ac_mid; break
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6144 ac_lo=`expr $ac_mid + 1`
6145 if test $ac_lo -le $ac_mid; then
6149 ac_mid=`expr 2 '*' $ac_mid + 1`
6151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6157 cat >conftest.$ac_ext <<_ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 $ac_includes_default
6167 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
6174 rm -f conftest.$ac_objext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>conftest.er1
6178 grep -v '^ *+' conftest.er1 >conftest.err
6180 cat conftest.err >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -z "$ac_c_werror_flag"
6184 || test ! -s conftest.err'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest.$ac_objext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6198 cat >conftest.$ac_ext <<_ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6204 $ac_includes_default
6208 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
6215 rm -f conftest.$ac_objext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6217 (eval $ac_compile) 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } &&
6224 { ac_try='test -z "$ac_c_werror_flag"
6225 || test ! -s conftest.err'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest.$ac_objext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6237 ac_lo=$ac_mid; break
6239 echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6242 ac_hi=`expr '(' $ac_mid ')' - 1`
6243 if test $ac_mid -le $ac_hi; then
6247 ac_mid=`expr 2 '*' $ac_mid`
6249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6260 # Binary search between lo and hi bounds.
6261 while test "x$ac_lo" != "x$ac_hi"; do
6262 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6263 cat >conftest.$ac_ext <<_ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6269 $ac_includes_default
6273 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
6280 rm -f conftest.$ac_objext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6282 (eval $ac_compile) 2>conftest.er1
6284 grep -v '^ *+' conftest.er1 >conftest.err
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -z "$ac_c_werror_flag"
6290 || test ! -s conftest.err'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; } &&
6296 { ac_try='test -s conftest.$ac_objext'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 ac_lo=`expr '(' $ac_mid ')' + 1`
6309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6312 ?*) ac_cv_sizeof_voidp=$ac_lo;;
6313 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
6314 See \`config.log' for more details." >&5
6315 echo "$as_me: error: cannot compute sizeof (void*), 77
6316 See \`config.log' for more details." >&2;}
6317 { (exit 1); exit 1; }; } ;;
6320 if test "$cross_compiling" = yes; then
6321 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6322 See \`config.log' for more details." >&5
6323 echo "$as_me: error: cannot run test program while cross compiling
6324 See \`config.log' for more details." >&2;}
6325 { (exit 1); exit 1; }; }
6327 cat >conftest.$ac_ext <<_ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6333 $ac_includes_default
6334 long longval () { return (long) (sizeof (void*)); }
6335 unsigned long ulongval () { return (long) (sizeof (void*)); }
6342 FILE *f = fopen ("conftest.val", "w");
6345 if (((long) (sizeof (void*))) < 0)
6347 long i = longval ();
6348 if (i != ((long) (sizeof (void*))))
6350 fprintf (f, "%ld\n", i);
6354 unsigned long i = ulongval ();
6355 if (i != ((long) (sizeof (void*))))
6357 fprintf (f, "%lu\n", i);
6359 exit (ferror (f) || fclose (f) != 0);
6365 rm -f conftest$ac_exeext
6366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6367 (eval $ac_link) 2>&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_cv_sizeof_voidp=`cat conftest.val`
6378 echo "$as_me: program exited with status $ac_status" >&5
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6383 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
6384 See \`config.log' for more details." >&5
6385 echo "$as_me: error: cannot compute sizeof (void*), 77
6386 See \`config.log' for more details." >&2;}
6387 { (exit 1); exit 1; }; }
6389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6394 ac_cv_sizeof_voidp=0
6397 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
6398 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
6399 cat >>confdefs.h <<_ACEOF
6400 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6404 echo "$as_me:$LINENO: checking for size_t" >&5
6405 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6406 if test "${ac_cv_type_size_t+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 cat >conftest.$ac_ext <<_ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6415 $ac_includes_default
6421 if (sizeof (size_t))
6427 rm -f conftest.$ac_objext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429 (eval $ac_compile) 2>conftest.er1
6431 grep -v '^ *+' conftest.er1 >conftest.err
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -z "$ac_c_werror_flag"
6437 || test ! -s conftest.err'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; } &&
6443 { ac_try='test -s conftest.$ac_objext'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
6449 ac_cv_type_size_t=yes
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6454 ac_cv_type_size_t=no
6456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6459 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6461 echo "$as_me:$LINENO: checking size of size_t" >&5
6462 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
6463 if test "${ac_cv_sizeof_size_t+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 if test "$ac_cv_type_size_t" = yes; then
6467 # The cast to unsigned long works around a bug in the HP C Compiler
6468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6470 # This bug is HP SR number 8606223364.
6471 if test "$cross_compiling" = yes; then
6472 # Depending upon the size, compute the lo and hi bounds.
6473 cat >conftest.$ac_ext <<_ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6479 $ac_includes_default
6483 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
6490 rm -f conftest.$ac_objext
6491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6492 (eval $ac_compile) 2>conftest.er1
6494 grep -v '^ *+' conftest.er1 >conftest.err
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } &&
6499 { ac_try='test -z "$ac_c_werror_flag"
6500 || test ! -s conftest.err'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; } &&
6506 { ac_try='test -s conftest.$ac_objext'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6514 cat >conftest.$ac_ext <<_ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 $ac_includes_default
6524 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
6531 rm -f conftest.$ac_objext
6532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6533 (eval $ac_compile) 2>conftest.er1
6535 grep -v '^ *+' conftest.er1 >conftest.err
6537 cat conftest.err >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } &&
6540 { ac_try='test -z "$ac_c_werror_flag"
6541 || test ! -s conftest.err'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; } &&
6547 { ac_try='test -s conftest.$ac_objext'
6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; }; then
6553 ac_hi=$ac_mid; break
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6558 ac_lo=`expr $ac_mid + 1`
6559 if test $ac_lo -le $ac_mid; then
6563 ac_mid=`expr 2 '*' $ac_mid + 1`
6565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6568 echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6571 cat >conftest.$ac_ext <<_ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 $ac_includes_default
6581 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
6588 rm -f conftest.$ac_objext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590 (eval $ac_compile) 2>conftest.er1
6592 grep -v '^ *+' conftest.er1 >conftest.err
6594 cat conftest.err >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try='test -z "$ac_c_werror_flag"
6598 || test ! -s conftest.err'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; } &&
6604 { ac_try='test -s conftest.$ac_objext'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6612 cat >conftest.$ac_ext <<_ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 $ac_includes_default
6622 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
6629 rm -f conftest.$ac_objext
6630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6631 (eval $ac_compile) 2>conftest.er1
6633 grep -v '^ *+' conftest.er1 >conftest.err
6635 cat conftest.err >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } &&
6638 { ac_try='test -z "$ac_c_werror_flag"
6639 || test ! -s conftest.err'
6640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; } &&
6645 { ac_try='test -s conftest.$ac_objext'
6646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); }; }; then
6651 ac_lo=$ac_mid; break
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6656 ac_hi=`expr '(' $ac_mid ')' - 1`
6657 if test $ac_mid -le $ac_hi; then
6661 ac_mid=`expr 2 '*' $ac_mid`
6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6674 # Binary search between lo and hi bounds.
6675 while test "x$ac_lo" != "x$ac_hi"; do
6676 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6677 cat >conftest.$ac_ext <<_ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6683 $ac_includes_default
6687 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
6694 rm -f conftest.$ac_objext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6696 (eval $ac_compile) 2>conftest.er1
6698 grep -v '^ *+' conftest.er1 >conftest.err
6700 cat conftest.err >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } &&
6703 { ac_try='test -z "$ac_c_werror_flag"
6704 || test ! -s conftest.err'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; } &&
6710 { ac_try='test -s conftest.$ac_objext'
6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6721 ac_lo=`expr '(' $ac_mid ')' + 1`
6723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726 ?*) ac_cv_sizeof_size_t=$ac_lo;;
6727 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
6728 See \`config.log' for more details." >&5
6729 echo "$as_me: error: cannot compute sizeof (size_t), 77
6730 See \`config.log' for more details." >&2;}
6731 { (exit 1); exit 1; }; } ;;
6734 if test "$cross_compiling" = yes; then
6735 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6736 See \`config.log' for more details." >&5
6737 echo "$as_me: error: cannot run test program while cross compiling
6738 See \`config.log' for more details." >&2;}
6739 { (exit 1); exit 1; }; }
6741 cat >conftest.$ac_ext <<_ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h. */
6747 $ac_includes_default
6748 long longval () { return (long) (sizeof (size_t)); }
6749 unsigned long ulongval () { return (long) (sizeof (size_t)); }
6756 FILE *f = fopen ("conftest.val", "w");
6759 if (((long) (sizeof (size_t))) < 0)
6761 long i = longval ();
6762 if (i != ((long) (sizeof (size_t))))
6764 fprintf (f, "%ld\n", i);
6768 unsigned long i = ulongval ();
6769 if (i != ((long) (sizeof (size_t))))
6771 fprintf (f, "%lu\n", i);
6773 exit (ferror (f) || fclose (f) != 0);
6779 rm -f conftest$ac_exeext
6780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6781 (eval $ac_link) 2>&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; }; then
6790 ac_cv_sizeof_size_t=`cat conftest.val`
6792 echo "$as_me: program exited with status $ac_status" >&5
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6797 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
6798 See \`config.log' for more details." >&5
6799 echo "$as_me: error: cannot compute sizeof (size_t), 77
6800 See \`config.log' for more details." >&2;}
6801 { (exit 1); exit 1; }; }
6803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6808 ac_cv_sizeof_size_t=0
6811 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
6812 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
6813 cat >>confdefs.h <<_ACEOF
6814 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
6818 echo "$as_me:$LINENO: checking for int64_t" >&5
6819 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6820 if test "${ac_cv_type_int64_t+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 cat >conftest.$ac_ext <<_ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 $ac_includes_default
6835 if (sizeof (int64_t))
6841 rm -f conftest.$ac_objext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6843 (eval $ac_compile) 2>conftest.er1
6845 grep -v '^ *+' conftest.er1 >conftest.err
6847 cat conftest.err >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } &&
6850 { ac_try='test -z "$ac_c_werror_flag"
6851 || test ! -s conftest.err'
6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; } &&
6857 { ac_try='test -s conftest.$ac_objext'
6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; }; then
6863 ac_cv_type_int64_t=yes
6865 echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6868 ac_cv_type_int64_t=no
6870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6872 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6873 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6875 echo "$as_me:$LINENO: checking size of int64_t" >&5
6876 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6877 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 if test "$ac_cv_type_int64_t" = yes; then
6881 # The cast to unsigned long works around a bug in the HP C Compiler
6882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6884 # This bug is HP SR number 8606223364.
6885 if test "$cross_compiling" = yes; then
6886 # Depending upon the size, compute the lo and hi bounds.
6887 cat >conftest.$ac_ext <<_ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6893 $ac_includes_default
6897 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6904 rm -f conftest.$ac_objext
6905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6906 (eval $ac_compile) 2>conftest.er1
6908 grep -v '^ *+' conftest.er1 >conftest.err
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try='test -z "$ac_c_werror_flag"
6914 || test ! -s conftest.err'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; } &&
6920 { ac_try='test -s conftest.$ac_objext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6928 cat >conftest.$ac_ext <<_ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6934 $ac_includes_default
6938 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6945 rm -f conftest.$ac_objext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947 (eval $ac_compile) 2>conftest.er1
6949 grep -v '^ *+' conftest.er1 >conftest.err
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -z "$ac_c_werror_flag"
6955 || test ! -s conftest.err'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; } &&
6961 { ac_try='test -s conftest.$ac_objext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 ac_hi=$ac_mid; break
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6972 ac_lo=`expr $ac_mid + 1`
6973 if test $ac_lo -le $ac_mid; then
6977 ac_mid=`expr 2 '*' $ac_mid + 1`
6979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6985 cat >conftest.$ac_ext <<_ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6991 $ac_includes_default
6995 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
7002 rm -f conftest.$ac_objext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7004 (eval $ac_compile) 2>conftest.er1
7006 grep -v '^ *+' conftest.er1 >conftest.err
7008 cat conftest.err >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } &&
7011 { ac_try='test -z "$ac_c_werror_flag"
7012 || test ! -s conftest.err'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; } &&
7018 { ac_try='test -s conftest.$ac_objext'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
7026 cat >conftest.$ac_ext <<_ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 $ac_includes_default
7036 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
7043 rm -f conftest.$ac_objext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7045 (eval $ac_compile) 2>conftest.er1
7047 grep -v '^ *+' conftest.er1 >conftest.err
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } &&
7052 { ac_try='test -z "$ac_c_werror_flag"
7053 || test ! -s conftest.err'
7054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; } &&
7059 { ac_try='test -s conftest.$ac_objext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 ac_lo=$ac_mid; break
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7070 ac_hi=`expr '(' $ac_mid ')' - 1`
7071 if test $ac_mid -le $ac_hi; then
7075 ac_mid=`expr 2 '*' $ac_mid`
7077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7088 # Binary search between lo and hi bounds.
7089 while test "x$ac_lo" != "x$ac_hi"; do
7090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7091 cat >conftest.$ac_ext <<_ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 $ac_includes_default
7101 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
7108 rm -f conftest.$ac_objext
7109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7110 (eval $ac_compile) 2>conftest.er1
7112 grep -v '^ *+' conftest.er1 >conftest.err
7114 cat conftest.err >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } &&
7117 { ac_try='test -z "$ac_c_werror_flag"
7118 || test ! -s conftest.err'
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; } &&
7124 { ac_try='test -s conftest.$ac_objext'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; }; then
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7135 ac_lo=`expr '(' $ac_mid ')' + 1`
7137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7140 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
7141 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
7142 See \`config.log' for more details." >&5
7143 echo "$as_me: error: cannot compute sizeof (int64_t), 77
7144 See \`config.log' for more details." >&2;}
7145 { (exit 1); exit 1; }; } ;;
7148 if test "$cross_compiling" = yes; then
7149 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7150 See \`config.log' for more details." >&5
7151 echo "$as_me: error: cannot run test program while cross compiling
7152 See \`config.log' for more details." >&2;}
7153 { (exit 1); exit 1; }; }
7155 cat >conftest.$ac_ext <<_ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 $ac_includes_default
7162 long longval () { return (long) (sizeof (int64_t)); }
7163 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
7170 FILE *f = fopen ("conftest.val", "w");
7173 if (((long) (sizeof (int64_t))) < 0)
7175 long i = longval ();
7176 if (i != ((long) (sizeof (int64_t))))
7178 fprintf (f, "%ld\n", i);
7182 unsigned long i = ulongval ();
7183 if (i != ((long) (sizeof (int64_t))))
7185 fprintf (f, "%lu\n", i);
7187 exit (ferror (f) || fclose (f) != 0);
7193 rm -f conftest$ac_exeext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7195 (eval $ac_link) 2>&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 ac_cv_sizeof_int64_t=`cat conftest.val`
7206 echo "$as_me: program exited with status $ac_status" >&5
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7211 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
7212 See \`config.log' for more details." >&5
7213 echo "$as_me: error: cannot compute sizeof (int64_t), 77
7214 See \`config.log' for more details." >&2;}
7215 { (exit 1); exit 1; }; }
7217 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7222 ac_cv_sizeof_int64_t=0
7225 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
7226 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
7227 cat >>confdefs.h <<_ACEOF
7228 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7232 echo "$as_me:$LINENO: checking for long long" >&5
7233 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7234 if test "${ac_cv_type_long_long+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 cat >conftest.$ac_ext <<_ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 $ac_includes_default
7247 if ((long long *) 0)
7249 if (sizeof (long long))
7255 rm -f conftest.$ac_objext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7257 (eval $ac_compile) 2>conftest.er1
7259 grep -v '^ *+' conftest.er1 >conftest.err
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -z "$ac_c_werror_flag"
7265 || test ! -s conftest.err'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; } &&
7271 { ac_try='test -s conftest.$ac_objext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 ac_cv_type_long_long=yes
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7282 ac_cv_type_long_long=no
7284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7286 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7287 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7289 echo "$as_me:$LINENO: checking size of long long" >&5
7290 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7291 if test "${ac_cv_sizeof_long_long+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 if test "$ac_cv_type_long_long" = yes; then
7295 # The cast to unsigned long works around a bug in the HP C Compiler
7296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7298 # This bug is HP SR number 8606223364.
7299 if test "$cross_compiling" = yes; then
7300 # Depending upon the size, compute the lo and hi bounds.
7301 cat >conftest.$ac_ext <<_ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 $ac_includes_default
7311 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
7318 rm -f conftest.$ac_objext
7319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320 (eval $ac_compile) 2>conftest.er1
7322 grep -v '^ *+' conftest.er1 >conftest.err
7324 cat conftest.err >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -z "$ac_c_werror_flag"
7328 || test ! -s conftest.err'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; } &&
7334 { ac_try='test -s conftest.$ac_objext'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7342 cat >conftest.$ac_ext <<_ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7348 $ac_includes_default
7352 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7359 rm -f conftest.$ac_objext
7360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7361 (eval $ac_compile) 2>conftest.er1
7363 grep -v '^ *+' conftest.er1 >conftest.err
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } &&
7368 { ac_try='test -z "$ac_c_werror_flag"
7369 || test ! -s conftest.err'
7370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; } &&
7375 { ac_try='test -s conftest.$ac_objext'
7376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); }; }; then
7381 ac_hi=$ac_mid; break
7383 echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7386 ac_lo=`expr $ac_mid + 1`
7387 if test $ac_lo -le $ac_mid; then
7391 ac_mid=`expr 2 '*' $ac_mid + 1`
7393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7399 cat >conftest.$ac_ext <<_ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h. */
7405 $ac_includes_default
7409 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
7416 rm -f conftest.$ac_objext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7418 (eval $ac_compile) 2>conftest.er1
7420 grep -v '^ *+' conftest.er1 >conftest.err
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try='test -z "$ac_c_werror_flag"
7426 || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try='test -s conftest.$ac_objext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7440 cat >conftest.$ac_ext <<_ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7446 $ac_includes_default
7450 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
7457 rm -f conftest.$ac_objext
7458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7459 (eval $ac_compile) 2>conftest.er1
7461 grep -v '^ *+' conftest.er1 >conftest.err
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try='test -z "$ac_c_werror_flag"
7467 || test ! -s conftest.err'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; } &&
7473 { ac_try='test -s conftest.$ac_objext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 ac_lo=$ac_mid; break
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 ac_hi=`expr '(' $ac_mid ')' - 1`
7485 if test $ac_mid -le $ac_hi; then
7489 ac_mid=`expr 2 '*' $ac_mid`
7491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7494 echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7502 # Binary search between lo and hi bounds.
7503 while test "x$ac_lo" != "x$ac_hi"; do
7504 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7505 cat >conftest.$ac_ext <<_ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7511 $ac_includes_default
7515 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7522 rm -f conftest.$ac_objext
7523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7524 (eval $ac_compile) 2>conftest.er1
7526 grep -v '^ *+' conftest.er1 >conftest.err
7528 cat conftest.err >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } &&
7531 { ac_try='test -z "$ac_c_werror_flag"
7532 || test ! -s conftest.err'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; } &&
7538 { ac_try='test -s conftest.$ac_objext'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; }; then
7546 echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7549 ac_lo=`expr '(' $ac_mid ')' + 1`
7551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7554 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7555 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7556 See \`config.log' for more details." >&5
7557 echo "$as_me: error: cannot compute sizeof (long long), 77
7558 See \`config.log' for more details." >&2;}
7559 { (exit 1); exit 1; }; } ;;
7562 if test "$cross_compiling" = yes; then
7563 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7564 See \`config.log' for more details." >&5
7565 echo "$as_me: error: cannot run test program while cross compiling
7566 See \`config.log' for more details." >&2;}
7567 { (exit 1); exit 1; }; }
7569 cat >conftest.$ac_ext <<_ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h. */
7575 $ac_includes_default
7576 long longval () { return (long) (sizeof (long long)); }
7577 unsigned long ulongval () { return (long) (sizeof (long long)); }
7584 FILE *f = fopen ("conftest.val", "w");
7587 if (((long) (sizeof (long long))) < 0)
7589 long i = longval ();
7590 if (i != ((long) (sizeof (long long))))
7592 fprintf (f, "%ld\n", i);
7596 unsigned long i = ulongval ();
7597 if (i != ((long) (sizeof (long long))))
7599 fprintf (f, "%lu\n", i);
7601 exit (ferror (f) || fclose (f) != 0);
7607 rm -f conftest$ac_exeext
7608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7609 (eval $ac_link) 2>&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 ac_cv_sizeof_long_long=`cat conftest.val`
7620 echo "$as_me: program exited with status $ac_status" >&5
7621 echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7625 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7626 See \`config.log' for more details." >&5
7627 echo "$as_me: error: cannot compute sizeof (long long), 77
7628 See \`config.log' for more details." >&2;}
7629 { (exit 1); exit 1; }; }
7631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7636 ac_cv_sizeof_long_long=0
7639 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7640 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7641 cat >>confdefs.h <<_ACEOF
7642 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7647 #====================================================================================
7648 # Find an appropriate type for sf_count_t.
7649 # On systems supporting files larger than 2 Gig, sf_count_t must be a 64 bit value.
7650 # Unfortunately there is more than one way of ensuring this so need to do some
7651 # pretty rigourous testing here.
7653 unset ac_cv_sizeof_off_t
7655 echo "$as_me:$LINENO: checking for off_t" >&5
7656 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7657 if test "${ac_cv_type_off_t+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 cat >conftest.$ac_ext <<_ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7666 $ac_includes_default
7678 rm -f conftest.$ac_objext
7679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7680 (eval $ac_compile) 2>conftest.er1
7682 grep -v '^ *+' conftest.er1 >conftest.err
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } &&
7687 { ac_try='test -z "$ac_c_werror_flag"
7688 || test ! -s conftest.err'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; } &&
7694 { ac_try='test -s conftest.$ac_objext'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
7700 ac_cv_type_off_t=yes
7702 echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7709 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7710 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7712 echo "$as_me:$LINENO: checking size of off_t" >&5
7713 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
7714 if test "${ac_cv_sizeof_off_t+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 if test "$ac_cv_type_off_t" = yes; then
7718 # The cast to unsigned long works around a bug in the HP C Compiler
7719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7721 # This bug is HP SR number 8606223364.
7722 if test "$cross_compiling" = yes; then
7723 # Depending upon the size, compute the lo and hi bounds.
7724 cat >conftest.$ac_ext <<_ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7730 $ac_includes_default
7734 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
7741 rm -f conftest.$ac_objext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7743 (eval $ac_compile) 2>conftest.er1
7745 grep -v '^ *+' conftest.er1 >conftest.err
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -z "$ac_c_werror_flag"
7751 || test ! -s conftest.err'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; } &&
7757 { ac_try='test -s conftest.$ac_objext'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7765 cat >conftest.$ac_ext <<_ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h. */
7771 $ac_includes_default
7775 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
7782 rm -f conftest.$ac_objext
7783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7784 (eval $ac_compile) 2>conftest.er1
7786 grep -v '^ *+' conftest.er1 >conftest.err
7788 cat conftest.err >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } &&
7791 { ac_try='test -z "$ac_c_werror_flag"
7792 || test ! -s conftest.err'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; } &&
7798 { ac_try='test -s conftest.$ac_objext'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 ac_hi=$ac_mid; break
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7809 ac_lo=`expr $ac_mid + 1`
7810 if test $ac_lo -le $ac_mid; then
7814 ac_mid=`expr 2 '*' $ac_mid + 1`
7816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7819 echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7822 cat >conftest.$ac_ext <<_ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h. */
7828 $ac_includes_default
7832 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
7839 rm -f conftest.$ac_objext
7840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7841 (eval $ac_compile) 2>conftest.er1
7843 grep -v '^ *+' conftest.er1 >conftest.err
7845 cat conftest.err >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); } &&
7848 { ac_try='test -z "$ac_c_werror_flag"
7849 || test ! -s conftest.err'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; } &&
7855 { ac_try='test -s conftest.$ac_objext'
7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; }; then
7863 cat >conftest.$ac_ext <<_ACEOF
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7869 $ac_includes_default
7873 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
7880 rm -f conftest.$ac_objext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7882 (eval $ac_compile) 2>conftest.er1
7884 grep -v '^ *+' conftest.er1 >conftest.err
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -z "$ac_c_werror_flag"
7890 || test ! -s conftest.err'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest.$ac_objext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_lo=$ac_mid; break
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 ac_hi=`expr '(' $ac_mid ')' - 1`
7908 if test $ac_mid -le $ac_hi; then
7912 ac_mid=`expr 2 '*' $ac_mid`
7914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7925 # Binary search between lo and hi bounds.
7926 while test "x$ac_lo" != "x$ac_hi"; do
7927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7928 cat >conftest.$ac_ext <<_ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7938 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
7945 rm -f conftest.$ac_objext
7946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7947 (eval $ac_compile) 2>conftest.er1
7949 grep -v '^ *+' conftest.er1 >conftest.err
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } &&
7954 { ac_try='test -z "$ac_c_werror_flag"
7955 || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try='test -s conftest.$ac_objext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7972 ac_lo=`expr '(' $ac_mid ')' + 1`
7974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7977 ?*) ac_cv_sizeof_off_t=$ac_lo;;
7978 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
7979 See \`config.log' for more details." >&5
7980 echo "$as_me: error: cannot compute sizeof (off_t), 77
7981 See \`config.log' for more details." >&2;}
7982 { (exit 1); exit 1; }; } ;;
7985 if test "$cross_compiling" = yes; then
7986 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7987 See \`config.log' for more details." >&5
7988 echo "$as_me: error: cannot run test program while cross compiling
7989 See \`config.log' for more details." >&2;}
7990 { (exit 1); exit 1; }; }
7992 cat >conftest.$ac_ext <<_ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 $ac_includes_default
7999 long longval () { return (long) (sizeof (off_t)); }
8000 unsigned long ulongval () { return (long) (sizeof (off_t)); }
8007 FILE *f = fopen ("conftest.val", "w");
8010 if (((long) (sizeof (off_t))) < 0)
8012 long i = longval ();
8013 if (i != ((long) (sizeof (off_t))))
8015 fprintf (f, "%ld\n", i);
8019 unsigned long i = ulongval ();
8020 if (i != ((long) (sizeof (off_t))))
8022 fprintf (f, "%lu\n", i);
8024 exit (ferror (f) || fclose (f) != 0);
8030 rm -f conftest$ac_exeext
8031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8032 (eval $ac_link) 2>&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 ac_cv_sizeof_off_t=`cat conftest.val`
8043 echo "$as_me: program exited with status $ac_status" >&5
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
8049 See \`config.log' for more details." >&5
8050 echo "$as_me: error: cannot compute sizeof (off_t), 77
8051 See \`config.log' for more details." >&2;}
8052 { (exit 1); exit 1; }; }
8054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8059 ac_cv_sizeof_off_t=0
8062 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
8063 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
8064 cat >>confdefs.h <<_ACEOF
8065 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8068 # Fake default value.
8072 TYPEOF_SF_COUNT_T="__int64"
8073 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
8077 if test "x$ac_cv_sizeof_off_t" = "x8" ; then
8078 # If sizeof (off_t) is 8, no further checking is needed.
8079 TYPEOF_SF_COUNT_T="off_t"
8080 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
8083 # Check for common 64 bit file offset types.
8084 echo "$as_me:$LINENO: checking for loff_t" >&5
8085 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6
8086 if test "${ac_cv_type_loff_t+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 cat >conftest.$ac_ext <<_ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 $ac_includes_default
8101 if (sizeof (loff_t))
8107 rm -f conftest.$ac_objext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8109 (eval $ac_compile) 2>conftest.er1
8111 grep -v '^ *+' conftest.er1 >conftest.err
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } &&
8116 { ac_try='test -z "$ac_c_werror_flag"
8117 || test ! -s conftest.err'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; } &&
8123 { ac_try='test -s conftest.$ac_objext'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; }; then
8129 ac_cv_type_loff_t=yes
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8134 ac_cv_type_loff_t=no
8136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8138 echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
8139 echo "${ECHO_T}$ac_cv_type_loff_t" >&6
8141 echo "$as_me:$LINENO: checking size of loff_t" >&5
8142 echo $ECHO_N "checking size of loff_t... $ECHO_C" >&6
8143 if test "${ac_cv_sizeof_loff_t+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 if test "$ac_cv_type_loff_t" = yes; then
8147 # The cast to unsigned long works around a bug in the HP C Compiler
8148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8150 # This bug is HP SR number 8606223364.
8151 if test "$cross_compiling" = yes; then
8152 # Depending upon the size, compute the lo and hi bounds.
8153 cat >conftest.$ac_ext <<_ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8159 $ac_includes_default
8163 static int test_array [1 - 2 * !(((long) (sizeof (loff_t))) >= 0)];
8170 rm -f conftest.$ac_objext
8171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8172 (eval $ac_compile) 2>conftest.er1
8174 grep -v '^ *+' conftest.er1 >conftest.err
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } &&
8179 { ac_try='test -z "$ac_c_werror_flag"
8180 || test ! -s conftest.err'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; } &&
8186 { ac_try='test -s conftest.$ac_objext'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; }; then
8194 cat >conftest.$ac_ext <<_ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 $ac_includes_default
8204 static int test_array [1 - 2 * !(((long) (sizeof (loff_t))) <= $ac_mid)];
8211 rm -f conftest.$ac_objext
8212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8213 (eval $ac_compile) 2>conftest.er1
8215 grep -v '^ *+' conftest.er1 >conftest.err
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } &&
8220 { ac_try='test -z "$ac_c_werror_flag"
8221 || test ! -s conftest.err'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try='test -s conftest.$ac_objext'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_hi=$ac_mid; break
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 ac_lo=`expr $ac_mid + 1`
8239 if test $ac_lo -le $ac_mid; then
8243 ac_mid=`expr 2 '*' $ac_mid + 1`
8245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8251 cat >conftest.$ac_ext <<_ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 $ac_includes_default
8261 static int test_array [1 - 2 * !(((long) (sizeof (loff_t))) < 0)];
8268 rm -f conftest.$ac_objext
8269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8270 (eval $ac_compile) 2>conftest.er1
8272 grep -v '^ *+' conftest.er1 >conftest.err
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
8277 { ac_try='test -z "$ac_c_werror_flag"
8278 || test ! -s conftest.err'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; } &&
8284 { ac_try='test -s conftest.$ac_objext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8292 cat >conftest.$ac_ext <<_ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 $ac_includes_default
8302 static int test_array [1 - 2 * !(((long) (sizeof (loff_t))) >= $ac_mid)];
8309 rm -f conftest.$ac_objext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8311 (eval $ac_compile) 2>conftest.er1
8313 grep -v '^ *+' conftest.er1 >conftest.err
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } &&
8318 { ac_try='test -z "$ac_c_werror_flag"
8319 || test ! -s conftest.err'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; } &&
8325 { ac_try='test -s conftest.$ac_objext'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; }; then
8331 ac_lo=$ac_mid; break
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8336 ac_hi=`expr '(' $ac_mid ')' - 1`
8337 if test $ac_mid -le $ac_hi; then
8341 ac_mid=`expr 2 '*' $ac_mid`
8343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8354 # Binary search between lo and hi bounds.
8355 while test "x$ac_lo" != "x$ac_hi"; do
8356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8357 cat >conftest.$ac_ext <<_ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 $ac_includes_default
8367 static int test_array [1 - 2 * !(((long) (sizeof (loff_t))) <= $ac_mid)];
8374 rm -f conftest.$ac_objext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8376 (eval $ac_compile) 2>conftest.er1
8378 grep -v '^ *+' conftest.er1 >conftest.err
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -z "$ac_c_werror_flag"
8384 || test ! -s conftest.err'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; } &&
8390 { ac_try='test -s conftest.$ac_objext'
8391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; }; then
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8401 ac_lo=`expr '(' $ac_mid ')' + 1`
8403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8406 ?*) ac_cv_sizeof_loff_t=$ac_lo;;
8407 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (loff_t), 77
8408 See \`config.log' for more details." >&5
8409 echo "$as_me: error: cannot compute sizeof (loff_t), 77
8410 See \`config.log' for more details." >&2;}
8411 { (exit 1); exit 1; }; } ;;
8414 if test "$cross_compiling" = yes; then
8415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8416 See \`config.log' for more details." >&5
8417 echo "$as_me: error: cannot run test program while cross compiling
8418 See \`config.log' for more details." >&2;}
8419 { (exit 1); exit 1; }; }
8421 cat >conftest.$ac_ext <<_ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 $ac_includes_default
8428 long longval () { return (long) (sizeof (loff_t)); }
8429 unsigned long ulongval () { return (long) (sizeof (loff_t)); }
8436 FILE *f = fopen ("conftest.val", "w");
8439 if (((long) (sizeof (loff_t))) < 0)
8441 long i = longval ();
8442 if (i != ((long) (sizeof (loff_t))))
8444 fprintf (f, "%ld\n", i);
8448 unsigned long i = ulongval ();
8449 if (i != ((long) (sizeof (loff_t))))
8451 fprintf (f, "%lu\n", i);
8453 exit (ferror (f) || fclose (f) != 0);
8459 rm -f conftest$ac_exeext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461 (eval $ac_link) 2>&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_cv_sizeof_loff_t=`cat conftest.val`
8472 echo "$as_me: program exited with status $ac_status" >&5
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8477 { { echo "$as_me:$LINENO: error: cannot compute sizeof (loff_t), 77
8478 See \`config.log' for more details." >&5
8479 echo "$as_me: error: cannot compute sizeof (loff_t), 77
8480 See \`config.log' for more details." >&2;}
8481 { (exit 1); exit 1; }; }
8483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8488 ac_cv_sizeof_loff_t=0
8491 echo "$as_me:$LINENO: result: $ac_cv_sizeof_loff_t" >&5
8492 echo "${ECHO_T}$ac_cv_sizeof_loff_t" >&6
8493 cat >>confdefs.h <<_ACEOF
8494 #define SIZEOF_LOFF_T $ac_cv_sizeof_loff_t
8497 # Fake default value.
8498 echo "$as_me:$LINENO: checking for off64_t" >&5
8499 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
8500 if test "${ac_cv_type_off64_t+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 cat >conftest.$ac_ext <<_ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8509 $ac_includes_default
8515 if (sizeof (off64_t))
8521 rm -f conftest.$ac_objext
8522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8523 (eval $ac_compile) 2>conftest.er1
8525 grep -v '^ *+' conftest.er1 >conftest.err
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try='test -z "$ac_c_werror_flag"
8531 || test ! -s conftest.err'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try='test -s conftest.$ac_objext'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8543 ac_cv_type_off64_t=yes
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8548 ac_cv_type_off64_t=no
8550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8552 echo "$as_me:$LINENO: result: $ac_cv_type_off64_t" >&5
8553 echo "${ECHO_T}$ac_cv_type_off64_t" >&6
8555 echo "$as_me:$LINENO: checking size of off64_t" >&5
8556 echo $ECHO_N "checking size of off64_t... $ECHO_C" >&6
8557 if test "${ac_cv_sizeof_off64_t+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 if test "$ac_cv_type_off64_t" = yes; then
8561 # The cast to unsigned long works around a bug in the HP C Compiler
8562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8564 # This bug is HP SR number 8606223364.
8565 if test "$cross_compiling" = yes; then
8566 # Depending upon the size, compute the lo and hi bounds.
8567 cat >conftest.$ac_ext <<_ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8573 $ac_includes_default
8577 static int test_array [1 - 2 * !(((long) (sizeof (off64_t))) >= 0)];
8584 rm -f conftest.$ac_objext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8586 (eval $ac_compile) 2>conftest.er1
8588 grep -v '^ *+' conftest.er1 >conftest.err
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -z "$ac_c_werror_flag"
8594 || test ! -s conftest.err'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; } &&
8600 { ac_try='test -s conftest.$ac_objext'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8608 cat >conftest.$ac_ext <<_ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 $ac_includes_default
8618 static int test_array [1 - 2 * !(((long) (sizeof (off64_t))) <= $ac_mid)];
8625 rm -f conftest.$ac_objext
8626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8627 (eval $ac_compile) 2>conftest.er1
8629 grep -v '^ *+' conftest.er1 >conftest.err
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } &&
8634 { ac_try='test -z "$ac_c_werror_flag"
8635 || test ! -s conftest.err'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; } &&
8641 { ac_try='test -s conftest.$ac_objext'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8647 ac_hi=$ac_mid; break
8649 echo "$as_me: failed program was:" >&5
8650 sed 's/^/| /' conftest.$ac_ext >&5
8652 ac_lo=`expr $ac_mid + 1`
8653 if test $ac_lo -le $ac_mid; then
8657 ac_mid=`expr 2 '*' $ac_mid + 1`
8659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8665 cat >conftest.$ac_ext <<_ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8671 $ac_includes_default
8675 static int test_array [1 - 2 * !(((long) (sizeof (off64_t))) < 0)];
8682 rm -f conftest.$ac_objext
8683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8684 (eval $ac_compile) 2>conftest.er1
8686 grep -v '^ *+' conftest.er1 >conftest.err
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } &&
8691 { ac_try='test -z "$ac_c_werror_flag"
8692 || test ! -s conftest.err'
8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; } &&
8698 { ac_try='test -s conftest.$ac_objext'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8706 cat >conftest.$ac_ext <<_ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 $ac_includes_default
8716 static int test_array [1 - 2 * !(((long) (sizeof (off64_t))) >= $ac_mid)];
8723 rm -f conftest.$ac_objext
8724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8725 (eval $ac_compile) 2>conftest.er1
8727 grep -v '^ *+' conftest.er1 >conftest.err
8729 cat conftest.err >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } &&
8732 { ac_try='test -z "$ac_c_werror_flag"
8733 || test ! -s conftest.err'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; } &&
8739 { ac_try='test -s conftest.$ac_objext'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; }; then
8745 ac_lo=$ac_mid; break
8747 echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8750 ac_hi=`expr '(' $ac_mid ')' - 1`
8751 if test $ac_mid -le $ac_hi; then
8755 ac_mid=`expr 2 '*' $ac_mid`
8757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8760 echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8768 # Binary search between lo and hi bounds.
8769 while test "x$ac_lo" != "x$ac_hi"; do
8770 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8771 cat >conftest.$ac_ext <<_ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8777 $ac_includes_default
8781 static int test_array [1 - 2 * !(((long) (sizeof (off64_t))) <= $ac_mid)];
8788 rm -f conftest.$ac_objext
8789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8790 (eval $ac_compile) 2>conftest.er1
8792 grep -v '^ *+' conftest.er1 >conftest.err
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
8797 { ac_try='test -z "$ac_c_werror_flag"
8798 || test ! -s conftest.err'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; } &&
8804 { ac_try='test -s conftest.$ac_objext'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; }; then
8812 echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8815 ac_lo=`expr '(' $ac_mid ')' + 1`
8817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8820 ?*) ac_cv_sizeof_off64_t=$ac_lo;;
8821 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t), 77
8822 See \`config.log' for more details." >&5
8823 echo "$as_me: error: cannot compute sizeof (off64_t), 77
8824 See \`config.log' for more details." >&2;}
8825 { (exit 1); exit 1; }; } ;;
8828 if test "$cross_compiling" = yes; then
8829 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8830 See \`config.log' for more details." >&5
8831 echo "$as_me: error: cannot run test program while cross compiling
8832 See \`config.log' for more details." >&2;}
8833 { (exit 1); exit 1; }; }
8835 cat >conftest.$ac_ext <<_ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8841 $ac_includes_default
8842 long longval () { return (long) (sizeof (off64_t)); }
8843 unsigned long ulongval () { return (long) (sizeof (off64_t)); }
8850 FILE *f = fopen ("conftest.val", "w");
8853 if (((long) (sizeof (off64_t))) < 0)
8855 long i = longval ();
8856 if (i != ((long) (sizeof (off64_t))))
8858 fprintf (f, "%ld\n", i);
8862 unsigned long i = ulongval ();
8863 if (i != ((long) (sizeof (off64_t))))
8865 fprintf (f, "%lu\n", i);
8867 exit (ferror (f) || fclose (f) != 0);
8873 rm -f conftest$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875 (eval $ac_link) 2>&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
8884 ac_cv_sizeof_off64_t=`cat conftest.val`
8886 echo "$as_me: program exited with status $ac_status" >&5
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t), 77
8892 See \`config.log' for more details." >&5
8893 echo "$as_me: error: cannot compute sizeof (off64_t), 77
8894 See \`config.log' for more details." >&2;}
8895 { (exit 1); exit 1; }; }
8897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8902 ac_cv_sizeof_off64_t=0
8905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off64_t" >&5
8906 echo "${ECHO_T}$ac_cv_sizeof_off64_t" >&6
8907 cat >>confdefs.h <<_ACEOF
8908 #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
8911 # Fake default value.
8913 TYPEOF_SF_COUNT_T="unknown"
8914 if test "x$ac_cv_sizeof_loff_t" = "x8" ; then
8915 TYPEOF_SF_COUNT_T="loff_t"
8917 elif test "x$ac_cv_sizeof_off64_t" = "x8" ; then
8918 TYPEOF_SF_COUNT_T="off64_t"
8922 # Save the old sizeof (off_t) value and then unset it to see if it
8923 # changes when Large File Support is enabled.
8925 pre_largefile_sizeof_off_t=$ac_cv_sizeof_off_t
8926 unset ac_cv_sizeof_off_t
8929 # Check whether --enable-largefile or --disable-largefile was given.
8930 if test "${enable_largefile+set}" = set; then
8931 enableval="$enable_largefile"
8934 if test "$enable_largefile" != no; then
8935 if test -n "$ac_tool_prefix"; then
8936 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8937 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8938 echo "$as_me:$LINENO: checking for $ac_word" >&5
8939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8940 if test "${ac_cv_prog_GETCONF+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 if test -n "$GETCONF"; then
8944 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 test -z "$as_dir" && as_dir=.
8951 for ac_exec_ext in '' $ac_executable_extensions; do
8952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8953 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8962 GETCONF=$ac_cv_prog_GETCONF
8963 if test -n "$GETCONF"; then
8964 echo "$as_me:$LINENO: result: $GETCONF" >&5
8965 echo "${ECHO_T}$GETCONF" >&6
8967 echo "$as_me:$LINENO: result: no" >&5
8968 echo "${ECHO_T}no" >&6
8972 if test -z "$ac_cv_prog_GETCONF"; then
8973 ac_ct_GETCONF=$GETCONF
8974 # Extract the first word of "getconf", so it can be a program name with args.
8975 set dummy getconf; ac_word=$2
8976 echo "$as_me:$LINENO: checking for $ac_word" >&5
8977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8978 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 if test -n "$ac_ct_GETCONF"; then
8982 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988 test -z "$as_dir" && as_dir=.
8989 for ac_exec_ext in '' $ac_executable_extensions; do
8990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8991 ac_cv_prog_ac_ct_GETCONF="getconf"
8992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9000 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9001 if test -n "$ac_ct_GETCONF"; then
9002 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9003 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9005 echo "$as_me:$LINENO: result: no" >&5
9006 echo "${ECHO_T}no" >&6
9009 GETCONF=$ac_ct_GETCONF
9011 GETCONF="$ac_cv_prog_GETCONF"
9014 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9015 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9016 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9020 ac_cv_sys_largefile_CFLAGS=no
9022 # IRIX 6.2 and later require cc -n32.
9023 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9024 if test "$GCC" != yes; then
9025 ac_cv_sys_largefile_CFLAGS=-n32
9028 CC="$CC $ac_cv_sys_largefile_CFLAGS"
9029 cat >conftest.$ac_ext <<_ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9044 rm -f conftest.$ac_objext conftest$ac_exeext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9046 (eval $ac_link) 2>conftest.er1
9048 grep -v '^ *+' conftest.er1 >conftest.err
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -z "$ac_c_werror_flag"
9054 || test ! -s conftest.err'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try='test -s conftest$ac_exeext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 ac_cv_sys_largefile_CFLAGS=no
9073 rm -f conftest.err conftest.$ac_objext \
9074 conftest$ac_exeext conftest.$ac_ext
9079 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9080 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9081 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9082 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9083 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9087 ac_cv_sys_largefile_LDFLAGS=no
9091 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9092 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9093 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9094 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9095 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9099 ac_cv_sys_largefile_LIBS=no
9103 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9104 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9106 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9109 -D_FILE_OFFSET_BITS=*) ;;
9110 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9111 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9117 '') CPPFLAGS="$ac_flag" ;;
9118 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9126 '') CFLAGS="$ac_flag" ;;
9127 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9132 case "$ac_cv_sys_largefile_LDFLAGS" in
9136 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9137 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9140 case "$ac_cv_sys_largefile_LIBS" in
9144 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9145 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9148 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9149 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9150 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 ac_cv_sys_file_offset_bits=no
9155 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9157 -D_FILE_OFFSET_BITS)
9158 ac_cv_sys_file_offset_bits=1 ;;
9159 -D_FILE_OFFSET_BITS=*)
9160 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9165 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9166 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9167 if test "$ac_cv_sys_file_offset_bits" != no; then
9169 cat >>confdefs.h <<_ACEOF
9170 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9175 # HP-UX 10.20 and later
9176 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
9177 ac_cv_sys_file_offset_bits=64 ;;
9179 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9180 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9181 if test "${ac_cv_sys_largefile_source+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 ac_cv_sys_largefile_source=no
9186 # HP-UX 10.20 and later
9187 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
9188 ac_cv_sys_largefile_source=1 ;;
9190 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9192 -D_LARGEFILE_SOURCE)
9193 ac_cv_sys_largefile_source=1 ;;
9194 -D_LARGEFILE_SOURCE=*)
9195 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9200 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9201 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9202 if test "$ac_cv_sys_largefile_source" != no; then
9204 cat >>confdefs.h <<_ACEOF
9205 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9209 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9210 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9211 if test "${ac_cv_sys_large_files+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 ac_cv_sys_large_files=no
9217 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
9218 ac_cv_sys_large_files=1 ;;
9220 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9223 ac_cv_sys_large_files=1 ;;
9225 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9230 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9231 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9232 if test "$ac_cv_sys_large_files" != no; then
9234 cat >>confdefs.h <<_ACEOF
9235 #define _LARGE_FILES $ac_cv_sys_large_files
9242 if test "x$ac_cv_sys_largefile_CFLAGS" = "xno" ; then
9243 ac_cv_sys_largefile_CFLAGS=""
9245 if test "x$ac_cv_sys_largefile_LDFLAGS" = "xno" ; then
9246 ac_cv_sys_largefile_LDFLAGS=""
9248 if test "x$ac_cv_sys_largefile_LIBS" = "xno" ; then
9249 ac_cv_sys_largefile_LIBS=""
9252 echo "$as_me:$LINENO: checking for off_t" >&5
9253 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9254 if test "${ac_cv_type_off_t+set}" = set; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9257 cat >conftest.$ac_ext <<_ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9263 $ac_includes_default
9275 rm -f conftest.$ac_objext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9277 (eval $ac_compile) 2>conftest.er1
9279 grep -v '^ *+' conftest.er1 >conftest.err
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try='test -z "$ac_c_werror_flag"
9285 || test ! -s conftest.err'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; } &&
9291 { ac_try='test -s conftest.$ac_objext'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9297 ac_cv_type_off_t=yes
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9306 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9307 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9309 echo "$as_me:$LINENO: checking size of off_t" >&5
9310 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
9311 if test "${ac_cv_sizeof_off_t+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 if test "$ac_cv_type_off_t" = yes; then
9315 # The cast to unsigned long works around a bug in the HP C Compiler
9316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9318 # This bug is HP SR number 8606223364.
9319 if test "$cross_compiling" = yes; then
9320 # Depending upon the size, compute the lo and hi bounds.
9321 cat >conftest.$ac_ext <<_ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9327 $ac_includes_default
9331 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
9338 rm -f conftest.$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340 (eval $ac_compile) 2>conftest.er1
9342 grep -v '^ *+' conftest.er1 >conftest.err
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -z "$ac_c_werror_flag"
9348 || test ! -s conftest.err'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; } &&
9354 { ac_try='test -s conftest.$ac_objext'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9362 cat >conftest.$ac_ext <<_ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 $ac_includes_default
9372 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381 (eval $ac_compile) 2>conftest.er1
9383 grep -v '^ *+' conftest.er1 >conftest.err
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try='test -z "$ac_c_werror_flag"
9389 || test ! -s conftest.err'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; } &&
9395 { ac_try='test -s conftest.$ac_objext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 ac_hi=$ac_mid; break
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_lo=`expr $ac_mid + 1`
9407 if test $ac_lo -le $ac_mid; then
9411 ac_mid=`expr 2 '*' $ac_mid + 1`
9413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 cat >conftest.$ac_ext <<_ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 $ac_includes_default
9429 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
9436 rm -f conftest.$ac_objext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9438 (eval $ac_compile) 2>conftest.er1
9440 grep -v '^ *+' conftest.er1 >conftest.err
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } &&
9445 { ac_try='test -z "$ac_c_werror_flag"
9446 || test ! -s conftest.err'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; } &&
9452 { ac_try='test -s conftest.$ac_objext'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; }; then
9460 cat >conftest.$ac_ext <<_ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466 $ac_includes_default
9470 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
9477 rm -f conftest.$ac_objext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9479 (eval $ac_compile) 2>conftest.er1
9481 grep -v '^ *+' conftest.er1 >conftest.err
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } &&
9486 { ac_try='test -z "$ac_c_werror_flag"
9487 || test ! -s conftest.err'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest.$ac_objext'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9499 ac_lo=$ac_mid; break
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9504 ac_hi=`expr '(' $ac_mid ')' - 1`
9505 if test $ac_mid -le $ac_hi; then
9509 ac_mid=`expr 2 '*' $ac_mid`
9511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9522 # Binary search between lo and hi bounds.
9523 while test "x$ac_lo" != "x$ac_hi"; do
9524 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9525 cat >conftest.$ac_ext <<_ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 $ac_includes_default
9535 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
9542 rm -f conftest.$ac_objext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9544 (eval $ac_compile) 2>conftest.er1
9546 grep -v '^ *+' conftest.er1 >conftest.err
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try='test -z "$ac_c_werror_flag"
9552 || test ! -s conftest.err'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try='test -s conftest.$ac_objext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9569 ac_lo=`expr '(' $ac_mid ')' + 1`
9571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9574 ?*) ac_cv_sizeof_off_t=$ac_lo;;
9575 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
9576 See \`config.log' for more details." >&5
9577 echo "$as_me: error: cannot compute sizeof (off_t), 77
9578 See \`config.log' for more details." >&2;}
9579 { (exit 1); exit 1; }; } ;;
9582 if test "$cross_compiling" = yes; then
9583 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9584 See \`config.log' for more details." >&5
9585 echo "$as_me: error: cannot run test program while cross compiling
9586 See \`config.log' for more details." >&2;}
9587 { (exit 1); exit 1; }; }
9589 cat >conftest.$ac_ext <<_ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 $ac_includes_default
9596 long longval () { return (long) (sizeof (off_t)); }
9597 unsigned long ulongval () { return (long) (sizeof (off_t)); }
9604 FILE *f = fopen ("conftest.val", "w");
9607 if (((long) (sizeof (off_t))) < 0)
9609 long i = longval ();
9610 if (i != ((long) (sizeof (off_t))))
9612 fprintf (f, "%ld\n", i);
9616 unsigned long i = ulongval ();
9617 if (i != ((long) (sizeof (off_t))))
9619 fprintf (f, "%lu\n", i);
9621 exit (ferror (f) || fclose (f) != 0);
9627 rm -f conftest$ac_exeext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9629 (eval $ac_link) 2>&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638 ac_cv_sizeof_off_t=`cat conftest.val`
9640 echo "$as_me: program exited with status $ac_status" >&5
9641 echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9645 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
9646 See \`config.log' for more details." >&5
9647 echo "$as_me: error: cannot compute sizeof (off_t), 77
9648 See \`config.log' for more details." >&2;}
9649 { (exit 1); exit 1; }; }
9651 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9656 ac_cv_sizeof_off_t=0
9659 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
9660 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
9661 cat >>confdefs.h <<_ACEOF
9662 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9665 # Fake default value.
9667 if test "x$ac_cv_sizeof_off_t" = "x8" ; then
9668 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
9669 elif test "x$ac_cv_sizeof_off_t" = "x$pre_largefile_sizeof_off_t" ; then
9670 { echo "$as_me:$LINENO: WARNING: This machine does not seem to support 64 bit file offsets." >&5
9671 echo "$as_me: WARNING: This machine does not seem to support 64 bit file offsets." >&2;}
9672 TYPEOF_SF_COUNT_T="off_t"
9673 SIZEOF_SF_COUNT_T=$ac_cv_sizeof_off_t
9674 elif test "x$TYPEOF_SF_COUNT_T" = "xunknown" ; then
9676 echo "*** The configure process has determined that this system is capable"
9677 echo "*** of Large File Support but has not been able to find a type which"
9678 echo "*** is an unambiguous 64 bit file offset."
9679 echo "*** Please contact the author to help resolve this problem."
9681 { { echo "$as_me:$LINENO: error: Bad file offset type." >&5
9682 echo "$as_me: error: Bad file offset type." >&2;}
9683 { (exit 1); exit 1; }; }
9689 if test $SIZEOF_SF_COUNT_T = 4 ; then
9690 SF_COUNT_MAX="0x7FFFFFFF"
9694 cat >>confdefs.h <<_ACEOF
9695 #define TYPEOF_SF_COUNT_T ${TYPEOF_SF_COUNT_T}
9701 cat >>confdefs.h <<_ACEOF
9702 #define SIZEOF_SF_COUNT_T ${SIZEOF_SF_COUNT_T}
9708 cat >>confdefs.h <<_ACEOF
9709 #define SF_COUNT_MAX ${SF_COUNT_MAX}
9714 echo "$as_me:$LINENO: checking for ssize_t" >&5
9715 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9716 if test "${ac_cv_type_ssize_t+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 cat >conftest.$ac_ext <<_ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9725 $ac_includes_default
9731 if (sizeof (ssize_t))
9737 rm -f conftest.$ac_objext
9738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9739 (eval $ac_compile) 2>conftest.er1
9741 grep -v '^ *+' conftest.er1 >conftest.err
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -z "$ac_c_werror_flag"
9747 || test ! -s conftest.err'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; } &&
9753 { ac_try='test -s conftest.$ac_objext'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; }; then
9759 ac_cv_type_ssize_t=yes
9761 echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9764 ac_cv_type_ssize_t=no
9766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9768 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9769 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9770 if test $ac_cv_type_ssize_t = yes; then
9772 cat >>confdefs.h <<_ACEOF
9773 #define HAVE_SSIZE_T 1
9779 echo "$as_me:$LINENO: checking for ssize_t" >&5
9780 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9781 if test "${ac_cv_type_ssize_t+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 cat >conftest.$ac_ext <<_ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9790 $ac_includes_default
9796 if (sizeof (ssize_t))
9802 rm -f conftest.$ac_objext
9803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9804 (eval $ac_compile) 2>conftest.er1
9806 grep -v '^ *+' conftest.er1 >conftest.err
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } &&
9811 { ac_try='test -z "$ac_c_werror_flag"
9812 || test ! -s conftest.err'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; } &&
9818 { ac_try='test -s conftest.$ac_objext'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; }; then
9824 ac_cv_type_ssize_t=yes
9826 echo "$as_me: failed program was:" >&5
9827 sed 's/^/| /' conftest.$ac_ext >&5
9829 ac_cv_type_ssize_t=no
9831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9833 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9834 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9836 echo "$as_me:$LINENO: checking size of ssize_t" >&5
9837 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6
9838 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 if test "$ac_cv_type_ssize_t" = yes; then
9842 # The cast to unsigned long works around a bug in the HP C Compiler
9843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9845 # This bug is HP SR number 8606223364.
9846 if test "$cross_compiling" = yes; then
9847 # Depending upon the size, compute the lo and hi bounds.
9848 cat >conftest.$ac_ext <<_ACEOF
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9854 $ac_includes_default
9858 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= 0)];
9865 rm -f conftest.$ac_objext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9867 (eval $ac_compile) 2>conftest.er1
9869 grep -v '^ *+' conftest.er1 >conftest.err
9871 cat conftest.err >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } &&
9874 { ac_try='test -z "$ac_c_werror_flag"
9875 || test ! -s conftest.err'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; } &&
9881 { ac_try='test -s conftest.$ac_objext'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9889 cat >conftest.$ac_ext <<_ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 $ac_includes_default
9899 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
9906 rm -f conftest.$ac_objext
9907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908 (eval $ac_compile) 2>conftest.er1
9910 grep -v '^ *+' conftest.er1 >conftest.err
9912 cat conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } &&
9915 { ac_try='test -z "$ac_c_werror_flag"
9916 || test ! -s conftest.err'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; } &&
9922 { ac_try='test -s conftest.$ac_objext'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; }; then
9928 ac_hi=$ac_mid; break
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9933 ac_lo=`expr $ac_mid + 1`
9934 if test $ac_lo -le $ac_mid; then
9938 ac_mid=`expr 2 '*' $ac_mid + 1`
9940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9946 cat >conftest.$ac_ext <<_ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 $ac_includes_default
9956 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) < 0)];
9963 rm -f conftest.$ac_objext
9964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9965 (eval $ac_compile) 2>conftest.er1
9967 grep -v '^ *+' conftest.er1 >conftest.err
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try='test -z "$ac_c_werror_flag"
9973 || test ! -s conftest.err'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; } &&
9979 { ac_try='test -s conftest.$ac_objext'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9987 cat >conftest.$ac_ext <<_ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 $ac_includes_default
9997 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= $ac_mid)];
10004 rm -f conftest.$ac_objext
10005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10006 (eval $ac_compile) 2>conftest.er1
10008 grep -v '^ *+' conftest.er1 >conftest.err
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag"
10014 || test ! -s conftest.err'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; } &&
10020 { ac_try='test -s conftest.$ac_objext'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; }; then
10026 ac_lo=$ac_mid; break
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10031 ac_hi=`expr '(' $ac_mid ')' - 1`
10032 if test $ac_mid -le $ac_hi; then
10036 ac_mid=`expr 2 '*' $ac_mid`
10038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10049 # Binary search between lo and hi bounds.
10050 while test "x$ac_lo" != "x$ac_hi"; do
10051 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10052 cat >conftest.$ac_ext <<_ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10058 $ac_includes_default
10062 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
10069 rm -f conftest.$ac_objext
10070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10071 (eval $ac_compile) 2>conftest.er1
10073 grep -v '^ *+' conftest.er1 >conftest.err
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } &&
10078 { ac_try='test -z "$ac_c_werror_flag"
10079 || test ! -s conftest.err'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; } &&
10085 { ac_try='test -s conftest.$ac_objext'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
10093 echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10096 ac_lo=`expr '(' $ac_mid ')' + 1`
10098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10101 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
10102 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
10103 See \`config.log' for more details." >&5
10104 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
10105 See \`config.log' for more details." >&2;}
10106 { (exit 1); exit 1; }; } ;;
10109 if test "$cross_compiling" = yes; then
10110 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10111 See \`config.log' for more details." >&5
10112 echo "$as_me: error: cannot run test program while cross compiling
10113 See \`config.log' for more details." >&2;}
10114 { (exit 1); exit 1; }; }
10116 cat >conftest.$ac_ext <<_ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 $ac_includes_default
10123 long longval () { return (long) (sizeof (ssize_t)); }
10124 unsigned long ulongval () { return (long) (sizeof (ssize_t)); }
10126 #include <stdlib.h>
10131 FILE *f = fopen ("conftest.val", "w");
10134 if (((long) (sizeof (ssize_t))) < 0)
10136 long i = longval ();
10137 if (i != ((long) (sizeof (ssize_t))))
10139 fprintf (f, "%ld\n", i);
10143 unsigned long i = ulongval ();
10144 if (i != ((long) (sizeof (ssize_t))))
10146 fprintf (f, "%lu\n", i);
10148 exit (ferror (f) || fclose (f) != 0);
10154 rm -f conftest$ac_exeext
10155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10156 (eval $ac_link) 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161 (eval $ac_try) 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 ac_cv_sizeof_ssize_t=`cat conftest.val`
10167 echo "$as_me: program exited with status $ac_status" >&5
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10171 ( exit $ac_status )
10172 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
10173 See \`config.log' for more details." >&5
10174 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
10175 See \`config.log' for more details." >&2;}
10176 { (exit 1); exit 1; }; }
10178 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10183 ac_cv_sizeof_ssize_t=0
10186 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
10187 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6
10188 cat >>confdefs.h <<_ACEOF
10189 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
10194 #====================================================================================
10195 # Determine endian-ness of target processor.
10197 echo "$as_me:$LINENO: checking processor byte ordering" >&5
10198 echo $ECHO_N "checking processor byte ordering... $ECHO_C" >&6
10199 if test "${ac_cv_c_byte_order+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 # Initialize to unknown
10203 ac_cv_c_byte_order=unknown
10205 if test x$ac_cv_header_endian_h = xyes ; then
10207 # First try <endian.h> which should set BYTE_ORDER.
10209 cat >conftest.$ac_ext <<_ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10216 #include <endian.h>
10217 #if BYTE_ORDER != LITTLE_ENDIAN
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>conftest.er1
10233 grep -v '^ *+' conftest.er1 >conftest.err
10235 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -z "$ac_c_werror_flag"
10239 || test ! -s conftest.err'
10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; } &&
10245 { ac_try='test -s conftest$ac_exeext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 ac_cv_c_byte_order=little
10254 echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10258 rm -f conftest.err conftest.$ac_objext \
10259 conftest$ac_exeext conftest.$ac_ext
10261 cat >conftest.$ac_ext <<_ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10268 #include <endian.h>
10269 #if BYTE_ORDER != BIG_ENDIAN
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283 (eval $ac_link) 2>conftest.er1
10285 grep -v '^ *+' conftest.er1 >conftest.err
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag"
10291 || test ! -s conftest.err'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try='test -s conftest$ac_exeext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_c_byte_order=big
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10310 rm -f conftest.err conftest.$ac_objext \
10311 conftest$ac_exeext conftest.$ac_ext
10315 if test $ac_cv_c_byte_order = unknown ; then
10317 cat >conftest.$ac_ext <<_ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10324 #include <sys/types.h>
10325 #include <sys/param.h>
10326 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10327 bogus endian macros
10338 rm -f conftest.$ac_objext conftest$ac_exeext
10339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10340 (eval $ac_link) 2>conftest.er1
10342 grep -v '^ *+' conftest.er1 >conftest.err
10344 cat conftest.err >&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } &&
10347 { ac_try='test -z "$ac_c_werror_flag"
10348 || test ! -s conftest.err'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; } &&
10354 { ac_try='test -s conftest$ac_exeext'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
10360 cat >conftest.$ac_ext <<_ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10367 #include <sys/types.h>
10368 #include <sys/param.h>
10369 #if BYTE_ORDER != LITTLE_ENDIAN
10381 rm -f conftest.$ac_objext conftest$ac_exeext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383 (eval $ac_link) 2>conftest.er1
10385 grep -v '^ *+' conftest.er1 >conftest.err
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } &&
10390 { ac_try='test -z "$ac_c_werror_flag"
10391 || test ! -s conftest.err'
10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393 (eval $ac_try) 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; } &&
10397 { ac_try='test -s conftest$ac_exeext'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10403 ac_cv_c_byte_order=little
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10410 rm -f conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10413 cat >conftest.$ac_ext <<_ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10420 #include <sys/types.h>
10421 #include <sys/param.h>
10422 #if BYTE_ORDER != LITTLE_ENDIAN
10434 rm -f conftest.$ac_objext conftest$ac_exeext
10435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10436 (eval $ac_link) 2>conftest.er1
10438 grep -v '^ *+' conftest.er1 >conftest.err
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -z "$ac_c_werror_flag"
10444 || test ! -s conftest.err'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; } &&
10450 { ac_try='test -s conftest$ac_exeext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 ac_cv_c_byte_order=little
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10463 rm -f conftest.err conftest.$ac_objext \
10464 conftest$ac_exeext conftest.$ac_ext
10468 echo "$as_me: failed program was:" >&5
10469 sed 's/^/| /' conftest.$ac_ext >&5
10472 rm -f conftest.err conftest.$ac_objext \
10473 conftest$ac_exeext conftest.$ac_ext
10477 if test $ac_cv_c_byte_order = unknown ; then
10478 if test $cross_compiling = yes ; then
10479 # This is the last resort. Try to guess the target processor endian-ness
10480 # by looking at the target CPU type.
10482 case "$target_cpu" in
10483 alpha* | i?86* | mipsel* | ia64*)
10484 ac_cv_c_big_endian=0
10485 ac_cv_c_little_endian=1
10488 m68* | mips* | powerpc* | hppa* | sparc*)
10489 ac_cv_c_big_endian=1
10490 ac_cv_c_little_endian=0
10496 if test "$cross_compiling" = yes; then
10497 ac_cv_c_byte_order=unknown
10500 cat >conftest.$ac_ext <<_ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10508 { /* Are we little or big endian? From Harbison&Steele. */
10511 char c [sizeof (long)] ;
10514 return (u.c [sizeof (long) - 1] == 1);
10518 rm -f conftest$ac_exeext
10519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10520 (eval $ac_link) 2>&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525 (eval $ac_try) 2>&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; }; then
10531 echo "$as_me: program exited with status $ac_status" >&5
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10535 ( exit $ac_status )
10536 ac_cv_c_byte_order=big
10538 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10541 if test "$cross_compiling" = yes; then
10542 ac_cv_c_byte_order=unknown
10545 cat >conftest.$ac_ext <<_ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10552 { /* Are we little or big endian? From Harbison&Steele. */
10555 char c [sizeof (long)] ;
10558 return (u.c [0] == 1);
10561 rm -f conftest$ac_exeext
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563 (eval $ac_link) 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10574 echo "$as_me: program exited with status $ac_status" >&5
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10578 ( exit $ac_status )
10579 ac_cv_c_byte_order=little
10581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10588 echo "$as_me:$LINENO: result: $ac_cv_c_byte_order" >&5
10589 echo "${ECHO_T}$ac_cv_c_byte_order" >&6
10592 if test $ac_cv_c_byte_order = big ; then
10593 ac_cv_c_big_endian=1
10594 ac_cv_c_little_endian=0
10595 elif test $ac_cv_c_byte_order = little ; then
10596 ac_cv_c_big_endian=0
10597 ac_cv_c_little_endian=1
10599 ac_cv_c_big_endian=0
10600 ac_cv_c_little_endian=0
10602 echo "$as_me: WARNING: *****************************************************************" >&2
10603 echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2
10604 echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2
10605 echo "$as_me: WARNING: *** src/config.h may need to be hand editied. " >&2
10606 echo "$as_me: WARNING: *****************************************************************" >&2
10612 cat >>confdefs.h <<_ACEOF
10613 #define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}
10617 cat >>confdefs.h <<_ACEOF
10618 #define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}
10622 #====================================================================================
10623 # Check for functions.
10629 for ac_func in malloc calloc realloc free
10631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10632 echo "$as_me:$LINENO: checking for $ac_func" >&5
10633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10634 if eval "test \"\${$as_ac_var+set}\" = set"; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 cat >conftest.$ac_ext <<_ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10645 #define $ac_func innocuous_$ac_func
10647 /* System header to define __stub macros and hopefully few prototypes,
10648 which can conflict with char $ac_func (); below.
10649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10650 <limits.h> exists even on freestanding compilers. */
10653 # include <limits.h>
10655 # include <assert.h>
10660 /* Override any gcc2 internal prototype to avoid an error. */
10665 /* We use char because int might match the return type of a gcc2
10666 builtin and then its argument prototype would still apply. */
10668 /* The GNU C library defines this for functions which it implements
10669 to always fail with ENOSYS. Some functions are actually named
10670 something starting with __ and the normal name is an alias. */
10671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10674 char (*f) () = $ac_func;
10683 return f != $ac_func;
10688 rm -f conftest.$ac_objext conftest$ac_exeext
10689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10690 (eval $ac_link) 2>conftest.er1
10692 grep -v '^ *+' conftest.er1 >conftest.err
10694 cat conftest.err >&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } &&
10697 { ac_try='test -z "$ac_c_werror_flag"
10698 || test ! -s conftest.err'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; } &&
10704 { ac_try='test -s conftest$ac_exeext'
10705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; }; then
10710 eval "$as_ac_var=yes"
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 eval "$as_ac_var=no"
10717 rm -f conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10722 if test `eval echo '${'$as_ac_var'}'` = yes; then
10723 cat >>confdefs.h <<_ACEOF
10724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10736 for ac_func in open read write lseek pread pwrite
10738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10739 echo "$as_me:$LINENO: checking for $ac_func" >&5
10740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10741 if eval "test \"\${$as_ac_var+set}\" = set"; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 cat >conftest.$ac_ext <<_ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10752 #define $ac_func innocuous_$ac_func
10754 /* System header to define __stub macros and hopefully few prototypes,
10755 which can conflict with char $ac_func (); below.
10756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10757 <limits.h> exists even on freestanding compilers. */
10760 # include <limits.h>
10762 # include <assert.h>
10767 /* Override any gcc2 internal prototype to avoid an error. */
10772 /* We use char because int might match the return type of a gcc2
10773 builtin and then its argument prototype would still apply. */
10775 /* The GNU C library defines this for functions which it implements
10776 to always fail with ENOSYS. Some functions are actually named
10777 something starting with __ and the normal name is an alias. */
10778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10781 char (*f) () = $ac_func;
10790 return f != $ac_func;
10795 rm -f conftest.$ac_objext conftest$ac_exeext
10796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10797 (eval $ac_link) 2>conftest.er1
10799 grep -v '^ *+' conftest.er1 >conftest.err
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
10804 { ac_try='test -z "$ac_c_werror_flag"
10805 || test ! -s conftest.err'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest$ac_exeext'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 eval "$as_ac_var=yes"
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10822 eval "$as_ac_var=no"
10824 rm -f conftest.err conftest.$ac_objext \
10825 conftest$ac_exeext conftest.$ac_ext
10827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10829 if test `eval echo '${'$as_ac_var'}'` = yes; then
10830 cat >>confdefs.h <<_ACEOF
10831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10841 for ac_func in fstat ftruncate fsync fdatasync
10843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10844 echo "$as_me:$LINENO: checking for $ac_func" >&5
10845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10846 if eval "test \"\${$as_ac_var+set}\" = set"; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10849 cat >conftest.$ac_ext <<_ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10857 #define $ac_func innocuous_$ac_func
10859 /* System header to define __stub macros and hopefully few prototypes,
10860 which can conflict with char $ac_func (); below.
10861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10862 <limits.h> exists even on freestanding compilers. */
10865 # include <limits.h>
10867 # include <assert.h>
10872 /* Override any gcc2 internal prototype to avoid an error. */
10877 /* We use char because int might match the return type of a gcc2
10878 builtin and then its argument prototype would still apply. */
10880 /* The GNU C library defines this for functions which it implements
10881 to always fail with ENOSYS. Some functions are actually named
10882 something starting with __ and the normal name is an alias. */
10883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10886 char (*f) () = $ac_func;
10895 return f != $ac_func;
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902 (eval $ac_link) 2>conftest.er1
10904 grep -v '^ *+' conftest.er1 >conftest.err
10906 cat conftest.err >&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } &&
10909 { ac_try='test -z "$ac_c_werror_flag"
10910 || test ! -s conftest.err'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; } &&
10916 { ac_try='test -s conftest$ac_exeext'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 eval "$as_ac_var=yes"
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 eval "$as_ac_var=no"
10929 rm -f conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
10932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10934 if test `eval echo '${'$as_ac_var'}'` = yes; then
10935 cat >>confdefs.h <<_ACEOF
10936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10944 for ac_func in snprintf vsnprintf
10946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10947 echo "$as_me:$LINENO: checking for $ac_func" >&5
10948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10949 if eval "test \"\${$as_ac_var+set}\" = set"; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 cat >conftest.$ac_ext <<_ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10960 #define $ac_func innocuous_$ac_func
10962 /* System header to define __stub macros and hopefully few prototypes,
10963 which can conflict with char $ac_func (); below.
10964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10965 <limits.h> exists even on freestanding compilers. */
10968 # include <limits.h>
10970 # include <assert.h>
10975 /* Override any gcc2 internal prototype to avoid an error. */
10980 /* We use char because int might match the return type of a gcc2
10981 builtin and then its argument prototype would still apply. */
10983 /* The GNU C library defines this for functions which it implements
10984 to always fail with ENOSYS. Some functions are actually named
10985 something starting with __ and the normal name is an alias. */
10986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10989 char (*f) () = $ac_func;
10998 return f != $ac_func;
11003 rm -f conftest.$ac_objext conftest$ac_exeext
11004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11005 (eval $ac_link) 2>conftest.er1
11007 grep -v '^ *+' conftest.er1 >conftest.err
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } &&
11012 { ac_try='test -z "$ac_c_werror_flag"
11013 || test ! -s conftest.err'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; } &&
11019 { ac_try='test -s conftest$ac_exeext'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 eval "$as_ac_var=yes"
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 eval "$as_ac_var=no"
11032 rm -f conftest.err conftest.$ac_objext \
11033 conftest$ac_exeext conftest.$ac_ext
11035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11037 if test `eval echo '${'$as_ac_var'}'` = yes; then
11038 cat >>confdefs.h <<_ACEOF
11039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11047 for ac_func in gmtime gmtime_r
11049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11050 echo "$as_me:$LINENO: checking for $ac_func" >&5
11051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11052 if eval "test \"\${$as_ac_var+set}\" = set"; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 cat >conftest.$ac_ext <<_ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11063 #define $ac_func innocuous_$ac_func
11065 /* System header to define __stub macros and hopefully few prototypes,
11066 which can conflict with char $ac_func (); below.
11067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11068 <limits.h> exists even on freestanding compilers. */
11071 # include <limits.h>
11073 # include <assert.h>
11078 /* Override any gcc2 internal prototype to avoid an error. */
11083 /* We use char because int might match the return type of a gcc2
11084 builtin and then its argument prototype would still apply. */
11086 /* The GNU C library defines this for functions which it implements
11087 to always fail with ENOSYS. Some functions are actually named
11088 something starting with __ and the normal name is an alias. */
11089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11092 char (*f) () = $ac_func;
11101 return f != $ac_func;
11106 rm -f conftest.$ac_objext conftest$ac_exeext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11108 (eval $ac_link) 2>conftest.er1
11110 grep -v '^ *+' conftest.er1 >conftest.err
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } &&
11115 { ac_try='test -z "$ac_c_werror_flag"
11116 || test ! -s conftest.err'
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; } &&
11122 { ac_try='test -s conftest$ac_exeext'
11123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124 (eval $ac_try) 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; }; then
11128 eval "$as_ac_var=yes"
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11133 eval "$as_ac_var=no"
11135 rm -f conftest.err conftest.$ac_objext \
11136 conftest$ac_exeext conftest.$ac_ext
11138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11140 if test `eval echo '${'$as_ac_var'}'` = yes; then
11141 cat >>confdefs.h <<_ACEOF
11142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11150 for ac_func in mmap getpagesize
11152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11153 echo "$as_me:$LINENO: checking for $ac_func" >&5
11154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11155 if eval "test \"\${$as_ac_var+set}\" = set"; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 cat >conftest.$ac_ext <<_ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h. */
11164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11166 #define $ac_func innocuous_$ac_func
11168 /* System header to define __stub macros and hopefully few prototypes,
11169 which can conflict with char $ac_func (); below.
11170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11171 <limits.h> exists even on freestanding compilers. */
11174 # include <limits.h>
11176 # include <assert.h>
11181 /* Override any gcc2 internal prototype to avoid an error. */
11186 /* We use char because int might match the return type of a gcc2
11187 builtin and then its argument prototype would still apply. */
11189 /* The GNU C library defines this for functions which it implements
11190 to always fail with ENOSYS. Some functions are actually named
11191 something starting with __ and the normal name is an alias. */
11192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11195 char (*f) () = $ac_func;
11204 return f != $ac_func;
11209 rm -f conftest.$ac_objext conftest$ac_exeext
11210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11211 (eval $ac_link) 2>conftest.er1
11213 grep -v '^ *+' conftest.er1 >conftest.err
11215 cat conftest.err >&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } &&
11218 { ac_try='test -z "$ac_c_werror_flag"
11219 || test ! -s conftest.err'
11220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11221 (eval $ac_try) 2>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; } &&
11225 { ac_try='test -s conftest$ac_exeext'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }; then
11231 eval "$as_ac_var=yes"
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11236 eval "$as_ac_var=no"
11238 rm -f conftest.err conftest.$ac_objext \
11239 conftest$ac_exeext conftest.$ac_ext
11241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11243 if test `eval echo '${'$as_ac_var'}'` = yes; then
11244 cat >>confdefs.h <<_ACEOF
11245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11252 for ac_func in setlocale
11254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11255 echo "$as_me:$LINENO: checking for $ac_func" >&5
11256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11257 if eval "test \"\${$as_ac_var+set}\" = set"; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 cat >conftest.$ac_ext <<_ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h. */
11266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11268 #define $ac_func innocuous_$ac_func
11270 /* System header to define __stub macros and hopefully few prototypes,
11271 which can conflict with char $ac_func (); below.
11272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11273 <limits.h> exists even on freestanding compilers. */
11276 # include <limits.h>
11278 # include <assert.h>
11283 /* Override any gcc2 internal prototype to avoid an error. */
11288 /* We use char because int might match the return type of a gcc2
11289 builtin and then its argument prototype would still apply. */
11291 /* The GNU C library defines this for functions which it implements
11292 to always fail with ENOSYS. Some functions are actually named
11293 something starting with __ and the normal name is an alias. */
11294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11297 char (*f) () = $ac_func;
11306 return f != $ac_func;
11311 rm -f conftest.$ac_objext conftest$ac_exeext
11312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11313 (eval $ac_link) 2>conftest.er1
11315 grep -v '^ *+' conftest.er1 >conftest.err
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
11320 { ac_try='test -z "$ac_c_werror_flag"
11321 || test ! -s conftest.err'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; } &&
11327 { ac_try='test -s conftest$ac_exeext'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; }; then
11333 eval "$as_ac_var=yes"
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11338 eval "$as_ac_var=no"
11340 rm -f conftest.err conftest.$ac_objext \
11341 conftest$ac_exeext conftest.$ac_ext
11343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11345 if test `eval echo '${'$as_ac_var'}'` = yes; then
11346 cat >>confdefs.h <<_ACEOF
11347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11355 echo "$as_me:$LINENO: checking for floor in -lm" >&5
11356 echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
11357 if test "${ac_cv_lib_m_floor+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 ac_check_lib_save_LIBS=$LIBS
11362 cat >conftest.$ac_ext <<_ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11369 /* Override any gcc2 internal prototype to avoid an error. */
11373 /* We use char because int might match the return type of a gcc2
11374 builtin and then its argument prototype would still apply. */
11384 rm -f conftest.$ac_objext conftest$ac_exeext
11385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11386 (eval $ac_link) 2>conftest.er1
11388 grep -v '^ *+' conftest.er1 >conftest.err
11390 cat conftest.err >&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } &&
11393 { ac_try='test -z "$ac_c_werror_flag"
11394 || test ! -s conftest.err'
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; } &&
11400 { ac_try='test -s conftest$ac_exeext'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 ac_cv_lib_m_floor=yes
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11411 ac_cv_lib_m_floor=no
11413 rm -f conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415 LIBS=$ac_check_lib_save_LIBS
11417 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
11418 echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
11419 if test $ac_cv_lib_m_floor = yes; then
11420 cat >>confdefs.h <<_ACEOF
11421 #define HAVE_LIBM 1
11431 for ac_func in floor ceil fmod
11433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11434 echo "$as_me:$LINENO: checking for $ac_func" >&5
11435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11436 if eval "test \"\${$as_ac_var+set}\" = set"; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 cat >conftest.$ac_ext <<_ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11447 #define $ac_func innocuous_$ac_func
11449 /* System header to define __stub macros and hopefully few prototypes,
11450 which can conflict with char $ac_func (); below.
11451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11452 <limits.h> exists even on freestanding compilers. */
11455 # include <limits.h>
11457 # include <assert.h>
11462 /* Override any gcc2 internal prototype to avoid an error. */
11467 /* We use char because int might match the return type of a gcc2
11468 builtin and then its argument prototype would still apply. */
11470 /* The GNU C library defines this for functions which it implements
11471 to always fail with ENOSYS. Some functions are actually named
11472 something starting with __ and the normal name is an alias. */
11473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11476 char (*f) () = $ac_func;
11485 return f != $ac_func;
11490 rm -f conftest.$ac_objext conftest$ac_exeext
11491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11492 (eval $ac_link) 2>conftest.er1
11494 grep -v '^ *+' conftest.er1 >conftest.err
11496 cat conftest.err >&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } &&
11499 { ac_try='test -z "$ac_c_werror_flag"
11500 || test ! -s conftest.err'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; } &&
11506 { ac_try='test -s conftest$ac_exeext'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 eval "$as_ac_var=yes"
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 eval "$as_ac_var=no"
11519 rm -f conftest.err conftest.$ac_objext \
11520 conftest$ac_exeext conftest.$ac_ext
11522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11524 if test `eval echo '${'$as_ac_var'}'` = yes; then
11525 cat >>confdefs.h <<_ACEOF
11526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11535 { echo "$as_me:$LINENO: WARNING: Not using built-in lrint() and lrintf() because they are broken on Cygwin." >&5
11536 echo "$as_me: WARNING: Not using built-in lrint() and lrintf() because they are broken on Cygwin." >&2;}
11539 echo "$as_me:$LINENO: checking for lrint" >&5
11540 echo $ECHO_N "checking for lrint... $ECHO_C" >&6
11541 if test "${ac_cv_c99_lrint+set}" = set; then
11542 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 lrint_save_CFLAGS=$CFLAGS
11547 cat >conftest.$ac_ext <<_ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h. */
11554 #define _ISOC9X_SOURCE 1
11555 #define _ISOC99_SOURCE 1
11556 #define __USE_ISOC99 1
11557 #define __USE_ISOC9X 1
11564 if (!lrint(3.14159)) lrint(2.7183);
11569 rm -f conftest.$ac_objext conftest$ac_exeext
11570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11571 (eval $ac_link) 2>conftest.er1
11573 grep -v '^ *+' conftest.er1 >conftest.err
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } &&
11578 { ac_try='test -z "$ac_c_werror_flag"
11579 || test ! -s conftest.err'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; } &&
11585 { ac_try='test -s conftest$ac_exeext'
11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; }; then
11591 ac_cv_c99_lrint=yes
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11598 rm -f conftest.err conftest.$ac_objext \
11599 conftest$ac_exeext conftest.$ac_ext
11601 CFLAGS=$lrint_save_CFLAGS
11605 echo "$as_me:$LINENO: result: $ac_cv_c99_lrint" >&5
11606 echo "${ECHO_T}$ac_cv_c99_lrint" >&6
11608 if test "$ac_cv_c99_lrint" = yes; then
11610 cat >>confdefs.h <<\_ACEOF
11611 #define HAVE_LRINT 1
11616 echo "$as_me:$LINENO: checking for lrintf" >&5
11617 echo $ECHO_N "checking for lrintf... $ECHO_C" >&6
11618 if test "${ac_cv_c99_lrintf+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 lrintf_save_CFLAGS=$CFLAGS
11624 cat >conftest.$ac_ext <<_ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11631 #define _ISOC9X_SOURCE 1
11632 #define _ISOC99_SOURCE 1
11633 #define __USE_ISOC99 1
11634 #define __USE_ISOC9X 1
11641 if (!lrintf(3.14159)) lrintf(2.7183);
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>conftest.er1
11650 grep -v '^ *+' conftest.er1 >conftest.err
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try='test -z "$ac_c_werror_flag"
11656 || test ! -s conftest.err'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; } &&
11662 { ac_try='test -s conftest$ac_exeext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_cv_c99_lrintf=yes
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11673 ac_cv_c99_lrintf=no
11675 rm -f conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
11678 CFLAGS=$lrintf_save_CFLAGS
11682 echo "$as_me:$LINENO: result: $ac_cv_c99_lrintf" >&5
11683 echo "${ECHO_T}$ac_cv_c99_lrintf" >&6
11685 if test "$ac_cv_c99_lrintf" = yes; then
11687 cat >>confdefs.h <<\_ACEOF
11688 #define HAVE_LRINTF 1
11694 if test "x$ac_cv_c99_lrint" = "xno" ; then
11695 if test "x$ac_cv_c99_lrintf" = "xno" ; then
11696 { echo "$as_me:$LINENO: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&5
11697 echo "$as_me: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&2;}
11698 { echo "$as_me:$LINENO: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&5
11699 echo "$as_me: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&2;}
11705 #====================================================================================
11706 # Check for libsqlite3 (only used in regtest).
11709 if test x$enable_sqlite != xno ; then
11713 if test -z "$PKG_CONFIG"; then
11714 # Extract the first word of "pkg-config", so it can be a program name with args.
11715 set dummy pkg-config; ac_word=$2
11716 echo "$as_me:$LINENO: checking for $ac_word" >&5
11717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11718 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 case $PKG_CONFIG in
11723 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11730 test -z "$as_dir" && as_dir=.
11731 for ac_exec_ext in '' $ac_executable_extensions; do
11732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11733 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11740 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11744 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11746 if test -n "$PKG_CONFIG"; then
11747 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11748 echo "${ECHO_T}$PKG_CONFIG" >&6
11750 echo "$as_me:$LINENO: result: no" >&5
11751 echo "${ECHO_T}no" >&6
11756 if test "$PKG_CONFIG" = "no" ; then
11757 echo "*** The pkg-config script could not be found. Make sure it is"
11758 echo "*** in your path, or set the PKG_CONFIG environment variable"
11759 echo "*** to the full path to pkg-config."
11760 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11762 PKG_CONFIG_MIN_VERSION=0.9.0
11763 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11764 echo "$as_me:$LINENO: checking for sqlite3 >= 3.2" >&5
11765 echo $ECHO_N "checking for sqlite3 >= 3.2... $ECHO_C" >&6
11767 if $PKG_CONFIG --exists "sqlite3 >= 3.2" ; then
11768 echo "$as_me:$LINENO: result: yes" >&5
11769 echo "${ECHO_T}yes" >&6
11772 echo "$as_me:$LINENO: checking SQLITE3_CFLAGS" >&5
11773 echo $ECHO_N "checking SQLITE3_CFLAGS... $ECHO_C" >&6
11774 SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.2"`
11775 echo "$as_me:$LINENO: result: $SQLITE3_CFLAGS" >&5
11776 echo "${ECHO_T}$SQLITE3_CFLAGS" >&6
11778 echo "$as_me:$LINENO: checking SQLITE3_LIBS" >&5
11779 echo $ECHO_N "checking SQLITE3_LIBS... $ECHO_C" >&6
11780 SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.2"`
11781 echo "$as_me:$LINENO: result: $SQLITE3_LIBS" >&5
11782 echo "${ECHO_T}$SQLITE3_LIBS" >&6
11786 ## If we have a custom action on failure, don't print errors, but
11787 ## do set a variable so people can do so.
11788 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3 >= 3.2"`
11795 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11796 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11800 if test $succeeded = yes; then
11808 if test x$ac_cv_sqlite3 = "xyes" ; then
11815 cat >>confdefs.h <<_ACEOF
11816 #define HAVE_SQLITE3 $HAVE_SQLITE3
11820 #====================================================================================
11821 # Determine if the processor can do clipping on float to int conversions.
11823 if test x$enable_cpu_clip != "xno" ; then
11824 echo "$as_me:$LINENO: checking processor clipping capabilities" >&5
11825 echo $ECHO_N "checking processor clipping capabilities... $ECHO_C" >&6
11826 if test "${ac_cv_c_clip_type+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 # Initialize to unknown
11830 ac_cv_c_clip_positive=unknown
11831 ac_cv_c_clip_negative=unknown
11833 if test $ac_cv_c_clip_positive = unknown ; then
11834 if test "$cross_compiling" = yes; then
11835 ac_cv_c_clip_positive=unknown
11838 cat >conftest.$ac_ext <<_ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h. */
11845 #define _ISOC9X_SOURCE 1
11846 #define _ISOC99_SOURCE 1
11847 #define __USE_ISOC99 1
11848 #define __USE_ISOC9X 1
11854 fval = 1.0 * 0x7FFFFFFF ;
11855 for (k = 0 ; k < 100 ; k++)
11856 { ival = (lrint (fval)) >> 24 ;
11860 fval *= 1.2499999 ;
11867 rm -f conftest$ac_exeext
11868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11869 (eval $ac_link) 2>&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; }; then
11878 ac_cv_c_clip_positive=yes
11880 echo "$as_me: program exited with status $ac_status" >&5
11881 echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11884 ( exit $ac_status )
11885 ac_cv_c_clip_positive=no
11887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11890 if test "$cross_compiling" = yes; then
11891 ac_cv_c_clip_negative=unknown
11894 cat >conftest.$ac_ext <<_ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11901 #define _ISOC9X_SOURCE 1
11902 #define _ISOC99_SOURCE 1
11903 #define __USE_ISOC99 1
11904 #define __USE_ISOC9X 1
11910 fval = -8.0 * 0x10000000 ;
11911 for (k = 0 ; k < 100 ; k++)
11912 { ival = (lrint (fval)) >> 24 ;
11916 fval *= 1.2499999 ;
11923 rm -f conftest$ac_exeext
11924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11925 (eval $ac_link) 2>&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 ac_cv_c_clip_negative=yes
11936 echo "$as_me: program exited with status $ac_status" >&5
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11940 ( exit $ac_status )
11941 ac_cv_c_clip_negative=no
11943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11947 if test $ac_cv_c_clip_positive = yes ; then
11948 ac_cv_c_clip_positive=1
11950 ac_cv_c_clip_positive=0
11953 if test $ac_cv_c_clip_negative = yes ; then
11954 ac_cv_c_clip_negative=1
11956 ac_cv_c_clip_negative=0
11960 case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
11962 ac_cv_c_clip_type="none"
11965 ac_cv_c_clip_type="positive"
11968 ac_cv_c_clip_type="negative"
11971 ac_cv_c_clip_type="both"
11978 echo "$as_me:$LINENO: result: $ac_cv_c_clip_type" >&5
11979 echo "${ECHO_T}$ac_cv_c_clip_type" >&6
11984 echo "checking processor clipping capabilities... disabled"
11985 ac_cv_c_clip_positive=0
11986 ac_cv_c_clip_negative=0
11990 cat >>confdefs.h <<_ACEOF
11991 #define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive}
11995 cat >>confdefs.h <<_ACEOF
11996 #define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative}
12000 #====================================================================================
12001 # Target OS specific stuff.
12003 OS_SPECIFIC_CFLAGS=""
12004 OS_SPECIFIC_LINKS=""
12010 darwin* | rhapsody*)
12012 OS_SPECIFIC_CFLAGS="-fpascal-strings -I/Developer/Headers/FlatCarbon"
12013 OS_SPECIFIC_LINKS="-framework CoreAudio"
12018 OS_SPECIFIC_LINKS="-lwinmm"
12022 OS_SPECIFIC_LINKS="-lwinmm"
12027 cat >>confdefs.h <<_ACEOF
12028 #define OS_IS_WIN32 ${os_is_win32}
12032 cat >>confdefs.h <<_ACEOF
12033 #define OS_IS_MACOSX ${os_is_macosx}
12037 cat >>confdefs.h <<_ACEOF
12038 #define USE_WINDOWS_API ${use_windows_api}
12042 #====================================================================================
12047 if test x$enable_alsa != xno ; then
12049 for ac_header in alsa/asoundlib.h
12051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12053 echo "$as_me:$LINENO: checking for $ac_header" >&5
12054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12061 # Is the header compilable?
12062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12064 cat >conftest.$ac_ext <<_ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12070 $ac_includes_default
12071 #include <$ac_header>
12073 rm -f conftest.$ac_objext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12075 (eval $ac_compile) 2>conftest.er1
12077 grep -v '^ *+' conftest.er1 >conftest.err
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_c_werror_flag"
12083 || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest.$ac_objext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 ac_header_compiler=yes
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12100 ac_header_compiler=no
12102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12104 echo "${ECHO_T}$ac_header_compiler" >&6
12106 # Is the header present?
12107 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12109 cat >conftest.$ac_ext <<_ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 #include <$ac_header>
12117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12120 grep -v '^ *+' conftest.er1 >conftest.err
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } >/dev/null; then
12125 if test -s conftest.err; then
12126 ac_cpp_err=$ac_c_preproc_warn_flag
12127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12134 if test -z "$ac_cpp_err"; then
12135 ac_header_preproc=yes
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 ac_header_preproc=no
12142 rm -f conftest.err conftest.$ac_ext
12143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12144 echo "${ECHO_T}$ac_header_preproc" >&6
12146 # So? What about this header?
12147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12153 ac_header_preproc=yes
12156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12163 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12170 ## -------------------------------- ##
12171 ## Report this to ardour@ardour.org ##
12172 ## -------------------------------- ##
12175 sed "s/^/$as_me: WARNING: /" >&2
12178 echo "$as_me:$LINENO: checking for $ac_header" >&5
12179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 eval "$as_ac_Header=\$ac_header_preproc"
12185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12190 cat >>confdefs.h <<_ACEOF
12191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12198 if test x$ac_cv_header_alsa_asoundlib_h = xyes ; then
12199 ALSA_LIBS="-lasound"
12203 #====================================================================================
12208 if test x$enable_flac != xno ; then
12210 for ac_header in FLAC/all.h
12212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12214 echo "$as_me:$LINENO: checking for $ac_header" >&5
12215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12222 # Is the header compilable?
12223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12225 cat >conftest.$ac_ext <<_ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12231 $ac_includes_default
12232 #include <$ac_header>
12234 rm -f conftest.$ac_objext
12235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12236 (eval $ac_compile) 2>conftest.er1
12239 cat conftest.$ac_ext > blah1.c
12241 echo $CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext > blah1
12243 grep -v '^ *+' conftest.er1 >conftest.err
12245 cat conftest.err >&5
12247 cat conftest.err > blah2
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try='test -z "$ac_c_werror_flag"
12252 || test ! -s conftest.err'
12253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254 (eval $ac_try) 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; } &&
12258 { ac_try='test -s conftest.$ac_objext'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 ac_header_compiler=yes
12266 echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12269 ac_header_compiler=no
12271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12273 echo "${ECHO_T}$ac_header_compiler" >&6
12275 # Is the header present?
12276 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12278 cat >conftest.$ac_ext <<_ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 #include <$ac_header>
12286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12289 grep -v '^ *+' conftest.er1 >conftest.err
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } >/dev/null; then
12294 if test -s conftest.err; then
12295 ac_cpp_err=$ac_c_preproc_warn_flag
12296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12303 if test -z "$ac_cpp_err"; then
12304 ac_header_preproc=yes
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 ac_header_preproc=no
12311 rm -f conftest.err conftest.$ac_ext
12312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12313 echo "${ECHO_T}$ac_header_preproc" >&6
12315 # So? What about this header?
12316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12322 ac_header_preproc=yes
12325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12339 ## -------------------------------- ##
12340 ## Report this to ardour@ardour.org ##
12341 ## -------------------------------- ##
12344 sed "s/^/$as_me: WARNING: /" >&2
12347 echo "$as_me:$LINENO: checking for $ac_header" >&5
12348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12352 eval "$as_ac_Header=\$ac_header_preproc"
12354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12359 cat >>confdefs.h <<_ACEOF
12360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12367 if test x$ac_cv_header_FLAC_all_h = xyes ; then
12368 echo "$as_me:$LINENO: checking for FLAC__seekable_stream_encoder_set_tell_callback in -lFLAC" >&5
12369 echo $ECHO_N "checking for FLAC__seekable_stream_encoder_set_tell_callback in -lFLAC... $ECHO_C" >&6
12370 if test "${ac_cv_lib_FLAC_FLAC__seekable_stream_encoder_set_tell_callback+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 ac_check_lib_save_LIBS=$LIBS
12374 LIBS="-lFLAC $LIBS"
12375 cat >conftest.$ac_ext <<_ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12382 /* Override any gcc2 internal prototype to avoid an error. */
12386 /* We use char because int might match the return type of a gcc2
12387 builtin and then its argument prototype would still apply. */
12388 char FLAC__seekable_stream_encoder_set_tell_callback ();
12392 FLAC__seekable_stream_encoder_set_tell_callback ();
12397 rm -f conftest.$ac_objext conftest$ac_exeext
12398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12399 (eval $ac_link) 2>conftest.er1
12401 grep -v '^ *+' conftest.er1 >conftest.err
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } &&
12406 { ac_try='test -z "$ac_c_werror_flag"
12407 || test ! -s conftest.err'
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; } &&
12413 { ac_try='test -s conftest$ac_exeext'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; }; then
12419 ac_cv_lib_FLAC_FLAC__seekable_stream_encoder_set_tell_callback=yes
12421 echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12424 ac_cv_lib_FLAC_FLAC__seekable_stream_encoder_set_tell_callback=no
12426 rm -f conftest.err conftest.$ac_objext \
12427 conftest$ac_exeext conftest.$ac_ext
12428 LIBS=$ac_check_lib_save_LIBS
12430 echo "$as_me:$LINENO: result: $ac_cv_lib_FLAC_FLAC__seekable_stream_encoder_set_tell_callback" >&5
12431 echo "${ECHO_T}$ac_cv_lib_FLAC_FLAC__seekable_stream_encoder_set_tell_callback" >&6
12432 if test $ac_cv_lib_FLAC_FLAC__seekable_stream_encoder_set_tell_callback = yes; then
12433 HAVE_FLAC_1_1_1="yes"
12436 if test "x$HAVE_FLAC_1_1_1" = xyes ; then
12438 cat >>confdefs.h <<\_ACEOF
12439 #define HAVE_FLAC_1_1_1 1
12447 #====================================================================================
12448 # Test for sanity when cross-compiling.
12450 if test x$cross_compiling = xyes ; then
12451 { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12452 echo "$as_me: WARNING: ******************************************************************" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: *** We are cross-compiling, so have to assume sizeof (short) == 2 " >&5
12454 echo "$as_me: WARNING: *** We are cross-compiling, so have to assume sizeof (short) == 2 " >&2;}
12455 { echo "$as_me:$LINENO: WARNING: *** and sizeof (int) == 4. If this is not the case there is no " >&5
12456 echo "$as_me: WARNING: *** and sizeof (int) == 4. If this is not the case there is no " >&2;}
12457 { echo "$as_me:$LINENO: WARNING: *** chance of this working. Please contact the mantainer. " >&5
12458 echo "$as_me: WARNING: *** chance of this working. Please contact the mantainer. " >&2;}
12459 { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12460 echo "$as_me: WARNING: ******************************************************************" >&2;}
12463 if test $ac_cv_sizeof_short != 2 ; then
12464 { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12465 echo "$as_me: WARNING: ******************************************************************" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: *** sizeof (short) != 2. " >&5
12467 echo "$as_me: WARNING: *** sizeof (short) != 2. " >&2;}
12468 { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12469 echo "$as_me: WARNING: ******************************************************************" >&2;}
12472 if test $ac_cv_sizeof_int != 4 ; then
12473 { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12474 echo "$as_me: WARNING: ******************************************************************" >&2;}
12475 { echo "$as_me:$LINENO: WARNING: *** sizeof (int) != 4 " >&5
12476 echo "$as_me: WARNING: *** sizeof (int) != 4 " >&2;}
12477 { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12478 echo "$as_me: WARNING: ******************************************************************" >&2;}
12481 if test $ac_cv_sizeof_float != 4 ; then
12482 { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12483 echo "$as_me: WARNING: ******************************************************************" >&2;}
12484 { echo "$as_me:$LINENO: WARNING: *** sizeof (float) != 4. " >&5
12485 echo "$as_me: WARNING: *** sizeof (float) != 4. " >&2;}
12486 { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12487 echo "$as_me: WARNING: ******************************************************************" >&2;}
12490 if test $ac_cv_sizeof_double != 8 ; then
12491 { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12492 echo "$as_me: WARNING: ******************************************************************" >&2;}
12493 { echo "$as_me:$LINENO: WARNING: *** sizeof (double) != 8. " >&5
12494 echo "$as_me: WARNING: *** sizeof (double) != 8. " >&2;}
12495 { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12496 echo "$as_me: WARNING: ******************************************************************" >&2;}
12499 if test x"$ac_cv_prog_autogen" = "xno" ; then
12500 { echo "$as_me:$LINENO: WARNING: Touching files in directory tests/." >&5
12501 echo "$as_me: WARNING: Touching files in directory tests/." >&2;}
12502 touch tests/*.c tests/*.h
12505 #====================================================================================
12506 # Settings for the HTML documentation.
12508 htmldocdir=$prefix/share/doc/libsndfile1-dev/html
12510 if test $prefix = "NONE" ; then
12511 htmldocdir=/usr/local/share/doc/libsndfile1-dev/html
12513 htmldocdir=$prefix/share/doc/libsndfile1-dev/html
12516 if test x$enable_bow_docs = "xyes" ; then
12517 HTML_BGCOLOUR="white"
12518 HTML_FGCOLOUR="black"
12520 HTML_BGCOLOUR="black"
12521 HTML_FGCOLOUR="white"
12524 #====================================================================================
12525 # Now use the information from the checking stage.
12527 if test x$ac_cv_c_compiler_gnu = xyes ; then
12528 echo "$as_me:$LINENO: checking if $CC accepts -std=gnu99" >&5
12529 echo $ECHO_N "checking if $CC accepts -std=gnu99... $ECHO_C" >&6
12530 ac_add_cflags__old_cflags="$CFLAGS"
12531 CFLAGS="$CFLAGS -std=gnu99"
12532 cat >conftest.$ac_ext <<_ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12542 printf("Hello, World!\n"); return 0;
12547 rm -f conftest.$ac_objext conftest$ac_exeext
12548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12549 (eval $ac_link) 2>conftest.er1
12551 grep -v '^ *+' conftest.er1 >conftest.err
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } &&
12556 { ac_try='test -z "$ac_c_werror_flag"
12557 || test ! -s conftest.err'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; } &&
12563 { ac_try='test -s conftest$ac_exeext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 echo "$as_me:$LINENO: result: yes" >&5
12570 echo "${ECHO_T}yes" >&6
12572 echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12575 echo "$as_me:$LINENO: result: no" >&5
12576 echo "${ECHO_T}no" >&6
12577 CFLAGS="$ac_add_cflags__old_cflags"
12579 rm -f conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
12583 CFLAGS="$CFLAGS -W -Wall"
12585 echo "$as_me:$LINENO: checking if $CC accepts -Wdeclaration-after-statement" >&5
12586 echo $ECHO_N "checking if $CC accepts -Wdeclaration-after-statement... $ECHO_C" >&6
12587 ac_add_cflags__old_cflags="$CFLAGS"
12588 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12589 cat >conftest.$ac_ext <<_ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12599 printf("Hello, World!\n"); return 0;
12604 rm -f conftest.$ac_objext conftest$ac_exeext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12606 (eval $ac_link) 2>conftest.er1
12608 grep -v '^ *+' conftest.er1 >conftest.err
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -z "$ac_c_werror_flag"
12614 || test ! -s conftest.err'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try='test -s conftest$ac_exeext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 echo "$as_me:$LINENO: result: yes" >&5
12627 echo "${ECHO_T}yes" >&6
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 echo "$as_me:$LINENO: result: no" >&5
12633 echo "${ECHO_T}no" >&6
12634 CFLAGS="$ac_add_cflags__old_cflags"
12636 rm -f conftest.err conftest.$ac_objext \
12637 conftest$ac_exeext conftest.$ac_ext
12640 if test x$enable_gcc_werror = "xyes" ; then
12641 CFLAGS="-Werror $CFLAGS"
12644 CFLAGS="$CFLAGS -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast -Wwrite-strings"
12645 # -Wpointer-arith -Wundef -Wmissing-declarations -Winline -Wconversion"
12647 if test "x$enable_gcc_opt" = "xno" ; then
12648 temp_CFLAGS=`echo $CFLAGS | sed "s/O2/O0/"`
12649 CFLAGS=$temp_CFLAGS
12650 { echo "$as_me:$LINENO: WARNING: *** Compiler optimisations switched off. ***" >&5
12651 echo "$as_me: WARNING: *** Compiler optimisations switched off. ***" >&2;}
12654 # OS specific tweaks.
12656 darwin* | rhapsody*)
12657 # Disable -Wall, -pedantic and -Wshadow for Apple Darwin/Rhapsody.
12658 # System headers on these systems are broken.
12659 temp_CFLAGS=`echo $CFLAGS | sed "s/-Wall -pedantic//" | sed "s/-Wshadow//" | sed "s/-Waggregate-return//"`
12660 CFLAGS=$temp_CFLAGS
12661 SHLIB_VERSION_ARG="-Wl,-exported_symbols_list -Wl,\$(srcdir)/Symbols.darwin"
12664 SHLIB_VERSION_ARG="-Wl,--version-script=\$(srcdir)/Symbols.linux"
12667 SHLIB_VERSION_ARG="-Wl,\$(srcdir)/libsndfile.def"
12670 SHLIB_VERSION_ARG="-Wl,\$(srcdir)/cygsndfile.def"
12675 if test x$enable_gcc_pipe != "xno" ; then
12676 CFLAGS="$CFLAGS -pipe"
12680 cat >>confdefs.h <<\_ACEOF
12681 #define COMPILER_IS_GCC 1
12684 GCC_MAJOR_VERSION=`$CC -dumpversion | sed "s/\..*//"`
12686 cat >>confdefs.h <<_ACEOF
12687 #define GCC_MAJOR_VERSION ${GCC_MAJOR_VERSION}
12692 CFLAGS="$CFLAGS $OS_SPECIFIC_CFLAGS"
12694 if test x"$CFLAGS" = x ; then
12695 echo "Error in configure script. CFLAGS has been screwed up."
12716 ac_config_files="$ac_config_files src/sndfile.h sndfile.pc"
12718 cat >confcache <<\_ACEOF
12719 # This file is a shell script that caches the results of configure
12720 # tests run on this system so they can be shared between configure
12721 # scripts and configure runs, see configure's option --config-cache.
12722 # It is not useful on other systems. If it contains results you don't
12723 # want to keep, you may remove or edit it.
12725 # config.status only pays attention to the cache file if you give it
12726 # the --recheck option to rerun configure.
12728 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12730 # following values.
12734 # The following way of writing the cache mishandles newlines in values,
12735 # but we know of no workaround that is simple, portable, and efficient.
12736 # So, don't put newlines in cache variables' values.
12737 # Ultrix sh set writes to stderr and can't be redirected directly,
12738 # and sets the high bit in the cache file unless we assign to the vars.
12741 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12743 # `set' does not quote correctly, so add quotes (double-quote
12744 # substitution turns \\\\ into \\, and sed turns \\ into \).
12747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12750 # `set' quotes correctly as required by POSIX, so do not add quotes.
12752 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12761 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12763 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12764 if test -w $cache_file; then
12765 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12766 cat confcache >$cache_file
12768 echo "not updating unwritable cache $cache_file"
12773 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12774 # Let make expand exec_prefix.
12775 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12777 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12778 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12779 # trailing colons and then remove the whole line if VPATH becomes empty
12780 # (actually we leave an empty line to preserve line numbers).
12781 if test "x$srcdir" = x.; then
12782 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12783 s/:*\$(srcdir):*/:/;
12784 s/:*\${srcdir}:*/:/;
12786 s/^\([^=]*=[ ]*\):*/\1/;
12792 DEFS=-DHAVE_CONFIG_H
12796 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12797 # 1. Remove the extension, and $U if already installed.
12798 ac_i=`echo "$ac_i" |
12799 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12801 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12802 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12804 LIBOBJS=$ac_libobjs
12806 LTLIBOBJS=$ac_ltlibobjs
12810 : ${CONFIG_STATUS=./config.status}
12811 ac_clean_files_save=$ac_clean_files
12812 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12813 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12814 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12815 cat >$CONFIG_STATUS <<_ACEOF
12817 # Generated by $as_me.
12818 # Run this file to recreate the current configuration.
12819 # Compiler output produced by configure, useful for debugging
12820 # configure, is in config.log if it exists.
12823 ac_cs_recheck=false
12825 SHELL=\${CONFIG_SHELL-$SHELL}
12828 cat >>$CONFIG_STATUS <<\_ACEOF
12829 ## --------------------- ##
12830 ## M4sh Initialization. ##
12831 ## --------------------- ##
12833 # Be Bourne compatible
12834 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12837 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12838 # is contrary to our usage. Disable this feature.
12839 alias -g '${1+"$@"}'='"$@"'
12840 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12843 DUALCASE=1; export DUALCASE # for MKS sh
12845 # Support unset when possible.
12846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12853 # Work around bugs in pre-3.0 UWIN ksh.
12854 $as_unset ENV MAIL MAILPATH
12861 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12862 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12863 LC_TELEPHONE LC_TIME
12865 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12866 eval $as_var=C; export $as_var
12872 # Required to use basename.
12873 if expr a : '\(a\)' >/dev/null 2>&1; then
12879 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12880 as_basename=basename
12886 # Name of the executable.
12887 as_me=`$as_basename "$0" ||
12888 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12889 X"$0" : 'X\(//\)$' \| \
12890 X"$0" : 'X\(/\)$' \| \
12891 . : '\(.\)' 2>/dev/null ||
12893 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12894 /^X\/\(\/\/\)$/{ s//\1/; q; }
12895 /^X\/\(\/\).*/{ s//\1/; q; }
12899 # PATH needs CR, and LINENO needs CR and PATH.
12900 # Avoid depending upon Character Ranges.
12901 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12902 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12903 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12904 as_cr_digits='0123456789'
12905 as_cr_alnum=$as_cr_Letters$as_cr_digits
12907 # The user is always right.
12908 if test "${PATH_SEPARATOR+set}" != set; then
12909 echo "#! /bin/sh" >conf$$.sh
12910 echo "exit 0" >>conf$$.sh
12912 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12921 as_lineno_1=$LINENO
12922 as_lineno_2=$LINENO
12923 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12924 test "x$as_lineno_1" != "x$as_lineno_2" &&
12925 test "x$as_lineno_3" = "x$as_lineno_2" || {
12926 # Find who we are. Look in the path if we contain no path at all
12929 *[\\/]* ) as_myself=$0 ;;
12930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931 for as_dir in $PATH
12934 test -z "$as_dir" && as_dir=.
12935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12940 # We did not find ourselves, most probably we were run as `sh COMMAND'
12941 # in which case we are not to be found in the path.
12942 if test "x$as_myself" = x; then
12945 if test ! -f "$as_myself"; then
12946 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12947 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12948 { (exit 1); exit 1; }; }
12950 case $CONFIG_SHELL in
12952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12956 test -z "$as_dir" && as_dir=.
12957 for as_base in sh bash ksh sh5; do
12960 if ("$as_dir/$as_base" -c '
12961 as_lineno_1=$LINENO
12962 as_lineno_2=$LINENO
12963 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12964 test "x$as_lineno_1" != "x$as_lineno_2" &&
12965 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12966 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12967 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12968 CONFIG_SHELL=$as_dir/$as_base
12969 export CONFIG_SHELL
12970 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12978 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12979 # uniformly replaced by the line number. The first 'sed' inserts a
12980 # line-number line before each line; the second 'sed' does the real
12981 # work. The second script uses 'N' to pair each line-number line
12982 # with the numbered line, and appends trailing '-' during
12983 # substitution so that $LINENO is not a special case at line end.
12984 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12985 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12986 sed '=' <$as_myself |
12991 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12994 s,^['$as_cr_digits']*\n,,
12995 ' >$as_me.lineno &&
12996 chmod +x $as_me.lineno ||
12997 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12998 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12999 { (exit 1); exit 1; }; }
13001 # Don't try to exec as it changes $[0], causing all sort of problems
13002 # (the dirname of $[0] is not the place where we might find the
13003 # original and so on. Autoconf is especially sensible to this).
13005 # Exit status is that of the last command.
13010 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13011 *c*,-n*) ECHO_N= ECHO_C='
13013 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13014 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13017 if expr a : '\(a\)' >/dev/null 2>&1; then
13023 rm -f conf$$ conf$$.exe conf$$.file
13025 if ln -s conf$$.file conf$$ 2>/dev/null; then
13026 # We could just check for DJGPP; but this test a) works b) is more generic
13027 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13028 if test -f conf$$.exe; then
13029 # Don't use ln at all; we don't have any links
13034 elif ln conf$$.file conf$$ 2>/dev/null; then
13039 rm -f conf$$ conf$$.exe conf$$.file
13041 if mkdir -p . 2>/dev/null; then
13044 test -d ./-p && rmdir ./-p
13048 as_executable_p="test -f"
13050 # Sed expression to map a string onto a valid CPP name.
13051 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13053 # Sed expression to map a string onto a valid variable name.
13054 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13058 # We need space, tab and new line, in precisely that order.
13068 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13069 # report actual input values of CONFIG_FILES etc. instead of their
13070 # values after options handling. Logging --version etc. is OK.
13074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13075 ## Running $as_me. ##
13080 This file was extended by libsndfile $as_me ardour-special, which was
13081 generated by GNU Autoconf 2.59. Invocation command line was
13083 CONFIG_FILES = $CONFIG_FILES
13084 CONFIG_HEADERS = $CONFIG_HEADERS
13085 CONFIG_LINKS = $CONFIG_LINKS
13086 CONFIG_COMMANDS = $CONFIG_COMMANDS
13090 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13094 # Files that config.status was made for.
13095 if test -n "$ac_config_files"; then
13096 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13099 if test -n "$ac_config_headers"; then
13100 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13103 if test -n "$ac_config_links"; then
13104 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13107 if test -n "$ac_config_commands"; then
13108 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13111 cat >>$CONFIG_STATUS <<\_ACEOF
13114 \`$as_me' instantiates files from templates according to the
13115 current configuration.
13117 Usage: $0 [OPTIONS] [FILE]...
13119 -h, --help print this help, then exit
13120 -V, --version print version number, then exit
13121 -q, --quiet do not print progress messages
13122 -d, --debug don't remove temporary files
13123 --recheck update $as_me by reconfiguring in the same conditions
13124 --file=FILE[:TEMPLATE]
13125 instantiate the configuration file FILE
13126 --header=FILE[:TEMPLATE]
13127 instantiate the configuration header FILE
13129 Configuration files:
13132 Configuration headers:
13135 Report bugs to <bug-autoconf@gnu.org>."
13138 cat >>$CONFIG_STATUS <<_ACEOF
13140 libsndfile config.status ardour-special
13141 configured by $0, generated by GNU Autoconf 2.59,
13142 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13144 Copyright (C) 2003 Free Software Foundation, Inc.
13145 This config.status script is free software; the Free Software Foundation
13146 gives unlimited permission to copy, distribute and modify it."
13151 cat >>$CONFIG_STATUS <<\_ACEOF
13152 # If no file are specified by the user, then we need to provide default
13153 # value. By we need to know if files were specified by the user.
13159 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13160 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13168 *) # This is not an option, so the user has probably given explicit
13171 ac_need_defaults=false;;
13175 # Handling of the options.
13177 cat >>$CONFIG_STATUS <<\_ACEOF
13178 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13180 --version | --vers* | -V )
13181 echo "$ac_cs_version"; exit 0 ;;
13183 # Conflict between --help and --header
13184 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13185 Try \`$0 --help' for more information." >&5
13186 echo "$as_me: error: ambiguous option: $1
13187 Try \`$0 --help' for more information." >&2;}
13188 { (exit 1); exit 1; }; };;
13189 --help | --hel | -h )
13190 echo "$ac_cs_usage"; exit 0 ;;
13191 --debug | --d* | -d )
13193 --file | --fil | --fi | --f )
13195 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13196 ac_need_defaults=false;;
13197 --header | --heade | --head | --hea )
13199 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13200 ac_need_defaults=false;;
13201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13202 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13205 # This is an error.
13206 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13207 Try \`$0 --help' for more information." >&5
13208 echo "$as_me: error: unrecognized option: $1
13209 Try \`$0 --help' for more information." >&2;}
13210 { (exit 1); exit 1; }; } ;;
13212 *) ac_config_targets="$ac_config_targets $1" ;;
13218 ac_configure_extra_args=
13220 if $ac_cs_silent; then
13222 ac_configure_extra_args="$ac_configure_extra_args --silent"
13226 cat >>$CONFIG_STATUS <<_ACEOF
13227 if \$ac_cs_recheck; then
13228 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13229 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13238 cat >>$CONFIG_STATUS <<\_ACEOF
13239 for ac_config_target in $ac_config_targets
13241 case "$ac_config_target" in
13242 # Handling of arguments.
13243 "src/sndfile.h" ) CONFIG_FILES="$CONFIG_FILES src/sndfile.h" ;;
13244 "sndfile.pc" ) CONFIG_FILES="$CONFIG_FILES sndfile.pc" ;;
13245 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
13246 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13247 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13248 { (exit 1); exit 1; }; };;
13252 # If the user did not use the arguments to specify the items to instantiate,
13253 # then the envvar interface is used. Set only those that are not.
13254 # We use the long form for the default assignment because of an extremely
13255 # bizarre bug on SunOS 4.1.3.
13256 if $ac_need_defaults; then
13257 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13258 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13261 # Have a temporary directory for convenience. Make it in the build tree
13262 # simply because there is no reason to put it here, and in addition,
13263 # creating and moving files from /tmp can sometimes cause problems.
13264 # Create a temporary directory, and hook for its removal unless debugging.
13267 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13268 trap '{ (exit 1); exit 1; }' 1 2 13 15
13271 # Create a (secure) tmp directory for tmp files.
13274 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13275 test -n "$tmp" && test -d "$tmp"
13278 tmp=./confstat$$-$RANDOM
13279 (umask 077 && mkdir $tmp)
13282 echo "$me: cannot create a temporary directory in ." >&2
13283 { (exit 1); exit 1; }
13288 cat >>$CONFIG_STATUS <<_ACEOF
13291 # CONFIG_FILES section.
13294 # No need to generate the scripts if there are no CONFIG_FILES.
13295 # This happens for instance when ./config.status config.h
13296 if test -n "\$CONFIG_FILES"; then
13297 # Protect against being on the right side of a sed subst in config.status.
13298 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13299 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13300 s,@SHELL@,$SHELL,;t t
13301 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13302 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13303 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13304 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13305 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13306 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13307 s,@exec_prefix@,$exec_prefix,;t t
13308 s,@prefix@,$prefix,;t t
13309 s,@program_transform_name@,$program_transform_name,;t t
13310 s,@bindir@,$bindir,;t t
13311 s,@sbindir@,$sbindir,;t t
13312 s,@libexecdir@,$libexecdir,;t t
13313 s,@datadir@,$datadir,;t t
13314 s,@sysconfdir@,$sysconfdir,;t t
13315 s,@sharedstatedir@,$sharedstatedir,;t t
13316 s,@localstatedir@,$localstatedir,;t t
13317 s,@libdir@,$libdir,;t t
13318 s,@includedir@,$includedir,;t t
13319 s,@oldincludedir@,$oldincludedir,;t t
13320 s,@infodir@,$infodir,;t t
13321 s,@mandir@,$mandir,;t t
13322 s,@build_alias@,$build_alias,;t t
13323 s,@host_alias@,$host_alias,;t t
13324 s,@target_alias@,$target_alias,;t t
13325 s,@DEFS@,$DEFS,;t t
13326 s,@ECHO_C@,$ECHO_C,;t t
13327 s,@ECHO_N@,$ECHO_N,;t t
13328 s,@ECHO_T@,$ECHO_T,;t t
13329 s,@LIBS@,$LIBS,;t t
13330 s,@build@,$build,;t t
13331 s,@build_cpu@,$build_cpu,;t t
13332 s,@build_vendor@,$build_vendor,;t t
13333 s,@build_os@,$build_os,;t t
13334 s,@host@,$host,;t t
13335 s,@host_cpu@,$host_cpu,;t t
13336 s,@host_vendor@,$host_vendor,;t t
13337 s,@host_os@,$host_os,;t t
13338 s,@target@,$target,;t t
13339 s,@target_cpu@,$target_cpu,;t t
13340 s,@target_vendor@,$target_vendor,;t t
13341 s,@target_os@,$target_os,;t t
13343 s,@CFLAGS@,$CFLAGS,;t t
13344 s,@LDFLAGS@,$LDFLAGS,;t t
13345 s,@CPPFLAGS@,$CPPFLAGS,;t t
13346 s,@ac_ct_CC@,$ac_ct_CC,;t t
13347 s,@EXEEXT@,$EXEEXT,;t t
13348 s,@OBJEXT@,$OBJEXT,;t t
13349 s,@autogen@,$autogen,;t t
13350 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13351 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13352 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13353 s,@LN_S@,$LN_S,;t t
13355 s,@EGREP@,$EGREP,;t t
13356 s,@GETCONF@,$GETCONF,;t t
13357 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
13358 s,@TYPEOF_SF_COUNT_T@,$TYPEOF_SF_COUNT_T,;t t
13359 s,@SIZEOF_SF_COUNT_T@,$SIZEOF_SF_COUNT_T,;t t
13360 s,@SF_COUNT_MAX@,$SF_COUNT_MAX,;t t
13361 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
13362 s,@SQLITE3_CFLAGS@,$SQLITE3_CFLAGS,;t t
13363 s,@SQLITE3_LIBS@,$SQLITE3_LIBS,;t t
13364 s,@htmldocdir@,$htmldocdir,;t t
13365 s,@HTML_BGCOLOUR@,$HTML_BGCOLOUR,;t t
13366 s,@HTML_FGCOLOUR@,$HTML_FGCOLOUR,;t t
13367 s,@SHLIB_VERSION_ARG@,$SHLIB_VERSION_ARG,;t t
13368 s,@SHARED_VERSION_INFO@,$SHARED_VERSION_INFO,;t t
13369 s,@OS_SPECIFIC_CFLAGS@,$OS_SPECIFIC_CFLAGS,;t t
13370 s,@OS_SPECIFIC_LINKS@,$OS_SPECIFIC_LINKS,;t t
13371 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
13372 s,@FLAC_LIBS@,$FLAC_LIBS,;t t
13373 s,@ENABLE_EXPERIMENTAL_CODE@,$ENABLE_EXPERIMENTAL_CODE,;t t
13374 s,@COMPILER_IS_GCC@,$COMPILER_IS_GCC,;t t
13375 s,@GCC_MAJOR_VERSION@,$GCC_MAJOR_VERSION,;t t
13376 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
13377 s,@LIBOBJS@,$LIBOBJS,;t t
13378 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13383 cat >>$CONFIG_STATUS <<\_ACEOF
13384 # Split the substitutions into bite-sized pieces for seds with
13385 # small command number limits, like on Digital OSF/1 and HP-UX.
13386 ac_max_sed_lines=48
13387 ac_sed_frag=1 # Number of current file.
13388 ac_beg=1 # First line for current file.
13389 ac_end=$ac_max_sed_lines # Line after last line for current file.
13392 while $ac_more_lines; do
13393 if test $ac_beg -gt 1; then
13394 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13396 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13398 if test ! -s $tmp/subs.frag; then
13399 ac_more_lines=false
13401 # The purpose of the label and of the branching condition is to
13402 # speed up the sed processing (if there are no `@' at all, there
13403 # is no need to browse any of the substitutions).
13404 # These are the two extra sed commands mentioned above.
13406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13407 if test -z "$ac_sed_cmds"; then
13408 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13410 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13412 ac_sed_frag=`expr $ac_sed_frag + 1`
13414 ac_end=`expr $ac_end + $ac_max_sed_lines`
13417 if test -z "$ac_sed_cmds"; then
13420 fi # test -n "$CONFIG_FILES"
13423 cat >>$CONFIG_STATUS <<\_ACEOF
13424 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13427 - | *:- | *:-:* ) # input from stdin
13429 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13430 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13431 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13432 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13433 * ) ac_file_in=$ac_file.in ;;
13436 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13437 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13439 X"$ac_file" : 'X\(//\)[^/]' \| \
13440 X"$ac_file" : 'X\(//\)$' \| \
13441 X"$ac_file" : 'X\(/\)' \| \
13442 . : '\(.\)' 2>/dev/null ||
13444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13445 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13446 /^X\(\/\/\)$/{ s//\1/; q; }
13447 /^X\(\/\).*/{ s//\1/; q; }
13449 { if $as_mkdir_p; then
13454 while test ! -d "$as_dir"; do
13455 as_dirs="$as_dir $as_dirs"
13456 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13458 X"$as_dir" : 'X\(//\)[^/]' \| \
13459 X"$as_dir" : 'X\(//\)$' \| \
13460 X"$as_dir" : 'X\(/\)' \| \
13461 . : '\(.\)' 2>/dev/null ||
13463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13465 /^X\(\/\/\)$/{ s//\1/; q; }
13466 /^X\(\/\).*/{ s//\1/; q; }
13469 test ! -n "$as_dirs" || mkdir $as_dirs
13470 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13471 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13472 { (exit 1); exit 1; }; }; }
13476 if test "$ac_dir" != .; then
13477 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13478 # A "../" for each directory in $ac_dir_suffix.
13479 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13481 ac_dir_suffix= ac_top_builddir=
13485 .) # No --srcdir option. We are building in place.
13487 if test -z "$ac_top_builddir"; then
13490 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13492 [\\/]* | ?:[\\/]* ) # Absolute path.
13493 ac_srcdir=$srcdir$ac_dir_suffix;
13494 ac_top_srcdir=$srcdir ;;
13495 *) # Relative path.
13496 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13497 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13500 # Do not use `cd foo && pwd` to compute absolute paths, because
13501 # the directories may not exist.
13503 .) ac_abs_builddir="$ac_dir";;
13506 .) ac_abs_builddir=`pwd`;;
13507 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13508 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13511 case $ac_abs_builddir in
13512 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13514 case ${ac_top_builddir}. in
13515 .) ac_abs_top_builddir=$ac_abs_builddir;;
13516 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13517 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13520 case $ac_abs_builddir in
13521 .) ac_abs_srcdir=$ac_srcdir;;
13524 .) ac_abs_srcdir=$ac_abs_builddir;;
13525 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13526 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13529 case $ac_abs_builddir in
13530 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13532 case $ac_top_srcdir in
13533 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13534 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13535 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13542 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13545 if test x"$ac_file" != x-; then
13546 { echo "$as_me:$LINENO: creating $ac_file" >&5
13547 echo "$as_me: creating $ac_file" >&6;}
13550 # Let's still pretend it is `configure' which instantiates (i.e., don't
13551 # use $as_me), people would be surprised to read:
13552 # /* config.h. Generated by config.status. */
13553 if test x"$ac_file" = x-; then
13556 configure_input="$ac_file. "
13558 configure_input=$configure_input"Generated from `echo $ac_file_in |
13559 sed 's,.*/,,'` by configure."
13561 # First look for the input files in the build tree, otherwise in the
13563 ac_file_inputs=`IFS=:
13564 for f in $ac_file_in; do
13566 -) echo $tmp/stdin ;;
13568 # Absolute (can't be DOS-style, as IFS=:)
13569 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13570 echo "$as_me: error: cannot find input file: $f" >&2;}
13571 { (exit 1); exit 1; }; }
13574 if test -f "$f"; then
13577 elif test -f "$srcdir/$f"; then
13582 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13583 echo "$as_me: error: cannot find input file: $f" >&2;}
13584 { (exit 1); exit 1; }; }
13587 done` || { (exit 1); exit 1; }
13589 cat >>$CONFIG_STATUS <<_ACEOF
13593 cat >>$CONFIG_STATUS <<\_ACEOF
13595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13596 s,@configure_input@,$configure_input,;t t
13597 s,@srcdir@,$ac_srcdir,;t t
13598 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13599 s,@top_srcdir@,$ac_top_srcdir,;t t
13600 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13601 s,@builddir@,$ac_builddir,;t t
13602 s,@abs_builddir@,$ac_abs_builddir,;t t
13603 s,@top_builddir@,$ac_top_builddir,;t t
13604 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13605 s,@INSTALL@,$ac_INSTALL,;t t
13606 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13608 if test x"$ac_file" != x-; then
13609 mv $tmp/out $ac_file
13617 cat >>$CONFIG_STATUS <<\_ACEOF
13620 # CONFIG_HEADER section.
13623 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13624 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13626 # ac_d sets the value in "#define NAME VALUE" lines.
13627 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13628 ac_dB='[ ].*$,\1#\2'
13631 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13632 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13633 ac_uB='$,\1#\2define\3'
13637 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13638 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13640 - | *:- | *:-:* ) # input from stdin
13642 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13643 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13644 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13645 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13646 * ) ac_file_in=$ac_file.in ;;
13649 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13650 echo "$as_me: creating $ac_file" >&6;}
13652 # First look for the input files in the build tree, otherwise in the
13654 ac_file_inputs=`IFS=:
13655 for f in $ac_file_in; do
13657 -) echo $tmp/stdin ;;
13659 # Absolute (can't be DOS-style, as IFS=:)
13660 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13661 echo "$as_me: error: cannot find input file: $f" >&2;}
13662 { (exit 1); exit 1; }; }
13663 # Do quote $f, to prevent DOS paths from being IFS'd.
13666 if test -f "$f"; then
13669 elif test -f "$srcdir/$f"; then
13674 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13675 echo "$as_me: error: cannot find input file: $f" >&2;}
13676 { (exit 1); exit 1; }; }
13679 done` || { (exit 1); exit 1; }
13680 # Remove the trailing spaces.
13681 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13685 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13686 # `conftest.undefs', that substitutes the proper values into
13687 # config.h.in to produce config.h. The first handles `#define'
13688 # templates, and the second `#undef' templates.
13689 # And first: Protect against being on the right side of a sed subst in
13690 # config.status. Protect against being in an unquoted here document
13691 # in config.status.
13692 rm -f conftest.defines conftest.undefs
13693 # Using a here document instead of a string reduces the quoting nightmare.
13694 # Putting comments in sed scripts is not portable.
13696 # `end' is used to avoid that the second main sed command (meant for
13697 # 0-ary CPP macros) applies to n-ary macro definitions.
13698 # See the Autoconf documentation for `clear'.
13699 cat >confdef2sed.sed <<\_ACEOF
13704 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13706 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13709 # If some macros were called several times there might be several times
13710 # the same #defines, which is useless. Nevertheless, we may not want to
13711 # sort them, since we want the *last* AC-DEFINE to be honored.
13712 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13713 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13714 rm -f confdef2sed.sed
13716 # This sed command replaces #undef with comments. This is necessary, for
13717 # example, in the case of _POSIX_SOURCE, which is predefined and required
13718 # on some systems where configure will not decide to define it.
13719 cat >>conftest.undefs <<\_ACEOF
13720 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13723 # Break up conftest.defines because some shells have a limit on the size
13724 # of here documents, and old seds have small limits too (100 cmds).
13725 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13726 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13727 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13728 echo ' :' >>$CONFIG_STATUS
13729 rm -f conftest.tail
13730 while grep . conftest.defines >/dev/null
13732 # Write a limited-size here document to $tmp/defines.sed.
13733 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13734 # Speed up: don't consider the non `#define' lines.
13735 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13736 # Work around the forget-to-reset-the-flag bug.
13737 echo 't clr' >>$CONFIG_STATUS
13738 echo ': clr' >>$CONFIG_STATUS
13739 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13741 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13743 mv $tmp/out $tmp/in
13745 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13746 rm -f conftest.defines
13747 mv conftest.tail conftest.defines
13749 rm -f conftest.defines
13750 echo ' fi # grep' >>$CONFIG_STATUS
13751 echo >>$CONFIG_STATUS
13753 # Break up conftest.undefs because some shells have a limit on the size
13754 # of here documents, and old seds have small limits too (100 cmds).
13755 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13756 rm -f conftest.tail
13757 while grep . conftest.undefs >/dev/null
13759 # Write a limited-size here document to $tmp/undefs.sed.
13760 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13761 # Speed up: don't consider the non `#undef'
13762 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13763 # Work around the forget-to-reset-the-flag bug.
13764 echo 't clr' >>$CONFIG_STATUS
13765 echo ': clr' >>$CONFIG_STATUS
13766 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13768 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13770 mv $tmp/out $tmp/in
13772 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13773 rm -f conftest.undefs
13774 mv conftest.tail conftest.undefs
13776 rm -f conftest.undefs
13778 cat >>$CONFIG_STATUS <<\_ACEOF
13779 # Let's still pretend it is `configure' which instantiates (i.e., don't
13780 # use $as_me), people would be surprised to read:
13781 # /* config.h. Generated by config.status. */
13782 if test x"$ac_file" = x-; then
13783 echo "/* Generated by configure. */" >$tmp/config.h
13785 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13787 cat $tmp/in >>$tmp/config.h
13789 if test x"$ac_file" != x-; then
13790 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13791 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13792 echo "$as_me: $ac_file is unchanged" >&6;}
13794 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13796 X"$ac_file" : 'X\(//\)[^/]' \| \
13797 X"$ac_file" : 'X\(//\)$' \| \
13798 X"$ac_file" : 'X\(/\)' \| \
13799 . : '\(.\)' 2>/dev/null ||
13801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13803 /^X\(\/\/\)$/{ s//\1/; q; }
13804 /^X\(\/\).*/{ s//\1/; q; }
13806 { if $as_mkdir_p; then
13811 while test ! -d "$as_dir"; do
13812 as_dirs="$as_dir $as_dirs"
13813 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13815 X"$as_dir" : 'X\(//\)[^/]' \| \
13816 X"$as_dir" : 'X\(//\)$' \| \
13817 X"$as_dir" : 'X\(/\)' \| \
13818 . : '\(.\)' 2>/dev/null ||
13820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13822 /^X\(\/\/\)$/{ s//\1/; q; }
13823 /^X\(\/\).*/{ s//\1/; q; }
13826 test ! -n "$as_dirs" || mkdir $as_dirs
13827 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13828 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13829 { (exit 1); exit 1; }; }; }
13832 mv $tmp/config.h $ac_file
13836 rm -f $tmp/config.h
13841 cat >>$CONFIG_STATUS <<\_ACEOF
13843 { (exit 0); exit 0; }
13845 chmod +x $CONFIG_STATUS
13846 ac_clean_files=$ac_clean_files_save
13849 # configure is writing to config.log, and then calls config.status.
13850 # config.status does its own redirection, appending to config.log.
13851 # Unfortunately, on DOS this fails, as config.log is still kept open
13852 # by configure, so config.status won't be able to write to it; its
13853 # output is simply discarded. So we exec the FD to /dev/null,
13854 # effectively closing config.log, so it can be properly (re)opened and
13855 # appended to by config.status. When coming back to configure, we
13856 # need to make the FD available again.
13857 if test "$no_create" != yes; then
13859 ac_config_status_args=
13860 test "$silent" = yes &&
13861 ac_config_status_args="$ac_config_status_args --quiet"
13863 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13865 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13866 # would make configure fail if this is the last instruction.
13867 $ac_cs_success || { (exit 1); exit 1; }
13871 #====================================================================================
13873 echo "$as_me:$LINENO: result:
13874 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
13876 Configuration summary :
13878 Version : ..................... ${VERSION}
13879 Experimental code : ........... ${enable_experimental:-no}
13882 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
13884 Configuration summary :
13886 Version : ..................... ${VERSION}
13887 Experimental code : ........... ${enable_experimental:-no}
13890 if test x$ac_cv_c_compiler_gnu = xyes ; then
13891 echo -e " Tools :\n"
13892 echo " Compiler is GCC : ............. ${ac_cv_c_compiler_gnu}"
13893 echo " GCC major version : ........... ${GCC_MAJOR_VERSION}"
13894 if test $GCC_MAJOR_VERSION -lt 3 ; then
13895 echo -e "\n ** This compiler version allows applications to write"
13896 echo " ** to static strings within the library."
13897 echo " ** Compile with GCC version 3.X to avoid this problem."
13901 if test $libdir = "\${exec_prefix}/lib" ; then
13902 libdir="$prefix/lib"
13905 if test $bindir = "\${exec_prefix}/bin" ; then
13906 bindir="$prefix/bin"
13909 echo "$as_me:$LINENO: result:
13910 Installation directories :
13912 Library directory : ........... $libdir
13913 Program directory : ........... $bindir
13914 Pkgconfig directory : ......... $libdir/pkgconfig
13915 HTML docs directory : ......... $htmldocdir
13918 Installation directories :
13920 Library directory : ........... $libdir
13921 Program directory : ........... $bindir
13922 Pkgconfig directory : ......... $libdir/pkgconfig
13923 HTML docs directory : ......... $htmldocdir
13926 if test x$prefix != "x/usr" ; then
13927 echo "Compiling some other packages against libsndfile may require"
13928 echo -e "the addition of \"$libdir/pkgconfig\" to the"
13929 echo -e "PKG_CONFIG_PATH environment variable.\n"
13932 #====================================================================================