1#! /bin/sh 2# From configure.in Revision . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.59. 5# 6# Copyright (C) 2003 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22fi 23DUALCASE=1; export DUALCASE # for MKS sh 24 25# Support unset when possible. 26if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 27 as_unset=unset 28else 29 as_unset=false 30fi 31 32 33# Work around bugs in pre-3.0 UWIN ksh. 34$as_unset ENV MAIL MAILPATH 35PS1='$ ' 36PS2='> ' 37PS4='+ ' 38 39# NLS nuisances. 40for as_var in \ 41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 43 LC_TELEPHONE LC_TIME 44do 45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 46 eval $as_var=C; export $as_var 47 else 48 $as_unset $as_var 49 fi 50done 51 52# Required to use basename. 53if expr a : '\(a\)' >/dev/null 2>&1; then 54 as_expr=expr 55else 56 as_expr=false 57fi 58 59if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 60 as_basename=basename 61else 62 as_basename=false 63fi 64 65 66# Name of the executable. 67as_me=`$as_basename "$0" || 68$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69 X"$0" : 'X\(//\)$' \| \ 70 X"$0" : 'X\(/\)$' \| \ 71 . : '\(.\)' 2>/dev/null || 72echo X/"$0" | 73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 74 /^X\/\(\/\/\)$/{ s//\1/; q; } 75 /^X\/\(\/\).*/{ s//\1/; q; } 76 s/.*/./; q'` 77 78 79# PATH needs CR, and LINENO needs CR and PATH. 80# Avoid depending upon Character Ranges. 81as_cr_letters='abcdefghijklmnopqrstuvwxyz' 82as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 83as_cr_Letters=$as_cr_letters$as_cr_LETTERS 84as_cr_digits='0123456789' 85as_cr_alnum=$as_cr_Letters$as_cr_digits 86 87# The user is always right. 88if test "${PATH_SEPARATOR+set}" != set; then 89 echo "#! /bin/sh" >conf$$.sh 90 echo "exit 0" >>conf$$.sh 91 chmod +x conf$$.sh 92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 93 PATH_SEPARATOR=';' 94 else 95 PATH_SEPARATOR=: 96 fi 97 rm -f conf$$.sh 98fi 99 100 101 as_lineno_1=$LINENO 102 as_lineno_2=$LINENO 103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 104 test "x$as_lineno_1" != "x$as_lineno_2" && 105 test "x$as_lineno_3" = "x$as_lineno_2" || { 106 # Find who we are. Look in the path if we contain no path at all 107 # relative or not. 108 case $0 in 109 *[\\/]* ) as_myself=$0 ;; 110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 111for as_dir in $PATH 112do 113 IFS=$as_save_IFS 114 test -z "$as_dir" && as_dir=. 115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 116done 117 118 ;; 119 esac 120 # We did not find ourselves, most probably we were run as `sh COMMAND' 121 # in which case we are not to be found in the path. 122 if test "x$as_myself" = x; then 123 as_myself=$0 124 fi 125 if test ! -f "$as_myself"; then 126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 127 { (exit 1); exit 1; }; } 128 fi 129 case $CONFIG_SHELL in 130 '') 131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 133do 134 IFS=$as_save_IFS 135 test -z "$as_dir" && as_dir=. 136 for as_base in sh bash ksh sh5; do 137 case $as_dir in 138 /*) 139 if ("$as_dir/$as_base" -c ' 140 as_lineno_1=$LINENO 141 as_lineno_2=$LINENO 142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 143 test "x$as_lineno_1" != "x$as_lineno_2" && 144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 147 CONFIG_SHELL=$as_dir/$as_base 148 export CONFIG_SHELL 149 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 150 fi;; 151 esac 152 done 153done 154;; 155 esac 156 157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 158 # uniformly replaced by the line number. The first 'sed' inserts a 159 # line-number line before each line; the second 'sed' does the real 160 # work. The second script uses 'N' to pair each line-number line 161 # with the numbered line, and appends trailing '-' during 162 # substitution so that $LINENO is not a special case at line end. 163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 165 sed '=' <$as_myself | 166 sed ' 167 N 168 s,$,-, 169 : loop 170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 171 t loop 172 s,-$,, 173 s,^['$as_cr_digits']*\n,, 174 ' >$as_me.lineno && 175 chmod +x $as_me.lineno || 176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 177 { (exit 1); exit 1; }; } 178 179 # Don't try to exec as it changes $[0], causing all sort of problems 180 # (the dirname of $[0] is not the place where we might find the 181 # original and so on. Autoconf is especially sensible to this). 182 . ./$as_me.lineno 183 # Exit status is that of the last command. 184 exit 185} 186 187 188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 189 *c*,-n*) ECHO_N= ECHO_C=' 190' ECHO_T=' ' ;; 191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 193esac 194 195if expr a : '\(a\)' >/dev/null 2>&1; then 196 as_expr=expr 197else 198 as_expr=false 199fi 200 201rm -f conf$$ conf$$.exe conf$$.file 202echo >conf$$.file 203if ln -s conf$$.file conf$$ 2>/dev/null; then 204 # We could just check for DJGPP; but this test a) works b) is more generic 205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 206 if test -f conf$$.exe; then 207 # Don't use ln at all; we don't have any links 208 as_ln_s='cp -p' 209 else 210 as_ln_s='ln -s' 211 fi 212elif ln conf$$.file conf$$ 2>/dev/null; then 213 as_ln_s=ln 214else 215 as_ln_s='cp -p' 216fi 217rm -f conf$$ conf$$.exe conf$$.file 218 219if mkdir -p . 2>/dev/null; then 220 as_mkdir_p=: 221else 222 test -d ./-p && rmdir ./-p 223 as_mkdir_p=false 224fi 225 226as_executable_p="test -f" 227 228# Sed expression to map a string onto a valid CPP name. 229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 230 231# Sed expression to map a string onto a valid variable name. 232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 233 234 235# IFS 236# We need space, tab and new line, in precisely that order. 237as_nl=' 238' 239IFS=" $as_nl" 240 241# CDPATH. 242$as_unset CDPATH 243 244 245# Name of the host. 246# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 247# so uname gets run too. 248ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 249 250exec 6>&1 251 252# 253# Initializations. 254# 255ac_default_prefix=/usr/local 256ac_config_libobj_dir=. 257cross_compiling=no 258subdirs= 259MFLAGS= 260MAKEFLAGS= 261SHELL=${CONFIG_SHELL-/bin/sh} 262 263# Maximum number of lines to put in a shell here document. 264# This variable seems obsolete. It should probably be removed, and 265# only ac_max_sed_lines should be used. 266: ${ac_max_here_lines=38} 267 268# Identity of this package. 269PACKAGE_NAME= 270PACKAGE_TARNAME= 271PACKAGE_VERSION= 272PACKAGE_STRING= 273PACKAGE_BUGREPORT= 274 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR ac_ct_AR RANLIB ac_ct_RANLIB DEPEND CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHOBJEXT SHOBJFLAGS SHOBJLDFLAGS AREXT SHLIBOBJS ALLMODLIBS ALGO MODLIBS MODLIBSCOND DEFAULT MODS NOMODS LIBOBJS LTLIBOBJS' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP 773 774# 775# Report the --help message. 776# 777if test "$ac_init_help" = "long"; then 778 # Omit some internal or obsolete options to make the list less imposing. 779 # This message is too long to be a string in the A/UX 3.1 sh. 780 cat <<_ACEOF 781\`configure' configures this package to adapt to many kinds of systems. 782 783Usage: $0 [OPTION]... [VAR=VALUE]... 784 785To assign environment variables (e.g., CC, CFLAGS...), specify them as 786VAR=VALUE. See below for descriptions of some of the useful variables. 787 788Defaults for the options are specified in brackets. 789 790Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801_ACEOF 802 803 cat <<_ACEOF 804Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810By default, \`make install' will install all the files in 811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813for instance \`--prefix=\$HOME'. 814 815For better control, use the options below. 816 817Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830_ACEOF 831 832 cat <<\_ACEOF 833 834System types: 835 --build=BUILD configure for building on BUILD [guessed] 836 --host=HOST cross-compile to build programs to run on HOST [BUILD] 837_ACEOF 838fi 839 840if test -n "$ac_init_help"; then 841 842 cat <<\_ACEOF 843 844Optional Features: 845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 847 --disable-largefile omit support for large files 848 --disable-chkvers Completely disable the ability to check for new versions 849 --disable-network Disable DACT's network activity completely 850 --enable-debug Enable developmental code 851 --disable-modules Disable use of modules 852 --enable-debianupgrade Use the Debian upgrade procedure instead of the DACT one 853 854Some influential environment variables: 855 CC C compiler command 856 CFLAGS C compiler flags 857 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 858 nonstandard directory <lib dir> 859 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 860 headers in a nonstandard directory <include dir> 861 CPP C preprocessor 862 863Use these variables to override the choices made by `configure' or to help 864it to find libraries and programs with nonstandard names/locations. 865 866_ACEOF 867fi 868 869if test "$ac_init_help" = "recursive"; then 870 # If there are subdirs, report their specific --help. 871 ac_popdir=`pwd` 872 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 873 test -d $ac_dir || continue 874 ac_builddir=. 875 876if test "$ac_dir" != .; then 877 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 878 # A "../" for each directory in $ac_dir_suffix. 879 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 880else 881 ac_dir_suffix= ac_top_builddir= 882fi 883 884case $srcdir in 885 .) # No --srcdir option. We are building in place. 886 ac_srcdir=. 887 if test -z "$ac_top_builddir"; then 888 ac_top_srcdir=. 889 else 890 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 891 fi ;; 892 [\\/]* | ?:[\\/]* ) # Absolute path. 893 ac_srcdir=$srcdir$ac_dir_suffix; 894 ac_top_srcdir=$srcdir ;; 895 *) # Relative path. 896 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 897 ac_top_srcdir=$ac_top_builddir$srcdir ;; 898esac 899 900# Do not use `cd foo && pwd` to compute absolute paths, because 901# the directories may not exist. 902case `pwd` in 903.) ac_abs_builddir="$ac_dir";; 904*) 905 case "$ac_dir" in 906 .) ac_abs_builddir=`pwd`;; 907 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 908 *) ac_abs_builddir=`pwd`/"$ac_dir";; 909 esac;; 910esac 911case $ac_abs_builddir in 912.) ac_abs_top_builddir=${ac_top_builddir}.;; 913*) 914 case ${ac_top_builddir}. in 915 .) ac_abs_top_builddir=$ac_abs_builddir;; 916 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 917 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 918 esac;; 919esac 920case $ac_abs_builddir in 921.) ac_abs_srcdir=$ac_srcdir;; 922*) 923 case $ac_srcdir in 924 .) ac_abs_srcdir=$ac_abs_builddir;; 925 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 926 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 927 esac;; 928esac 929case $ac_abs_builddir in 930.) ac_abs_top_srcdir=$ac_top_srcdir;; 931*) 932 case $ac_top_srcdir in 933 .) ac_abs_top_srcdir=$ac_abs_builddir;; 934 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 935 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 936 esac;; 937esac 938 939 cd $ac_dir 940 # Check for guested configure; otherwise get Cygnus style configure. 941 if test -f $ac_srcdir/configure.gnu; then 942 echo 943 $SHELL $ac_srcdir/configure.gnu --help=recursive 944 elif test -f $ac_srcdir/configure; then 945 echo 946 $SHELL $ac_srcdir/configure --help=recursive 947 elif test -f $ac_srcdir/configure.ac || 948 test -f $ac_srcdir/configure.in; then 949 echo 950 $ac_configure --help 951 else 952 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 953 fi 954 cd $ac_popdir 955 done 956fi 957 958test -n "$ac_init_help" && exit 0 959if $ac_init_version; then 960 cat <<\_ACEOF 961 962Copyright (C) 2003 Free Software Foundation, Inc. 963This configure script is free software; the Free Software Foundation 964gives unlimited permission to copy, distribute and modify it. 965_ACEOF 966 exit 0 967fi 968exec 5>config.log 969cat >&5 <<_ACEOF 970This file contains any messages produced by compilers while 971running configure, to aid debugging if configure makes a mistake. 972 973It was created by $as_me, which was 974generated by GNU Autoconf 2.59. Invocation command line was 975 976 $ $0 $@ 977 978_ACEOF 979{ 980cat <<_ASUNAME 981## --------- ## 982## Platform. ## 983## --------- ## 984 985hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 986uname -m = `(uname -m) 2>/dev/null || echo unknown` 987uname -r = `(uname -r) 2>/dev/null || echo unknown` 988uname -s = `(uname -s) 2>/dev/null || echo unknown` 989uname -v = `(uname -v) 2>/dev/null || echo unknown` 990 991/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 992/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 993 994/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 995/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 996/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 997hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 998/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 999/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1000/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1001 1002_ASUNAME 1003 1004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1005for as_dir in $PATH 1006do 1007 IFS=$as_save_IFS 1008 test -z "$as_dir" && as_dir=. 1009 echo "PATH: $as_dir" 1010done 1011 1012} >&5 1013 1014cat >&5 <<_ACEOF 1015 1016 1017## ----------- ## 1018## Core tests. ## 1019## ----------- ## 1020 1021_ACEOF 1022 1023 1024# Keep a trace of the command line. 1025# Strip out --no-create and --no-recursion so they do not pile up. 1026# Strip out --silent because we don't want to record it for future runs. 1027# Also quote any args containing shell meta-characters. 1028# Make two passes to allow for proper duplicate-argument suppression. 1029ac_configure_args= 1030ac_configure_args0= 1031ac_configure_args1= 1032ac_sep= 1033ac_must_keep_next=false 1034for ac_pass in 1 2 1035do 1036 for ac_arg 1037 do 1038 case $ac_arg in 1039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1041 | -silent | --silent | --silen | --sile | --sil) 1042 continue ;; 1043 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1044 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1045 esac 1046 case $ac_pass in 1047 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1048 2) 1049 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1050 if test $ac_must_keep_next = true; then 1051 ac_must_keep_next=false # Got value, back to normal. 1052 else 1053 case $ac_arg in 1054 *=* | --config-cache | -C | -disable-* | --disable-* \ 1055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1057 | -with-* | --with-* | -without-* | --without-* | --x) 1058 case "$ac_configure_args0 " in 1059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1060 esac 1061 ;; 1062 -* ) ac_must_keep_next=true ;; 1063 esac 1064 fi 1065 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1066 # Get rid of the leading space. 1067 ac_sep=" " 1068 ;; 1069 esac 1070 done 1071done 1072$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1073$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1074 1075# When interrupted or exit'd, cleanup temporary files, and complete 1076# config.log. We remove comments because anyway the quotes in there 1077# would cause problems or look ugly. 1078# WARNING: Be sure not to use single quotes in there, as some shells, 1079# such as our DU 5.0 friend, will then `close' the trap. 1080trap 'exit_status=$? 1081 # Save into config.log some information that might help in debugging. 1082 { 1083 echo 1084 1085 cat <<\_ASBOX 1086## ---------------- ## 1087## Cache variables. ## 1088## ---------------- ## 1089_ASBOX 1090 echo 1091 # The following way of writing the cache mishandles newlines in values, 1092{ 1093 (set) 2>&1 | 1094 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1095 *ac_space=\ *) 1096 sed -n \ 1097 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1099 ;; 1100 *) 1101 sed -n \ 1102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1103 ;; 1104 esac; 1105} 1106 echo 1107 1108 cat <<\_ASBOX 1109## ----------------- ## 1110## Output variables. ## 1111## ----------------- ## 1112_ASBOX 1113 echo 1114 for ac_var in $ac_subst_vars 1115 do 1116 eval ac_val=$`echo $ac_var` 1117 echo "$ac_var='"'"'$ac_val'"'"'" 1118 done | sort 1119 echo 1120 1121 if test -n "$ac_subst_files"; then 1122 cat <<\_ASBOX 1123## ------------- ## 1124## Output files. ## 1125## ------------- ## 1126_ASBOX 1127 echo 1128 for ac_var in $ac_subst_files 1129 do 1130 eval ac_val=$`echo $ac_var` 1131 echo "$ac_var='"'"'$ac_val'"'"'" 1132 done | sort 1133 echo 1134 fi 1135 1136 if test -s confdefs.h; then 1137 cat <<\_ASBOX 1138## ----------- ## 1139## confdefs.h. ## 1140## ----------- ## 1141_ASBOX 1142 echo 1143 sed "/^$/d" confdefs.h | sort 1144 echo 1145 fi 1146 test "$ac_signal" != 0 && 1147 echo "$as_me: caught signal $ac_signal" 1148 echo "$as_me: exit $exit_status" 1149 } >&5 1150 rm -f core *.core && 1151 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1152 exit $exit_status 1153 ' 0 1154for ac_signal in 1 2 13 15; do 1155 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1156done 1157ac_signal=0 1158 1159# confdefs.h avoids OS command line length limits that DEFS can exceed. 1160rm -rf conftest* confdefs.h 1161# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1162echo >confdefs.h 1163 1164# Predefined preprocessor variables. 1165 1166cat >>confdefs.h <<_ACEOF 1167#define PACKAGE_NAME "$PACKAGE_NAME" 1168_ACEOF 1169 1170 1171cat >>confdefs.h <<_ACEOF 1172#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1173_ACEOF 1174 1175 1176cat >>confdefs.h <<_ACEOF 1177#define PACKAGE_VERSION "$PACKAGE_VERSION" 1178_ACEOF 1179 1180 1181cat >>confdefs.h <<_ACEOF 1182#define PACKAGE_STRING "$PACKAGE_STRING" 1183_ACEOF 1184 1185 1186cat >>confdefs.h <<_ACEOF 1187#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1188_ACEOF 1189 1190 1191# Let the site file select an alternate cache file if it wants to. 1192# Prefer explicitly selected file to automatically selected ones. 1193if test -z "$CONFIG_SITE"; then 1194 if test "x$prefix" != xNONE; then 1195 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1196 else 1197 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1198 fi 1199fi 1200for ac_site_file in $CONFIG_SITE; do 1201 if test -r "$ac_site_file"; then 1202 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1203echo "$as_me: loading site script $ac_site_file" >&6;} 1204 sed 's/^/| /' "$ac_site_file" >&5 1205 . "$ac_site_file" 1206 fi 1207done 1208 1209if test -r "$cache_file"; then 1210 # Some versions of bash will fail to source /dev/null (special 1211 # files actually), so we avoid doing that. 1212 if test -f "$cache_file"; then 1213 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1214echo "$as_me: loading cache $cache_file" >&6;} 1215 case $cache_file in 1216 [\\/]* | ?:[\\/]* ) . $cache_file;; 1217 *) . ./$cache_file;; 1218 esac 1219 fi 1220else 1221 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1222echo "$as_me: creating cache $cache_file" >&6;} 1223 >$cache_file 1224fi 1225 1226# Check that the precious variables saved in the cache have kept the same 1227# value. 1228ac_cache_corrupted=false 1229for ac_var in `(set) 2>&1 | 1230 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1231 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1232 eval ac_new_set=\$ac_env_${ac_var}_set 1233 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1234 eval ac_new_val="\$ac_env_${ac_var}_value" 1235 case $ac_old_set,$ac_new_set in 1236 set,) 1237 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1238echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1239 ac_cache_corrupted=: ;; 1240 ,set) 1241 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1242echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1243 ac_cache_corrupted=: ;; 1244 ,);; 1245 *) 1246 if test "x$ac_old_val" != "x$ac_new_val"; then 1247 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1248echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1249 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1250echo "$as_me: former value: $ac_old_val" >&2;} 1251 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1252echo "$as_me: current value: $ac_new_val" >&2;} 1253 ac_cache_corrupted=: 1254 fi;; 1255 esac 1256 # Pass precious variables to config.status. 1257 if test "$ac_new_set" = set; then 1258 case $ac_new_val in 1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1260 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1261 *) ac_arg=$ac_var=$ac_new_val ;; 1262 esac 1263 case " $ac_configure_args " in 1264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1265 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1266 esac 1267 fi 1268done 1269if $ac_cache_corrupted; then 1270 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1271echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1272 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1273echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1274 { (exit 1); exit 1; }; } 1275fi 1276 1277ac_ext=c 1278ac_cpp='$CPP $CPPFLAGS' 1279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1281ac_compiler_gnu=$ac_cv_c_compiler_gnu 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 ac_config_headers="$ac_config_headers config.h" 1302 1303 1304ac_ext=c 1305ac_cpp='$CPP $CPPFLAGS' 1306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1308ac_compiler_gnu=$ac_cv_c_compiler_gnu 1309if test -n "$ac_tool_prefix"; then 1310 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1311set dummy ${ac_tool_prefix}gcc; ac_word=$2 1312echo "$as_me:$LINENO: checking for $ac_word" >&5 1313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1314if test "${ac_cv_prog_CC+set}" = set; then 1315 echo $ECHO_N "(cached) $ECHO_C" >&6 1316else 1317 if test -n "$CC"; then 1318 ac_cv_prog_CC="$CC" # Let the user override the test. 1319else 1320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1321for as_dir in $PATH 1322do 1323 IFS=$as_save_IFS 1324 test -z "$as_dir" && as_dir=. 1325 for ac_exec_ext in '' $ac_executable_extensions; do 1326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1327 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1329 break 2 1330 fi 1331done 1332done 1333 1334fi 1335fi 1336CC=$ac_cv_prog_CC 1337if test -n "$CC"; then 1338 echo "$as_me:$LINENO: result: $CC" >&5 1339echo "${ECHO_T}$CC" >&6 1340else 1341 echo "$as_me:$LINENO: result: no" >&5 1342echo "${ECHO_T}no" >&6 1343fi 1344 1345fi 1346if test -z "$ac_cv_prog_CC"; then 1347 ac_ct_CC=$CC 1348 # Extract the first word of "gcc", so it can be a program name with args. 1349set dummy gcc; ac_word=$2 1350echo "$as_me:$LINENO: checking for $ac_word" >&5 1351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1352if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1353 echo $ECHO_N "(cached) $ECHO_C" >&6 1354else 1355 if test -n "$ac_ct_CC"; then 1356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1357else 1358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1359for as_dir in $PATH 1360do 1361 IFS=$as_save_IFS 1362 test -z "$as_dir" && as_dir=. 1363 for ac_exec_ext in '' $ac_executable_extensions; do 1364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1365 ac_cv_prog_ac_ct_CC="gcc" 1366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1367 break 2 1368 fi 1369done 1370done 1371 1372fi 1373fi 1374ac_ct_CC=$ac_cv_prog_ac_ct_CC 1375if test -n "$ac_ct_CC"; then 1376 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1377echo "${ECHO_T}$ac_ct_CC" >&6 1378else 1379 echo "$as_me:$LINENO: result: no" >&5 1380echo "${ECHO_T}no" >&6 1381fi 1382 1383 CC=$ac_ct_CC 1384else 1385 CC="$ac_cv_prog_CC" 1386fi 1387 1388if test -z "$CC"; then 1389 if test -n "$ac_tool_prefix"; then 1390 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1391set dummy ${ac_tool_prefix}cc; ac_word=$2 1392echo "$as_me:$LINENO: checking for $ac_word" >&5 1393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1394if test "${ac_cv_prog_CC+set}" = set; then 1395 echo $ECHO_N "(cached) $ECHO_C" >&6 1396else 1397 if test -n "$CC"; then 1398 ac_cv_prog_CC="$CC" # Let the user override the test. 1399else 1400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1401for as_dir in $PATH 1402do 1403 IFS=$as_save_IFS 1404 test -z "$as_dir" && as_dir=. 1405 for ac_exec_ext in '' $ac_executable_extensions; do 1406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1407 ac_cv_prog_CC="${ac_tool_prefix}cc" 1408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1409 break 2 1410 fi 1411done 1412done 1413 1414fi 1415fi 1416CC=$ac_cv_prog_CC 1417if test -n "$CC"; then 1418 echo "$as_me:$LINENO: result: $CC" >&5 1419echo "${ECHO_T}$CC" >&6 1420else 1421 echo "$as_me:$LINENO: result: no" >&5 1422echo "${ECHO_T}no" >&6 1423fi 1424 1425fi 1426if test -z "$ac_cv_prog_CC"; then 1427 ac_ct_CC=$CC 1428 # Extract the first word of "cc", so it can be a program name with args. 1429set dummy cc; ac_word=$2 1430echo "$as_me:$LINENO: checking for $ac_word" >&5 1431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1432if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1433 echo $ECHO_N "(cached) $ECHO_C" >&6 1434else 1435 if test -n "$ac_ct_CC"; then 1436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1437else 1438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1439for as_dir in $PATH 1440do 1441 IFS=$as_save_IFS 1442 test -z "$as_dir" && as_dir=. 1443 for ac_exec_ext in '' $ac_executable_extensions; do 1444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1445 ac_cv_prog_ac_ct_CC="cc" 1446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1447 break 2 1448 fi 1449done 1450done 1451 1452fi 1453fi 1454ac_ct_CC=$ac_cv_prog_ac_ct_CC 1455if test -n "$ac_ct_CC"; then 1456 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1457echo "${ECHO_T}$ac_ct_CC" >&6 1458else 1459 echo "$as_me:$LINENO: result: no" >&5 1460echo "${ECHO_T}no" >&6 1461fi 1462 1463 CC=$ac_ct_CC 1464else 1465 CC="$ac_cv_prog_CC" 1466fi 1467 1468fi 1469if test -z "$CC"; then 1470 # Extract the first word of "cc", so it can be a program name with args. 1471set dummy cc; ac_word=$2 1472echo "$as_me:$LINENO: checking for $ac_word" >&5 1473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1474if test "${ac_cv_prog_CC+set}" = set; then 1475 echo $ECHO_N "(cached) $ECHO_C" >&6 1476else 1477 if test -n "$CC"; then 1478 ac_cv_prog_CC="$CC" # Let the user override the test. 1479else 1480 ac_prog_rejected=no 1481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1482for as_dir in $PATH 1483do 1484 IFS=$as_save_IFS 1485 test -z "$as_dir" && as_dir=. 1486 for ac_exec_ext in '' $ac_executable_extensions; do 1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1489 ac_prog_rejected=yes 1490 continue 1491 fi 1492 ac_cv_prog_CC="cc" 1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1494 break 2 1495 fi 1496done 1497done 1498 1499if test $ac_prog_rejected = yes; then 1500 # We found a bogon in the path, so make sure we never use it. 1501 set dummy $ac_cv_prog_CC 1502 shift 1503 if test $# != 0; then 1504 # We chose a different compiler from the bogus one. 1505 # However, it has the same basename, so the bogon will be chosen 1506 # first if we set CC to just the basename; use the full file name. 1507 shift 1508 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1509 fi 1510fi 1511fi 1512fi 1513CC=$ac_cv_prog_CC 1514if test -n "$CC"; then 1515 echo "$as_me:$LINENO: result: $CC" >&5 1516echo "${ECHO_T}$CC" >&6 1517else 1518 echo "$as_me:$LINENO: result: no" >&5 1519echo "${ECHO_T}no" >&6 1520fi 1521 1522fi 1523if test -z "$CC"; then 1524 if test -n "$ac_tool_prefix"; then 1525 for ac_prog in cl 1526 do 1527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1528set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1529echo "$as_me:$LINENO: checking for $ac_word" >&5 1530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1531if test "${ac_cv_prog_CC+set}" = set; then 1532 echo $ECHO_N "(cached) $ECHO_C" >&6 1533else 1534 if test -n "$CC"; then 1535 ac_cv_prog_CC="$CC" # Let the user override the test. 1536else 1537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1538for as_dir in $PATH 1539do 1540 IFS=$as_save_IFS 1541 test -z "$as_dir" && as_dir=. 1542 for ac_exec_ext in '' $ac_executable_extensions; do 1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1546 break 2 1547 fi 1548done 1549done 1550 1551fi 1552fi 1553CC=$ac_cv_prog_CC 1554if test -n "$CC"; then 1555 echo "$as_me:$LINENO: result: $CC" >&5 1556echo "${ECHO_T}$CC" >&6 1557else 1558 echo "$as_me:$LINENO: result: no" >&5 1559echo "${ECHO_T}no" >&6 1560fi 1561 1562 test -n "$CC" && break 1563 done 1564fi 1565if test -z "$CC"; then 1566 ac_ct_CC=$CC 1567 for ac_prog in cl 1568do 1569 # Extract the first word of "$ac_prog", so it can be a program name with args. 1570set dummy $ac_prog; ac_word=$2 1571echo "$as_me:$LINENO: checking for $ac_word" >&5 1572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1573if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1574 echo $ECHO_N "(cached) $ECHO_C" >&6 1575else 1576 if test -n "$ac_ct_CC"; then 1577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1578else 1579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1580for as_dir in $PATH 1581do 1582 IFS=$as_save_IFS 1583 test -z "$as_dir" && as_dir=. 1584 for ac_exec_ext in '' $ac_executable_extensions; do 1585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1586 ac_cv_prog_ac_ct_CC="$ac_prog" 1587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1588 break 2 1589 fi 1590done 1591done 1592 1593fi 1594fi 1595ac_ct_CC=$ac_cv_prog_ac_ct_CC 1596if test -n "$ac_ct_CC"; then 1597 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1598echo "${ECHO_T}$ac_ct_CC" >&6 1599else 1600 echo "$as_me:$LINENO: result: no" >&5 1601echo "${ECHO_T}no" >&6 1602fi 1603 1604 test -n "$ac_ct_CC" && break 1605done 1606 1607 CC=$ac_ct_CC 1608fi 1609 1610fi 1611 1612 1613test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1614See \`config.log' for more details." >&5 1615echo "$as_me: error: no acceptable C compiler found in \$PATH 1616See \`config.log' for more details." >&2;} 1617 { (exit 1); exit 1; }; } 1618 1619# Provide some information about the compiler. 1620echo "$as_me:$LINENO:" \ 1621 "checking for C compiler version" >&5 1622ac_compiler=`set X $ac_compile; echo $2` 1623{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1624 (eval $ac_compiler --version </dev/null >&5) 2>&5 1625 ac_status=$? 1626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1627 (exit $ac_status); } 1628{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1629 (eval $ac_compiler -v </dev/null >&5) 2>&5 1630 ac_status=$? 1631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1632 (exit $ac_status); } 1633{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1634 (eval $ac_compiler -V </dev/null >&5) 2>&5 1635 ac_status=$? 1636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1637 (exit $ac_status); } 1638 1639cat >conftest.$ac_ext <<_ACEOF 1640/* confdefs.h. */ 1641_ACEOF 1642cat confdefs.h >>conftest.$ac_ext 1643cat >>conftest.$ac_ext <<_ACEOF 1644/* end confdefs.h. */ 1645 1646int 1647main () 1648{ 1649 1650 ; 1651 return 0; 1652} 1653_ACEOF 1654ac_clean_files_save=$ac_clean_files 1655ac_clean_files="$ac_clean_files a.out a.exe b.out" 1656# Try to create an executable without -o first, disregard a.out. 1657# It will help us diagnose broken compilers, and finding out an intuition 1658# of exeext. 1659echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1660echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1661ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1662if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1663 (eval $ac_link_default) 2>&5 1664 ac_status=$? 1665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1666 (exit $ac_status); }; then 1667 # Find the output, starting from the most likely. This scheme is 1668# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1669# resort. 1670 1671# Be careful to initialize this variable, since it used to be cached. 1672# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1673ac_cv_exeext= 1674# b.out is created by i960 compilers. 1675for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1676do 1677 test -f "$ac_file" || continue 1678 case $ac_file in 1679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1680 ;; 1681 conftest.$ac_ext ) 1682 # This is the source file. 1683 ;; 1684 [ab].out ) 1685 # We found the default executable, but exeext='' is most 1686 # certainly right. 1687 break;; 1688 *.* ) 1689 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1690 # FIXME: I believe we export ac_cv_exeext for Libtool, 1691 # but it would be cool to find out if it's true. Does anybody 1692 # maintain Libtool? --akim. 1693 export ac_cv_exeext 1694 break;; 1695 * ) 1696 break;; 1697 esac 1698done 1699else 1700 echo "$as_me: failed program was:" >&5 1701sed 's/^/| /' conftest.$ac_ext >&5 1702 1703{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1704See \`config.log' for more details." >&5 1705echo "$as_me: error: C compiler cannot create executables 1706See \`config.log' for more details." >&2;} 1707 { (exit 77); exit 77; }; } 1708fi 1709 1710ac_exeext=$ac_cv_exeext 1711echo "$as_me:$LINENO: result: $ac_file" >&5 1712echo "${ECHO_T}$ac_file" >&6 1713 1714# Check the compiler produces executables we can run. If not, either 1715# the compiler is broken, or we cross compile. 1716echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1717echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1718# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1719# If not cross compiling, check that we can run a simple program. 1720if test "$cross_compiling" != yes; then 1721 if { ac_try='./$ac_file' 1722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1723 (eval $ac_try) 2>&5 1724 ac_status=$? 1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1726 (exit $ac_status); }; }; then 1727 cross_compiling=no 1728 else 1729 if test "$cross_compiling" = maybe; then 1730 cross_compiling=yes 1731 else 1732 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1733If you meant to cross compile, use \`--host'. 1734See \`config.log' for more details." >&5 1735echo "$as_me: error: cannot run C compiled programs. 1736If you meant to cross compile, use \`--host'. 1737See \`config.log' for more details." >&2;} 1738 { (exit 1); exit 1; }; } 1739 fi 1740 fi 1741fi 1742echo "$as_me:$LINENO: result: yes" >&5 1743echo "${ECHO_T}yes" >&6 1744 1745rm -f a.out a.exe conftest$ac_cv_exeext b.out 1746ac_clean_files=$ac_clean_files_save 1747# Check the compiler produces executables we can run. If not, either 1748# the compiler is broken, or we cross compile. 1749echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1750echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1751echo "$as_me:$LINENO: result: $cross_compiling" >&5 1752echo "${ECHO_T}$cross_compiling" >&6 1753 1754echo "$as_me:$LINENO: checking for suffix of executables" >&5 1755echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1757 (eval $ac_link) 2>&5 1758 ac_status=$? 1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1760 (exit $ac_status); }; then 1761 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1762# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1763# work properly (i.e., refer to `conftest.exe'), while it won't with 1764# `rm'. 1765for ac_file in conftest.exe conftest conftest.*; do 1766 test -f "$ac_file" || continue 1767 case $ac_file in 1768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1769 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1770 export ac_cv_exeext 1771 break;; 1772 * ) break;; 1773 esac 1774done 1775else 1776 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1777See \`config.log' for more details." >&5 1778echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1779See \`config.log' for more details." >&2;} 1780 { (exit 1); exit 1; }; } 1781fi 1782 1783rm -f conftest$ac_cv_exeext 1784echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1785echo "${ECHO_T}$ac_cv_exeext" >&6 1786 1787rm -f conftest.$ac_ext 1788EXEEXT=$ac_cv_exeext 1789ac_exeext=$EXEEXT 1790echo "$as_me:$LINENO: checking for suffix of object files" >&5 1791echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1792if test "${ac_cv_objext+set}" = set; then 1793 echo $ECHO_N "(cached) $ECHO_C" >&6 1794else 1795 cat >conftest.$ac_ext <<_ACEOF 1796/* confdefs.h. */ 1797_ACEOF 1798cat confdefs.h >>conftest.$ac_ext 1799cat >>conftest.$ac_ext <<_ACEOF 1800/* end confdefs.h. */ 1801 1802int 1803main () 1804{ 1805 1806 ; 1807 return 0; 1808} 1809_ACEOF 1810rm -f conftest.o conftest.obj 1811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1812 (eval $ac_compile) 2>&5 1813 ac_status=$? 1814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1815 (exit $ac_status); }; then 1816 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1817 case $ac_file in 1818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1819 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1820 break;; 1821 esac 1822done 1823else 1824 echo "$as_me: failed program was:" >&5 1825sed 's/^/| /' conftest.$ac_ext >&5 1826 1827{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1828See \`config.log' for more details." >&5 1829echo "$as_me: error: cannot compute suffix of object files: cannot compile 1830See \`config.log' for more details." >&2;} 1831 { (exit 1); exit 1; }; } 1832fi 1833 1834rm -f conftest.$ac_cv_objext conftest.$ac_ext 1835fi 1836echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1837echo "${ECHO_T}$ac_cv_objext" >&6 1838OBJEXT=$ac_cv_objext 1839ac_objext=$OBJEXT 1840echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1841echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1842if test "${ac_cv_c_compiler_gnu+set}" = set; then 1843 echo $ECHO_N "(cached) $ECHO_C" >&6 1844else 1845 cat >conftest.$ac_ext <<_ACEOF 1846/* confdefs.h. */ 1847_ACEOF 1848cat confdefs.h >>conftest.$ac_ext 1849cat >>conftest.$ac_ext <<_ACEOF 1850/* end confdefs.h. */ 1851 1852int 1853main () 1854{ 1855#ifndef __GNUC__ 1856 choke me 1857#endif 1858 1859 ; 1860 return 0; 1861} 1862_ACEOF 1863rm -f conftest.$ac_objext 1864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1865 (eval $ac_compile) 2>conftest.er1 1866 ac_status=$? 1867 grep -v '^ *+' conftest.er1 >conftest.err 1868 rm -f conftest.er1 1869 cat conftest.err >&5 1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1871 (exit $ac_status); } && 1872 { ac_try='test -z "$ac_c_werror_flag" 1873 || test ! -s conftest.err' 1874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1875 (eval $ac_try) 2>&5 1876 ac_status=$? 1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1878 (exit $ac_status); }; } && 1879 { ac_try='test -s conftest.$ac_objext' 1880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1881 (eval $ac_try) 2>&5 1882 ac_status=$? 1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1884 (exit $ac_status); }; }; then 1885 ac_compiler_gnu=yes 1886else 1887 echo "$as_me: failed program was:" >&5 1888sed 's/^/| /' conftest.$ac_ext >&5 1889 1890ac_compiler_gnu=no 1891fi 1892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1893ac_cv_c_compiler_gnu=$ac_compiler_gnu 1894 1895fi 1896echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1897echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1898GCC=`test $ac_compiler_gnu = yes && echo yes` 1899ac_test_CFLAGS=${CFLAGS+set} 1900ac_save_CFLAGS=$CFLAGS 1901CFLAGS="-g" 1902echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1903echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1904if test "${ac_cv_prog_cc_g+set}" = set; then 1905 echo $ECHO_N "(cached) $ECHO_C" >&6 1906else 1907 cat >conftest.$ac_ext <<_ACEOF 1908/* confdefs.h. */ 1909_ACEOF 1910cat confdefs.h >>conftest.$ac_ext 1911cat >>conftest.$ac_ext <<_ACEOF 1912/* end confdefs.h. */ 1913 1914int 1915main () 1916{ 1917 1918 ; 1919 return 0; 1920} 1921_ACEOF 1922rm -f conftest.$ac_objext 1923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1924 (eval $ac_compile) 2>conftest.er1 1925 ac_status=$? 1926 grep -v '^ *+' conftest.er1 >conftest.err 1927 rm -f conftest.er1 1928 cat conftest.err >&5 1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1930 (exit $ac_status); } && 1931 { ac_try='test -z "$ac_c_werror_flag" 1932 || test ! -s conftest.err' 1933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1934 (eval $ac_try) 2>&5 1935 ac_status=$? 1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1937 (exit $ac_status); }; } && 1938 { ac_try='test -s conftest.$ac_objext' 1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1940 (eval $ac_try) 2>&5 1941 ac_status=$? 1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1943 (exit $ac_status); }; }; then 1944 ac_cv_prog_cc_g=yes 1945else 1946 echo "$as_me: failed program was:" >&5 1947sed 's/^/| /' conftest.$ac_ext >&5 1948 1949ac_cv_prog_cc_g=no 1950fi 1951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1952fi 1953echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1954echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1955if test "$ac_test_CFLAGS" = set; then 1956 CFLAGS=$ac_save_CFLAGS 1957elif test $ac_cv_prog_cc_g = yes; then 1958 if test "$GCC" = yes; then 1959 CFLAGS="-g -O2" 1960 else 1961 CFLAGS="-g" 1962 fi 1963else 1964 if test "$GCC" = yes; then 1965 CFLAGS="-O2" 1966 else 1967 CFLAGS= 1968 fi 1969fi 1970echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 1971echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1972if test "${ac_cv_prog_cc_stdc+set}" = set; then 1973 echo $ECHO_N "(cached) $ECHO_C" >&6 1974else 1975 ac_cv_prog_cc_stdc=no 1976ac_save_CC=$CC 1977cat >conftest.$ac_ext <<_ACEOF 1978/* confdefs.h. */ 1979_ACEOF 1980cat confdefs.h >>conftest.$ac_ext 1981cat >>conftest.$ac_ext <<_ACEOF 1982/* end confdefs.h. */ 1983#include <stdarg.h> 1984#include <stdio.h> 1985#include <sys/types.h> 1986#include <sys/stat.h> 1987/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1988struct buf { int x; }; 1989FILE * (*rcsopen) (struct buf *, struct stat *, int); 1990static char *e (p, i) 1991 char **p; 1992 int i; 1993{ 1994 return p[i]; 1995} 1996static char *f (char * (*g) (char **, int), char **p, ...) 1997{ 1998 char *s; 1999 va_list v; 2000 va_start (v,p); 2001 s = g (p, va_arg (v,int)); 2002 va_end (v); 2003 return s; 2004} 2005 2006/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2007 function prototypes and stuff, but not '\xHH' hex character constants. 2008 These don't provoke an error unfortunately, instead are silently treated 2009 as 'x'. The following induces an error, until -std1 is added to get 2010 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2011 array size at least. It's necessary to write '\x00'==0 to get something 2012 that's true only with -std1. */ 2013int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2014 2015int test (int i, double x); 2016struct s1 {int (*f) (int a);}; 2017struct s2 {int (*f) (double a);}; 2018int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2019int argc; 2020char **argv; 2021int 2022main () 2023{ 2024return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2025 ; 2026 return 0; 2027} 2028_ACEOF 2029# Don't try gcc -ansi; that turns off useful extensions and 2030# breaks some systems' header files. 2031# AIX -qlanglvl=ansi 2032# Ultrix and OSF/1 -std1 2033# HP-UX 10.20 and later -Ae 2034# HP-UX older versions -Aa -D_HPUX_SOURCE 2035# SVR4 -Xc -D__EXTENSIONS__ 2036for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2037do 2038 CC="$ac_save_CC $ac_arg" 2039 rm -f conftest.$ac_objext 2040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2041 (eval $ac_compile) 2>conftest.er1 2042 ac_status=$? 2043 grep -v '^ *+' conftest.er1 >conftest.err 2044 rm -f conftest.er1 2045 cat conftest.err >&5 2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2047 (exit $ac_status); } && 2048 { ac_try='test -z "$ac_c_werror_flag" 2049 || test ! -s conftest.err' 2050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2051 (eval $ac_try) 2>&5 2052 ac_status=$? 2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2054 (exit $ac_status); }; } && 2055 { ac_try='test -s conftest.$ac_objext' 2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2057 (eval $ac_try) 2>&5 2058 ac_status=$? 2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2060 (exit $ac_status); }; }; then 2061 ac_cv_prog_cc_stdc=$ac_arg 2062break 2063else 2064 echo "$as_me: failed program was:" >&5 2065sed 's/^/| /' conftest.$ac_ext >&5 2066 2067fi 2068rm -f conftest.err conftest.$ac_objext 2069done 2070rm -f conftest.$ac_ext conftest.$ac_objext 2071CC=$ac_save_CC 2072 2073fi 2074 2075case "x$ac_cv_prog_cc_stdc" in 2076 x|xno) 2077 echo "$as_me:$LINENO: result: none needed" >&5 2078echo "${ECHO_T}none needed" >&6 ;; 2079 *) 2080 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2081echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2082 CC="$CC $ac_cv_prog_cc_stdc" ;; 2083esac 2084 2085# Some people use a C++ compiler to compile C. Since we use `exit', 2086# in C++ we need to declare it. In case someone uses the same compiler 2087# for both compiling C and C++ we need to have the C++ compiler decide 2088# the declaration of exit, since it's the most demanding environment. 2089cat >conftest.$ac_ext <<_ACEOF 2090#ifndef __cplusplus 2091 choke me 2092#endif 2093_ACEOF 2094rm -f conftest.$ac_objext 2095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2096 (eval $ac_compile) 2>conftest.er1 2097 ac_status=$? 2098 grep -v '^ *+' conftest.er1 >conftest.err 2099 rm -f conftest.er1 2100 cat conftest.err >&5 2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2102 (exit $ac_status); } && 2103 { ac_try='test -z "$ac_c_werror_flag" 2104 || test ! -s conftest.err' 2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2106 (eval $ac_try) 2>&5 2107 ac_status=$? 2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2109 (exit $ac_status); }; } && 2110 { ac_try='test -s conftest.$ac_objext' 2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2112 (eval $ac_try) 2>&5 2113 ac_status=$? 2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2115 (exit $ac_status); }; }; then 2116 for ac_declaration in \ 2117 '' \ 2118 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2119 'extern "C" void std::exit (int); using std::exit;' \ 2120 'extern "C" void exit (int) throw ();' \ 2121 'extern "C" void exit (int);' \ 2122 'void exit (int);' 2123do 2124 cat >conftest.$ac_ext <<_ACEOF 2125/* confdefs.h. */ 2126_ACEOF 2127cat confdefs.h >>conftest.$ac_ext 2128cat >>conftest.$ac_ext <<_ACEOF 2129/* end confdefs.h. */ 2130$ac_declaration 2131#include <stdlib.h> 2132int 2133main () 2134{ 2135exit (42); 2136 ; 2137 return 0; 2138} 2139_ACEOF 2140rm -f conftest.$ac_objext 2141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2142 (eval $ac_compile) 2>conftest.er1 2143 ac_status=$? 2144 grep -v '^ *+' conftest.er1 >conftest.err 2145 rm -f conftest.er1 2146 cat conftest.err >&5 2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2148 (exit $ac_status); } && 2149 { ac_try='test -z "$ac_c_werror_flag" 2150 || test ! -s conftest.err' 2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2152 (eval $ac_try) 2>&5 2153 ac_status=$? 2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2155 (exit $ac_status); }; } && 2156 { ac_try='test -s conftest.$ac_objext' 2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2158 (eval $ac_try) 2>&5 2159 ac_status=$? 2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2161 (exit $ac_status); }; }; then 2162 : 2163else 2164 echo "$as_me: failed program was:" >&5 2165sed 's/^/| /' conftest.$ac_ext >&5 2166 2167continue 2168fi 2169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2170 cat >conftest.$ac_ext <<_ACEOF 2171/* confdefs.h. */ 2172_ACEOF 2173cat confdefs.h >>conftest.$ac_ext 2174cat >>conftest.$ac_ext <<_ACEOF 2175/* end confdefs.h. */ 2176$ac_declaration 2177int 2178main () 2179{ 2180exit (42); 2181 ; 2182 return 0; 2183} 2184_ACEOF 2185rm -f conftest.$ac_objext 2186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2187 (eval $ac_compile) 2>conftest.er1 2188 ac_status=$? 2189 grep -v '^ *+' conftest.er1 >conftest.err 2190 rm -f conftest.er1 2191 cat conftest.err >&5 2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2193 (exit $ac_status); } && 2194 { ac_try='test -z "$ac_c_werror_flag" 2195 || test ! -s conftest.err' 2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2197 (eval $ac_try) 2>&5 2198 ac_status=$? 2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2200 (exit $ac_status); }; } && 2201 { ac_try='test -s conftest.$ac_objext' 2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2203 (eval $ac_try) 2>&5 2204 ac_status=$? 2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2206 (exit $ac_status); }; }; then 2207 break 2208else 2209 echo "$as_me: failed program was:" >&5 2210sed 's/^/| /' conftest.$ac_ext >&5 2211 2212fi 2213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2214done 2215rm -f conftest* 2216if test -n "$ac_declaration"; then 2217 echo '#ifdef __cplusplus' >>confdefs.h 2218 echo $ac_declaration >>confdefs.h 2219 echo '#endif' >>confdefs.h 2220fi 2221 2222else 2223 echo "$as_me: failed program was:" >&5 2224sed 's/^/| /' conftest.$ac_ext >&5 2225 2226fi 2227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2228ac_ext=c 2229ac_cpp='$CPP $CPPFLAGS' 2230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2232ac_compiler_gnu=$ac_cv_c_compiler_gnu 2233 2234echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2235echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2236set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2237if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2238 echo $ECHO_N "(cached) $ECHO_C" >&6 2239else 2240 cat >conftest.make <<\_ACEOF 2241all: 2242 @echo 'ac_maketemp="$(MAKE)"' 2243_ACEOF 2244# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2245eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2246if test -n "$ac_maketemp"; then 2247 eval ac_cv_prog_make_${ac_make}_set=yes 2248else 2249 eval ac_cv_prog_make_${ac_make}_set=no 2250fi 2251rm -f conftest.make 2252fi 2253if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2254 echo "$as_me:$LINENO: result: yes" >&5 2255echo "${ECHO_T}yes" >&6 2256 SET_MAKE= 2257else 2258 echo "$as_me:$LINENO: result: no" >&5 2259echo "${ECHO_T}no" >&6 2260 SET_MAKE="MAKE=${MAKE-make}" 2261fi 2262 2263ac_aux_dir= 2264for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2265 if test -f $ac_dir/install-sh; then 2266 ac_aux_dir=$ac_dir 2267 ac_install_sh="$ac_aux_dir/install-sh -c" 2268 break 2269 elif test -f $ac_dir/install.sh; then 2270 ac_aux_dir=$ac_dir 2271 ac_install_sh="$ac_aux_dir/install.sh -c" 2272 break 2273 elif test -f $ac_dir/shtool; then 2274 ac_aux_dir=$ac_dir 2275 ac_install_sh="$ac_aux_dir/shtool install -c" 2276 break 2277 fi 2278done 2279if test -z "$ac_aux_dir"; then 2280 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2281echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2282 { (exit 1); exit 1; }; } 2283fi 2284ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2285ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2286ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2287 2288# Find a good install program. We prefer a C program (faster), 2289# so one script is as good as another. But avoid the broken or 2290# incompatible versions: 2291# SysV /etc/install, /usr/sbin/install 2292# SunOS /usr/etc/install 2293# IRIX /sbin/install 2294# AIX /bin/install 2295# AmigaOS /C/install, which installs bootblocks on floppy discs 2296# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2297# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2298# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2299# OS/2's system install, which has a completely different semantic 2300# ./install, which can be erroneously created by make from ./install.sh. 2301echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2302echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2303if test -z "$INSTALL"; then 2304if test "${ac_cv_path_install+set}" = set; then 2305 echo $ECHO_N "(cached) $ECHO_C" >&6 2306else 2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2308for as_dir in $PATH 2309do 2310 IFS=$as_save_IFS 2311 test -z "$as_dir" && as_dir=. 2312 # Account for people who put trailing slashes in PATH elements. 2313case $as_dir/ in 2314 ./ | .// | /cC/* | \ 2315 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2316 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2317 /usr/ucb/* ) ;; 2318 *) 2319 # OSF1 and SCO ODT 3.0 have their own names for install. 2320 # Don't use installbsd from OSF since it installs stuff as root 2321 # by default. 2322 for ac_prog in ginstall scoinst install; do 2323 for ac_exec_ext in '' $ac_executable_extensions; do 2324 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2325 if test $ac_prog = install && 2326 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2327 # AIX install. It has an incompatible calling convention. 2328 : 2329 elif test $ac_prog = install && 2330 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2331 # program-specific install script used by HP pwplus--don't use. 2332 : 2333 else 2334 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2335 break 3 2336 fi 2337 fi 2338 done 2339 done 2340 ;; 2341esac 2342done 2343 2344 2345fi 2346 if test "${ac_cv_path_install+set}" = set; then 2347 INSTALL=$ac_cv_path_install 2348 else 2349 # As a last resort, use the slow shell script. We don't cache a 2350 # path for INSTALL within a source directory, because that will 2351 # break other packages using the cache if that directory is 2352 # removed, or if the path is relative. 2353 INSTALL=$ac_install_sh 2354 fi 2355fi 2356echo "$as_me:$LINENO: result: $INSTALL" >&5 2357echo "${ECHO_T}$INSTALL" >&6 2358 2359# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2360# It thinks the first close brace ends the variable substitution. 2361test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2362 2363test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2364 2365test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2366 2367if test -n "$ac_tool_prefix"; then 2368 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2369set dummy ${ac_tool_prefix}ar; ac_word=$2 2370echo "$as_me:$LINENO: checking for $ac_word" >&5 2371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2372if test "${ac_cv_prog_AR+set}" = set; then 2373 echo $ECHO_N "(cached) $ECHO_C" >&6 2374else 2375 if test -n "$AR"; then 2376 ac_cv_prog_AR="$AR" # Let the user override the test. 2377else 2378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2379for as_dir in $PATH 2380do 2381 IFS=$as_save_IFS 2382 test -z "$as_dir" && as_dir=. 2383 for ac_exec_ext in '' $ac_executable_extensions; do 2384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2385 ac_cv_prog_AR="${ac_tool_prefix}ar" 2386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2387 break 2 2388 fi 2389done 2390done 2391 2392fi 2393fi 2394AR=$ac_cv_prog_AR 2395if test -n "$AR"; then 2396 echo "$as_me:$LINENO: result: $AR" >&5 2397echo "${ECHO_T}$AR" >&6 2398else 2399 echo "$as_me:$LINENO: result: no" >&5 2400echo "${ECHO_T}no" >&6 2401fi 2402 2403fi 2404if test -z "$ac_cv_prog_AR"; then 2405 ac_ct_AR=$AR 2406 # Extract the first word of "ar", so it can be a program name with args. 2407set dummy ar; ac_word=$2 2408echo "$as_me:$LINENO: checking for $ac_word" >&5 2409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2410if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 2411 echo $ECHO_N "(cached) $ECHO_C" >&6 2412else 2413 if test -n "$ac_ct_AR"; then 2414 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 2415else 2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2417for as_dir in $PATH 2418do 2419 IFS=$as_save_IFS 2420 test -z "$as_dir" && as_dir=. 2421 for ac_exec_ext in '' $ac_executable_extensions; do 2422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2423 ac_cv_prog_ac_ct_AR="ar" 2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2425 break 2 2426 fi 2427done 2428done 2429 2430 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="#" 2431fi 2432fi 2433ac_ct_AR=$ac_cv_prog_ac_ct_AR 2434if test -n "$ac_ct_AR"; then 2435 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 2436echo "${ECHO_T}$ac_ct_AR" >&6 2437else 2438 echo "$as_me:$LINENO: result: no" >&5 2439echo "${ECHO_T}no" >&6 2440fi 2441 2442 AR=$ac_ct_AR 2443else 2444 AR="$ac_cv_prog_AR" 2445fi 2446 2447if test -n "$ac_tool_prefix"; then 2448 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2449set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2450echo "$as_me:$LINENO: checking for $ac_word" >&5 2451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2452if test "${ac_cv_prog_RANLIB+set}" = set; then 2453 echo $ECHO_N "(cached) $ECHO_C" >&6 2454else 2455 if test -n "$RANLIB"; then 2456 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2457else 2458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2459for as_dir in $PATH 2460do 2461 IFS=$as_save_IFS 2462 test -z "$as_dir" && as_dir=. 2463 for ac_exec_ext in '' $ac_executable_extensions; do 2464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2467 break 2 2468 fi 2469done 2470done 2471 2472fi 2473fi 2474RANLIB=$ac_cv_prog_RANLIB 2475if test -n "$RANLIB"; then 2476 echo "$as_me:$LINENO: result: $RANLIB" >&5 2477echo "${ECHO_T}$RANLIB" >&6 2478else 2479 echo "$as_me:$LINENO: result: no" >&5 2480echo "${ECHO_T}no" >&6 2481fi 2482 2483fi 2484if test -z "$ac_cv_prog_RANLIB"; then 2485 ac_ct_RANLIB=$RANLIB 2486 # Extract the first word of "ranlib", so it can be a program name with args. 2487set dummy ranlib; ac_word=$2 2488echo "$as_me:$LINENO: checking for $ac_word" >&5 2489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2490if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2491 echo $ECHO_N "(cached) $ECHO_C" >&6 2492else 2493 if test -n "$ac_ct_RANLIB"; then 2494 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2495else 2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2497for as_dir in $PATH 2498do 2499 IFS=$as_save_IFS 2500 test -z "$as_dir" && as_dir=. 2501 for ac_exec_ext in '' $ac_executable_extensions; do 2502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2503 ac_cv_prog_ac_ct_RANLIB="ranlib" 2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2505 break 2 2506 fi 2507done 2508done 2509 2510 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="#" 2511fi 2512fi 2513ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2514if test -n "$ac_ct_RANLIB"; then 2515 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2516echo "${ECHO_T}$ac_ct_RANLIB" >&6 2517else 2518 echo "$as_me:$LINENO: result: no" >&5 2519echo "${ECHO_T}no" >&6 2520fi 2521 2522 RANLIB=$ac_ct_RANLIB 2523else 2524 RANLIB="$ac_cv_prog_RANLIB" 2525fi 2526 2527 2528 2529 2530 2531 if test -n "$GCC"; then 2532 CFLAGS="$CFLAGS -Wall" 2533 DEPEND="Makefile.dep" 2534 fi 2535 2536 2537 2538# Check whether --enable-largefile or --disable-largefile was given. 2539if test "${enable_largefile+set}" = set; then 2540 enableval="$enable_largefile" 2541 2542fi; 2543if test "$enable_largefile" != no; then 2544 2545 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 2546echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 2547if test "${ac_cv_sys_largefile_CC+set}" = set; then 2548 echo $ECHO_N "(cached) $ECHO_C" >&6 2549else 2550 ac_cv_sys_largefile_CC=no 2551 if test "$GCC" != yes; then 2552 ac_save_CC=$CC 2553 while :; do 2554 # IRIX 6.2 and later do not support large files by default, 2555 # so use the C compiler's -n32 option if that helps. 2556 cat >conftest.$ac_ext <<_ACEOF 2557/* confdefs.h. */ 2558_ACEOF 2559cat confdefs.h >>conftest.$ac_ext 2560cat >>conftest.$ac_ext <<_ACEOF 2561/* end confdefs.h. */ 2562#include <sys/types.h> 2563 /* Check that off_t can represent 2**63 - 1 correctly. 2564 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2565 since some C++ compilers masquerading as C compilers 2566 incorrectly reject 9223372036854775807. */ 2567#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2568 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2569 && LARGE_OFF_T % 2147483647 == 1) 2570 ? 1 : -1]; 2571int 2572main () 2573{ 2574 2575 ; 2576 return 0; 2577} 2578_ACEOF 2579 rm -f conftest.$ac_objext 2580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2581 (eval $ac_compile) 2>conftest.er1 2582 ac_status=$? 2583 grep -v '^ *+' conftest.er1 >conftest.err 2584 rm -f conftest.er1 2585 cat conftest.err >&5 2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2587 (exit $ac_status); } && 2588 { ac_try='test -z "$ac_c_werror_flag" 2589 || test ! -s conftest.err' 2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2591 (eval $ac_try) 2>&5 2592 ac_status=$? 2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2594 (exit $ac_status); }; } && 2595 { ac_try='test -s conftest.$ac_objext' 2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2597 (eval $ac_try) 2>&5 2598 ac_status=$? 2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2600 (exit $ac_status); }; }; then 2601 break 2602else 2603 echo "$as_me: failed program was:" >&5 2604sed 's/^/| /' conftest.$ac_ext >&5 2605 2606fi 2607rm -f conftest.err conftest.$ac_objext 2608 CC="$CC -n32" 2609 rm -f conftest.$ac_objext 2610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2611 (eval $ac_compile) 2>conftest.er1 2612 ac_status=$? 2613 grep -v '^ *+' conftest.er1 >conftest.err 2614 rm -f conftest.er1 2615 cat conftest.err >&5 2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2617 (exit $ac_status); } && 2618 { ac_try='test -z "$ac_c_werror_flag" 2619 || test ! -s conftest.err' 2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2621 (eval $ac_try) 2>&5 2622 ac_status=$? 2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2624 (exit $ac_status); }; } && 2625 { ac_try='test -s conftest.$ac_objext' 2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2627 (eval $ac_try) 2>&5 2628 ac_status=$? 2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2630 (exit $ac_status); }; }; then 2631 ac_cv_sys_largefile_CC=' -n32'; break 2632else 2633 echo "$as_me: failed program was:" >&5 2634sed 's/^/| /' conftest.$ac_ext >&5 2635 2636fi 2637rm -f conftest.err conftest.$ac_objext 2638 break 2639 done 2640 CC=$ac_save_CC 2641 rm -f conftest.$ac_ext 2642 fi 2643fi 2644echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 2645echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 2646 if test "$ac_cv_sys_largefile_CC" != no; then 2647 CC=$CC$ac_cv_sys_largefile_CC 2648 fi 2649 2650 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 2651echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 2652if test "${ac_cv_sys_file_offset_bits+set}" = set; then 2653 echo $ECHO_N "(cached) $ECHO_C" >&6 2654else 2655 while :; do 2656 ac_cv_sys_file_offset_bits=no 2657 cat >conftest.$ac_ext <<_ACEOF 2658/* confdefs.h. */ 2659_ACEOF 2660cat confdefs.h >>conftest.$ac_ext 2661cat >>conftest.$ac_ext <<_ACEOF 2662/* end confdefs.h. */ 2663#include <sys/types.h> 2664 /* Check that off_t can represent 2**63 - 1 correctly. 2665 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2666 since some C++ compilers masquerading as C compilers 2667 incorrectly reject 9223372036854775807. */ 2668#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2669 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2670 && LARGE_OFF_T % 2147483647 == 1) 2671 ? 1 : -1]; 2672int 2673main () 2674{ 2675 2676 ; 2677 return 0; 2678} 2679_ACEOF 2680rm -f conftest.$ac_objext 2681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2682 (eval $ac_compile) 2>conftest.er1 2683 ac_status=$? 2684 grep -v '^ *+' conftest.er1 >conftest.err 2685 rm -f conftest.er1 2686 cat conftest.err >&5 2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2688 (exit $ac_status); } && 2689 { ac_try='test -z "$ac_c_werror_flag" 2690 || test ! -s conftest.err' 2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2692 (eval $ac_try) 2>&5 2693 ac_status=$? 2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2695 (exit $ac_status); }; } && 2696 { ac_try='test -s conftest.$ac_objext' 2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2698 (eval $ac_try) 2>&5 2699 ac_status=$? 2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2701 (exit $ac_status); }; }; then 2702 break 2703else 2704 echo "$as_me: failed program was:" >&5 2705sed 's/^/| /' conftest.$ac_ext >&5 2706 2707fi 2708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2709 cat >conftest.$ac_ext <<_ACEOF 2710/* confdefs.h. */ 2711_ACEOF 2712cat confdefs.h >>conftest.$ac_ext 2713cat >>conftest.$ac_ext <<_ACEOF 2714/* end confdefs.h. */ 2715#define _FILE_OFFSET_BITS 64 2716#include <sys/types.h> 2717 /* Check that off_t can represent 2**63 - 1 correctly. 2718 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2719 since some C++ compilers masquerading as C compilers 2720 incorrectly reject 9223372036854775807. */ 2721#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2723 && LARGE_OFF_T % 2147483647 == 1) 2724 ? 1 : -1]; 2725int 2726main () 2727{ 2728 2729 ; 2730 return 0; 2731} 2732_ACEOF 2733rm -f conftest.$ac_objext 2734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2735 (eval $ac_compile) 2>conftest.er1 2736 ac_status=$? 2737 grep -v '^ *+' conftest.er1 >conftest.err 2738 rm -f conftest.er1 2739 cat conftest.err >&5 2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2741 (exit $ac_status); } && 2742 { ac_try='test -z "$ac_c_werror_flag" 2743 || test ! -s conftest.err' 2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2745 (eval $ac_try) 2>&5 2746 ac_status=$? 2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2748 (exit $ac_status); }; } && 2749 { ac_try='test -s conftest.$ac_objext' 2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2751 (eval $ac_try) 2>&5 2752 ac_status=$? 2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2754 (exit $ac_status); }; }; then 2755 ac_cv_sys_file_offset_bits=64; break 2756else 2757 echo "$as_me: failed program was:" >&5 2758sed 's/^/| /' conftest.$ac_ext >&5 2759 2760fi 2761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2762 break 2763done 2764fi 2765echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 2766echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 2767if test "$ac_cv_sys_file_offset_bits" != no; then 2768 2769cat >>confdefs.h <<_ACEOF 2770#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 2771_ACEOF 2772 2773fi 2774rm -f conftest* 2775 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 2776echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 2777if test "${ac_cv_sys_large_files+set}" = set; then 2778 echo $ECHO_N "(cached) $ECHO_C" >&6 2779else 2780 while :; do 2781 ac_cv_sys_large_files=no 2782 cat >conftest.$ac_ext <<_ACEOF 2783/* confdefs.h. */ 2784_ACEOF 2785cat confdefs.h >>conftest.$ac_ext 2786cat >>conftest.$ac_ext <<_ACEOF 2787/* end confdefs.h. */ 2788#include <sys/types.h> 2789 /* Check that off_t can represent 2**63 - 1 correctly. 2790 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2791 since some C++ compilers masquerading as C compilers 2792 incorrectly reject 9223372036854775807. */ 2793#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2795 && LARGE_OFF_T % 2147483647 == 1) 2796 ? 1 : -1]; 2797int 2798main () 2799{ 2800 2801 ; 2802 return 0; 2803} 2804_ACEOF 2805rm -f conftest.$ac_objext 2806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2807 (eval $ac_compile) 2>conftest.er1 2808 ac_status=$? 2809 grep -v '^ *+' conftest.er1 >conftest.err 2810 rm -f conftest.er1 2811 cat conftest.err >&5 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2813 (exit $ac_status); } && 2814 { ac_try='test -z "$ac_c_werror_flag" 2815 || test ! -s conftest.err' 2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2817 (eval $ac_try) 2>&5 2818 ac_status=$? 2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2820 (exit $ac_status); }; } && 2821 { ac_try='test -s conftest.$ac_objext' 2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2823 (eval $ac_try) 2>&5 2824 ac_status=$? 2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2826 (exit $ac_status); }; }; then 2827 break 2828else 2829 echo "$as_me: failed program was:" >&5 2830sed 's/^/| /' conftest.$ac_ext >&5 2831 2832fi 2833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2834 cat >conftest.$ac_ext <<_ACEOF 2835/* confdefs.h. */ 2836_ACEOF 2837cat confdefs.h >>conftest.$ac_ext 2838cat >>conftest.$ac_ext <<_ACEOF 2839/* end confdefs.h. */ 2840#define _LARGE_FILES 1 2841#include <sys/types.h> 2842 /* Check that off_t can represent 2**63 - 1 correctly. 2843 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2844 since some C++ compilers masquerading as C compilers 2845 incorrectly reject 9223372036854775807. */ 2846#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2847 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2848 && LARGE_OFF_T % 2147483647 == 1) 2849 ? 1 : -1]; 2850int 2851main () 2852{ 2853 2854 ; 2855 return 0; 2856} 2857_ACEOF 2858rm -f conftest.$ac_objext 2859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2860 (eval $ac_compile) 2>conftest.er1 2861 ac_status=$? 2862 grep -v '^ *+' conftest.er1 >conftest.err 2863 rm -f conftest.er1 2864 cat conftest.err >&5 2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2866 (exit $ac_status); } && 2867 { ac_try='test -z "$ac_c_werror_flag" 2868 || test ! -s conftest.err' 2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2870 (eval $ac_try) 2>&5 2871 ac_status=$? 2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2873 (exit $ac_status); }; } && 2874 { ac_try='test -s conftest.$ac_objext' 2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2876 (eval $ac_try) 2>&5 2877 ac_status=$? 2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2879 (exit $ac_status); }; }; then 2880 ac_cv_sys_large_files=1; break 2881else 2882 echo "$as_me: failed program was:" >&5 2883sed 's/^/| /' conftest.$ac_ext >&5 2884 2885fi 2886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2887 break 2888done 2889fi 2890echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 2891echo "${ECHO_T}$ac_cv_sys_large_files" >&6 2892if test "$ac_cv_sys_large_files" != no; then 2893 2894cat >>confdefs.h <<_ACEOF 2895#define _LARGE_FILES $ac_cv_sys_large_files 2896_ACEOF 2897 2898fi 2899rm -f conftest* 2900fi 2901 2902echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 2903echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 2904if test "${ac_cv_sys_largefile_source+set}" = set; then 2905 echo $ECHO_N "(cached) $ECHO_C" >&6 2906else 2907 while :; do 2908 ac_cv_sys_largefile_source=no 2909 cat >conftest.$ac_ext <<_ACEOF 2910/* confdefs.h. */ 2911_ACEOF 2912cat confdefs.h >>conftest.$ac_ext 2913cat >>conftest.$ac_ext <<_ACEOF 2914/* end confdefs.h. */ 2915#include <stdio.h> 2916int 2917main () 2918{ 2919return !fseeko; 2920 ; 2921 return 0; 2922} 2923_ACEOF 2924rm -f conftest.$ac_objext 2925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2926 (eval $ac_compile) 2>conftest.er1 2927 ac_status=$? 2928 grep -v '^ *+' conftest.er1 >conftest.err 2929 rm -f conftest.er1 2930 cat conftest.err >&5 2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2932 (exit $ac_status); } && 2933 { ac_try='test -z "$ac_c_werror_flag" 2934 || test ! -s conftest.err' 2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2936 (eval $ac_try) 2>&5 2937 ac_status=$? 2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2939 (exit $ac_status); }; } && 2940 { ac_try='test -s conftest.$ac_objext' 2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2942 (eval $ac_try) 2>&5 2943 ac_status=$? 2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2945 (exit $ac_status); }; }; then 2946 break 2947else 2948 echo "$as_me: failed program was:" >&5 2949sed 's/^/| /' conftest.$ac_ext >&5 2950 2951fi 2952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2953 cat >conftest.$ac_ext <<_ACEOF 2954/* confdefs.h. */ 2955_ACEOF 2956cat confdefs.h >>conftest.$ac_ext 2957cat >>conftest.$ac_ext <<_ACEOF 2958/* end confdefs.h. */ 2959#define _LARGEFILE_SOURCE 1 2960#include <stdio.h> 2961int 2962main () 2963{ 2964return !fseeko; 2965 ; 2966 return 0; 2967} 2968_ACEOF 2969rm -f conftest.$ac_objext 2970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2971 (eval $ac_compile) 2>conftest.er1 2972 ac_status=$? 2973 grep -v '^ *+' conftest.er1 >conftest.err 2974 rm -f conftest.er1 2975 cat conftest.err >&5 2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2977 (exit $ac_status); } && 2978 { ac_try='test -z "$ac_c_werror_flag" 2979 || test ! -s conftest.err' 2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2981 (eval $ac_try) 2>&5 2982 ac_status=$? 2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2984 (exit $ac_status); }; } && 2985 { ac_try='test -s conftest.$ac_objext' 2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2987 (eval $ac_try) 2>&5 2988 ac_status=$? 2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2990 (exit $ac_status); }; }; then 2991 ac_cv_sys_largefile_source=1; break 2992else 2993 echo "$as_me: failed program was:" >&5 2994sed 's/^/| /' conftest.$ac_ext >&5 2995 2996fi 2997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2998 break 2999done 3000fi 3001echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 3002echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 3003if test "$ac_cv_sys_largefile_source" != no; then 3004 3005cat >>confdefs.h <<_ACEOF 3006#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 3007_ACEOF 3008 3009fi 3010rm -f conftest* 3011 3012# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 3013# in glibc 2.1.3, but that breaks too many other things. 3014# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 3015echo "$as_me:$LINENO: checking for fseeko" >&5 3016echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 3017if test "${ac_cv_func_fseeko+set}" = set; then 3018 echo $ECHO_N "(cached) $ECHO_C" >&6 3019else 3020 cat >conftest.$ac_ext <<_ACEOF 3021/* confdefs.h. */ 3022_ACEOF 3023cat confdefs.h >>conftest.$ac_ext 3024cat >>conftest.$ac_ext <<_ACEOF 3025/* end confdefs.h. */ 3026#include <stdio.h> 3027int 3028main () 3029{ 3030return fseeko && fseeko (stdin, 0, 0); 3031 ; 3032 return 0; 3033} 3034_ACEOF 3035rm -f conftest.$ac_objext conftest$ac_exeext 3036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3037 (eval $ac_link) 2>conftest.er1 3038 ac_status=$? 3039 grep -v '^ *+' conftest.er1 >conftest.err 3040 rm -f conftest.er1 3041 cat conftest.err >&5 3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3043 (exit $ac_status); } && 3044 { ac_try='test -z "$ac_c_werror_flag" 3045 || test ! -s conftest.err' 3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3047 (eval $ac_try) 2>&5 3048 ac_status=$? 3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3050 (exit $ac_status); }; } && 3051 { ac_try='test -s conftest$ac_exeext' 3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3053 (eval $ac_try) 2>&5 3054 ac_status=$? 3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3056 (exit $ac_status); }; }; then 3057 ac_cv_func_fseeko=yes 3058else 3059 echo "$as_me: failed program was:" >&5 3060sed 's/^/| /' conftest.$ac_ext >&5 3061 3062ac_cv_func_fseeko=no 3063fi 3064rm -f conftest.err conftest.$ac_objext \ 3065 conftest$ac_exeext conftest.$ac_ext 3066fi 3067echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 3068echo "${ECHO_T}$ac_cv_func_fseeko" >&6 3069if test $ac_cv_func_fseeko = yes; then 3070 3071cat >>confdefs.h <<\_ACEOF 3072#define HAVE_FSEEKO 1 3073_ACEOF 3074 3075fi 3076 3077ac_ext=c 3078ac_cpp='$CPP $CPPFLAGS' 3079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3081ac_compiler_gnu=$ac_cv_c_compiler_gnu 3082echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3083echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3084# On Suns, sometimes $CPP names a directory. 3085if test -n "$CPP" && test -d "$CPP"; then 3086 CPP= 3087fi 3088if test -z "$CPP"; then 3089 if test "${ac_cv_prog_CPP+set}" = set; then 3090 echo $ECHO_N "(cached) $ECHO_C" >&6 3091else 3092 # Double quotes because CPP needs to be expanded 3093 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3094 do 3095 ac_preproc_ok=false 3096for ac_c_preproc_warn_flag in '' yes 3097do 3098 # Use a header file that comes with gcc, so configuring glibc 3099 # with a fresh cross-compiler works. 3100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3101 # <limits.h> exists even on freestanding compilers. 3102 # On the NeXT, cc -E runs the code through the compiler's parser, 3103 # not just through cpp. "Syntax error" is here to catch this case. 3104 cat >conftest.$ac_ext <<_ACEOF 3105/* confdefs.h. */ 3106_ACEOF 3107cat confdefs.h >>conftest.$ac_ext 3108cat >>conftest.$ac_ext <<_ACEOF 3109/* end confdefs.h. */ 3110#ifdef __STDC__ 3111# include <limits.h> 3112#else 3113# include <assert.h> 3114#endif 3115 Syntax error 3116_ACEOF 3117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3119 ac_status=$? 3120 grep -v '^ *+' conftest.er1 >conftest.err 3121 rm -f conftest.er1 3122 cat conftest.err >&5 3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3124 (exit $ac_status); } >/dev/null; then 3125 if test -s conftest.err; then 3126 ac_cpp_err=$ac_c_preproc_warn_flag 3127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3128 else 3129 ac_cpp_err= 3130 fi 3131else 3132 ac_cpp_err=yes 3133fi 3134if test -z "$ac_cpp_err"; then 3135 : 3136else 3137 echo "$as_me: failed program was:" >&5 3138sed 's/^/| /' conftest.$ac_ext >&5 3139 3140 # Broken: fails on valid input. 3141continue 3142fi 3143rm -f conftest.err conftest.$ac_ext 3144 3145 # OK, works on sane cases. Now check whether non-existent headers 3146 # can be detected and how. 3147 cat >conftest.$ac_ext <<_ACEOF 3148/* confdefs.h. */ 3149_ACEOF 3150cat confdefs.h >>conftest.$ac_ext 3151cat >>conftest.$ac_ext <<_ACEOF 3152/* end confdefs.h. */ 3153#include <ac_nonexistent.h> 3154_ACEOF 3155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3157 ac_status=$? 3158 grep -v '^ *+' conftest.er1 >conftest.err 3159 rm -f conftest.er1 3160 cat conftest.err >&5 3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3162 (exit $ac_status); } >/dev/null; then 3163 if test -s conftest.err; then 3164 ac_cpp_err=$ac_c_preproc_warn_flag 3165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3166 else 3167 ac_cpp_err= 3168 fi 3169else 3170 ac_cpp_err=yes 3171fi 3172if test -z "$ac_cpp_err"; then 3173 # Broken: success on invalid input. 3174continue 3175else 3176 echo "$as_me: failed program was:" >&5 3177sed 's/^/| /' conftest.$ac_ext >&5 3178 3179 # Passes both tests. 3180ac_preproc_ok=: 3181break 3182fi 3183rm -f conftest.err conftest.$ac_ext 3184 3185done 3186# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3187rm -f conftest.err conftest.$ac_ext 3188if $ac_preproc_ok; then 3189 break 3190fi 3191 3192 done 3193 ac_cv_prog_CPP=$CPP 3194 3195fi 3196 CPP=$ac_cv_prog_CPP 3197else 3198 ac_cv_prog_CPP=$CPP 3199fi 3200echo "$as_me:$LINENO: result: $CPP" >&5 3201echo "${ECHO_T}$CPP" >&6 3202ac_preproc_ok=false 3203for ac_c_preproc_warn_flag in '' yes 3204do 3205 # Use a header file that comes with gcc, so configuring glibc 3206 # with a fresh cross-compiler works. 3207 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3208 # <limits.h> exists even on freestanding compilers. 3209 # On the NeXT, cc -E runs the code through the compiler's parser, 3210 # not just through cpp. "Syntax error" is here to catch this case. 3211 cat >conftest.$ac_ext <<_ACEOF 3212/* confdefs.h. */ 3213_ACEOF 3214cat confdefs.h >>conftest.$ac_ext 3215cat >>conftest.$ac_ext <<_ACEOF 3216/* end confdefs.h. */ 3217#ifdef __STDC__ 3218# include <limits.h> 3219#else 3220# include <assert.h> 3221#endif 3222 Syntax error 3223_ACEOF 3224if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3226 ac_status=$? 3227 grep -v '^ *+' conftest.er1 >conftest.err 3228 rm -f conftest.er1 3229 cat conftest.err >&5 3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3231 (exit $ac_status); } >/dev/null; then 3232 if test -s conftest.err; then 3233 ac_cpp_err=$ac_c_preproc_warn_flag 3234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3235 else 3236 ac_cpp_err= 3237 fi 3238else 3239 ac_cpp_err=yes 3240fi 3241if test -z "$ac_cpp_err"; then 3242 : 3243else 3244 echo "$as_me: failed program was:" >&5 3245sed 's/^/| /' conftest.$ac_ext >&5 3246 3247 # Broken: fails on valid input. 3248continue 3249fi 3250rm -f conftest.err conftest.$ac_ext 3251 3252 # OK, works on sane cases. Now check whether non-existent headers 3253 # can be detected and how. 3254 cat >conftest.$ac_ext <<_ACEOF 3255/* confdefs.h. */ 3256_ACEOF 3257cat confdefs.h >>conftest.$ac_ext 3258cat >>conftest.$ac_ext <<_ACEOF 3259/* end confdefs.h. */ 3260#include <ac_nonexistent.h> 3261_ACEOF 3262if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3264 ac_status=$? 3265 grep -v '^ *+' conftest.er1 >conftest.err 3266 rm -f conftest.er1 3267 cat conftest.err >&5 3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3269 (exit $ac_status); } >/dev/null; then 3270 if test -s conftest.err; then 3271 ac_cpp_err=$ac_c_preproc_warn_flag 3272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3273 else 3274 ac_cpp_err= 3275 fi 3276else 3277 ac_cpp_err=yes 3278fi 3279if test -z "$ac_cpp_err"; then 3280 # Broken: success on invalid input. 3281continue 3282else 3283 echo "$as_me: failed program was:" >&5 3284sed 's/^/| /' conftest.$ac_ext >&5 3285 3286 # Passes both tests. 3287ac_preproc_ok=: 3288break 3289fi 3290rm -f conftest.err conftest.$ac_ext 3291 3292done 3293# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3294rm -f conftest.err conftest.$ac_ext 3295if $ac_preproc_ok; then 3296 : 3297else 3298 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3299See \`config.log' for more details." >&5 3300echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3301See \`config.log' for more details." >&2;} 3302 { (exit 1); exit 1; }; } 3303fi 3304 3305ac_ext=c 3306ac_cpp='$CPP $CPPFLAGS' 3307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3309ac_compiler_gnu=$ac_cv_c_compiler_gnu 3310 3311 3312echo "$as_me:$LINENO: checking for egrep" >&5 3313echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3314if test "${ac_cv_prog_egrep+set}" = set; then 3315 echo $ECHO_N "(cached) $ECHO_C" >&6 3316else 3317 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3318 then ac_cv_prog_egrep='grep -E' 3319 else ac_cv_prog_egrep='egrep' 3320 fi 3321fi 3322echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3323echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3324 EGREP=$ac_cv_prog_egrep 3325 3326 3327echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3328echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3329if test "${ac_cv_header_stdc+set}" = set; then 3330 echo $ECHO_N "(cached) $ECHO_C" >&6 3331else 3332 cat >conftest.$ac_ext <<_ACEOF 3333/* confdefs.h. */ 3334_ACEOF 3335cat confdefs.h >>conftest.$ac_ext 3336cat >>conftest.$ac_ext <<_ACEOF 3337/* end confdefs.h. */ 3338#include <stdlib.h> 3339#include <stdarg.h> 3340#include <string.h> 3341#include <float.h> 3342 3343int 3344main () 3345{ 3346 3347 ; 3348 return 0; 3349} 3350_ACEOF 3351rm -f conftest.$ac_objext 3352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3353 (eval $ac_compile) 2>conftest.er1 3354 ac_status=$? 3355 grep -v '^ *+' conftest.er1 >conftest.err 3356 rm -f conftest.er1 3357 cat conftest.err >&5 3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3359 (exit $ac_status); } && 3360 { ac_try='test -z "$ac_c_werror_flag" 3361 || test ! -s conftest.err' 3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3363 (eval $ac_try) 2>&5 3364 ac_status=$? 3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3366 (exit $ac_status); }; } && 3367 { ac_try='test -s conftest.$ac_objext' 3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3369 (eval $ac_try) 2>&5 3370 ac_status=$? 3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3372 (exit $ac_status); }; }; then 3373 ac_cv_header_stdc=yes 3374else 3375 echo "$as_me: failed program was:" >&5 3376sed 's/^/| /' conftest.$ac_ext >&5 3377 3378ac_cv_header_stdc=no 3379fi 3380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3381 3382if test $ac_cv_header_stdc = yes; then 3383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3384 cat >conftest.$ac_ext <<_ACEOF 3385/* confdefs.h. */ 3386_ACEOF 3387cat confdefs.h >>conftest.$ac_ext 3388cat >>conftest.$ac_ext <<_ACEOF 3389/* end confdefs.h. */ 3390#include <string.h> 3391 3392_ACEOF 3393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3394 $EGREP "memchr" >/dev/null 2>&1; then 3395 : 3396else 3397 ac_cv_header_stdc=no 3398fi 3399rm -f conftest* 3400 3401fi 3402 3403if test $ac_cv_header_stdc = yes; then 3404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3405 cat >conftest.$ac_ext <<_ACEOF 3406/* confdefs.h. */ 3407_ACEOF 3408cat confdefs.h >>conftest.$ac_ext 3409cat >>conftest.$ac_ext <<_ACEOF 3410/* end confdefs.h. */ 3411#include <stdlib.h> 3412 3413_ACEOF 3414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3415 $EGREP "free" >/dev/null 2>&1; then 3416 : 3417else 3418 ac_cv_header_stdc=no 3419fi 3420rm -f conftest* 3421 3422fi 3423 3424if test $ac_cv_header_stdc = yes; then 3425 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3426 if test "$cross_compiling" = yes; then 3427 : 3428else 3429 cat >conftest.$ac_ext <<_ACEOF 3430/* confdefs.h. */ 3431_ACEOF 3432cat confdefs.h >>conftest.$ac_ext 3433cat >>conftest.$ac_ext <<_ACEOF 3434/* end confdefs.h. */ 3435#include <ctype.h> 3436#if ((' ' & 0x0FF) == 0x020) 3437# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3438# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3439#else 3440# define ISLOWER(c) \ 3441 (('a' <= (c) && (c) <= 'i') \ 3442 || ('j' <= (c) && (c) <= 'r') \ 3443 || ('s' <= (c) && (c) <= 'z')) 3444# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3445#endif 3446 3447#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3448int 3449main () 3450{ 3451 int i; 3452 for (i = 0; i < 256; i++) 3453 if (XOR (islower (i), ISLOWER (i)) 3454 || toupper (i) != TOUPPER (i)) 3455 exit(2); 3456 exit (0); 3457} 3458_ACEOF 3459rm -f conftest$ac_exeext 3460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3461 (eval $ac_link) 2>&5 3462 ac_status=$? 3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3466 (eval $ac_try) 2>&5 3467 ac_status=$? 3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3469 (exit $ac_status); }; }; then 3470 : 3471else 3472 echo "$as_me: program exited with status $ac_status" >&5 3473echo "$as_me: failed program was:" >&5 3474sed 's/^/| /' conftest.$ac_ext >&5 3475 3476( exit $ac_status ) 3477ac_cv_header_stdc=no 3478fi 3479rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3480fi 3481fi 3482fi 3483echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3484echo "${ECHO_T}$ac_cv_header_stdc" >&6 3485if test $ac_cv_header_stdc = yes; then 3486 3487cat >>confdefs.h <<\_ACEOF 3488#define STDC_HEADERS 1 3489_ACEOF 3490 3491fi 3492 3493# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3504 inttypes.h stdint.h unistd.h 3505do 3506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3507echo "$as_me:$LINENO: checking for $ac_header" >&5 3508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3509if eval "test \"\${$as_ac_Header+set}\" = set"; then 3510 echo $ECHO_N "(cached) $ECHO_C" >&6 3511else 3512 cat >conftest.$ac_ext <<_ACEOF 3513/* confdefs.h. */ 3514_ACEOF 3515cat confdefs.h >>conftest.$ac_ext 3516cat >>conftest.$ac_ext <<_ACEOF 3517/* end confdefs.h. */ 3518$ac_includes_default 3519 3520#include <$ac_header> 3521_ACEOF 3522rm -f conftest.$ac_objext 3523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3524 (eval $ac_compile) 2>conftest.er1 3525 ac_status=$? 3526 grep -v '^ *+' conftest.er1 >conftest.err 3527 rm -f conftest.er1 3528 cat conftest.err >&5 3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3530 (exit $ac_status); } && 3531 { ac_try='test -z "$ac_c_werror_flag" 3532 || test ! -s conftest.err' 3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3534 (eval $ac_try) 2>&5 3535 ac_status=$? 3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3537 (exit $ac_status); }; } && 3538 { ac_try='test -s conftest.$ac_objext' 3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3540 (eval $ac_try) 2>&5 3541 ac_status=$? 3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3543 (exit $ac_status); }; }; then 3544 eval "$as_ac_Header=yes" 3545else 3546 echo "$as_me: failed program was:" >&5 3547sed 's/^/| /' conftest.$ac_ext >&5 3548 3549eval "$as_ac_Header=no" 3550fi 3551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3552fi 3553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3555if test `eval echo '${'$as_ac_Header'}'` = yes; then 3556 cat >>confdefs.h <<_ACEOF 3557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3558_ACEOF 3559 3560fi 3561 3562done 3563 3564 3565echo "$as_me:$LINENO: checking for off_t" >&5 3566echo $ECHO_N "checking for off_t... $ECHO_C" >&6 3567if test "${ac_cv_type_off_t+set}" = set; then 3568 echo $ECHO_N "(cached) $ECHO_C" >&6 3569else 3570 cat >conftest.$ac_ext <<_ACEOF 3571/* confdefs.h. */ 3572_ACEOF 3573cat confdefs.h >>conftest.$ac_ext 3574cat >>conftest.$ac_ext <<_ACEOF 3575/* end confdefs.h. */ 3576$ac_includes_default 3577int 3578main () 3579{ 3580if ((off_t *) 0) 3581 return 0; 3582if (sizeof (off_t)) 3583 return 0; 3584 ; 3585 return 0; 3586} 3587_ACEOF 3588rm -f conftest.$ac_objext 3589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3590 (eval $ac_compile) 2>conftest.er1 3591 ac_status=$? 3592 grep -v '^ *+' conftest.er1 >conftest.err 3593 rm -f conftest.er1 3594 cat conftest.err >&5 3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3596 (exit $ac_status); } && 3597 { ac_try='test -z "$ac_c_werror_flag" 3598 || test ! -s conftest.err' 3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3600 (eval $ac_try) 2>&5 3601 ac_status=$? 3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3603 (exit $ac_status); }; } && 3604 { ac_try='test -s conftest.$ac_objext' 3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3606 (eval $ac_try) 2>&5 3607 ac_status=$? 3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3609 (exit $ac_status); }; }; then 3610 ac_cv_type_off_t=yes 3611else 3612 echo "$as_me: failed program was:" >&5 3613sed 's/^/| /' conftest.$ac_ext >&5 3614 3615ac_cv_type_off_t=no 3616fi 3617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3618fi 3619echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 3620echo "${ECHO_T}$ac_cv_type_off_t" >&6 3621if test $ac_cv_type_off_t = yes; then 3622 : 3623else 3624 3625cat >>confdefs.h <<_ACEOF 3626#define off_t long 3627_ACEOF 3628 3629fi 3630 3631 3632# Make sure we can run config.sub. 3633$ac_config_sub sun4 >/dev/null 2>&1 || 3634 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3635echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3636 { (exit 1); exit 1; }; } 3637 3638echo "$as_me:$LINENO: checking build system type" >&5 3639echo $ECHO_N "checking build system type... $ECHO_C" >&6 3640if test "${ac_cv_build+set}" = set; then 3641 echo $ECHO_N "(cached) $ECHO_C" >&6 3642else 3643 ac_cv_build_alias=$build_alias 3644test -z "$ac_cv_build_alias" && 3645 ac_cv_build_alias=`$ac_config_guess` 3646test -z "$ac_cv_build_alias" && 3647 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3648echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3649 { (exit 1); exit 1; }; } 3650ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3651 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3652echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3653 { (exit 1); exit 1; }; } 3654 3655fi 3656echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3657echo "${ECHO_T}$ac_cv_build" >&6 3658build=$ac_cv_build 3659build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3660build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3661build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3662 3663 3664 3665 echo "$as_me:$LINENO: checking host system type" >&5 3666echo $ECHO_N "checking host system type... $ECHO_C" >&6 3667if test "${ac_cv_host+set}" = set; then 3668 echo $ECHO_N "(cached) $ECHO_C" >&6 3669else 3670 ac_cv_host_alias=$host_alias 3671test -z "$ac_cv_host_alias" && 3672 ac_cv_host_alias=$ac_cv_build_alias 3673ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3674 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3675echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3676 { (exit 1); exit 1; }; } 3677 3678fi 3679echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3680echo "${ECHO_T}$ac_cv_host" >&6 3681host=$ac_cv_host 3682host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3683host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3684host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 echo "$as_me:$LINENO: checking host operating system" >&5 3695echo $ECHO_N "checking host operating system... $ECHO_C" >&6 3696 echo "$as_me:$LINENO: result: $host_os" >&5 3697echo "${ECHO_T}$host_os" >&6 3698 3699 SHOBJEXT="so" 3700 AREXT="a" 3701 3702 case $host_os in 3703 darwin*) 3704 SHOBJEXT="dylib" 3705 ;; 3706 hpux*) 3707 SHOBJEXT="sl" 3708 ;; 3709 mingw32msvc*) 3710 SHOBJEXT="dll" 3711 SHOBJFLAGS="-DPIC" 3712 CFLAGS="$CFLAGS -mno-cygwin -mms-bitfields" 3713 CPPFLAGS="$CPPFLAGS -mno-cygwin -mms-bitfields" 3714 SHOBJLDFLAGS='-shared -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a' 3715 ;; 3716 cygwin*) 3717 SHOBJEXT="dll" 3718 SHOBJFLAGS="-fPIC -DPIC" 3719 CFLAGS="$CFLAGS -mms-bitfields" 3720 CPPFLAGS="$CPPFLAGS -mms-bitfields" 3721 SHOBJLDFLAGS='-shared -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a' 3722 ;; 3723 3724 esac 3725 3726 3727 3728 3729 3730 3731 echo "$as_me:$LINENO: checking how to create shared objects" >&5 3732echo $ECHO_N "checking how to create shared objects... $ECHO_C" >&6 3733 3734 if test -z "$SHOBJFLAGS" -a -z "$SHOBJLDFLAGS"; then 3735 3736 3737 3738 3739 OLD_LDFLAGS="$LDFLAGS" 3740 SHOBJFLAGS="" 3741 3742 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -rdynamic" 3743 3744 cat >conftest.$ac_ext <<_ACEOF 3745/* confdefs.h. */ 3746_ACEOF 3747cat confdefs.h >>conftest.$ac_ext 3748cat >>conftest.$ac_ext <<_ACEOF 3749/* end confdefs.h. */ 3750#include <stdio.h> 3751int unrestst(void); 3752int 3753main () 3754{ 3755 printf("okay\n"); unrestst(); return(0); 3756 ; 3757 return 0; 3758} 3759_ACEOF 3760rm -f conftest.$ac_objext conftest$ac_exeext 3761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3762 (eval $ac_link) 2>conftest.er1 3763 ac_status=$? 3764 grep -v '^ *+' conftest.er1 >conftest.err 3765 rm -f conftest.er1 3766 cat conftest.err >&5 3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3768 (exit $ac_status); } && 3769 { ac_try='test -z "$ac_c_werror_flag" 3770 || test ! -s conftest.err' 3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3772 (eval $ac_try) 2>&5 3773 ac_status=$? 3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3775 (exit $ac_status); }; } && 3776 { ac_try='test -s conftest$ac_exeext' 3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3778 (eval $ac_try) 2>&5 3779 ac_status=$? 3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3781 (exit $ac_status); }; }; then 3782 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -rdynamic" 3783else 3784 echo "$as_me: failed program was:" >&5 3785sed 's/^/| /' conftest.$ac_ext >&5 3786 3787 3788 LDFLAGS="$OLD_LDFLAGS" 3789 3790 3791 3792 3793 3794 OLD_LDFLAGS="$LDFLAGS" 3795 SHOBJFLAGS="" 3796 3797 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared" 3798 3799 cat >conftest.$ac_ext <<_ACEOF 3800/* confdefs.h. */ 3801_ACEOF 3802cat confdefs.h >>conftest.$ac_ext 3803cat >>conftest.$ac_ext <<_ACEOF 3804/* end confdefs.h. */ 3805#include <stdio.h> 3806int unrestst(void); 3807int 3808main () 3809{ 3810 printf("okay\n"); unrestst(); return(0); 3811 ; 3812 return 0; 3813} 3814_ACEOF 3815rm -f conftest.$ac_objext conftest$ac_exeext 3816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3817 (eval $ac_link) 2>conftest.er1 3818 ac_status=$? 3819 grep -v '^ *+' conftest.er1 >conftest.err 3820 rm -f conftest.er1 3821 cat conftest.err >&5 3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3823 (exit $ac_status); } && 3824 { ac_try='test -z "$ac_c_werror_flag" 3825 || test ! -s conftest.err' 3826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3827 (eval $ac_try) 2>&5 3828 ac_status=$? 3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3830 (exit $ac_status); }; } && 3831 { ac_try='test -s conftest$ac_exeext' 3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3833 (eval $ac_try) 2>&5 3834 ac_status=$? 3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3836 (exit $ac_status); }; }; then 3837 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared" 3838else 3839 echo "$as_me: failed program was:" >&5 3840sed 's/^/| /' conftest.$ac_ext >&5 3841 3842 3843 LDFLAGS="$OLD_LDFLAGS" 3844 3845 3846 3847 3848 3849 OLD_LDFLAGS="$LDFLAGS" 3850 SHOBJFLAGS="" 3851 3852 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -rdynamic -mimpure-text" 3853 3854 cat >conftest.$ac_ext <<_ACEOF 3855/* confdefs.h. */ 3856_ACEOF 3857cat confdefs.h >>conftest.$ac_ext 3858cat >>conftest.$ac_ext <<_ACEOF 3859/* end confdefs.h. */ 3860#include <stdio.h> 3861int unrestst(void); 3862int 3863main () 3864{ 3865 printf("okay\n"); unrestst(); return(0); 3866 ; 3867 return 0; 3868} 3869_ACEOF 3870rm -f conftest.$ac_objext conftest$ac_exeext 3871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3872 (eval $ac_link) 2>conftest.er1 3873 ac_status=$? 3874 grep -v '^ *+' conftest.er1 >conftest.err 3875 rm -f conftest.er1 3876 cat conftest.err >&5 3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3878 (exit $ac_status); } && 3879 { ac_try='test -z "$ac_c_werror_flag" 3880 || test ! -s conftest.err' 3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3882 (eval $ac_try) 2>&5 3883 ac_status=$? 3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3885 (exit $ac_status); }; } && 3886 { ac_try='test -s conftest$ac_exeext' 3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3888 (eval $ac_try) 2>&5 3889 ac_status=$? 3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3891 (exit $ac_status); }; }; then 3892 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -rdynamic -mimpure-text" 3893else 3894 echo "$as_me: failed program was:" >&5 3895sed 's/^/| /' conftest.$ac_ext >&5 3896 3897 3898 LDFLAGS="$OLD_LDFLAGS" 3899 3900 3901 3902 3903 3904 OLD_LDFLAGS="$LDFLAGS" 3905 SHOBJFLAGS="" 3906 3907 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -mimpure-text" 3908 3909 cat >conftest.$ac_ext <<_ACEOF 3910/* confdefs.h. */ 3911_ACEOF 3912cat confdefs.h >>conftest.$ac_ext 3913cat >>conftest.$ac_ext <<_ACEOF 3914/* end confdefs.h. */ 3915#include <stdio.h> 3916int unrestst(void); 3917int 3918main () 3919{ 3920 printf("okay\n"); unrestst(); return(0); 3921 ; 3922 return 0; 3923} 3924_ACEOF 3925rm -f conftest.$ac_objext conftest$ac_exeext 3926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3927 (eval $ac_link) 2>conftest.er1 3928 ac_status=$? 3929 grep -v '^ *+' conftest.er1 >conftest.err 3930 rm -f conftest.er1 3931 cat conftest.err >&5 3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3933 (exit $ac_status); } && 3934 { ac_try='test -z "$ac_c_werror_flag" 3935 || test ! -s conftest.err' 3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3937 (eval $ac_try) 2>&5 3938 ac_status=$? 3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3940 (exit $ac_status); }; } && 3941 { ac_try='test -s conftest$ac_exeext' 3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3943 (eval $ac_try) 2>&5 3944 ac_status=$? 3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3946 (exit $ac_status); }; }; then 3947 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -mimpure-text" 3948else 3949 echo "$as_me: failed program was:" >&5 3950sed 's/^/| /' conftest.$ac_ext >&5 3951 3952 3953 LDFLAGS="$OLD_LDFLAGS" 3954 3955 3956 3957 3958 3959 OLD_LDFLAGS="$LDFLAGS" 3960 SHOBJFLAGS="" 3961 3962 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -rdynamic -Wl,-G,-z,textoff" 3963 3964 cat >conftest.$ac_ext <<_ACEOF 3965/* confdefs.h. */ 3966_ACEOF 3967cat confdefs.h >>conftest.$ac_ext 3968cat >>conftest.$ac_ext <<_ACEOF 3969/* end confdefs.h. */ 3970#include <stdio.h> 3971int unrestst(void); 3972int 3973main () 3974{ 3975 printf("okay\n"); unrestst(); return(0); 3976 ; 3977 return 0; 3978} 3979_ACEOF 3980rm -f conftest.$ac_objext conftest$ac_exeext 3981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3982 (eval $ac_link) 2>conftest.er1 3983 ac_status=$? 3984 grep -v '^ *+' conftest.er1 >conftest.err 3985 rm -f conftest.er1 3986 cat conftest.err >&5 3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3988 (exit $ac_status); } && 3989 { ac_try='test -z "$ac_c_werror_flag" 3990 || test ! -s conftest.err' 3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3992 (eval $ac_try) 2>&5 3993 ac_status=$? 3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3995 (exit $ac_status); }; } && 3996 { ac_try='test -s conftest$ac_exeext' 3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3998 (eval $ac_try) 2>&5 3999 ac_status=$? 4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4001 (exit $ac_status); }; }; then 4002 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -rdynamic -Wl,-G,-z,textoff" 4003else 4004 echo "$as_me: failed program was:" >&5 4005sed 's/^/| /' conftest.$ac_ext >&5 4006 4007 4008 LDFLAGS="$OLD_LDFLAGS" 4009 4010 4011 4012 4013 4014 OLD_LDFLAGS="$LDFLAGS" 4015 SHOBJFLAGS="" 4016 4017 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -Wl,-G,-z,textoff" 4018 4019 cat >conftest.$ac_ext <<_ACEOF 4020/* confdefs.h. */ 4021_ACEOF 4022cat confdefs.h >>conftest.$ac_ext 4023cat >>conftest.$ac_ext <<_ACEOF 4024/* end confdefs.h. */ 4025#include <stdio.h> 4026int unrestst(void); 4027int 4028main () 4029{ 4030 printf("okay\n"); unrestst(); return(0); 4031 ; 4032 return 0; 4033} 4034_ACEOF 4035rm -f conftest.$ac_objext conftest$ac_exeext 4036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4037 (eval $ac_link) 2>conftest.er1 4038 ac_status=$? 4039 grep -v '^ *+' conftest.er1 >conftest.err 4040 rm -f conftest.er1 4041 cat conftest.err >&5 4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4043 (exit $ac_status); } && 4044 { ac_try='test -z "$ac_c_werror_flag" 4045 || test ! -s conftest.err' 4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4047 (eval $ac_try) 2>&5 4048 ac_status=$? 4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4050 (exit $ac_status); }; } && 4051 { ac_try='test -s conftest$ac_exeext' 4052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4053 (eval $ac_try) 2>&5 4054 ac_status=$? 4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4056 (exit $ac_status); }; }; then 4057 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -Wl,-G,-z,textoff" 4058else 4059 echo "$as_me: failed program was:" >&5 4060sed 's/^/| /' conftest.$ac_ext >&5 4061 4062 4063 LDFLAGS="$OLD_LDFLAGS" 4064 4065 4066 4067 4068 4069 OLD_LDFLAGS="$LDFLAGS" 4070 SHOBJFLAGS="" 4071 4072 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -dynamiclib -flat_namespace -undefined suppress -bind_at_load" 4073 4074 cat >conftest.$ac_ext <<_ACEOF 4075/* confdefs.h. */ 4076_ACEOF 4077cat confdefs.h >>conftest.$ac_ext 4078cat >>conftest.$ac_ext <<_ACEOF 4079/* end confdefs.h. */ 4080#include <stdio.h> 4081int unrestst(void); 4082int 4083main () 4084{ 4085 printf("okay\n"); unrestst(); return(0); 4086 ; 4087 return 0; 4088} 4089_ACEOF 4090rm -f conftest.$ac_objext conftest$ac_exeext 4091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4092 (eval $ac_link) 2>conftest.er1 4093 ac_status=$? 4094 grep -v '^ *+' conftest.er1 >conftest.err 4095 rm -f conftest.er1 4096 cat conftest.err >&5 4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4098 (exit $ac_status); } && 4099 { ac_try='test -z "$ac_c_werror_flag" 4100 || test ! -s conftest.err' 4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4102 (eval $ac_try) 2>&5 4103 ac_status=$? 4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4105 (exit $ac_status); }; } && 4106 { ac_try='test -s conftest$ac_exeext' 4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4108 (eval $ac_try) 2>&5 4109 ac_status=$? 4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4111 (exit $ac_status); }; }; then 4112 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -dynamiclib -flat_namespace -undefined suppress -bind_at_load" 4113else 4114 echo "$as_me: failed program was:" >&5 4115sed 's/^/| /' conftest.$ac_ext >&5 4116 4117 4118 LDFLAGS="$OLD_LDFLAGS" 4119 4120 4121 4122 4123 4124 OLD_LDFLAGS="$LDFLAGS" 4125 SHOBJFLAGS="" 4126 4127 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -dynamiclib -flat_namespace -undefined suppress -bind_at_load" 4128 4129 cat >conftest.$ac_ext <<_ACEOF 4130/* confdefs.h. */ 4131_ACEOF 4132cat confdefs.h >>conftest.$ac_ext 4133cat >>conftest.$ac_ext <<_ACEOF 4134/* end confdefs.h. */ 4135#include <stdio.h> 4136int unrestst(void); 4137int 4138main () 4139{ 4140 printf("okay\n"); unrestst(); return(0); 4141 ; 4142 return 0; 4143} 4144_ACEOF 4145rm -f conftest.$ac_objext conftest$ac_exeext 4146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4147 (eval $ac_link) 2>conftest.er1 4148 ac_status=$? 4149 grep -v '^ *+' conftest.er1 >conftest.err 4150 rm -f conftest.er1 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 4157 (eval $ac_try) 2>&5 4158 ac_status=$? 4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4160 (exit $ac_status); }; } && 4161 { ac_try='test -s conftest$ac_exeext' 4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4163 (eval $ac_try) 2>&5 4164 ac_status=$? 4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4166 (exit $ac_status); }; }; then 4167 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-dynamiclib -flat_namespace -undefined suppress -bind_at_load" 4168else 4169 echo "$as_me: failed program was:" >&5 4170sed 's/^/| /' conftest.$ac_ext >&5 4171 4172 4173 LDFLAGS="$OLD_LDFLAGS" 4174 4175 echo "$as_me:$LINENO: result: cant" >&5 4176echo "${ECHO_T}cant" >&6 4177 { { echo "$as_me:$LINENO: error: We are unable to make shared objects." >&5 4178echo "$as_me: error: We are unable to make shared objects." >&2;} 4179 { (exit 1); exit 1; }; } 4180 4181 4182fi 4183rm -f conftest.err conftest.$ac_objext \ 4184 conftest$ac_exeext conftest.$ac_ext 4185 4186 LDFLAGS="$OLD_LDFLAGS" 4187 4188 4189 4190fi 4191rm -f conftest.err conftest.$ac_objext \ 4192 conftest$ac_exeext conftest.$ac_ext 4193 4194 LDFLAGS="$OLD_LDFLAGS" 4195 4196 4197 4198fi 4199rm -f conftest.err conftest.$ac_objext \ 4200 conftest$ac_exeext conftest.$ac_ext 4201 4202 LDFLAGS="$OLD_LDFLAGS" 4203 4204 4205 4206fi 4207rm -f conftest.err conftest.$ac_objext \ 4208 conftest$ac_exeext conftest.$ac_ext 4209 4210 LDFLAGS="$OLD_LDFLAGS" 4211 4212 4213 4214fi 4215rm -f conftest.err conftest.$ac_objext \ 4216 conftest$ac_exeext conftest.$ac_ext 4217 4218 LDFLAGS="$OLD_LDFLAGS" 4219 4220 4221 4222fi 4223rm -f conftest.err conftest.$ac_objext \ 4224 conftest$ac_exeext conftest.$ac_ext 4225 4226 LDFLAGS="$OLD_LDFLAGS" 4227 4228 4229 4230fi 4231rm -f conftest.err conftest.$ac_objext \ 4232 conftest$ac_exeext conftest.$ac_ext 4233 4234 LDFLAGS="$OLD_LDFLAGS" 4235 4236 4237 4238fi 4239rm -f conftest.err conftest.$ac_objext \ 4240 conftest$ac_exeext conftest.$ac_ext 4241 4242 LDFLAGS="$OLD_LDFLAGS" 4243 4244 fi 4245 4246 echo "$as_me:$LINENO: result: $SHOBJLDFLAGS $SHOBJFLAGS" >&5 4247echo "${ECHO_T}$SHOBJLDFLAGS $SHOBJFLAGS" >&6 4248 4249 4250 4251 SHLIBOBJS="" 4252 for obj in $LIBOBJS; do 4253 SHLIBOBJS="$SHLIBOBJS `echo $obj | sed 's/\.o$/_shr.o/g'`" 4254 done 4255 4256 4257 4258 4259 echo "$as_me:$LINENO: checking for dlopen" >&5 4260echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 4261if test "${ac_cv_func_dlopen+set}" = set; then 4262 echo $ECHO_N "(cached) $ECHO_C" >&6 4263else 4264 cat >conftest.$ac_ext <<_ACEOF 4265/* confdefs.h. */ 4266_ACEOF 4267cat confdefs.h >>conftest.$ac_ext 4268cat >>conftest.$ac_ext <<_ACEOF 4269/* end confdefs.h. */ 4270/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 4271 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4272#define dlopen innocuous_dlopen 4273 4274/* System header to define __stub macros and hopefully few prototypes, 4275 which can conflict with char dlopen (); below. 4276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4277 <limits.h> exists even on freestanding compilers. */ 4278 4279#ifdef __STDC__ 4280# include <limits.h> 4281#else 4282# include <assert.h> 4283#endif 4284 4285#undef dlopen 4286 4287/* Override any gcc2 internal prototype to avoid an error. */ 4288#ifdef __cplusplus 4289extern "C" 4290{ 4291#endif 4292/* We use char because int might match the return type of a gcc2 4293 builtin and then its argument prototype would still apply. */ 4294char dlopen (); 4295/* The GNU C library defines this for functions which it implements 4296 to always fail with ENOSYS. Some functions are actually named 4297 something starting with __ and the normal name is an alias. */ 4298#if defined (__stub_dlopen) || defined (__stub___dlopen) 4299choke me 4300#else 4301char (*f) () = dlopen; 4302#endif 4303#ifdef __cplusplus 4304} 4305#endif 4306 4307int 4308main () 4309{ 4310return f != dlopen; 4311 ; 4312 return 0; 4313} 4314_ACEOF 4315rm -f conftest.$ac_objext conftest$ac_exeext 4316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4317 (eval $ac_link) 2>conftest.er1 4318 ac_status=$? 4319 grep -v '^ *+' conftest.er1 >conftest.err 4320 rm -f conftest.er1 4321 cat conftest.err >&5 4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4323 (exit $ac_status); } && 4324 { ac_try='test -z "$ac_c_werror_flag" 4325 || test ! -s conftest.err' 4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4327 (eval $ac_try) 2>&5 4328 ac_status=$? 4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4330 (exit $ac_status); }; } && 4331 { ac_try='test -s conftest$ac_exeext' 4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4333 (eval $ac_try) 2>&5 4334 ac_status=$? 4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4336 (exit $ac_status); }; }; then 4337 ac_cv_func_dlopen=yes 4338else 4339 echo "$as_me: failed program was:" >&5 4340sed 's/^/| /' conftest.$ac_ext >&5 4341 4342ac_cv_func_dlopen=no 4343fi 4344rm -f conftest.err conftest.$ac_objext \ 4345 conftest$ac_exeext conftest.$ac_ext 4346fi 4347echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 4348echo "${ECHO_T}$ac_cv_func_dlopen" >&6 4349if test $ac_cv_func_dlopen = yes; then 4350 4351 4352cat >>confdefs.h <<\_ACEOF 4353#define HAVE_DLOPEN 1 4354_ACEOF 4355 4356 HAVEDLOPEN=yes 4357 4358fi 4359 4360 if test "$ac_cv_func_dlopen" = "no"; then 4361 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 4362echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 4363if test "${ac_cv_lib_dl_dlopen+set}" = set; then 4364 echo $ECHO_N "(cached) $ECHO_C" >&6 4365else 4366 ac_check_lib_save_LIBS=$LIBS 4367LIBS="-ldl $LIBS" 4368cat >conftest.$ac_ext <<_ACEOF 4369/* confdefs.h. */ 4370_ACEOF 4371cat confdefs.h >>conftest.$ac_ext 4372cat >>conftest.$ac_ext <<_ACEOF 4373/* end confdefs.h. */ 4374 4375/* Override any gcc2 internal prototype to avoid an error. */ 4376#ifdef __cplusplus 4377extern "C" 4378#endif 4379/* We use char because int might match the return type of a gcc2 4380 builtin and then its argument prototype would still apply. */ 4381char dlopen (); 4382int 4383main () 4384{ 4385dlopen (); 4386 ; 4387 return 0; 4388} 4389_ACEOF 4390rm -f conftest.$ac_objext conftest$ac_exeext 4391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4392 (eval $ac_link) 2>conftest.er1 4393 ac_status=$? 4394 grep -v '^ *+' conftest.er1 >conftest.err 4395 rm -f conftest.er1 4396 cat conftest.err >&5 4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4398 (exit $ac_status); } && 4399 { ac_try='test -z "$ac_c_werror_flag" 4400 || test ! -s conftest.err' 4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4402 (eval $ac_try) 2>&5 4403 ac_status=$? 4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4405 (exit $ac_status); }; } && 4406 { ac_try='test -s conftest$ac_exeext' 4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4408 (eval $ac_try) 2>&5 4409 ac_status=$? 4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4411 (exit $ac_status); }; }; then 4412 ac_cv_lib_dl_dlopen=yes 4413else 4414 echo "$as_me: failed program was:" >&5 4415sed 's/^/| /' conftest.$ac_ext >&5 4416 4417ac_cv_lib_dl_dlopen=no 4418fi 4419rm -f conftest.err conftest.$ac_objext \ 4420 conftest$ac_exeext conftest.$ac_ext 4421LIBS=$ac_check_lib_save_LIBS 4422fi 4423echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 4424echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 4425if test $ac_cv_lib_dl_dlopen = yes; then 4426 4427 4428cat >>confdefs.h <<\_ACEOF 4429#define HAVE_DLOPEN 1 4430_ACEOF 4431 4432 ALLMODLIBS=-ldl 4433 4434 HAVEDLOPEN=yes 4435 4436fi 4437 4438 fi 4439 4440 4441 4442 4443 4444 echo "$as_me:$LINENO: checking for main in -lz" >&5 4445echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6 4446if test "${ac_cv_lib_z_main+set}" = set; then 4447 echo $ECHO_N "(cached) $ECHO_C" >&6 4448else 4449 ac_check_lib_save_LIBS=$LIBS 4450LIBS="-lz $LIBS" 4451cat >conftest.$ac_ext <<_ACEOF 4452/* confdefs.h. */ 4453_ACEOF 4454cat confdefs.h >>conftest.$ac_ext 4455cat >>conftest.$ac_ext <<_ACEOF 4456/* end confdefs.h. */ 4457 4458 4459int 4460main () 4461{ 4462main (); 4463 ; 4464 return 0; 4465} 4466_ACEOF 4467rm -f conftest.$ac_objext conftest$ac_exeext 4468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4469 (eval $ac_link) 2>conftest.er1 4470 ac_status=$? 4471 grep -v '^ *+' conftest.er1 >conftest.err 4472 rm -f conftest.er1 4473 cat conftest.err >&5 4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4475 (exit $ac_status); } && 4476 { ac_try='test -z "$ac_c_werror_flag" 4477 || test ! -s conftest.err' 4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4479 (eval $ac_try) 2>&5 4480 ac_status=$? 4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4482 (exit $ac_status); }; } && 4483 { ac_try='test -s conftest$ac_exeext' 4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4485 (eval $ac_try) 2>&5 4486 ac_status=$? 4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4488 (exit $ac_status); }; }; then 4489 ac_cv_lib_z_main=yes 4490else 4491 echo "$as_me: failed program was:" >&5 4492sed 's/^/| /' conftest.$ac_ext >&5 4493 4494ac_cv_lib_z_main=no 4495fi 4496rm -f conftest.err conftest.$ac_objext \ 4497 conftest$ac_exeext conftest.$ac_ext 4498LIBS=$ac_check_lib_save_LIBS 4499fi 4500echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5 4501echo "${ECHO_T}$ac_cv_lib_z_main" >&6 4502if test $ac_cv_lib_z_main = yes; then 4503 4504 ALGO="comp_zlib.c comp_mzlib.c comp_mzlib2.c $ALGO" 4505 MODLIBS="-lz $MODLIBS" 4506 4507cat >>confdefs.h <<\_ACEOF 4508#define HAVE_LIBZ 4509_ACEOF 4510 4511 4512fi 4513 4514 4515 4516 4517 4518 4519 echo "$as_me:$LINENO: checking for main in -lbz2" >&5 4520echo $ECHO_N "checking for main in -lbz2... $ECHO_C" >&6 4521if test "${ac_cv_lib_bz2_main+set}" = set; then 4522 echo $ECHO_N "(cached) $ECHO_C" >&6 4523else 4524 ac_check_lib_save_LIBS=$LIBS 4525LIBS="-lbz2 $LIBS" 4526cat >conftest.$ac_ext <<_ACEOF 4527/* confdefs.h. */ 4528_ACEOF 4529cat confdefs.h >>conftest.$ac_ext 4530cat >>conftest.$ac_ext <<_ACEOF 4531/* end confdefs.h. */ 4532 4533 4534int 4535main () 4536{ 4537main (); 4538 ; 4539 return 0; 4540} 4541_ACEOF 4542rm -f conftest.$ac_objext conftest$ac_exeext 4543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4544 (eval $ac_link) 2>conftest.er1 4545 ac_status=$? 4546 grep -v '^ *+' conftest.er1 >conftest.err 4547 rm -f conftest.er1 4548 cat conftest.err >&5 4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4550 (exit $ac_status); } && 4551 { ac_try='test -z "$ac_c_werror_flag" 4552 || test ! -s conftest.err' 4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4554 (eval $ac_try) 2>&5 4555 ac_status=$? 4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4557 (exit $ac_status); }; } && 4558 { ac_try='test -s conftest$ac_exeext' 4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4560 (eval $ac_try) 2>&5 4561 ac_status=$? 4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4563 (exit $ac_status); }; }; then 4564 ac_cv_lib_bz2_main=yes 4565else 4566 echo "$as_me: failed program was:" >&5 4567sed 's/^/| /' conftest.$ac_ext >&5 4568 4569ac_cv_lib_bz2_main=no 4570fi 4571rm -f conftest.err conftest.$ac_objext \ 4572 conftest$ac_exeext conftest.$ac_ext 4573LIBS=$ac_check_lib_save_LIBS 4574fi 4575echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_main" >&5 4576echo "${ECHO_T}$ac_cv_lib_bz2_main" >&6 4577if test $ac_cv_lib_bz2_main = yes; then 4578 4579 ALGO="comp_bzlib.c $ALGO" 4580 MODLIBS="-lbz2 $MODLIBS" 4581 4582cat >>confdefs.h <<\_ACEOF 4583#define HAVE_LIBBZ2 4584_ACEOF 4585 4586 4587fi 4588 4589 4590 4591 4592 4593 4594 echo "$as_me:$LINENO: checking for main in -lmcrypt" >&5 4595echo $ECHO_N "checking for main in -lmcrypt... $ECHO_C" >&6 4596if test "${ac_cv_lib_mcrypt_main+set}" = set; then 4597 echo $ECHO_N "(cached) $ECHO_C" >&6 4598else 4599 ac_check_lib_save_LIBS=$LIBS 4600LIBS="-lmcrypt $LIBS" 4601cat >conftest.$ac_ext <<_ACEOF 4602/* confdefs.h. */ 4603_ACEOF 4604cat confdefs.h >>conftest.$ac_ext 4605cat >>conftest.$ac_ext <<_ACEOF 4606/* end confdefs.h. */ 4607 4608 4609int 4610main () 4611{ 4612main (); 4613 ; 4614 return 0; 4615} 4616_ACEOF 4617rm -f conftest.$ac_objext conftest$ac_exeext 4618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4619 (eval $ac_link) 2>conftest.er1 4620 ac_status=$? 4621 grep -v '^ *+' conftest.er1 >conftest.err 4622 rm -f conftest.er1 4623 cat conftest.err >&5 4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4625 (exit $ac_status); } && 4626 { ac_try='test -z "$ac_c_werror_flag" 4627 || test ! -s conftest.err' 4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4629 (eval $ac_try) 2>&5 4630 ac_status=$? 4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4632 (exit $ac_status); }; } && 4633 { ac_try='test -s conftest$ac_exeext' 4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4635 (eval $ac_try) 2>&5 4636 ac_status=$? 4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4638 (exit $ac_status); }; }; then 4639 ac_cv_lib_mcrypt_main=yes 4640else 4641 echo "$as_me: failed program was:" >&5 4642sed 's/^/| /' conftest.$ac_ext >&5 4643 4644ac_cv_lib_mcrypt_main=no 4645fi 4646rm -f conftest.err conftest.$ac_objext \ 4647 conftest$ac_exeext conftest.$ac_ext 4648LIBS=$ac_check_lib_save_LIBS 4649fi 4650echo "$as_me:$LINENO: result: $ac_cv_lib_mcrypt_main" >&5 4651echo "${ECHO_T}$ac_cv_lib_mcrypt_main" >&6 4652if test $ac_cv_lib_mcrypt_main = yes; then 4653 4654 ALGO="cipher_serpent.c $ALGO" 4655 MODLIBS="-lmcrypt $MODLIBS" 4656 4657cat >>confdefs.h <<\_ACEOF 4658#define HAVE_LIBMCRYPT 4659_ACEOF 4660 4661 4662fi 4663 4664 4665 4666 4667 4668 4669 echo "$as_me:$LINENO: checking for main in -llzo" >&5 4670echo $ECHO_N "checking for main in -llzo... $ECHO_C" >&6 4671if test "${ac_cv_lib_lzo_main+set}" = set; then 4672 echo $ECHO_N "(cached) $ECHO_C" >&6 4673else 4674 ac_check_lib_save_LIBS=$LIBS 4675LIBS="-llzo $LIBS" 4676cat >conftest.$ac_ext <<_ACEOF 4677/* confdefs.h. */ 4678_ACEOF 4679cat confdefs.h >>conftest.$ac_ext 4680cat >>conftest.$ac_ext <<_ACEOF 4681/* end confdefs.h. */ 4682 4683 4684int 4685main () 4686{ 4687main (); 4688 ; 4689 return 0; 4690} 4691_ACEOF 4692rm -f conftest.$ac_objext conftest$ac_exeext 4693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4694 (eval $ac_link) 2>conftest.er1 4695 ac_status=$? 4696 grep -v '^ *+' conftest.er1 >conftest.err 4697 rm -f conftest.er1 4698 cat conftest.err >&5 4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4700 (exit $ac_status); } && 4701 { ac_try='test -z "$ac_c_werror_flag" 4702 || test ! -s conftest.err' 4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4704 (eval $ac_try) 2>&5 4705 ac_status=$? 4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4707 (exit $ac_status); }; } && 4708 { ac_try='test -s conftest$ac_exeext' 4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4710 (eval $ac_try) 2>&5 4711 ac_status=$? 4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4713 (exit $ac_status); }; }; then 4714 ac_cv_lib_lzo_main=yes 4715else 4716 echo "$as_me: failed program was:" >&5 4717sed 's/^/| /' conftest.$ac_ext >&5 4718 4719ac_cv_lib_lzo_main=no 4720fi 4721rm -f conftest.err conftest.$ac_objext \ 4722 conftest$ac_exeext conftest.$ac_ext 4723LIBS=$ac_check_lib_save_LIBS 4724fi 4725echo "$as_me:$LINENO: result: $ac_cv_lib_lzo_main" >&5 4726echo "${ECHO_T}$ac_cv_lib_lzo_main" >&6 4727if test $ac_cv_lib_lzo_main = yes; then 4728 4729 ALGO="comp_lzoox.c comp_lzooy.c comp_lzota.c $ALGO" 4730 MODLIBSCOND="-llzo $(eval echo $(echo \$MODLIBSCOND))" 4731 4732cat >>confdefs.h <<\_ACEOF 4733#define HAVE_LIBLZO 4734_ACEOF 4735 4736 4737fi 4738 4739 4740 4741 4742 # Check whether --enable-chkvers or --disable-chkvers was given. 4743if test "${enable_chkvers+set}" = set; then 4744 enableval="$enable_chkvers" 4745 4746 case "$enableval" in 4747 no) 4748 ;; 4749 *) 4750 4751cat >>confdefs.h <<\_ACEOF 4752#define CHECK_VERSION 4753_ACEOF 4754 4755 ;; 4756 esac 4757 4758else 4759 4760cat >>confdefs.h <<\_ACEOF 4761#define CHECK_VERSION 4762_ACEOF 4763 4764fi; 4765 4766 4767 # Check whether --enable-network or --disable-network was given. 4768if test "${enable_network+set}" = set; then 4769 enableval="$enable_network" 4770 4771 case "$enableval" in 4772 no) 4773 4774cat >>confdefs.h <<\_ACEOF 4775#define NO_NETWORK 4776_ACEOF 4777 4778 ;; 4779 *) 4780 4781 echo "$as_me:$LINENO: checking for library containing socket" >&5 4782echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6 4783if test "${ac_cv_search_socket+set}" = set; then 4784 echo $ECHO_N "(cached) $ECHO_C" >&6 4785else 4786 ac_func_search_save_LIBS=$LIBS 4787ac_cv_search_socket=no 4788cat >conftest.$ac_ext <<_ACEOF 4789/* confdefs.h. */ 4790_ACEOF 4791cat confdefs.h >>conftest.$ac_ext 4792cat >>conftest.$ac_ext <<_ACEOF 4793/* end confdefs.h. */ 4794 4795/* Override any gcc2 internal prototype to avoid an error. */ 4796#ifdef __cplusplus 4797extern "C" 4798#endif 4799/* We use char because int might match the return type of a gcc2 4800 builtin and then its argument prototype would still apply. */ 4801char socket (); 4802int 4803main () 4804{ 4805socket (); 4806 ; 4807 return 0; 4808} 4809_ACEOF 4810rm -f conftest.$ac_objext conftest$ac_exeext 4811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4812 (eval $ac_link) 2>conftest.er1 4813 ac_status=$? 4814 grep -v '^ *+' conftest.er1 >conftest.err 4815 rm -f conftest.er1 4816 cat conftest.err >&5 4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4818 (exit $ac_status); } && 4819 { ac_try='test -z "$ac_c_werror_flag" 4820 || test ! -s conftest.err' 4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4822 (eval $ac_try) 2>&5 4823 ac_status=$? 4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4825 (exit $ac_status); }; } && 4826 { ac_try='test -s conftest$ac_exeext' 4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4828 (eval $ac_try) 2>&5 4829 ac_status=$? 4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4831 (exit $ac_status); }; }; then 4832 ac_cv_search_socket="none required" 4833else 4834 echo "$as_me: failed program was:" >&5 4835sed 's/^/| /' conftest.$ac_ext >&5 4836 4837fi 4838rm -f conftest.err conftest.$ac_objext \ 4839 conftest$ac_exeext conftest.$ac_ext 4840if test "$ac_cv_search_socket" = no; then 4841 for ac_lib in socket nsl ws2_32 wsock32; do 4842 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4843 cat >conftest.$ac_ext <<_ACEOF 4844/* confdefs.h. */ 4845_ACEOF 4846cat confdefs.h >>conftest.$ac_ext 4847cat >>conftest.$ac_ext <<_ACEOF 4848/* end confdefs.h. */ 4849 4850/* Override any gcc2 internal prototype to avoid an error. */ 4851#ifdef __cplusplus 4852extern "C" 4853#endif 4854/* We use char because int might match the return type of a gcc2 4855 builtin and then its argument prototype would still apply. */ 4856char socket (); 4857int 4858main () 4859{ 4860socket (); 4861 ; 4862 return 0; 4863} 4864_ACEOF 4865rm -f conftest.$ac_objext conftest$ac_exeext 4866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4867 (eval $ac_link) 2>conftest.er1 4868 ac_status=$? 4869 grep -v '^ *+' conftest.er1 >conftest.err 4870 rm -f conftest.er1 4871 cat conftest.err >&5 4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4873 (exit $ac_status); } && 4874 { ac_try='test -z "$ac_c_werror_flag" 4875 || test ! -s conftest.err' 4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4877 (eval $ac_try) 2>&5 4878 ac_status=$? 4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4880 (exit $ac_status); }; } && 4881 { ac_try='test -s conftest$ac_exeext' 4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4883 (eval $ac_try) 2>&5 4884 ac_status=$? 4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4886 (exit $ac_status); }; }; then 4887 ac_cv_search_socket="-l$ac_lib" 4888break 4889else 4890 echo "$as_me: failed program was:" >&5 4891sed 's/^/| /' conftest.$ac_ext >&5 4892 4893fi 4894rm -f conftest.err conftest.$ac_objext \ 4895 conftest$ac_exeext conftest.$ac_ext 4896 done 4897fi 4898LIBS=$ac_func_search_save_LIBS 4899fi 4900echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 4901echo "${ECHO_T}$ac_cv_search_socket" >&6 4902if test "$ac_cv_search_socket" != no; then 4903 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" 4904 4905cat >>confdefs.h <<\_ACEOF 4906#define HAVE_SOCKET 4907_ACEOF 4908 4909fi 4910 4911 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 4912echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 4913if test "${ac_cv_search_gethostbyname+set}" = set; then 4914 echo $ECHO_N "(cached) $ECHO_C" >&6 4915else 4916 ac_func_search_save_LIBS=$LIBS 4917ac_cv_search_gethostbyname=no 4918cat >conftest.$ac_ext <<_ACEOF 4919/* confdefs.h. */ 4920_ACEOF 4921cat confdefs.h >>conftest.$ac_ext 4922cat >>conftest.$ac_ext <<_ACEOF 4923/* end confdefs.h. */ 4924 4925/* Override any gcc2 internal prototype to avoid an error. */ 4926#ifdef __cplusplus 4927extern "C" 4928#endif 4929/* We use char because int might match the return type of a gcc2 4930 builtin and then its argument prototype would still apply. */ 4931char gethostbyname (); 4932int 4933main () 4934{ 4935gethostbyname (); 4936 ; 4937 return 0; 4938} 4939_ACEOF 4940rm -f conftest.$ac_objext conftest$ac_exeext 4941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4942 (eval $ac_link) 2>conftest.er1 4943 ac_status=$? 4944 grep -v '^ *+' conftest.er1 >conftest.err 4945 rm -f conftest.er1 4946 cat conftest.err >&5 4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4948 (exit $ac_status); } && 4949 { ac_try='test -z "$ac_c_werror_flag" 4950 || test ! -s conftest.err' 4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4952 (eval $ac_try) 2>&5 4953 ac_status=$? 4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4955 (exit $ac_status); }; } && 4956 { ac_try='test -s conftest$ac_exeext' 4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4958 (eval $ac_try) 2>&5 4959 ac_status=$? 4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4961 (exit $ac_status); }; }; then 4962 ac_cv_search_gethostbyname="none required" 4963else 4964 echo "$as_me: failed program was:" >&5 4965sed 's/^/| /' conftest.$ac_ext >&5 4966 4967fi 4968rm -f conftest.err conftest.$ac_objext \ 4969 conftest$ac_exeext conftest.$ac_ext 4970if test "$ac_cv_search_gethostbyname" = no; then 4971 for ac_lib in nsl ws2_32 wsock32; do 4972 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4973 cat >conftest.$ac_ext <<_ACEOF 4974/* confdefs.h. */ 4975_ACEOF 4976cat confdefs.h >>conftest.$ac_ext 4977cat >>conftest.$ac_ext <<_ACEOF 4978/* end confdefs.h. */ 4979 4980/* Override any gcc2 internal prototype to avoid an error. */ 4981#ifdef __cplusplus 4982extern "C" 4983#endif 4984/* We use char because int might match the return type of a gcc2 4985 builtin and then its argument prototype would still apply. */ 4986char gethostbyname (); 4987int 4988main () 4989{ 4990gethostbyname (); 4991 ; 4992 return 0; 4993} 4994_ACEOF 4995rm -f conftest.$ac_objext conftest$ac_exeext 4996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4997 (eval $ac_link) 2>conftest.er1 4998 ac_status=$? 4999 grep -v '^ *+' conftest.er1 >conftest.err 5000 rm -f conftest.er1 5001 cat conftest.err >&5 5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5003 (exit $ac_status); } && 5004 { ac_try='test -z "$ac_c_werror_flag" 5005 || test ! -s conftest.err' 5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5007 (eval $ac_try) 2>&5 5008 ac_status=$? 5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5010 (exit $ac_status); }; } && 5011 { ac_try='test -s conftest$ac_exeext' 5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5013 (eval $ac_try) 2>&5 5014 ac_status=$? 5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5016 (exit $ac_status); }; }; then 5017 ac_cv_search_gethostbyname="-l$ac_lib" 5018break 5019else 5020 echo "$as_me: failed program was:" >&5 5021sed 's/^/| /' conftest.$ac_ext >&5 5022 5023fi 5024rm -f conftest.err conftest.$ac_objext \ 5025 conftest$ac_exeext conftest.$ac_ext 5026 done 5027fi 5028LIBS=$ac_func_search_save_LIBS 5029fi 5030echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 5031echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 5032if test "$ac_cv_search_gethostbyname" != no; then 5033 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" 5034 5035cat >>confdefs.h <<\_ACEOF 5036#define HAVE_GETHOSTBYNAME 5037_ACEOF 5038 5039fi 5040 5041 echo "$as_me:$LINENO: checking for library containing inet_aton" >&5 5042echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6 5043if test "${ac_cv_search_inet_aton+set}" = set; then 5044 echo $ECHO_N "(cached) $ECHO_C" >&6 5045else 5046 ac_func_search_save_LIBS=$LIBS 5047ac_cv_search_inet_aton=no 5048cat >conftest.$ac_ext <<_ACEOF 5049/* confdefs.h. */ 5050_ACEOF 5051cat confdefs.h >>conftest.$ac_ext 5052cat >>conftest.$ac_ext <<_ACEOF 5053/* end confdefs.h. */ 5054 5055/* Override any gcc2 internal prototype to avoid an error. */ 5056#ifdef __cplusplus 5057extern "C" 5058#endif 5059/* We use char because int might match the return type of a gcc2 5060 builtin and then its argument prototype would still apply. */ 5061char inet_aton (); 5062int 5063main () 5064{ 5065inet_aton (); 5066 ; 5067 return 0; 5068} 5069_ACEOF 5070rm -f conftest.$ac_objext conftest$ac_exeext 5071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5072 (eval $ac_link) 2>conftest.er1 5073 ac_status=$? 5074 grep -v '^ *+' conftest.er1 >conftest.err 5075 rm -f conftest.er1 5076 cat conftest.err >&5 5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5078 (exit $ac_status); } && 5079 { ac_try='test -z "$ac_c_werror_flag" 5080 || test ! -s conftest.err' 5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5082 (eval $ac_try) 2>&5 5083 ac_status=$? 5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5085 (exit $ac_status); }; } && 5086 { ac_try='test -s conftest$ac_exeext' 5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5088 (eval $ac_try) 2>&5 5089 ac_status=$? 5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5091 (exit $ac_status); }; }; then 5092 ac_cv_search_inet_aton="none required" 5093else 5094 echo "$as_me: failed program was:" >&5 5095sed 's/^/| /' conftest.$ac_ext >&5 5096 5097fi 5098rm -f conftest.err conftest.$ac_objext \ 5099 conftest$ac_exeext conftest.$ac_ext 5100if test "$ac_cv_search_inet_aton" = no; then 5101 for ac_lib in xnet ws2_32 wsock32; do 5102 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5103 cat >conftest.$ac_ext <<_ACEOF 5104/* confdefs.h. */ 5105_ACEOF 5106cat confdefs.h >>conftest.$ac_ext 5107cat >>conftest.$ac_ext <<_ACEOF 5108/* end confdefs.h. */ 5109 5110/* Override any gcc2 internal prototype to avoid an error. */ 5111#ifdef __cplusplus 5112extern "C" 5113#endif 5114/* We use char because int might match the return type of a gcc2 5115 builtin and then its argument prototype would still apply. */ 5116char inet_aton (); 5117int 5118main () 5119{ 5120inet_aton (); 5121 ; 5122 return 0; 5123} 5124_ACEOF 5125rm -f conftest.$ac_objext conftest$ac_exeext 5126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5127 (eval $ac_link) 2>conftest.er1 5128 ac_status=$? 5129 grep -v '^ *+' conftest.er1 >conftest.err 5130 rm -f conftest.er1 5131 cat conftest.err >&5 5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5133 (exit $ac_status); } && 5134 { ac_try='test -z "$ac_c_werror_flag" 5135 || test ! -s conftest.err' 5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5137 (eval $ac_try) 2>&5 5138 ac_status=$? 5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5140 (exit $ac_status); }; } && 5141 { ac_try='test -s conftest$ac_exeext' 5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5143 (eval $ac_try) 2>&5 5144 ac_status=$? 5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5146 (exit $ac_status); }; }; then 5147 ac_cv_search_inet_aton="-l$ac_lib" 5148break 5149else 5150 echo "$as_me: failed program was:" >&5 5151sed 's/^/| /' conftest.$ac_ext >&5 5152 5153fi 5154rm -f conftest.err conftest.$ac_objext \ 5155 conftest$ac_exeext conftest.$ac_ext 5156 done 5157fi 5158LIBS=$ac_func_search_save_LIBS 5159fi 5160echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5 5161echo "${ECHO_T}$ac_cv_search_inet_aton" >&6 5162if test "$ac_cv_search_inet_aton" != no; then 5163 test "$ac_cv_search_inet_aton" = "none required" || LIBS="$ac_cv_search_inet_aton $LIBS" 5164 5165cat >>confdefs.h <<\_ACEOF 5166#define HAVE_INET_ATON 5167_ACEOF 5168 5169else 5170 echo "$as_me:$LINENO: checking for library containing inet_addr" >&5 5171echo $ECHO_N "checking for library containing inet_addr... $ECHO_C" >&6 5172if test "${ac_cv_search_inet_addr+set}" = set; then 5173 echo $ECHO_N "(cached) $ECHO_C" >&6 5174else 5175 ac_func_search_save_LIBS=$LIBS 5176ac_cv_search_inet_addr=no 5177cat >conftest.$ac_ext <<_ACEOF 5178/* confdefs.h. */ 5179_ACEOF 5180cat confdefs.h >>conftest.$ac_ext 5181cat >>conftest.$ac_ext <<_ACEOF 5182/* end confdefs.h. */ 5183 5184/* Override any gcc2 internal prototype to avoid an error. */ 5185#ifdef __cplusplus 5186extern "C" 5187#endif 5188/* We use char because int might match the return type of a gcc2 5189 builtin and then its argument prototype would still apply. */ 5190char inet_addr (); 5191int 5192main () 5193{ 5194inet_addr (); 5195 ; 5196 return 0; 5197} 5198_ACEOF 5199rm -f conftest.$ac_objext conftest$ac_exeext 5200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5201 (eval $ac_link) 2>conftest.er1 5202 ac_status=$? 5203 grep -v '^ *+' conftest.er1 >conftest.err 5204 rm -f conftest.er1 5205 cat conftest.err >&5 5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5207 (exit $ac_status); } && 5208 { ac_try='test -z "$ac_c_werror_flag" 5209 || test ! -s conftest.err' 5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5211 (eval $ac_try) 2>&5 5212 ac_status=$? 5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5214 (exit $ac_status); }; } && 5215 { ac_try='test -s conftest$ac_exeext' 5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5217 (eval $ac_try) 2>&5 5218 ac_status=$? 5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5220 (exit $ac_status); }; }; then 5221 ac_cv_search_inet_addr="none required" 5222else 5223 echo "$as_me: failed program was:" >&5 5224sed 's/^/| /' conftest.$ac_ext >&5 5225 5226fi 5227rm -f conftest.err conftest.$ac_objext \ 5228 conftest$ac_exeext conftest.$ac_ext 5229if test "$ac_cv_search_inet_addr" = no; then 5230 for ac_lib in nsl ws2_32 wsock32; do 5231 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5232 cat >conftest.$ac_ext <<_ACEOF 5233/* confdefs.h. */ 5234_ACEOF 5235cat confdefs.h >>conftest.$ac_ext 5236cat >>conftest.$ac_ext <<_ACEOF 5237/* end confdefs.h. */ 5238 5239/* Override any gcc2 internal prototype to avoid an error. */ 5240#ifdef __cplusplus 5241extern "C" 5242#endif 5243/* We use char because int might match the return type of a gcc2 5244 builtin and then its argument prototype would still apply. */ 5245char inet_addr (); 5246int 5247main () 5248{ 5249inet_addr (); 5250 ; 5251 return 0; 5252} 5253_ACEOF 5254rm -f conftest.$ac_objext conftest$ac_exeext 5255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5256 (eval $ac_link) 2>conftest.er1 5257 ac_status=$? 5258 grep -v '^ *+' conftest.er1 >conftest.err 5259 rm -f conftest.er1 5260 cat conftest.err >&5 5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5262 (exit $ac_status); } && 5263 { ac_try='test -z "$ac_c_werror_flag" 5264 || test ! -s conftest.err' 5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5266 (eval $ac_try) 2>&5 5267 ac_status=$? 5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5269 (exit $ac_status); }; } && 5270 { ac_try='test -s conftest$ac_exeext' 5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5272 (eval $ac_try) 2>&5 5273 ac_status=$? 5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5275 (exit $ac_status); }; }; then 5276 ac_cv_search_inet_addr="-l$ac_lib" 5277break 5278else 5279 echo "$as_me: failed program was:" >&5 5280sed 's/^/| /' conftest.$ac_ext >&5 5281 5282fi 5283rm -f conftest.err conftest.$ac_objext \ 5284 conftest$ac_exeext conftest.$ac_ext 5285 done 5286fi 5287LIBS=$ac_func_search_save_LIBS 5288fi 5289echo "$as_me:$LINENO: result: $ac_cv_search_inet_addr" >&5 5290echo "${ECHO_T}$ac_cv_search_inet_addr" >&6 5291if test "$ac_cv_search_inet_addr" != no; then 5292 test "$ac_cv_search_inet_addr" = "none required" || LIBS="$ac_cv_search_inet_addr $LIBS" 5293 5294cat >>confdefs.h <<\_ACEOF 5295#define HAVE_INET_ADDR 5296_ACEOF 5297 5298fi 5299 5300fi 5301 5302 5303 ;; 5304 esac 5305 5306else 5307 5308 echo "$as_me:$LINENO: checking for library containing socket" >&5 5309echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6 5310if test "${ac_cv_search_socket+set}" = set; then 5311 echo $ECHO_N "(cached) $ECHO_C" >&6 5312else 5313 ac_func_search_save_LIBS=$LIBS 5314ac_cv_search_socket=no 5315cat >conftest.$ac_ext <<_ACEOF 5316/* confdefs.h. */ 5317_ACEOF 5318cat confdefs.h >>conftest.$ac_ext 5319cat >>conftest.$ac_ext <<_ACEOF 5320/* end confdefs.h. */ 5321 5322/* Override any gcc2 internal prototype to avoid an error. */ 5323#ifdef __cplusplus 5324extern "C" 5325#endif 5326/* We use char because int might match the return type of a gcc2 5327 builtin and then its argument prototype would still apply. */ 5328char socket (); 5329int 5330main () 5331{ 5332socket (); 5333 ; 5334 return 0; 5335} 5336_ACEOF 5337rm -f conftest.$ac_objext conftest$ac_exeext 5338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5339 (eval $ac_link) 2>conftest.er1 5340 ac_status=$? 5341 grep -v '^ *+' conftest.er1 >conftest.err 5342 rm -f conftest.er1 5343 cat conftest.err >&5 5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5345 (exit $ac_status); } && 5346 { ac_try='test -z "$ac_c_werror_flag" 5347 || test ! -s conftest.err' 5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5349 (eval $ac_try) 2>&5 5350 ac_status=$? 5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5352 (exit $ac_status); }; } && 5353 { ac_try='test -s conftest$ac_exeext' 5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5355 (eval $ac_try) 2>&5 5356 ac_status=$? 5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5358 (exit $ac_status); }; }; then 5359 ac_cv_search_socket="none required" 5360else 5361 echo "$as_me: failed program was:" >&5 5362sed 's/^/| /' conftest.$ac_ext >&5 5363 5364fi 5365rm -f conftest.err conftest.$ac_objext \ 5366 conftest$ac_exeext conftest.$ac_ext 5367if test "$ac_cv_search_socket" = no; then 5368 for ac_lib in socket nsl ws2_32 wsock32; do 5369 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5370 cat >conftest.$ac_ext <<_ACEOF 5371/* confdefs.h. */ 5372_ACEOF 5373cat confdefs.h >>conftest.$ac_ext 5374cat >>conftest.$ac_ext <<_ACEOF 5375/* end confdefs.h. */ 5376 5377/* Override any gcc2 internal prototype to avoid an error. */ 5378#ifdef __cplusplus 5379extern "C" 5380#endif 5381/* We use char because int might match the return type of a gcc2 5382 builtin and then its argument prototype would still apply. */ 5383char socket (); 5384int 5385main () 5386{ 5387socket (); 5388 ; 5389 return 0; 5390} 5391_ACEOF 5392rm -f conftest.$ac_objext conftest$ac_exeext 5393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5394 (eval $ac_link) 2>conftest.er1 5395 ac_status=$? 5396 grep -v '^ *+' conftest.er1 >conftest.err 5397 rm -f conftest.er1 5398 cat conftest.err >&5 5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5400 (exit $ac_status); } && 5401 { ac_try='test -z "$ac_c_werror_flag" 5402 || test ! -s conftest.err' 5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5404 (eval $ac_try) 2>&5 5405 ac_status=$? 5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5407 (exit $ac_status); }; } && 5408 { ac_try='test -s conftest$ac_exeext' 5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5410 (eval $ac_try) 2>&5 5411 ac_status=$? 5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5413 (exit $ac_status); }; }; then 5414 ac_cv_search_socket="-l$ac_lib" 5415break 5416else 5417 echo "$as_me: failed program was:" >&5 5418sed 's/^/| /' conftest.$ac_ext >&5 5419 5420fi 5421rm -f conftest.err conftest.$ac_objext \ 5422 conftest$ac_exeext conftest.$ac_ext 5423 done 5424fi 5425LIBS=$ac_func_search_save_LIBS 5426fi 5427echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 5428echo "${ECHO_T}$ac_cv_search_socket" >&6 5429if test "$ac_cv_search_socket" != no; then 5430 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" 5431 5432cat >>confdefs.h <<\_ACEOF 5433#define HAVE_SOCKET 5434_ACEOF 5435 5436fi 5437 5438 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 5439echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 5440if test "${ac_cv_search_gethostbyname+set}" = set; then 5441 echo $ECHO_N "(cached) $ECHO_C" >&6 5442else 5443 ac_func_search_save_LIBS=$LIBS 5444ac_cv_search_gethostbyname=no 5445cat >conftest.$ac_ext <<_ACEOF 5446/* confdefs.h. */ 5447_ACEOF 5448cat confdefs.h >>conftest.$ac_ext 5449cat >>conftest.$ac_ext <<_ACEOF 5450/* end confdefs.h. */ 5451 5452/* Override any gcc2 internal prototype to avoid an error. */ 5453#ifdef __cplusplus 5454extern "C" 5455#endif 5456/* We use char because int might match the return type of a gcc2 5457 builtin and then its argument prototype would still apply. */ 5458char gethostbyname (); 5459int 5460main () 5461{ 5462gethostbyname (); 5463 ; 5464 return 0; 5465} 5466_ACEOF 5467rm -f conftest.$ac_objext conftest$ac_exeext 5468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5469 (eval $ac_link) 2>conftest.er1 5470 ac_status=$? 5471 grep -v '^ *+' conftest.er1 >conftest.err 5472 rm -f conftest.er1 5473 cat conftest.err >&5 5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5475 (exit $ac_status); } && 5476 { ac_try='test -z "$ac_c_werror_flag" 5477 || test ! -s conftest.err' 5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5479 (eval $ac_try) 2>&5 5480 ac_status=$? 5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5482 (exit $ac_status); }; } && 5483 { ac_try='test -s conftest$ac_exeext' 5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5485 (eval $ac_try) 2>&5 5486 ac_status=$? 5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5488 (exit $ac_status); }; }; then 5489 ac_cv_search_gethostbyname="none required" 5490else 5491 echo "$as_me: failed program was:" >&5 5492sed 's/^/| /' conftest.$ac_ext >&5 5493 5494fi 5495rm -f conftest.err conftest.$ac_objext \ 5496 conftest$ac_exeext conftest.$ac_ext 5497if test "$ac_cv_search_gethostbyname" = no; then 5498 for ac_lib in nsl ws2_32 wsock32; do 5499 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5500 cat >conftest.$ac_ext <<_ACEOF 5501/* confdefs.h. */ 5502_ACEOF 5503cat confdefs.h >>conftest.$ac_ext 5504cat >>conftest.$ac_ext <<_ACEOF 5505/* end confdefs.h. */ 5506 5507/* Override any gcc2 internal prototype to avoid an error. */ 5508#ifdef __cplusplus 5509extern "C" 5510#endif 5511/* We use char because int might match the return type of a gcc2 5512 builtin and then its argument prototype would still apply. */ 5513char gethostbyname (); 5514int 5515main () 5516{ 5517gethostbyname (); 5518 ; 5519 return 0; 5520} 5521_ACEOF 5522rm -f conftest.$ac_objext conftest$ac_exeext 5523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5524 (eval $ac_link) 2>conftest.er1 5525 ac_status=$? 5526 grep -v '^ *+' conftest.er1 >conftest.err 5527 rm -f conftest.er1 5528 cat conftest.err >&5 5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5530 (exit $ac_status); } && 5531 { ac_try='test -z "$ac_c_werror_flag" 5532 || test ! -s conftest.err' 5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5534 (eval $ac_try) 2>&5 5535 ac_status=$? 5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5537 (exit $ac_status); }; } && 5538 { ac_try='test -s conftest$ac_exeext' 5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5540 (eval $ac_try) 2>&5 5541 ac_status=$? 5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5543 (exit $ac_status); }; }; then 5544 ac_cv_search_gethostbyname="-l$ac_lib" 5545break 5546else 5547 echo "$as_me: failed program was:" >&5 5548sed 's/^/| /' conftest.$ac_ext >&5 5549 5550fi 5551rm -f conftest.err conftest.$ac_objext \ 5552 conftest$ac_exeext conftest.$ac_ext 5553 done 5554fi 5555LIBS=$ac_func_search_save_LIBS 5556fi 5557echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 5558echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 5559if test "$ac_cv_search_gethostbyname" != no; then 5560 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" 5561 5562cat >>confdefs.h <<\_ACEOF 5563#define HAVE_GETHOSTBYNAME 5564_ACEOF 5565 5566fi 5567 5568 echo "$as_me:$LINENO: checking for library containing inet_aton" >&5 5569echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6 5570if test "${ac_cv_search_inet_aton+set}" = set; then 5571 echo $ECHO_N "(cached) $ECHO_C" >&6 5572else 5573 ac_func_search_save_LIBS=$LIBS 5574ac_cv_search_inet_aton=no 5575cat >conftest.$ac_ext <<_ACEOF 5576/* confdefs.h. */ 5577_ACEOF 5578cat confdefs.h >>conftest.$ac_ext 5579cat >>conftest.$ac_ext <<_ACEOF 5580/* end confdefs.h. */ 5581 5582/* Override any gcc2 internal prototype to avoid an error. */ 5583#ifdef __cplusplus 5584extern "C" 5585#endif 5586/* We use char because int might match the return type of a gcc2 5587 builtin and then its argument prototype would still apply. */ 5588char inet_aton (); 5589int 5590main () 5591{ 5592inet_aton (); 5593 ; 5594 return 0; 5595} 5596_ACEOF 5597rm -f conftest.$ac_objext conftest$ac_exeext 5598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5599 (eval $ac_link) 2>conftest.er1 5600 ac_status=$? 5601 grep -v '^ *+' conftest.er1 >conftest.err 5602 rm -f conftest.er1 5603 cat conftest.err >&5 5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5605 (exit $ac_status); } && 5606 { ac_try='test -z "$ac_c_werror_flag" 5607 || test ! -s conftest.err' 5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5609 (eval $ac_try) 2>&5 5610 ac_status=$? 5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5612 (exit $ac_status); }; } && 5613 { ac_try='test -s conftest$ac_exeext' 5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5615 (eval $ac_try) 2>&5 5616 ac_status=$? 5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5618 (exit $ac_status); }; }; then 5619 ac_cv_search_inet_aton="none required" 5620else 5621 echo "$as_me: failed program was:" >&5 5622sed 's/^/| /' conftest.$ac_ext >&5 5623 5624fi 5625rm -f conftest.err conftest.$ac_objext \ 5626 conftest$ac_exeext conftest.$ac_ext 5627if test "$ac_cv_search_inet_aton" = no; then 5628 for ac_lib in xnet ws2_32 wsock32; do 5629 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5630 cat >conftest.$ac_ext <<_ACEOF 5631/* confdefs.h. */ 5632_ACEOF 5633cat confdefs.h >>conftest.$ac_ext 5634cat >>conftest.$ac_ext <<_ACEOF 5635/* end confdefs.h. */ 5636 5637/* Override any gcc2 internal prototype to avoid an error. */ 5638#ifdef __cplusplus 5639extern "C" 5640#endif 5641/* We use char because int might match the return type of a gcc2 5642 builtin and then its argument prototype would still apply. */ 5643char inet_aton (); 5644int 5645main () 5646{ 5647inet_aton (); 5648 ; 5649 return 0; 5650} 5651_ACEOF 5652rm -f conftest.$ac_objext conftest$ac_exeext 5653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5654 (eval $ac_link) 2>conftest.er1 5655 ac_status=$? 5656 grep -v '^ *+' conftest.er1 >conftest.err 5657 rm -f conftest.er1 5658 cat conftest.err >&5 5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5660 (exit $ac_status); } && 5661 { ac_try='test -z "$ac_c_werror_flag" 5662 || test ! -s conftest.err' 5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5664 (eval $ac_try) 2>&5 5665 ac_status=$? 5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5667 (exit $ac_status); }; } && 5668 { ac_try='test -s conftest$ac_exeext' 5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5670 (eval $ac_try) 2>&5 5671 ac_status=$? 5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5673 (exit $ac_status); }; }; then 5674 ac_cv_search_inet_aton="-l$ac_lib" 5675break 5676else 5677 echo "$as_me: failed program was:" >&5 5678sed 's/^/| /' conftest.$ac_ext >&5 5679 5680fi 5681rm -f conftest.err conftest.$ac_objext \ 5682 conftest$ac_exeext conftest.$ac_ext 5683 done 5684fi 5685LIBS=$ac_func_search_save_LIBS 5686fi 5687echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5 5688echo "${ECHO_T}$ac_cv_search_inet_aton" >&6 5689if test "$ac_cv_search_inet_aton" != no; then 5690 test "$ac_cv_search_inet_aton" = "none required" || LIBS="$ac_cv_search_inet_aton $LIBS" 5691 5692cat >>confdefs.h <<\_ACEOF 5693#define HAVE_INET_ATON 5694_ACEOF 5695 5696else 5697 echo "$as_me:$LINENO: checking for library containing inet_addr" >&5 5698echo $ECHO_N "checking for library containing inet_addr... $ECHO_C" >&6 5699if test "${ac_cv_search_inet_addr+set}" = set; then 5700 echo $ECHO_N "(cached) $ECHO_C" >&6 5701else 5702 ac_func_search_save_LIBS=$LIBS 5703ac_cv_search_inet_addr=no 5704cat >conftest.$ac_ext <<_ACEOF 5705/* confdefs.h. */ 5706_ACEOF 5707cat confdefs.h >>conftest.$ac_ext 5708cat >>conftest.$ac_ext <<_ACEOF 5709/* end confdefs.h. */ 5710 5711/* Override any gcc2 internal prototype to avoid an error. */ 5712#ifdef __cplusplus 5713extern "C" 5714#endif 5715/* We use char because int might match the return type of a gcc2 5716 builtin and then its argument prototype would still apply. */ 5717char inet_addr (); 5718int 5719main () 5720{ 5721inet_addr (); 5722 ; 5723 return 0; 5724} 5725_ACEOF 5726rm -f conftest.$ac_objext conftest$ac_exeext 5727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5728 (eval $ac_link) 2>conftest.er1 5729 ac_status=$? 5730 grep -v '^ *+' conftest.er1 >conftest.err 5731 rm -f conftest.er1 5732 cat conftest.err >&5 5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5734 (exit $ac_status); } && 5735 { ac_try='test -z "$ac_c_werror_flag" 5736 || test ! -s conftest.err' 5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5738 (eval $ac_try) 2>&5 5739 ac_status=$? 5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5741 (exit $ac_status); }; } && 5742 { ac_try='test -s conftest$ac_exeext' 5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5744 (eval $ac_try) 2>&5 5745 ac_status=$? 5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5747 (exit $ac_status); }; }; then 5748 ac_cv_search_inet_addr="none required" 5749else 5750 echo "$as_me: failed program was:" >&5 5751sed 's/^/| /' conftest.$ac_ext >&5 5752 5753fi 5754rm -f conftest.err conftest.$ac_objext \ 5755 conftest$ac_exeext conftest.$ac_ext 5756if test "$ac_cv_search_inet_addr" = no; then 5757 for ac_lib in nsl ws2_32 wsock32; do 5758 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5759 cat >conftest.$ac_ext <<_ACEOF 5760/* confdefs.h. */ 5761_ACEOF 5762cat confdefs.h >>conftest.$ac_ext 5763cat >>conftest.$ac_ext <<_ACEOF 5764/* end confdefs.h. */ 5765 5766/* Override any gcc2 internal prototype to avoid an error. */ 5767#ifdef __cplusplus 5768extern "C" 5769#endif 5770/* We use char because int might match the return type of a gcc2 5771 builtin and then its argument prototype would still apply. */ 5772char inet_addr (); 5773int 5774main () 5775{ 5776inet_addr (); 5777 ; 5778 return 0; 5779} 5780_ACEOF 5781rm -f conftest.$ac_objext conftest$ac_exeext 5782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5783 (eval $ac_link) 2>conftest.er1 5784 ac_status=$? 5785 grep -v '^ *+' conftest.er1 >conftest.err 5786 rm -f conftest.er1 5787 cat conftest.err >&5 5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5789 (exit $ac_status); } && 5790 { ac_try='test -z "$ac_c_werror_flag" 5791 || test ! -s conftest.err' 5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5793 (eval $ac_try) 2>&5 5794 ac_status=$? 5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5796 (exit $ac_status); }; } && 5797 { ac_try='test -s conftest$ac_exeext' 5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5799 (eval $ac_try) 2>&5 5800 ac_status=$? 5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5802 (exit $ac_status); }; }; then 5803 ac_cv_search_inet_addr="-l$ac_lib" 5804break 5805else 5806 echo "$as_me: failed program was:" >&5 5807sed 's/^/| /' conftest.$ac_ext >&5 5808 5809fi 5810rm -f conftest.err conftest.$ac_objext \ 5811 conftest$ac_exeext conftest.$ac_ext 5812 done 5813fi 5814LIBS=$ac_func_search_save_LIBS 5815fi 5816echo "$as_me:$LINENO: result: $ac_cv_search_inet_addr" >&5 5817echo "${ECHO_T}$ac_cv_search_inet_addr" >&6 5818if test "$ac_cv_search_inet_addr" != no; then 5819 test "$ac_cv_search_inet_addr" = "none required" || LIBS="$ac_cv_search_inet_addr $LIBS" 5820 5821cat >>confdefs.h <<\_ACEOF 5822#define HAVE_INET_ADDR 5823_ACEOF 5824 5825fi 5826 5827fi 5828 5829 5830fi; 5831 5832 5833 # Check whether --enable-debug or --disable-debug was given. 5834if test "${enable_debug+set}" = set; then 5835 enableval="$enable_debug" 5836 5837 if test "$enable_version" != "no"; then 5838 5839 ALGO="$ALGO \$(DEBUGALGO)" 5840 5841cat >>confdefs.h <<\_ACEOF 5842#define DEBUG 1 5843_ACEOF 5844 5845 5846 fi 5847 5848else 5849 5850 case "`uname -n`" in 5851 rkeene | unleaded | *.saurik.com ) 5852 5853 ALGO="$ALGO \$(DEBUGALGO)" 5854 5855cat >>confdefs.h <<\_ACEOF 5856#define DEBUG 1 5857_ACEOF 5858 5859 5860 ;; 5861 esac 5862 5863fi; 5864 5865 5866 5867 5868 5869 5870 5871 echo "$as_me:$LINENO: checking for dlopen" >&5 5872echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 5873if test "${ac_cv_func_dlopen+set}" = set; then 5874 echo $ECHO_N "(cached) $ECHO_C" >&6 5875else 5876 cat >conftest.$ac_ext <<_ACEOF 5877/* confdefs.h. */ 5878_ACEOF 5879cat confdefs.h >>conftest.$ac_ext 5880cat >>conftest.$ac_ext <<_ACEOF 5881/* end confdefs.h. */ 5882/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 5883 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5884#define dlopen innocuous_dlopen 5885 5886/* System header to define __stub macros and hopefully few prototypes, 5887 which can conflict with char dlopen (); below. 5888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5889 <limits.h> exists even on freestanding compilers. */ 5890 5891#ifdef __STDC__ 5892# include <limits.h> 5893#else 5894# include <assert.h> 5895#endif 5896 5897#undef dlopen 5898 5899/* Override any gcc2 internal prototype to avoid an error. */ 5900#ifdef __cplusplus 5901extern "C" 5902{ 5903#endif 5904/* We use char because int might match the return type of a gcc2 5905 builtin and then its argument prototype would still apply. */ 5906char dlopen (); 5907/* The GNU C library defines this for functions which it implements 5908 to always fail with ENOSYS. Some functions are actually named 5909 something starting with __ and the normal name is an alias. */ 5910#if defined (__stub_dlopen) || defined (__stub___dlopen) 5911choke me 5912#else 5913char (*f) () = dlopen; 5914#endif 5915#ifdef __cplusplus 5916} 5917#endif 5918 5919int 5920main () 5921{ 5922return f != dlopen; 5923 ; 5924 return 0; 5925} 5926_ACEOF 5927rm -f conftest.$ac_objext conftest$ac_exeext 5928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5929 (eval $ac_link) 2>conftest.er1 5930 ac_status=$? 5931 grep -v '^ *+' conftest.er1 >conftest.err 5932 rm -f conftest.er1 5933 cat conftest.err >&5 5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5935 (exit $ac_status); } && 5936 { ac_try='test -z "$ac_c_werror_flag" 5937 || test ! -s conftest.err' 5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5939 (eval $ac_try) 2>&5 5940 ac_status=$? 5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5942 (exit $ac_status); }; } && 5943 { ac_try='test -s conftest$ac_exeext' 5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5945 (eval $ac_try) 2>&5 5946 ac_status=$? 5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5948 (exit $ac_status); }; }; then 5949 ac_cv_func_dlopen=yes 5950else 5951 echo "$as_me: failed program was:" >&5 5952sed 's/^/| /' conftest.$ac_ext >&5 5953 5954ac_cv_func_dlopen=no 5955fi 5956rm -f conftest.err conftest.$ac_objext \ 5957 conftest$ac_exeext conftest.$ac_ext 5958fi 5959echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 5960echo "${ECHO_T}$ac_cv_func_dlopen" >&6 5961if test $ac_cv_func_dlopen = yes; then 5962 5963 5964cat >>confdefs.h <<\_ACEOF 5965#define HAVE_DLOPEN 1 5966_ACEOF 5967 5968 HAVEDLOPEN=yes 5969 5970fi 5971 5972 if test "$ac_cv_func_dlopen" = "no"; then 5973 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 5974echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 5975if test "${ac_cv_lib_dl_dlopen+set}" = set; then 5976 echo $ECHO_N "(cached) $ECHO_C" >&6 5977else 5978 ac_check_lib_save_LIBS=$LIBS 5979LIBS="-ldl $LIBS" 5980cat >conftest.$ac_ext <<_ACEOF 5981/* confdefs.h. */ 5982_ACEOF 5983cat confdefs.h >>conftest.$ac_ext 5984cat >>conftest.$ac_ext <<_ACEOF 5985/* end confdefs.h. */ 5986 5987/* Override any gcc2 internal prototype to avoid an error. */ 5988#ifdef __cplusplus 5989extern "C" 5990#endif 5991/* We use char because int might match the return type of a gcc2 5992 builtin and then its argument prototype would still apply. */ 5993char dlopen (); 5994int 5995main () 5996{ 5997dlopen (); 5998 ; 5999 return 0; 6000} 6001_ACEOF 6002rm -f conftest.$ac_objext conftest$ac_exeext 6003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6004 (eval $ac_link) 2>conftest.er1 6005 ac_status=$? 6006 grep -v '^ *+' conftest.er1 >conftest.err 6007 rm -f conftest.er1 6008 cat conftest.err >&5 6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6010 (exit $ac_status); } && 6011 { ac_try='test -z "$ac_c_werror_flag" 6012 || test ! -s conftest.err' 6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6014 (eval $ac_try) 2>&5 6015 ac_status=$? 6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6017 (exit $ac_status); }; } && 6018 { ac_try='test -s conftest$ac_exeext' 6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6020 (eval $ac_try) 2>&5 6021 ac_status=$? 6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6023 (exit $ac_status); }; }; then 6024 ac_cv_lib_dl_dlopen=yes 6025else 6026 echo "$as_me: failed program was:" >&5 6027sed 's/^/| /' conftest.$ac_ext >&5 6028 6029ac_cv_lib_dl_dlopen=no 6030fi 6031rm -f conftest.err conftest.$ac_objext \ 6032 conftest$ac_exeext conftest.$ac_ext 6033LIBS=$ac_check_lib_save_LIBS 6034fi 6035echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 6036echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 6037if test $ac_cv_lib_dl_dlopen = yes; then 6038 6039 6040cat >>confdefs.h <<\_ACEOF 6041#define HAVE_DLOPEN 1 6042_ACEOF 6043 6044 ALLMODLIBS=-ldl 6045 6046 HAVEDLOPEN=yes 6047 6048fi 6049 6050 fi 6051 6052 echo "$as_me:$LINENO: checking to use modules" >&5 6053echo $ECHO_N "checking to use modules... $ECHO_C" >&6 6054 # Check whether --enable-modules or --disable-modules was given. 6055if test "${enable_modules+set}" = set; then 6056 enableval="$enable_modules" 6057 6058 case "$enableval" in 6059 no) 6060 echo "$as_me:$LINENO: result: no" >&5 6061echo "${ECHO_T}no" >&6 6062 6063 DEFAULT="static" 6064 MODS="# " 6065 6066 ;; 6067 *) 6068 if test "$HAVEDLOPEN" = yes; then 6069 echo "$as_me:$LINENO: result: yes" >&5 6070echo "${ECHO_T}yes" >&6 6071 6072cat >>confdefs.h <<\_ACEOF 6073#define USE_MODULES 1 6074_ACEOF 6075 6076 NOMODS="#" 6077 DEFAULT="module" 6078 else 6079 echo "$as_me:$LINENO: result: can't" >&5 6080echo "${ECHO_T}can't" >&6 6081 6082 DEFAULT="static" 6083 MODS="# " 6084 6085 fi 6086 ;; 6087 esac 6088 6089else 6090 6091 if test "$HAVEDLOPEN" = yes; then 6092 echo "$as_me:$LINENO: result: yes" >&5 6093echo "${ECHO_T}yes" >&6 6094 6095cat >>confdefs.h <<\_ACEOF 6096#define USE_MODULES 1 6097_ACEOF 6098 6099 NOMODS="#" 6100 DEFAULT="module" 6101 else 6102 echo "$as_me:$LINENO: result: can't" >&5 6103echo "${ECHO_T}can't" >&6 6104 6105 DEFAULT="static" 6106 MODS="# " 6107 6108 fi 6109 6110fi; 6111 6112 6113 # Check whether --enable-debianupgrade or --disable-debianupgrade was given. 6114if test "${enable_debianupgrade+set}" = set; then 6115 enableval="$enable_debianupgrade" 6116 6117 case "$enableval" in 6118 no) 6119 ;; 6120 *) 6121 6122cat >>confdefs.h <<\_ACEOF 6123#define DACT_DEBIAN_UPGRADE_PROC 6124_ACEOF 6125 6126 ;; 6127 esac 6128 6129fi; 6130 6131 6132 if test "$cross_compiling" = "no"; then 6133 echo "$as_me:$LINENO: checking to see if you have /dev/urandom" >&5 6134echo $ECHO_N "checking to see if you have /dev/urandom... $ECHO_C" >&6 6135 if test -r "/dev/urandom"; then 6136 echo "$as_me:$LINENO: result: yes" >&5 6137echo "${ECHO_T}yes" >&6 6138 6139cat >>confdefs.h <<\_ACEOF 6140#define HAVE_DEV_URANDOM 6141_ACEOF 6142 6143 else 6144 echo "$as_me:$LINENO: result: no" >&5 6145echo "${ECHO_T}no" >&6 6146 fi 6147 fi 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175for ac_header in zlib.h getopt.h stdio.h strings.h string.h unistd.h stdint.h inttypes.h bzlib.h sys/time.h sys/utsname.h sys/socket.h sys/wait.h lzoconf.h lzo1x.h lzo1y.h lzo2a.h dirent.h mcrypt.h dlfcn.h stdarg.h netinet/in.h arpa/inet.h netdb.h errno.h 6176do 6177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6178if eval "test \"\${$as_ac_Header+set}\" = set"; then 6179 echo "$as_me:$LINENO: checking for $ac_header" >&5 6180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6181if eval "test \"\${$as_ac_Header+set}\" = set"; then 6182 echo $ECHO_N "(cached) $ECHO_C" >&6 6183fi 6184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6186else 6187 # Is the header compilable? 6188echo "$as_me:$LINENO: checking $ac_header usability" >&5 6189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6190cat >conftest.$ac_ext <<_ACEOF 6191/* confdefs.h. */ 6192_ACEOF 6193cat confdefs.h >>conftest.$ac_ext 6194cat >>conftest.$ac_ext <<_ACEOF 6195/* end confdefs.h. */ 6196$ac_includes_default 6197#include <$ac_header> 6198_ACEOF 6199rm -f conftest.$ac_objext 6200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6201 (eval $ac_compile) 2>conftest.er1 6202 ac_status=$? 6203 grep -v '^ *+' conftest.er1 >conftest.err 6204 rm -f conftest.er1 6205 cat conftest.err >&5 6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6207 (exit $ac_status); } && 6208 { ac_try='test -z "$ac_c_werror_flag" 6209 || test ! -s conftest.err' 6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6211 (eval $ac_try) 2>&5 6212 ac_status=$? 6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6214 (exit $ac_status); }; } && 6215 { ac_try='test -s conftest.$ac_objext' 6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6217 (eval $ac_try) 2>&5 6218 ac_status=$? 6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6220 (exit $ac_status); }; }; then 6221 ac_header_compiler=yes 6222else 6223 echo "$as_me: failed program was:" >&5 6224sed 's/^/| /' conftest.$ac_ext >&5 6225 6226ac_header_compiler=no 6227fi 6228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6229echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6230echo "${ECHO_T}$ac_header_compiler" >&6 6231 6232# Is the header present? 6233echo "$as_me:$LINENO: checking $ac_header presence" >&5 6234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6235cat >conftest.$ac_ext <<_ACEOF 6236/* confdefs.h. */ 6237_ACEOF 6238cat confdefs.h >>conftest.$ac_ext 6239cat >>conftest.$ac_ext <<_ACEOF 6240/* end confdefs.h. */ 6241#include <$ac_header> 6242_ACEOF 6243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6245 ac_status=$? 6246 grep -v '^ *+' conftest.er1 >conftest.err 6247 rm -f conftest.er1 6248 cat conftest.err >&5 6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6250 (exit $ac_status); } >/dev/null; then 6251 if test -s conftest.err; then 6252 ac_cpp_err=$ac_c_preproc_warn_flag 6253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6254 else 6255 ac_cpp_err= 6256 fi 6257else 6258 ac_cpp_err=yes 6259fi 6260if test -z "$ac_cpp_err"; then 6261 ac_header_preproc=yes 6262else 6263 echo "$as_me: failed program was:" >&5 6264sed 's/^/| /' conftest.$ac_ext >&5 6265 6266 ac_header_preproc=no 6267fi 6268rm -f conftest.err conftest.$ac_ext 6269echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6270echo "${ECHO_T}$ac_header_preproc" >&6 6271 6272# So? What about this header? 6273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6274 yes:no: ) 6275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6279 ac_header_preproc=yes 6280 ;; 6281 no:yes:* ) 6282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6294 ( 6295 cat <<\_ASBOX 6296## ------------------------------------------ ## 6297## Report this to the AC_PACKAGE_NAME lists. ## 6298## ------------------------------------------ ## 6299_ASBOX 6300 ) | 6301 sed "s/^/$as_me: WARNING: /" >&2 6302 ;; 6303esac 6304echo "$as_me:$LINENO: checking for $ac_header" >&5 6305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6306if eval "test \"\${$as_ac_Header+set}\" = set"; then 6307 echo $ECHO_N "(cached) $ECHO_C" >&6 6308else 6309 eval "$as_ac_Header=\$ac_header_preproc" 6310fi 6311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6313 6314fi 6315if test `eval echo '${'$as_ac_Header'}'` = yes; then 6316 cat >>confdefs.h <<_ACEOF 6317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6318_ACEOF 6319 6320fi 6321 6322done 6323 6324echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 6325echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 6326if test "${ac_cv_header_time+set}" = set; then 6327 echo $ECHO_N "(cached) $ECHO_C" >&6 6328else 6329 cat >conftest.$ac_ext <<_ACEOF 6330/* confdefs.h. */ 6331_ACEOF 6332cat confdefs.h >>conftest.$ac_ext 6333cat >>conftest.$ac_ext <<_ACEOF 6334/* end confdefs.h. */ 6335#include <sys/types.h> 6336#include <sys/time.h> 6337#include <time.h> 6338 6339int 6340main () 6341{ 6342if ((struct tm *) 0) 6343return 0; 6344 ; 6345 return 0; 6346} 6347_ACEOF 6348rm -f conftest.$ac_objext 6349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6350 (eval $ac_compile) 2>conftest.er1 6351 ac_status=$? 6352 grep -v '^ *+' conftest.er1 >conftest.err 6353 rm -f conftest.er1 6354 cat conftest.err >&5 6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6356 (exit $ac_status); } && 6357 { ac_try='test -z "$ac_c_werror_flag" 6358 || test ! -s conftest.err' 6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6360 (eval $ac_try) 2>&5 6361 ac_status=$? 6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6363 (exit $ac_status); }; } && 6364 { ac_try='test -s conftest.$ac_objext' 6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6366 (eval $ac_try) 2>&5 6367 ac_status=$? 6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6369 (exit $ac_status); }; }; then 6370 ac_cv_header_time=yes 6371else 6372 echo "$as_me: failed program was:" >&5 6373sed 's/^/| /' conftest.$ac_ext >&5 6374 6375ac_cv_header_time=no 6376fi 6377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6378fi 6379echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 6380echo "${ECHO_T}$ac_cv_header_time" >&6 6381if test $ac_cv_header_time = yes; then 6382 6383cat >>confdefs.h <<\_ACEOF 6384#define TIME_WITH_SYS_TIME 1 6385_ACEOF 6386 6387fi 6388 6389 6390echo "$as_me:$LINENO: checking for uint" >&5 6391echo $ECHO_N "checking for uint... $ECHO_C" >&6 6392if test "${ac_cv_type_uint+set}" = set; then 6393 echo $ECHO_N "(cached) $ECHO_C" >&6 6394else 6395 cat >conftest.$ac_ext <<_ACEOF 6396/* confdefs.h. */ 6397_ACEOF 6398cat confdefs.h >>conftest.$ac_ext 6399cat >>conftest.$ac_ext <<_ACEOF 6400/* end confdefs.h. */ 6401$ac_includes_default 6402int 6403main () 6404{ 6405if ((uint *) 0) 6406 return 0; 6407if (sizeof (uint)) 6408 return 0; 6409 ; 6410 return 0; 6411} 6412_ACEOF 6413rm -f conftest.$ac_objext 6414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6415 (eval $ac_compile) 2>conftest.er1 6416 ac_status=$? 6417 grep -v '^ *+' conftest.er1 >conftest.err 6418 rm -f conftest.er1 6419 cat conftest.err >&5 6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6421 (exit $ac_status); } && 6422 { ac_try='test -z "$ac_c_werror_flag" 6423 || test ! -s conftest.err' 6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6425 (eval $ac_try) 2>&5 6426 ac_status=$? 6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6428 (exit $ac_status); }; } && 6429 { ac_try='test -s conftest.$ac_objext' 6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6431 (eval $ac_try) 2>&5 6432 ac_status=$? 6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6434 (exit $ac_status); }; }; then 6435 ac_cv_type_uint=yes 6436else 6437 echo "$as_me: failed program was:" >&5 6438sed 's/^/| /' conftest.$ac_ext >&5 6439 6440ac_cv_type_uint=no 6441fi 6442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6443fi 6444echo "$as_me:$LINENO: result: $ac_cv_type_uint" >&5 6445echo "${ECHO_T}$ac_cv_type_uint" >&6 6446if test $ac_cv_type_uint = yes; then 6447 : 6448else 6449 6450cat >>confdefs.h <<_ACEOF 6451#define uint unsigned int 6452_ACEOF 6453 6454fi 6455 6456 6457 6458echo "$as_me:$LINENO: checking for inline" >&5 6459echo $ECHO_N "checking for inline... $ECHO_C" >&6 6460if test "${ac_cv_c_inline+set}" = set; then 6461 echo $ECHO_N "(cached) $ECHO_C" >&6 6462else 6463 ac_cv_c_inline=no 6464for ac_kw in inline __inline__ __inline; do 6465 cat >conftest.$ac_ext <<_ACEOF 6466/* confdefs.h. */ 6467_ACEOF 6468cat confdefs.h >>conftest.$ac_ext 6469cat >>conftest.$ac_ext <<_ACEOF 6470/* end confdefs.h. */ 6471#ifndef __cplusplus 6472typedef int foo_t; 6473static $ac_kw foo_t static_foo () {return 0; } 6474$ac_kw foo_t foo () {return 0; } 6475#endif 6476 6477_ACEOF 6478rm -f conftest.$ac_objext 6479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6480 (eval $ac_compile) 2>conftest.er1 6481 ac_status=$? 6482 grep -v '^ *+' conftest.er1 >conftest.err 6483 rm -f conftest.er1 6484 cat conftest.err >&5 6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6486 (exit $ac_status); } && 6487 { ac_try='test -z "$ac_c_werror_flag" 6488 || test ! -s conftest.err' 6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6490 (eval $ac_try) 2>&5 6491 ac_status=$? 6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6493 (exit $ac_status); }; } && 6494 { ac_try='test -s conftest.$ac_objext' 6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6496 (eval $ac_try) 2>&5 6497 ac_status=$? 6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6499 (exit $ac_status); }; }; then 6500 ac_cv_c_inline=$ac_kw; break 6501else 6502 echo "$as_me: failed program was:" >&5 6503sed 's/^/| /' conftest.$ac_ext >&5 6504 6505fi 6506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6507done 6508 6509fi 6510echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 6511echo "${ECHO_T}$ac_cv_c_inline" >&6 6512 6513 6514case $ac_cv_c_inline in 6515 inline | yes) ;; 6516 *) 6517 case $ac_cv_c_inline in 6518 no) ac_val=;; 6519 *) ac_val=$ac_cv_c_inline;; 6520 esac 6521 cat >>confdefs.h <<_ACEOF 6522#ifndef __cplusplus 6523#define inline $ac_val 6524#endif 6525_ACEOF 6526 ;; 6527esac 6528 6529echo "$as_me:$LINENO: checking for long long" >&5 6530echo $ECHO_N "checking for long long... $ECHO_C" >&6 6531if test "${ac_cv_type_long_long+set}" = set; then 6532 echo $ECHO_N "(cached) $ECHO_C" >&6 6533else 6534 cat >conftest.$ac_ext <<_ACEOF 6535/* confdefs.h. */ 6536_ACEOF 6537cat confdefs.h >>conftest.$ac_ext 6538cat >>conftest.$ac_ext <<_ACEOF 6539/* end confdefs.h. */ 6540$ac_includes_default 6541int 6542main () 6543{ 6544if ((long long *) 0) 6545 return 0; 6546if (sizeof (long long)) 6547 return 0; 6548 ; 6549 return 0; 6550} 6551_ACEOF 6552rm -f conftest.$ac_objext 6553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6554 (eval $ac_compile) 2>conftest.er1 6555 ac_status=$? 6556 grep -v '^ *+' conftest.er1 >conftest.err 6557 rm -f conftest.er1 6558 cat conftest.err >&5 6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6560 (exit $ac_status); } && 6561 { ac_try='test -z "$ac_c_werror_flag" 6562 || test ! -s conftest.err' 6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6564 (eval $ac_try) 2>&5 6565 ac_status=$? 6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6567 (exit $ac_status); }; } && 6568 { ac_try='test -s conftest.$ac_objext' 6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6570 (eval $ac_try) 2>&5 6571 ac_status=$? 6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6573 (exit $ac_status); }; }; then 6574 ac_cv_type_long_long=yes 6575else 6576 echo "$as_me: failed program was:" >&5 6577sed 's/^/| /' conftest.$ac_ext >&5 6578 6579ac_cv_type_long_long=no 6580fi 6581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6582fi 6583echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 6584echo "${ECHO_T}$ac_cv_type_long_long" >&6 6585 6586echo "$as_me:$LINENO: checking size of long long" >&5 6587echo $ECHO_N "checking size of long long... $ECHO_C" >&6 6588if test "${ac_cv_sizeof_long_long+set}" = set; then 6589 echo $ECHO_N "(cached) $ECHO_C" >&6 6590else 6591 if test "$ac_cv_type_long_long" = yes; then 6592 # The cast to unsigned long works around a bug in the HP C Compiler 6593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6595 # This bug is HP SR number 8606223364. 6596 if test "$cross_compiling" = yes; then 6597 # Depending upon the size, compute the lo and hi bounds. 6598cat >conftest.$ac_ext <<_ACEOF 6599/* confdefs.h. */ 6600_ACEOF 6601cat confdefs.h >>conftest.$ac_ext 6602cat >>conftest.$ac_ext <<_ACEOF 6603/* end confdefs.h. */ 6604$ac_includes_default 6605int 6606main () 6607{ 6608static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 6609test_array [0] = 0 6610 6611 ; 6612 return 0; 6613} 6614_ACEOF 6615rm -f conftest.$ac_objext 6616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6617 (eval $ac_compile) 2>conftest.er1 6618 ac_status=$? 6619 grep -v '^ *+' conftest.er1 >conftest.err 6620 rm -f conftest.er1 6621 cat conftest.err >&5 6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6623 (exit $ac_status); } && 6624 { ac_try='test -z "$ac_c_werror_flag" 6625 || test ! -s conftest.err' 6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6627 (eval $ac_try) 2>&5 6628 ac_status=$? 6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6630 (exit $ac_status); }; } && 6631 { ac_try='test -s conftest.$ac_objext' 6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6633 (eval $ac_try) 2>&5 6634 ac_status=$? 6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6636 (exit $ac_status); }; }; then 6637 ac_lo=0 ac_mid=0 6638 while :; do 6639 cat >conftest.$ac_ext <<_ACEOF 6640/* confdefs.h. */ 6641_ACEOF 6642cat confdefs.h >>conftest.$ac_ext 6643cat >>conftest.$ac_ext <<_ACEOF 6644/* end confdefs.h. */ 6645$ac_includes_default 6646int 6647main () 6648{ 6649static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 6650test_array [0] = 0 6651 6652 ; 6653 return 0; 6654} 6655_ACEOF 6656rm -f conftest.$ac_objext 6657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6658 (eval $ac_compile) 2>conftest.er1 6659 ac_status=$? 6660 grep -v '^ *+' conftest.er1 >conftest.err 6661 rm -f conftest.er1 6662 cat conftest.err >&5 6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6664 (exit $ac_status); } && 6665 { ac_try='test -z "$ac_c_werror_flag" 6666 || test ! -s conftest.err' 6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6668 (eval $ac_try) 2>&5 6669 ac_status=$? 6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6671 (exit $ac_status); }; } && 6672 { ac_try='test -s conftest.$ac_objext' 6673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6674 (eval $ac_try) 2>&5 6675 ac_status=$? 6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6677 (exit $ac_status); }; }; then 6678 ac_hi=$ac_mid; break 6679else 6680 echo "$as_me: failed program was:" >&5 6681sed 's/^/| /' conftest.$ac_ext >&5 6682 6683ac_lo=`expr $ac_mid + 1` 6684 if test $ac_lo -le $ac_mid; then 6685 ac_lo= ac_hi= 6686 break 6687 fi 6688 ac_mid=`expr 2 '*' $ac_mid + 1` 6689fi 6690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6691 done 6692else 6693 echo "$as_me: failed program was:" >&5 6694sed 's/^/| /' conftest.$ac_ext >&5 6695 6696cat >conftest.$ac_ext <<_ACEOF 6697/* confdefs.h. */ 6698_ACEOF 6699cat confdefs.h >>conftest.$ac_ext 6700cat >>conftest.$ac_ext <<_ACEOF 6701/* end confdefs.h. */ 6702$ac_includes_default 6703int 6704main () 6705{ 6706static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 6707test_array [0] = 0 6708 6709 ; 6710 return 0; 6711} 6712_ACEOF 6713rm -f conftest.$ac_objext 6714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6715 (eval $ac_compile) 2>conftest.er1 6716 ac_status=$? 6717 grep -v '^ *+' conftest.er1 >conftest.err 6718 rm -f conftest.er1 6719 cat conftest.err >&5 6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6721 (exit $ac_status); } && 6722 { ac_try='test -z "$ac_c_werror_flag" 6723 || test ! -s conftest.err' 6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6725 (eval $ac_try) 2>&5 6726 ac_status=$? 6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6728 (exit $ac_status); }; } && 6729 { ac_try='test -s conftest.$ac_objext' 6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6731 (eval $ac_try) 2>&5 6732 ac_status=$? 6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6734 (exit $ac_status); }; }; then 6735 ac_hi=-1 ac_mid=-1 6736 while :; do 6737 cat >conftest.$ac_ext <<_ACEOF 6738/* confdefs.h. */ 6739_ACEOF 6740cat confdefs.h >>conftest.$ac_ext 6741cat >>conftest.$ac_ext <<_ACEOF 6742/* end confdefs.h. */ 6743$ac_includes_default 6744int 6745main () 6746{ 6747static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 6748test_array [0] = 0 6749 6750 ; 6751 return 0; 6752} 6753_ACEOF 6754rm -f conftest.$ac_objext 6755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6756 (eval $ac_compile) 2>conftest.er1 6757 ac_status=$? 6758 grep -v '^ *+' conftest.er1 >conftest.err 6759 rm -f conftest.er1 6760 cat conftest.err >&5 6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6762 (exit $ac_status); } && 6763 { ac_try='test -z "$ac_c_werror_flag" 6764 || test ! -s conftest.err' 6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6766 (eval $ac_try) 2>&5 6767 ac_status=$? 6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6769 (exit $ac_status); }; } && 6770 { ac_try='test -s conftest.$ac_objext' 6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6772 (eval $ac_try) 2>&5 6773 ac_status=$? 6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6775 (exit $ac_status); }; }; then 6776 ac_lo=$ac_mid; break 6777else 6778 echo "$as_me: failed program was:" >&5 6779sed 's/^/| /' conftest.$ac_ext >&5 6780 6781ac_hi=`expr '(' $ac_mid ')' - 1` 6782 if test $ac_mid -le $ac_hi; then 6783 ac_lo= ac_hi= 6784 break 6785 fi 6786 ac_mid=`expr 2 '*' $ac_mid` 6787fi 6788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6789 done 6790else 6791 echo "$as_me: failed program was:" >&5 6792sed 's/^/| /' conftest.$ac_ext >&5 6793 6794ac_lo= ac_hi= 6795fi 6796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6797fi 6798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6799# Binary search between lo and hi bounds. 6800while test "x$ac_lo" != "x$ac_hi"; do 6801 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6802 cat >conftest.$ac_ext <<_ACEOF 6803/* confdefs.h. */ 6804_ACEOF 6805cat confdefs.h >>conftest.$ac_ext 6806cat >>conftest.$ac_ext <<_ACEOF 6807/* end confdefs.h. */ 6808$ac_includes_default 6809int 6810main () 6811{ 6812static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 6813test_array [0] = 0 6814 6815 ; 6816 return 0; 6817} 6818_ACEOF 6819rm -f conftest.$ac_objext 6820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6821 (eval $ac_compile) 2>conftest.er1 6822 ac_status=$? 6823 grep -v '^ *+' conftest.er1 >conftest.err 6824 rm -f conftest.er1 6825 cat conftest.err >&5 6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6827 (exit $ac_status); } && 6828 { ac_try='test -z "$ac_c_werror_flag" 6829 || test ! -s conftest.err' 6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6831 (eval $ac_try) 2>&5 6832 ac_status=$? 6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6834 (exit $ac_status); }; } && 6835 { ac_try='test -s conftest.$ac_objext' 6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6837 (eval $ac_try) 2>&5 6838 ac_status=$? 6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6840 (exit $ac_status); }; }; then 6841 ac_hi=$ac_mid 6842else 6843 echo "$as_me: failed program was:" >&5 6844sed 's/^/| /' conftest.$ac_ext >&5 6845 6846ac_lo=`expr '(' $ac_mid ')' + 1` 6847fi 6848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6849done 6850case $ac_lo in 6851?*) ac_cv_sizeof_long_long=$ac_lo;; 6852'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 6853See \`config.log' for more details." >&5 6854echo "$as_me: error: cannot compute sizeof (long long), 77 6855See \`config.log' for more details." >&2;} 6856 { (exit 1); exit 1; }; } ;; 6857esac 6858else 6859 if test "$cross_compiling" = yes; then 6860 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6861See \`config.log' for more details." >&5 6862echo "$as_me: error: cannot run test program while cross compiling 6863See \`config.log' for more details." >&2;} 6864 { (exit 1); exit 1; }; } 6865else 6866 cat >conftest.$ac_ext <<_ACEOF 6867/* confdefs.h. */ 6868_ACEOF 6869cat confdefs.h >>conftest.$ac_ext 6870cat >>conftest.$ac_ext <<_ACEOF 6871/* end confdefs.h. */ 6872$ac_includes_default 6873long longval () { return (long) (sizeof (long long)); } 6874unsigned long ulongval () { return (long) (sizeof (long long)); } 6875#include <stdio.h> 6876#include <stdlib.h> 6877int 6878main () 6879{ 6880 6881 FILE *f = fopen ("conftest.val", "w"); 6882 if (! f) 6883 exit (1); 6884 if (((long) (sizeof (long long))) < 0) 6885 { 6886 long i = longval (); 6887 if (i != ((long) (sizeof (long long)))) 6888 exit (1); 6889 fprintf (f, "%ld\n", i); 6890 } 6891 else 6892 { 6893 unsigned long i = ulongval (); 6894 if (i != ((long) (sizeof (long long)))) 6895 exit (1); 6896 fprintf (f, "%lu\n", i); 6897 } 6898 exit (ferror (f) || fclose (f) != 0); 6899 6900 ; 6901 return 0; 6902} 6903_ACEOF 6904rm -f conftest$ac_exeext 6905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6906 (eval $ac_link) 2>&5 6907 ac_status=$? 6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6911 (eval $ac_try) 2>&5 6912 ac_status=$? 6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6914 (exit $ac_status); }; }; then 6915 ac_cv_sizeof_long_long=`cat conftest.val` 6916else 6917 echo "$as_me: program exited with status $ac_status" >&5 6918echo "$as_me: failed program was:" >&5 6919sed 's/^/| /' conftest.$ac_ext >&5 6920 6921( exit $ac_status ) 6922{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 6923See \`config.log' for more details." >&5 6924echo "$as_me: error: cannot compute sizeof (long long), 77 6925See \`config.log' for more details." >&2;} 6926 { (exit 1); exit 1; }; } 6927fi 6928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6929fi 6930fi 6931rm -f conftest.val 6932else 6933 ac_cv_sizeof_long_long=0 6934fi 6935fi 6936echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 6937echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 6938cat >>confdefs.h <<_ACEOF 6939#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 6940_ACEOF 6941 6942 6943echo "$as_me:$LINENO: checking for long" >&5 6944echo $ECHO_N "checking for long... $ECHO_C" >&6 6945if test "${ac_cv_type_long+set}" = set; then 6946 echo $ECHO_N "(cached) $ECHO_C" >&6 6947else 6948 cat >conftest.$ac_ext <<_ACEOF 6949/* confdefs.h. */ 6950_ACEOF 6951cat confdefs.h >>conftest.$ac_ext 6952cat >>conftest.$ac_ext <<_ACEOF 6953/* end confdefs.h. */ 6954$ac_includes_default 6955int 6956main () 6957{ 6958if ((long *) 0) 6959 return 0; 6960if (sizeof (long)) 6961 return 0; 6962 ; 6963 return 0; 6964} 6965_ACEOF 6966rm -f conftest.$ac_objext 6967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6968 (eval $ac_compile) 2>conftest.er1 6969 ac_status=$? 6970 grep -v '^ *+' conftest.er1 >conftest.err 6971 rm -f conftest.er1 6972 cat conftest.err >&5 6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6974 (exit $ac_status); } && 6975 { ac_try='test -z "$ac_c_werror_flag" 6976 || test ! -s conftest.err' 6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6978 (eval $ac_try) 2>&5 6979 ac_status=$? 6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6981 (exit $ac_status); }; } && 6982 { ac_try='test -s conftest.$ac_objext' 6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6984 (eval $ac_try) 2>&5 6985 ac_status=$? 6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6987 (exit $ac_status); }; }; then 6988 ac_cv_type_long=yes 6989else 6990 echo "$as_me: failed program was:" >&5 6991sed 's/^/| /' conftest.$ac_ext >&5 6992 6993ac_cv_type_long=no 6994fi 6995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6996fi 6997echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 6998echo "${ECHO_T}$ac_cv_type_long" >&6 6999 7000echo "$as_me:$LINENO: checking size of long" >&5 7001echo $ECHO_N "checking size of long... $ECHO_C" >&6 7002if test "${ac_cv_sizeof_long+set}" = set; then 7003 echo $ECHO_N "(cached) $ECHO_C" >&6 7004else 7005 if test "$ac_cv_type_long" = yes; then 7006 # The cast to unsigned long works around a bug in the HP C Compiler 7007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7009 # This bug is HP SR number 8606223364. 7010 if test "$cross_compiling" = yes; then 7011 # Depending upon the size, compute the lo and hi bounds. 7012cat >conftest.$ac_ext <<_ACEOF 7013/* confdefs.h. */ 7014_ACEOF 7015cat confdefs.h >>conftest.$ac_ext 7016cat >>conftest.$ac_ext <<_ACEOF 7017/* end confdefs.h. */ 7018$ac_includes_default 7019int 7020main () 7021{ 7022static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 7023test_array [0] = 0 7024 7025 ; 7026 return 0; 7027} 7028_ACEOF 7029rm -f conftest.$ac_objext 7030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7031 (eval $ac_compile) 2>conftest.er1 7032 ac_status=$? 7033 grep -v '^ *+' conftest.er1 >conftest.err 7034 rm -f conftest.er1 7035 cat conftest.err >&5 7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7037 (exit $ac_status); } && 7038 { ac_try='test -z "$ac_c_werror_flag" 7039 || test ! -s conftest.err' 7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7041 (eval $ac_try) 2>&5 7042 ac_status=$? 7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7044 (exit $ac_status); }; } && 7045 { ac_try='test -s conftest.$ac_objext' 7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7047 (eval $ac_try) 2>&5 7048 ac_status=$? 7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7050 (exit $ac_status); }; }; then 7051 ac_lo=0 ac_mid=0 7052 while :; do 7053 cat >conftest.$ac_ext <<_ACEOF 7054/* confdefs.h. */ 7055_ACEOF 7056cat confdefs.h >>conftest.$ac_ext 7057cat >>conftest.$ac_ext <<_ACEOF 7058/* end confdefs.h. */ 7059$ac_includes_default 7060int 7061main () 7062{ 7063static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 7064test_array [0] = 0 7065 7066 ; 7067 return 0; 7068} 7069_ACEOF 7070rm -f conftest.$ac_objext 7071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7072 (eval $ac_compile) 2>conftest.er1 7073 ac_status=$? 7074 grep -v '^ *+' conftest.er1 >conftest.err 7075 rm -f conftest.er1 7076 cat conftest.err >&5 7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7078 (exit $ac_status); } && 7079 { ac_try='test -z "$ac_c_werror_flag" 7080 || test ! -s conftest.err' 7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7082 (eval $ac_try) 2>&5 7083 ac_status=$? 7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7085 (exit $ac_status); }; } && 7086 { ac_try='test -s conftest.$ac_objext' 7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7088 (eval $ac_try) 2>&5 7089 ac_status=$? 7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7091 (exit $ac_status); }; }; then 7092 ac_hi=$ac_mid; break 7093else 7094 echo "$as_me: failed program was:" >&5 7095sed 's/^/| /' conftest.$ac_ext >&5 7096 7097ac_lo=`expr $ac_mid + 1` 7098 if test $ac_lo -le $ac_mid; then 7099 ac_lo= ac_hi= 7100 break 7101 fi 7102 ac_mid=`expr 2 '*' $ac_mid + 1` 7103fi 7104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7105 done 7106else 7107 echo "$as_me: failed program was:" >&5 7108sed 's/^/| /' conftest.$ac_ext >&5 7109 7110cat >conftest.$ac_ext <<_ACEOF 7111/* confdefs.h. */ 7112_ACEOF 7113cat confdefs.h >>conftest.$ac_ext 7114cat >>conftest.$ac_ext <<_ACEOF 7115/* end confdefs.h. */ 7116$ac_includes_default 7117int 7118main () 7119{ 7120static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 7121test_array [0] = 0 7122 7123 ; 7124 return 0; 7125} 7126_ACEOF 7127rm -f conftest.$ac_objext 7128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7129 (eval $ac_compile) 2>conftest.er1 7130 ac_status=$? 7131 grep -v '^ *+' conftest.er1 >conftest.err 7132 rm -f conftest.er1 7133 cat conftest.err >&5 7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7135 (exit $ac_status); } && 7136 { ac_try='test -z "$ac_c_werror_flag" 7137 || test ! -s conftest.err' 7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7139 (eval $ac_try) 2>&5 7140 ac_status=$? 7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7142 (exit $ac_status); }; } && 7143 { ac_try='test -s conftest.$ac_objext' 7144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7145 (eval $ac_try) 2>&5 7146 ac_status=$? 7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7148 (exit $ac_status); }; }; then 7149 ac_hi=-1 ac_mid=-1 7150 while :; do 7151 cat >conftest.$ac_ext <<_ACEOF 7152/* confdefs.h. */ 7153_ACEOF 7154cat confdefs.h >>conftest.$ac_ext 7155cat >>conftest.$ac_ext <<_ACEOF 7156/* end confdefs.h. */ 7157$ac_includes_default 7158int 7159main () 7160{ 7161static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 7162test_array [0] = 0 7163 7164 ; 7165 return 0; 7166} 7167_ACEOF 7168rm -f conftest.$ac_objext 7169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7170 (eval $ac_compile) 2>conftest.er1 7171 ac_status=$? 7172 grep -v '^ *+' conftest.er1 >conftest.err 7173 rm -f conftest.er1 7174 cat conftest.err >&5 7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7176 (exit $ac_status); } && 7177 { ac_try='test -z "$ac_c_werror_flag" 7178 || test ! -s conftest.err' 7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7180 (eval $ac_try) 2>&5 7181 ac_status=$? 7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7183 (exit $ac_status); }; } && 7184 { ac_try='test -s conftest.$ac_objext' 7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7186 (eval $ac_try) 2>&5 7187 ac_status=$? 7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7189 (exit $ac_status); }; }; then 7190 ac_lo=$ac_mid; break 7191else 7192 echo "$as_me: failed program was:" >&5 7193sed 's/^/| /' conftest.$ac_ext >&5 7194 7195ac_hi=`expr '(' $ac_mid ')' - 1` 7196 if test $ac_mid -le $ac_hi; then 7197 ac_lo= ac_hi= 7198 break 7199 fi 7200 ac_mid=`expr 2 '*' $ac_mid` 7201fi 7202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7203 done 7204else 7205 echo "$as_me: failed program was:" >&5 7206sed 's/^/| /' conftest.$ac_ext >&5 7207 7208ac_lo= ac_hi= 7209fi 7210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7211fi 7212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7213# Binary search between lo and hi bounds. 7214while test "x$ac_lo" != "x$ac_hi"; do 7215 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7216 cat >conftest.$ac_ext <<_ACEOF 7217/* confdefs.h. */ 7218_ACEOF 7219cat confdefs.h >>conftest.$ac_ext 7220cat >>conftest.$ac_ext <<_ACEOF 7221/* end confdefs.h. */ 7222$ac_includes_default 7223int 7224main () 7225{ 7226static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 7227test_array [0] = 0 7228 7229 ; 7230 return 0; 7231} 7232_ACEOF 7233rm -f conftest.$ac_objext 7234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7235 (eval $ac_compile) 2>conftest.er1 7236 ac_status=$? 7237 grep -v '^ *+' conftest.er1 >conftest.err 7238 rm -f conftest.er1 7239 cat conftest.err >&5 7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7241 (exit $ac_status); } && 7242 { ac_try='test -z "$ac_c_werror_flag" 7243 || test ! -s conftest.err' 7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7245 (eval $ac_try) 2>&5 7246 ac_status=$? 7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7248 (exit $ac_status); }; } && 7249 { ac_try='test -s conftest.$ac_objext' 7250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7251 (eval $ac_try) 2>&5 7252 ac_status=$? 7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7254 (exit $ac_status); }; }; then 7255 ac_hi=$ac_mid 7256else 7257 echo "$as_me: failed program was:" >&5 7258sed 's/^/| /' conftest.$ac_ext >&5 7259 7260ac_lo=`expr '(' $ac_mid ')' + 1` 7261fi 7262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7263done 7264case $ac_lo in 7265?*) ac_cv_sizeof_long=$ac_lo;; 7266'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 7267See \`config.log' for more details." >&5 7268echo "$as_me: error: cannot compute sizeof (long), 77 7269See \`config.log' for more details." >&2;} 7270 { (exit 1); exit 1; }; } ;; 7271esac 7272else 7273 if test "$cross_compiling" = yes; then 7274 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7275See \`config.log' for more details." >&5 7276echo "$as_me: error: cannot run test program while cross compiling 7277See \`config.log' for more details." >&2;} 7278 { (exit 1); exit 1; }; } 7279else 7280 cat >conftest.$ac_ext <<_ACEOF 7281/* confdefs.h. */ 7282_ACEOF 7283cat confdefs.h >>conftest.$ac_ext 7284cat >>conftest.$ac_ext <<_ACEOF 7285/* end confdefs.h. */ 7286$ac_includes_default 7287long longval () { return (long) (sizeof (long)); } 7288unsigned long ulongval () { return (long) (sizeof (long)); } 7289#include <stdio.h> 7290#include <stdlib.h> 7291int 7292main () 7293{ 7294 7295 FILE *f = fopen ("conftest.val", "w"); 7296 if (! f) 7297 exit (1); 7298 if (((long) (sizeof (long))) < 0) 7299 { 7300 long i = longval (); 7301 if (i != ((long) (sizeof (long)))) 7302 exit (1); 7303 fprintf (f, "%ld\n", i); 7304 } 7305 else 7306 { 7307 unsigned long i = ulongval (); 7308 if (i != ((long) (sizeof (long)))) 7309 exit (1); 7310 fprintf (f, "%lu\n", i); 7311 } 7312 exit (ferror (f) || fclose (f) != 0); 7313 7314 ; 7315 return 0; 7316} 7317_ACEOF 7318rm -f conftest$ac_exeext 7319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7320 (eval $ac_link) 2>&5 7321 ac_status=$? 7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7325 (eval $ac_try) 2>&5 7326 ac_status=$? 7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7328 (exit $ac_status); }; }; then 7329 ac_cv_sizeof_long=`cat conftest.val` 7330else 7331 echo "$as_me: program exited with status $ac_status" >&5 7332echo "$as_me: failed program was:" >&5 7333sed 's/^/| /' conftest.$ac_ext >&5 7334 7335( exit $ac_status ) 7336{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 7337See \`config.log' for more details." >&5 7338echo "$as_me: error: cannot compute sizeof (long), 77 7339See \`config.log' for more details." >&2;} 7340 { (exit 1); exit 1; }; } 7341fi 7342rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7343fi 7344fi 7345rm -f conftest.val 7346else 7347 ac_cv_sizeof_long=0 7348fi 7349fi 7350echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 7351echo "${ECHO_T}$ac_cv_sizeof_long" >&6 7352cat >>confdefs.h <<_ACEOF 7353#define SIZEOF_LONG $ac_cv_sizeof_long 7354_ACEOF 7355 7356 7357echo "$as_me:$LINENO: checking for int" >&5 7358echo $ECHO_N "checking for int... $ECHO_C" >&6 7359if test "${ac_cv_type_int+set}" = set; then 7360 echo $ECHO_N "(cached) $ECHO_C" >&6 7361else 7362 cat >conftest.$ac_ext <<_ACEOF 7363/* confdefs.h. */ 7364_ACEOF 7365cat confdefs.h >>conftest.$ac_ext 7366cat >>conftest.$ac_ext <<_ACEOF 7367/* end confdefs.h. */ 7368$ac_includes_default 7369int 7370main () 7371{ 7372if ((int *) 0) 7373 return 0; 7374if (sizeof (int)) 7375 return 0; 7376 ; 7377 return 0; 7378} 7379_ACEOF 7380rm -f conftest.$ac_objext 7381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7382 (eval $ac_compile) 2>conftest.er1 7383 ac_status=$? 7384 grep -v '^ *+' conftest.er1 >conftest.err 7385 rm -f conftest.er1 7386 cat conftest.err >&5 7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7388 (exit $ac_status); } && 7389 { ac_try='test -z "$ac_c_werror_flag" 7390 || test ! -s conftest.err' 7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7392 (eval $ac_try) 2>&5 7393 ac_status=$? 7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7395 (exit $ac_status); }; } && 7396 { ac_try='test -s conftest.$ac_objext' 7397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7398 (eval $ac_try) 2>&5 7399 ac_status=$? 7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7401 (exit $ac_status); }; }; then 7402 ac_cv_type_int=yes 7403else 7404 echo "$as_me: failed program was:" >&5 7405sed 's/^/| /' conftest.$ac_ext >&5 7406 7407ac_cv_type_int=no 7408fi 7409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7410fi 7411echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 7412echo "${ECHO_T}$ac_cv_type_int" >&6 7413 7414echo "$as_me:$LINENO: checking size of int" >&5 7415echo $ECHO_N "checking size of int... $ECHO_C" >&6 7416if test "${ac_cv_sizeof_int+set}" = set; then 7417 echo $ECHO_N "(cached) $ECHO_C" >&6 7418else 7419 if test "$ac_cv_type_int" = yes; then 7420 # The cast to unsigned long works around a bug in the HP C Compiler 7421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7423 # This bug is HP SR number 8606223364. 7424 if test "$cross_compiling" = yes; then 7425 # Depending upon the size, compute the lo and hi bounds. 7426cat >conftest.$ac_ext <<_ACEOF 7427/* confdefs.h. */ 7428_ACEOF 7429cat confdefs.h >>conftest.$ac_ext 7430cat >>conftest.$ac_ext <<_ACEOF 7431/* end confdefs.h. */ 7432$ac_includes_default 7433int 7434main () 7435{ 7436static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 7437test_array [0] = 0 7438 7439 ; 7440 return 0; 7441} 7442_ACEOF 7443rm -f conftest.$ac_objext 7444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7445 (eval $ac_compile) 2>conftest.er1 7446 ac_status=$? 7447 grep -v '^ *+' conftest.er1 >conftest.err 7448 rm -f conftest.er1 7449 cat conftest.err >&5 7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7451 (exit $ac_status); } && 7452 { ac_try='test -z "$ac_c_werror_flag" 7453 || test ! -s conftest.err' 7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7455 (eval $ac_try) 2>&5 7456 ac_status=$? 7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7458 (exit $ac_status); }; } && 7459 { ac_try='test -s conftest.$ac_objext' 7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7461 (eval $ac_try) 2>&5 7462 ac_status=$? 7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7464 (exit $ac_status); }; }; then 7465 ac_lo=0 ac_mid=0 7466 while :; do 7467 cat >conftest.$ac_ext <<_ACEOF 7468/* confdefs.h. */ 7469_ACEOF 7470cat confdefs.h >>conftest.$ac_ext 7471cat >>conftest.$ac_ext <<_ACEOF 7472/* end confdefs.h. */ 7473$ac_includes_default 7474int 7475main () 7476{ 7477static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 7478test_array [0] = 0 7479 7480 ; 7481 return 0; 7482} 7483_ACEOF 7484rm -f conftest.$ac_objext 7485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7486 (eval $ac_compile) 2>conftest.er1 7487 ac_status=$? 7488 grep -v '^ *+' conftest.er1 >conftest.err 7489 rm -f conftest.er1 7490 cat conftest.err >&5 7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7492 (exit $ac_status); } && 7493 { ac_try='test -z "$ac_c_werror_flag" 7494 || test ! -s conftest.err' 7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7496 (eval $ac_try) 2>&5 7497 ac_status=$? 7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7499 (exit $ac_status); }; } && 7500 { ac_try='test -s conftest.$ac_objext' 7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7502 (eval $ac_try) 2>&5 7503 ac_status=$? 7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7505 (exit $ac_status); }; }; then 7506 ac_hi=$ac_mid; break 7507else 7508 echo "$as_me: failed program was:" >&5 7509sed 's/^/| /' conftest.$ac_ext >&5 7510 7511ac_lo=`expr $ac_mid + 1` 7512 if test $ac_lo -le $ac_mid; then 7513 ac_lo= ac_hi= 7514 break 7515 fi 7516 ac_mid=`expr 2 '*' $ac_mid + 1` 7517fi 7518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7519 done 7520else 7521 echo "$as_me: failed program was:" >&5 7522sed 's/^/| /' conftest.$ac_ext >&5 7523 7524cat >conftest.$ac_ext <<_ACEOF 7525/* confdefs.h. */ 7526_ACEOF 7527cat confdefs.h >>conftest.$ac_ext 7528cat >>conftest.$ac_ext <<_ACEOF 7529/* end confdefs.h. */ 7530$ac_includes_default 7531int 7532main () 7533{ 7534static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 7535test_array [0] = 0 7536 7537 ; 7538 return 0; 7539} 7540_ACEOF 7541rm -f conftest.$ac_objext 7542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7543 (eval $ac_compile) 2>conftest.er1 7544 ac_status=$? 7545 grep -v '^ *+' conftest.er1 >conftest.err 7546 rm -f conftest.er1 7547 cat conftest.err >&5 7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7549 (exit $ac_status); } && 7550 { ac_try='test -z "$ac_c_werror_flag" 7551 || test ! -s conftest.err' 7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7553 (eval $ac_try) 2>&5 7554 ac_status=$? 7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7556 (exit $ac_status); }; } && 7557 { ac_try='test -s conftest.$ac_objext' 7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7559 (eval $ac_try) 2>&5 7560 ac_status=$? 7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7562 (exit $ac_status); }; }; then 7563 ac_hi=-1 ac_mid=-1 7564 while :; do 7565 cat >conftest.$ac_ext <<_ACEOF 7566/* confdefs.h. */ 7567_ACEOF 7568cat confdefs.h >>conftest.$ac_ext 7569cat >>conftest.$ac_ext <<_ACEOF 7570/* end confdefs.h. */ 7571$ac_includes_default 7572int 7573main () 7574{ 7575static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 7576test_array [0] = 0 7577 7578 ; 7579 return 0; 7580} 7581_ACEOF 7582rm -f conftest.$ac_objext 7583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7584 (eval $ac_compile) 2>conftest.er1 7585 ac_status=$? 7586 grep -v '^ *+' conftest.er1 >conftest.err 7587 rm -f conftest.er1 7588 cat conftest.err >&5 7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7590 (exit $ac_status); } && 7591 { ac_try='test -z "$ac_c_werror_flag" 7592 || test ! -s conftest.err' 7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7594 (eval $ac_try) 2>&5 7595 ac_status=$? 7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7597 (exit $ac_status); }; } && 7598 { ac_try='test -s conftest.$ac_objext' 7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7600 (eval $ac_try) 2>&5 7601 ac_status=$? 7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7603 (exit $ac_status); }; }; then 7604 ac_lo=$ac_mid; break 7605else 7606 echo "$as_me: failed program was:" >&5 7607sed 's/^/| /' conftest.$ac_ext >&5 7608 7609ac_hi=`expr '(' $ac_mid ')' - 1` 7610 if test $ac_mid -le $ac_hi; then 7611 ac_lo= ac_hi= 7612 break 7613 fi 7614 ac_mid=`expr 2 '*' $ac_mid` 7615fi 7616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7617 done 7618else 7619 echo "$as_me: failed program was:" >&5 7620sed 's/^/| /' conftest.$ac_ext >&5 7621 7622ac_lo= ac_hi= 7623fi 7624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7625fi 7626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7627# Binary search between lo and hi bounds. 7628while test "x$ac_lo" != "x$ac_hi"; do 7629 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7630 cat >conftest.$ac_ext <<_ACEOF 7631/* confdefs.h. */ 7632_ACEOF 7633cat confdefs.h >>conftest.$ac_ext 7634cat >>conftest.$ac_ext <<_ACEOF 7635/* end confdefs.h. */ 7636$ac_includes_default 7637int 7638main () 7639{ 7640static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 7641test_array [0] = 0 7642 7643 ; 7644 return 0; 7645} 7646_ACEOF 7647rm -f conftest.$ac_objext 7648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7649 (eval $ac_compile) 2>conftest.er1 7650 ac_status=$? 7651 grep -v '^ *+' conftest.er1 >conftest.err 7652 rm -f conftest.er1 7653 cat conftest.err >&5 7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7655 (exit $ac_status); } && 7656 { ac_try='test -z "$ac_c_werror_flag" 7657 || test ! -s conftest.err' 7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7659 (eval $ac_try) 2>&5 7660 ac_status=$? 7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7662 (exit $ac_status); }; } && 7663 { ac_try='test -s conftest.$ac_objext' 7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7665 (eval $ac_try) 2>&5 7666 ac_status=$? 7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7668 (exit $ac_status); }; }; then 7669 ac_hi=$ac_mid 7670else 7671 echo "$as_me: failed program was:" >&5 7672sed 's/^/| /' conftest.$ac_ext >&5 7673 7674ac_lo=`expr '(' $ac_mid ')' + 1` 7675fi 7676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7677done 7678case $ac_lo in 7679?*) ac_cv_sizeof_int=$ac_lo;; 7680'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 7681See \`config.log' for more details." >&5 7682echo "$as_me: error: cannot compute sizeof (int), 77 7683See \`config.log' for more details." >&2;} 7684 { (exit 1); exit 1; }; } ;; 7685esac 7686else 7687 if test "$cross_compiling" = yes; then 7688 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7689See \`config.log' for more details." >&5 7690echo "$as_me: error: cannot run test program while cross compiling 7691See \`config.log' for more details." >&2;} 7692 { (exit 1); exit 1; }; } 7693else 7694 cat >conftest.$ac_ext <<_ACEOF 7695/* confdefs.h. */ 7696_ACEOF 7697cat confdefs.h >>conftest.$ac_ext 7698cat >>conftest.$ac_ext <<_ACEOF 7699/* end confdefs.h. */ 7700$ac_includes_default 7701long longval () { return (long) (sizeof (int)); } 7702unsigned long ulongval () { return (long) (sizeof (int)); } 7703#include <stdio.h> 7704#include <stdlib.h> 7705int 7706main () 7707{ 7708 7709 FILE *f = fopen ("conftest.val", "w"); 7710 if (! f) 7711 exit (1); 7712 if (((long) (sizeof (int))) < 0) 7713 { 7714 long i = longval (); 7715 if (i != ((long) (sizeof (int)))) 7716 exit (1); 7717 fprintf (f, "%ld\n", i); 7718 } 7719 else 7720 { 7721 unsigned long i = ulongval (); 7722 if (i != ((long) (sizeof (int)))) 7723 exit (1); 7724 fprintf (f, "%lu\n", i); 7725 } 7726 exit (ferror (f) || fclose (f) != 0); 7727 7728 ; 7729 return 0; 7730} 7731_ACEOF 7732rm -f conftest$ac_exeext 7733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7734 (eval $ac_link) 2>&5 7735 ac_status=$? 7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7739 (eval $ac_try) 2>&5 7740 ac_status=$? 7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7742 (exit $ac_status); }; }; then 7743 ac_cv_sizeof_int=`cat conftest.val` 7744else 7745 echo "$as_me: program exited with status $ac_status" >&5 7746echo "$as_me: failed program was:" >&5 7747sed 's/^/| /' conftest.$ac_ext >&5 7748 7749( exit $ac_status ) 7750{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 7751See \`config.log' for more details." >&5 7752echo "$as_me: error: cannot compute sizeof (int), 77 7753See \`config.log' for more details." >&2;} 7754 { (exit 1); exit 1; }; } 7755fi 7756rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7757fi 7758fi 7759rm -f conftest.val 7760else 7761 ac_cv_sizeof_int=0 7762fi 7763fi 7764echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 7765echo "${ECHO_T}$ac_cv_sizeof_int" >&6 7766cat >>confdefs.h <<_ACEOF 7767#define SIZEOF_INT $ac_cv_sizeof_int 7768_ACEOF 7769 7770 7771echo "$as_me:$LINENO: checking for short" >&5 7772echo $ECHO_N "checking for short... $ECHO_C" >&6 7773if test "${ac_cv_type_short+set}" = set; then 7774 echo $ECHO_N "(cached) $ECHO_C" >&6 7775else 7776 cat >conftest.$ac_ext <<_ACEOF 7777/* confdefs.h. */ 7778_ACEOF 7779cat confdefs.h >>conftest.$ac_ext 7780cat >>conftest.$ac_ext <<_ACEOF 7781/* end confdefs.h. */ 7782$ac_includes_default 7783int 7784main () 7785{ 7786if ((short *) 0) 7787 return 0; 7788if (sizeof (short)) 7789 return 0; 7790 ; 7791 return 0; 7792} 7793_ACEOF 7794rm -f conftest.$ac_objext 7795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7796 (eval $ac_compile) 2>conftest.er1 7797 ac_status=$? 7798 grep -v '^ *+' conftest.er1 >conftest.err 7799 rm -f conftest.er1 7800 cat conftest.err >&5 7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7802 (exit $ac_status); } && 7803 { ac_try='test -z "$ac_c_werror_flag" 7804 || test ! -s conftest.err' 7805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7806 (eval $ac_try) 2>&5 7807 ac_status=$? 7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7809 (exit $ac_status); }; } && 7810 { ac_try='test -s conftest.$ac_objext' 7811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7812 (eval $ac_try) 2>&5 7813 ac_status=$? 7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7815 (exit $ac_status); }; }; then 7816 ac_cv_type_short=yes 7817else 7818 echo "$as_me: failed program was:" >&5 7819sed 's/^/| /' conftest.$ac_ext >&5 7820 7821ac_cv_type_short=no 7822fi 7823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7824fi 7825echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 7826echo "${ECHO_T}$ac_cv_type_short" >&6 7827 7828echo "$as_me:$LINENO: checking size of short" >&5 7829echo $ECHO_N "checking size of short... $ECHO_C" >&6 7830if test "${ac_cv_sizeof_short+set}" = set; then 7831 echo $ECHO_N "(cached) $ECHO_C" >&6 7832else 7833 if test "$ac_cv_type_short" = yes; then 7834 # The cast to unsigned long works around a bug in the HP C Compiler 7835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7837 # This bug is HP SR number 8606223364. 7838 if test "$cross_compiling" = yes; then 7839 # Depending upon the size, compute the lo and hi bounds. 7840cat >conftest.$ac_ext <<_ACEOF 7841/* confdefs.h. */ 7842_ACEOF 7843cat confdefs.h >>conftest.$ac_ext 7844cat >>conftest.$ac_ext <<_ACEOF 7845/* end confdefs.h. */ 7846$ac_includes_default 7847int 7848main () 7849{ 7850static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 7851test_array [0] = 0 7852 7853 ; 7854 return 0; 7855} 7856_ACEOF 7857rm -f conftest.$ac_objext 7858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7859 (eval $ac_compile) 2>conftest.er1 7860 ac_status=$? 7861 grep -v '^ *+' conftest.er1 >conftest.err 7862 rm -f conftest.er1 7863 cat conftest.err >&5 7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7865 (exit $ac_status); } && 7866 { ac_try='test -z "$ac_c_werror_flag" 7867 || test ! -s conftest.err' 7868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7869 (eval $ac_try) 2>&5 7870 ac_status=$? 7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7872 (exit $ac_status); }; } && 7873 { ac_try='test -s conftest.$ac_objext' 7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7875 (eval $ac_try) 2>&5 7876 ac_status=$? 7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7878 (exit $ac_status); }; }; then 7879 ac_lo=0 ac_mid=0 7880 while :; do 7881 cat >conftest.$ac_ext <<_ACEOF 7882/* confdefs.h. */ 7883_ACEOF 7884cat confdefs.h >>conftest.$ac_ext 7885cat >>conftest.$ac_ext <<_ACEOF 7886/* end confdefs.h. */ 7887$ac_includes_default 7888int 7889main () 7890{ 7891static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 7892test_array [0] = 0 7893 7894 ; 7895 return 0; 7896} 7897_ACEOF 7898rm -f conftest.$ac_objext 7899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7900 (eval $ac_compile) 2>conftest.er1 7901 ac_status=$? 7902 grep -v '^ *+' conftest.er1 >conftest.err 7903 rm -f conftest.er1 7904 cat conftest.err >&5 7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7906 (exit $ac_status); } && 7907 { ac_try='test -z "$ac_c_werror_flag" 7908 || test ! -s conftest.err' 7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7910 (eval $ac_try) 2>&5 7911 ac_status=$? 7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7913 (exit $ac_status); }; } && 7914 { ac_try='test -s conftest.$ac_objext' 7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7916 (eval $ac_try) 2>&5 7917 ac_status=$? 7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7919 (exit $ac_status); }; }; then 7920 ac_hi=$ac_mid; break 7921else 7922 echo "$as_me: failed program was:" >&5 7923sed 's/^/| /' conftest.$ac_ext >&5 7924 7925ac_lo=`expr $ac_mid + 1` 7926 if test $ac_lo -le $ac_mid; then 7927 ac_lo= ac_hi= 7928 break 7929 fi 7930 ac_mid=`expr 2 '*' $ac_mid + 1` 7931fi 7932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7933 done 7934else 7935 echo "$as_me: failed program was:" >&5 7936sed 's/^/| /' conftest.$ac_ext >&5 7937 7938cat >conftest.$ac_ext <<_ACEOF 7939/* confdefs.h. */ 7940_ACEOF 7941cat confdefs.h >>conftest.$ac_ext 7942cat >>conftest.$ac_ext <<_ACEOF 7943/* end confdefs.h. */ 7944$ac_includes_default 7945int 7946main () 7947{ 7948static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 7949test_array [0] = 0 7950 7951 ; 7952 return 0; 7953} 7954_ACEOF 7955rm -f conftest.$ac_objext 7956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7957 (eval $ac_compile) 2>conftest.er1 7958 ac_status=$? 7959 grep -v '^ *+' conftest.er1 >conftest.err 7960 rm -f conftest.er1 7961 cat conftest.err >&5 7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7963 (exit $ac_status); } && 7964 { ac_try='test -z "$ac_c_werror_flag" 7965 || test ! -s conftest.err' 7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7967 (eval $ac_try) 2>&5 7968 ac_status=$? 7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7970 (exit $ac_status); }; } && 7971 { ac_try='test -s conftest.$ac_objext' 7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7973 (eval $ac_try) 2>&5 7974 ac_status=$? 7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7976 (exit $ac_status); }; }; then 7977 ac_hi=-1 ac_mid=-1 7978 while :; do 7979 cat >conftest.$ac_ext <<_ACEOF 7980/* confdefs.h. */ 7981_ACEOF 7982cat confdefs.h >>conftest.$ac_ext 7983cat >>conftest.$ac_ext <<_ACEOF 7984/* end confdefs.h. */ 7985$ac_includes_default 7986int 7987main () 7988{ 7989static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 7990test_array [0] = 0 7991 7992 ; 7993 return 0; 7994} 7995_ACEOF 7996rm -f conftest.$ac_objext 7997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7998 (eval $ac_compile) 2>conftest.er1 7999 ac_status=$? 8000 grep -v '^ *+' conftest.er1 >conftest.err 8001 rm -f conftest.er1 8002 cat conftest.err >&5 8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8004 (exit $ac_status); } && 8005 { ac_try='test -z "$ac_c_werror_flag" 8006 || test ! -s conftest.err' 8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8008 (eval $ac_try) 2>&5 8009 ac_status=$? 8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8011 (exit $ac_status); }; } && 8012 { ac_try='test -s conftest.$ac_objext' 8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8014 (eval $ac_try) 2>&5 8015 ac_status=$? 8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8017 (exit $ac_status); }; }; then 8018 ac_lo=$ac_mid; break 8019else 8020 echo "$as_me: failed program was:" >&5 8021sed 's/^/| /' conftest.$ac_ext >&5 8022 8023ac_hi=`expr '(' $ac_mid ')' - 1` 8024 if test $ac_mid -le $ac_hi; then 8025 ac_lo= ac_hi= 8026 break 8027 fi 8028 ac_mid=`expr 2 '*' $ac_mid` 8029fi 8030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8031 done 8032else 8033 echo "$as_me: failed program was:" >&5 8034sed 's/^/| /' conftest.$ac_ext >&5 8035 8036ac_lo= ac_hi= 8037fi 8038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8039fi 8040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8041# Binary search between lo and hi bounds. 8042while test "x$ac_lo" != "x$ac_hi"; do 8043 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8044 cat >conftest.$ac_ext <<_ACEOF 8045/* confdefs.h. */ 8046_ACEOF 8047cat confdefs.h >>conftest.$ac_ext 8048cat >>conftest.$ac_ext <<_ACEOF 8049/* end confdefs.h. */ 8050$ac_includes_default 8051int 8052main () 8053{ 8054static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 8055test_array [0] = 0 8056 8057 ; 8058 return 0; 8059} 8060_ACEOF 8061rm -f conftest.$ac_objext 8062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8063 (eval $ac_compile) 2>conftest.er1 8064 ac_status=$? 8065 grep -v '^ *+' conftest.er1 >conftest.err 8066 rm -f conftest.er1 8067 cat conftest.err >&5 8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8069 (exit $ac_status); } && 8070 { ac_try='test -z "$ac_c_werror_flag" 8071 || test ! -s conftest.err' 8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8073 (eval $ac_try) 2>&5 8074 ac_status=$? 8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8076 (exit $ac_status); }; } && 8077 { ac_try='test -s conftest.$ac_objext' 8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8079 (eval $ac_try) 2>&5 8080 ac_status=$? 8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8082 (exit $ac_status); }; }; then 8083 ac_hi=$ac_mid 8084else 8085 echo "$as_me: failed program was:" >&5 8086sed 's/^/| /' conftest.$ac_ext >&5 8087 8088ac_lo=`expr '(' $ac_mid ')' + 1` 8089fi 8090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8091done 8092case $ac_lo in 8093?*) ac_cv_sizeof_short=$ac_lo;; 8094'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 8095See \`config.log' for more details." >&5 8096echo "$as_me: error: cannot compute sizeof (short), 77 8097See \`config.log' for more details." >&2;} 8098 { (exit 1); exit 1; }; } ;; 8099esac 8100else 8101 if test "$cross_compiling" = yes; then 8102 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8103See \`config.log' for more details." >&5 8104echo "$as_me: error: cannot run test program while cross compiling 8105See \`config.log' for more details." >&2;} 8106 { (exit 1); exit 1; }; } 8107else 8108 cat >conftest.$ac_ext <<_ACEOF 8109/* confdefs.h. */ 8110_ACEOF 8111cat confdefs.h >>conftest.$ac_ext 8112cat >>conftest.$ac_ext <<_ACEOF 8113/* end confdefs.h. */ 8114$ac_includes_default 8115long longval () { return (long) (sizeof (short)); } 8116unsigned long ulongval () { return (long) (sizeof (short)); } 8117#include <stdio.h> 8118#include <stdlib.h> 8119int 8120main () 8121{ 8122 8123 FILE *f = fopen ("conftest.val", "w"); 8124 if (! f) 8125 exit (1); 8126 if (((long) (sizeof (short))) < 0) 8127 { 8128 long i = longval (); 8129 if (i != ((long) (sizeof (short)))) 8130 exit (1); 8131 fprintf (f, "%ld\n", i); 8132 } 8133 else 8134 { 8135 unsigned long i = ulongval (); 8136 if (i != ((long) (sizeof (short)))) 8137 exit (1); 8138 fprintf (f, "%lu\n", i); 8139 } 8140 exit (ferror (f) || fclose (f) != 0); 8141 8142 ; 8143 return 0; 8144} 8145_ACEOF 8146rm -f conftest$ac_exeext 8147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8148 (eval $ac_link) 2>&5 8149 ac_status=$? 8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8153 (eval $ac_try) 2>&5 8154 ac_status=$? 8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8156 (exit $ac_status); }; }; then 8157 ac_cv_sizeof_short=`cat conftest.val` 8158else 8159 echo "$as_me: program exited with status $ac_status" >&5 8160echo "$as_me: failed program was:" >&5 8161sed 's/^/| /' conftest.$ac_ext >&5 8162 8163( exit $ac_status ) 8164{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 8165See \`config.log' for more details." >&5 8166echo "$as_me: error: cannot compute sizeof (short), 77 8167See \`config.log' for more details." >&2;} 8168 { (exit 1); exit 1; }; } 8169fi 8170rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8171fi 8172fi 8173rm -f conftest.val 8174else 8175 ac_cv_sizeof_short=0 8176fi 8177fi 8178echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8179echo "${ECHO_T}$ac_cv_sizeof_short" >&6 8180cat >>confdefs.h <<_ACEOF 8181#define SIZEOF_SHORT $ac_cv_sizeof_short 8182_ACEOF 8183 8184 8185 8186 8187 if test -z "$ac_cv_sizeof_long"; then 8188 echo "$as_me:$LINENO: checking for inline" >&5 8189echo $ECHO_N "checking for inline... $ECHO_C" >&6 8190if test "${ac_cv_c_inline+set}" = set; then 8191 echo $ECHO_N "(cached) $ECHO_C" >&6 8192else 8193 ac_cv_c_inline=no 8194for ac_kw in inline __inline__ __inline; do 8195 cat >conftest.$ac_ext <<_ACEOF 8196/* confdefs.h. */ 8197_ACEOF 8198cat confdefs.h >>conftest.$ac_ext 8199cat >>conftest.$ac_ext <<_ACEOF 8200/* end confdefs.h. */ 8201#ifndef __cplusplus 8202typedef int foo_t; 8203static $ac_kw foo_t static_foo () {return 0; } 8204$ac_kw foo_t foo () {return 0; } 8205#endif 8206 8207_ACEOF 8208rm -f conftest.$ac_objext 8209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8210 (eval $ac_compile) 2>conftest.er1 8211 ac_status=$? 8212 grep -v '^ *+' conftest.er1 >conftest.err 8213 rm -f conftest.er1 8214 cat conftest.err >&5 8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8216 (exit $ac_status); } && 8217 { ac_try='test -z "$ac_c_werror_flag" 8218 || test ! -s conftest.err' 8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8220 (eval $ac_try) 2>&5 8221 ac_status=$? 8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8223 (exit $ac_status); }; } && 8224 { ac_try='test -s conftest.$ac_objext' 8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8226 (eval $ac_try) 2>&5 8227 ac_status=$? 8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8229 (exit $ac_status); }; }; then 8230 ac_cv_c_inline=$ac_kw; break 8231else 8232 echo "$as_me: failed program was:" >&5 8233sed 's/^/| /' conftest.$ac_ext >&5 8234 8235fi 8236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8237done 8238 8239fi 8240echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 8241echo "${ECHO_T}$ac_cv_c_inline" >&6 8242 8243 8244case $ac_cv_c_inline in 8245 inline | yes) ;; 8246 *) 8247 case $ac_cv_c_inline in 8248 no) ac_val=;; 8249 *) ac_val=$ac_cv_c_inline;; 8250 esac 8251 cat >>confdefs.h <<_ACEOF 8252#ifndef __cplusplus 8253#define inline $ac_val 8254#endif 8255_ACEOF 8256 ;; 8257esac 8258 8259 echo "$as_me:$LINENO: checking for long long" >&5 8260echo $ECHO_N "checking for long long... $ECHO_C" >&6 8261if test "${ac_cv_type_long_long+set}" = set; then 8262 echo $ECHO_N "(cached) $ECHO_C" >&6 8263else 8264 cat >conftest.$ac_ext <<_ACEOF 8265/* confdefs.h. */ 8266_ACEOF 8267cat confdefs.h >>conftest.$ac_ext 8268cat >>conftest.$ac_ext <<_ACEOF 8269/* end confdefs.h. */ 8270$ac_includes_default 8271int 8272main () 8273{ 8274if ((long long *) 0) 8275 return 0; 8276if (sizeof (long long)) 8277 return 0; 8278 ; 8279 return 0; 8280} 8281_ACEOF 8282rm -f conftest.$ac_objext 8283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8284 (eval $ac_compile) 2>conftest.er1 8285 ac_status=$? 8286 grep -v '^ *+' conftest.er1 >conftest.err 8287 rm -f conftest.er1 8288 cat conftest.err >&5 8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8290 (exit $ac_status); } && 8291 { ac_try='test -z "$ac_c_werror_flag" 8292 || test ! -s conftest.err' 8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8294 (eval $ac_try) 2>&5 8295 ac_status=$? 8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8297 (exit $ac_status); }; } && 8298 { ac_try='test -s conftest.$ac_objext' 8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8300 (eval $ac_try) 2>&5 8301 ac_status=$? 8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8303 (exit $ac_status); }; }; then 8304 ac_cv_type_long_long=yes 8305else 8306 echo "$as_me: failed program was:" >&5 8307sed 's/^/| /' conftest.$ac_ext >&5 8308 8309ac_cv_type_long_long=no 8310fi 8311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8312fi 8313echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 8314echo "${ECHO_T}$ac_cv_type_long_long" >&6 8315 8316echo "$as_me:$LINENO: checking size of long long" >&5 8317echo $ECHO_N "checking size of long long... $ECHO_C" >&6 8318if test "${ac_cv_sizeof_long_long+set}" = set; then 8319 echo $ECHO_N "(cached) $ECHO_C" >&6 8320else 8321 if test "$ac_cv_type_long_long" = yes; then 8322 # The cast to unsigned long works around a bug in the HP C Compiler 8323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8325 # This bug is HP SR number 8606223364. 8326 if test "$cross_compiling" = yes; then 8327 # Depending upon the size, compute the lo and hi bounds. 8328cat >conftest.$ac_ext <<_ACEOF 8329/* confdefs.h. */ 8330_ACEOF 8331cat confdefs.h >>conftest.$ac_ext 8332cat >>conftest.$ac_ext <<_ACEOF 8333/* end confdefs.h. */ 8334$ac_includes_default 8335int 8336main () 8337{ 8338static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 8339test_array [0] = 0 8340 8341 ; 8342 return 0; 8343} 8344_ACEOF 8345rm -f conftest.$ac_objext 8346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8347 (eval $ac_compile) 2>conftest.er1 8348 ac_status=$? 8349 grep -v '^ *+' conftest.er1 >conftest.err 8350 rm -f conftest.er1 8351 cat conftest.err >&5 8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8353 (exit $ac_status); } && 8354 { ac_try='test -z "$ac_c_werror_flag" 8355 || test ! -s conftest.err' 8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8357 (eval $ac_try) 2>&5 8358 ac_status=$? 8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8360 (exit $ac_status); }; } && 8361 { ac_try='test -s conftest.$ac_objext' 8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8363 (eval $ac_try) 2>&5 8364 ac_status=$? 8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8366 (exit $ac_status); }; }; then 8367 ac_lo=0 ac_mid=0 8368 while :; do 8369 cat >conftest.$ac_ext <<_ACEOF 8370/* confdefs.h. */ 8371_ACEOF 8372cat confdefs.h >>conftest.$ac_ext 8373cat >>conftest.$ac_ext <<_ACEOF 8374/* end confdefs.h. */ 8375$ac_includes_default 8376int 8377main () 8378{ 8379static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 8380test_array [0] = 0 8381 8382 ; 8383 return 0; 8384} 8385_ACEOF 8386rm -f conftest.$ac_objext 8387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8388 (eval $ac_compile) 2>conftest.er1 8389 ac_status=$? 8390 grep -v '^ *+' conftest.er1 >conftest.err 8391 rm -f conftest.er1 8392 cat conftest.err >&5 8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8394 (exit $ac_status); } && 8395 { ac_try='test -z "$ac_c_werror_flag" 8396 || test ! -s conftest.err' 8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8398 (eval $ac_try) 2>&5 8399 ac_status=$? 8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8401 (exit $ac_status); }; } && 8402 { ac_try='test -s conftest.$ac_objext' 8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8404 (eval $ac_try) 2>&5 8405 ac_status=$? 8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8407 (exit $ac_status); }; }; then 8408 ac_hi=$ac_mid; break 8409else 8410 echo "$as_me: failed program was:" >&5 8411sed 's/^/| /' conftest.$ac_ext >&5 8412 8413ac_lo=`expr $ac_mid + 1` 8414 if test $ac_lo -le $ac_mid; then 8415 ac_lo= ac_hi= 8416 break 8417 fi 8418 ac_mid=`expr 2 '*' $ac_mid + 1` 8419fi 8420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8421 done 8422else 8423 echo "$as_me: failed program was:" >&5 8424sed 's/^/| /' conftest.$ac_ext >&5 8425 8426cat >conftest.$ac_ext <<_ACEOF 8427/* confdefs.h. */ 8428_ACEOF 8429cat confdefs.h >>conftest.$ac_ext 8430cat >>conftest.$ac_ext <<_ACEOF 8431/* end confdefs.h. */ 8432$ac_includes_default 8433int 8434main () 8435{ 8436static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 8437test_array [0] = 0 8438 8439 ; 8440 return 0; 8441} 8442_ACEOF 8443rm -f conftest.$ac_objext 8444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8445 (eval $ac_compile) 2>conftest.er1 8446 ac_status=$? 8447 grep -v '^ *+' conftest.er1 >conftest.err 8448 rm -f conftest.er1 8449 cat conftest.err >&5 8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8451 (exit $ac_status); } && 8452 { ac_try='test -z "$ac_c_werror_flag" 8453 || test ! -s conftest.err' 8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8455 (eval $ac_try) 2>&5 8456 ac_status=$? 8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8458 (exit $ac_status); }; } && 8459 { ac_try='test -s conftest.$ac_objext' 8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8461 (eval $ac_try) 2>&5 8462 ac_status=$? 8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8464 (exit $ac_status); }; }; then 8465 ac_hi=-1 ac_mid=-1 8466 while :; do 8467 cat >conftest.$ac_ext <<_ACEOF 8468/* confdefs.h. */ 8469_ACEOF 8470cat confdefs.h >>conftest.$ac_ext 8471cat >>conftest.$ac_ext <<_ACEOF 8472/* end confdefs.h. */ 8473$ac_includes_default 8474int 8475main () 8476{ 8477static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 8478test_array [0] = 0 8479 8480 ; 8481 return 0; 8482} 8483_ACEOF 8484rm -f conftest.$ac_objext 8485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8486 (eval $ac_compile) 2>conftest.er1 8487 ac_status=$? 8488 grep -v '^ *+' conftest.er1 >conftest.err 8489 rm -f conftest.er1 8490 cat conftest.err >&5 8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8492 (exit $ac_status); } && 8493 { ac_try='test -z "$ac_c_werror_flag" 8494 || test ! -s conftest.err' 8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8496 (eval $ac_try) 2>&5 8497 ac_status=$? 8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8499 (exit $ac_status); }; } && 8500 { ac_try='test -s conftest.$ac_objext' 8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8502 (eval $ac_try) 2>&5 8503 ac_status=$? 8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8505 (exit $ac_status); }; }; then 8506 ac_lo=$ac_mid; break 8507else 8508 echo "$as_me: failed program was:" >&5 8509sed 's/^/| /' conftest.$ac_ext >&5 8510 8511ac_hi=`expr '(' $ac_mid ')' - 1` 8512 if test $ac_mid -le $ac_hi; then 8513 ac_lo= ac_hi= 8514 break 8515 fi 8516 ac_mid=`expr 2 '*' $ac_mid` 8517fi 8518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8519 done 8520else 8521 echo "$as_me: failed program was:" >&5 8522sed 's/^/| /' conftest.$ac_ext >&5 8523 8524ac_lo= ac_hi= 8525fi 8526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8527fi 8528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8529# Binary search between lo and hi bounds. 8530while test "x$ac_lo" != "x$ac_hi"; do 8531 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8532 cat >conftest.$ac_ext <<_ACEOF 8533/* confdefs.h. */ 8534_ACEOF 8535cat confdefs.h >>conftest.$ac_ext 8536cat >>conftest.$ac_ext <<_ACEOF 8537/* end confdefs.h. */ 8538$ac_includes_default 8539int 8540main () 8541{ 8542static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 8543test_array [0] = 0 8544 8545 ; 8546 return 0; 8547} 8548_ACEOF 8549rm -f conftest.$ac_objext 8550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8551 (eval $ac_compile) 2>conftest.er1 8552 ac_status=$? 8553 grep -v '^ *+' conftest.er1 >conftest.err 8554 rm -f conftest.er1 8555 cat conftest.err >&5 8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8557 (exit $ac_status); } && 8558 { ac_try='test -z "$ac_c_werror_flag" 8559 || test ! -s conftest.err' 8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8561 (eval $ac_try) 2>&5 8562 ac_status=$? 8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8564 (exit $ac_status); }; } && 8565 { ac_try='test -s conftest.$ac_objext' 8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8567 (eval $ac_try) 2>&5 8568 ac_status=$? 8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8570 (exit $ac_status); }; }; then 8571 ac_hi=$ac_mid 8572else 8573 echo "$as_me: failed program was:" >&5 8574sed 's/^/| /' conftest.$ac_ext >&5 8575 8576ac_lo=`expr '(' $ac_mid ')' + 1` 8577fi 8578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8579done 8580case $ac_lo in 8581?*) ac_cv_sizeof_long_long=$ac_lo;; 8582'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 8583See \`config.log' for more details." >&5 8584echo "$as_me: error: cannot compute sizeof (long long), 77 8585See \`config.log' for more details." >&2;} 8586 { (exit 1); exit 1; }; } ;; 8587esac 8588else 8589 if test "$cross_compiling" = yes; then 8590 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8591See \`config.log' for more details." >&5 8592echo "$as_me: error: cannot run test program while cross compiling 8593See \`config.log' for more details." >&2;} 8594 { (exit 1); exit 1; }; } 8595else 8596 cat >conftest.$ac_ext <<_ACEOF 8597/* confdefs.h. */ 8598_ACEOF 8599cat confdefs.h >>conftest.$ac_ext 8600cat >>conftest.$ac_ext <<_ACEOF 8601/* end confdefs.h. */ 8602$ac_includes_default 8603long longval () { return (long) (sizeof (long long)); } 8604unsigned long ulongval () { return (long) (sizeof (long long)); } 8605#include <stdio.h> 8606#include <stdlib.h> 8607int 8608main () 8609{ 8610 8611 FILE *f = fopen ("conftest.val", "w"); 8612 if (! f) 8613 exit (1); 8614 if (((long) (sizeof (long long))) < 0) 8615 { 8616 long i = longval (); 8617 if (i != ((long) (sizeof (long long)))) 8618 exit (1); 8619 fprintf (f, "%ld\n", i); 8620 } 8621 else 8622 { 8623 unsigned long i = ulongval (); 8624 if (i != ((long) (sizeof (long long)))) 8625 exit (1); 8626 fprintf (f, "%lu\n", i); 8627 } 8628 exit (ferror (f) || fclose (f) != 0); 8629 8630 ; 8631 return 0; 8632} 8633_ACEOF 8634rm -f conftest$ac_exeext 8635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8636 (eval $ac_link) 2>&5 8637 ac_status=$? 8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8641 (eval $ac_try) 2>&5 8642 ac_status=$? 8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8644 (exit $ac_status); }; }; then 8645 ac_cv_sizeof_long_long=`cat conftest.val` 8646else 8647 echo "$as_me: program exited with status $ac_status" >&5 8648echo "$as_me: failed program was:" >&5 8649sed 's/^/| /' conftest.$ac_ext >&5 8650 8651( exit $ac_status ) 8652{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 8653See \`config.log' for more details." >&5 8654echo "$as_me: error: cannot compute sizeof (long long), 77 8655See \`config.log' for more details." >&2;} 8656 { (exit 1); exit 1; }; } 8657fi 8658rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8659fi 8660fi 8661rm -f conftest.val 8662else 8663 ac_cv_sizeof_long_long=0 8664fi 8665fi 8666echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 8667echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 8668cat >>confdefs.h <<_ACEOF 8669#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 8670_ACEOF 8671 8672 8673 echo "$as_me:$LINENO: checking for long" >&5 8674echo $ECHO_N "checking for long... $ECHO_C" >&6 8675if test "${ac_cv_type_long+set}" = set; then 8676 echo $ECHO_N "(cached) $ECHO_C" >&6 8677else 8678 cat >conftest.$ac_ext <<_ACEOF 8679/* confdefs.h. */ 8680_ACEOF 8681cat confdefs.h >>conftest.$ac_ext 8682cat >>conftest.$ac_ext <<_ACEOF 8683/* end confdefs.h. */ 8684$ac_includes_default 8685int 8686main () 8687{ 8688if ((long *) 0) 8689 return 0; 8690if (sizeof (long)) 8691 return 0; 8692 ; 8693 return 0; 8694} 8695_ACEOF 8696rm -f conftest.$ac_objext 8697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8698 (eval $ac_compile) 2>conftest.er1 8699 ac_status=$? 8700 grep -v '^ *+' conftest.er1 >conftest.err 8701 rm -f conftest.er1 8702 cat conftest.err >&5 8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8704 (exit $ac_status); } && 8705 { ac_try='test -z "$ac_c_werror_flag" 8706 || test ! -s conftest.err' 8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8708 (eval $ac_try) 2>&5 8709 ac_status=$? 8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8711 (exit $ac_status); }; } && 8712 { ac_try='test -s conftest.$ac_objext' 8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8714 (eval $ac_try) 2>&5 8715 ac_status=$? 8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8717 (exit $ac_status); }; }; then 8718 ac_cv_type_long=yes 8719else 8720 echo "$as_me: failed program was:" >&5 8721sed 's/^/| /' conftest.$ac_ext >&5 8722 8723ac_cv_type_long=no 8724fi 8725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8726fi 8727echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 8728echo "${ECHO_T}$ac_cv_type_long" >&6 8729 8730echo "$as_me:$LINENO: checking size of long" >&5 8731echo $ECHO_N "checking size of long... $ECHO_C" >&6 8732if test "${ac_cv_sizeof_long+set}" = set; then 8733 echo $ECHO_N "(cached) $ECHO_C" >&6 8734else 8735 if test "$ac_cv_type_long" = yes; then 8736 # The cast to unsigned long works around a bug in the HP C Compiler 8737 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8738 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8739 # This bug is HP SR number 8606223364. 8740 if test "$cross_compiling" = yes; then 8741 # Depending upon the size, compute the lo and hi bounds. 8742cat >conftest.$ac_ext <<_ACEOF 8743/* confdefs.h. */ 8744_ACEOF 8745cat confdefs.h >>conftest.$ac_ext 8746cat >>conftest.$ac_ext <<_ACEOF 8747/* end confdefs.h. */ 8748$ac_includes_default 8749int 8750main () 8751{ 8752static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 8753test_array [0] = 0 8754 8755 ; 8756 return 0; 8757} 8758_ACEOF 8759rm -f conftest.$ac_objext 8760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8761 (eval $ac_compile) 2>conftest.er1 8762 ac_status=$? 8763 grep -v '^ *+' conftest.er1 >conftest.err 8764 rm -f conftest.er1 8765 cat conftest.err >&5 8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8767 (exit $ac_status); } && 8768 { ac_try='test -z "$ac_c_werror_flag" 8769 || test ! -s conftest.err' 8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8771 (eval $ac_try) 2>&5 8772 ac_status=$? 8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8774 (exit $ac_status); }; } && 8775 { ac_try='test -s conftest.$ac_objext' 8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8777 (eval $ac_try) 2>&5 8778 ac_status=$? 8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8780 (exit $ac_status); }; }; then 8781 ac_lo=0 ac_mid=0 8782 while :; do 8783 cat >conftest.$ac_ext <<_ACEOF 8784/* confdefs.h. */ 8785_ACEOF 8786cat confdefs.h >>conftest.$ac_ext 8787cat >>conftest.$ac_ext <<_ACEOF 8788/* end confdefs.h. */ 8789$ac_includes_default 8790int 8791main () 8792{ 8793static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 8794test_array [0] = 0 8795 8796 ; 8797 return 0; 8798} 8799_ACEOF 8800rm -f conftest.$ac_objext 8801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8802 (eval $ac_compile) 2>conftest.er1 8803 ac_status=$? 8804 grep -v '^ *+' conftest.er1 >conftest.err 8805 rm -f conftest.er1 8806 cat conftest.err >&5 8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8808 (exit $ac_status); } && 8809 { ac_try='test -z "$ac_c_werror_flag" 8810 || test ! -s conftest.err' 8811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8812 (eval $ac_try) 2>&5 8813 ac_status=$? 8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8815 (exit $ac_status); }; } && 8816 { ac_try='test -s conftest.$ac_objext' 8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8818 (eval $ac_try) 2>&5 8819 ac_status=$? 8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8821 (exit $ac_status); }; }; then 8822 ac_hi=$ac_mid; break 8823else 8824 echo "$as_me: failed program was:" >&5 8825sed 's/^/| /' conftest.$ac_ext >&5 8826 8827ac_lo=`expr $ac_mid + 1` 8828 if test $ac_lo -le $ac_mid; then 8829 ac_lo= ac_hi= 8830 break 8831 fi 8832 ac_mid=`expr 2 '*' $ac_mid + 1` 8833fi 8834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8835 done 8836else 8837 echo "$as_me: failed program was:" >&5 8838sed 's/^/| /' conftest.$ac_ext >&5 8839 8840cat >conftest.$ac_ext <<_ACEOF 8841/* confdefs.h. */ 8842_ACEOF 8843cat confdefs.h >>conftest.$ac_ext 8844cat >>conftest.$ac_ext <<_ACEOF 8845/* end confdefs.h. */ 8846$ac_includes_default 8847int 8848main () 8849{ 8850static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 8851test_array [0] = 0 8852 8853 ; 8854 return 0; 8855} 8856_ACEOF 8857rm -f conftest.$ac_objext 8858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8859 (eval $ac_compile) 2>conftest.er1 8860 ac_status=$? 8861 grep -v '^ *+' conftest.er1 >conftest.err 8862 rm -f conftest.er1 8863 cat conftest.err >&5 8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8865 (exit $ac_status); } && 8866 { ac_try='test -z "$ac_c_werror_flag" 8867 || test ! -s conftest.err' 8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8869 (eval $ac_try) 2>&5 8870 ac_status=$? 8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8872 (exit $ac_status); }; } && 8873 { ac_try='test -s conftest.$ac_objext' 8874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8875 (eval $ac_try) 2>&5 8876 ac_status=$? 8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8878 (exit $ac_status); }; }; then 8879 ac_hi=-1 ac_mid=-1 8880 while :; do 8881 cat >conftest.$ac_ext <<_ACEOF 8882/* confdefs.h. */ 8883_ACEOF 8884cat confdefs.h >>conftest.$ac_ext 8885cat >>conftest.$ac_ext <<_ACEOF 8886/* end confdefs.h. */ 8887$ac_includes_default 8888int 8889main () 8890{ 8891static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 8892test_array [0] = 0 8893 8894 ; 8895 return 0; 8896} 8897_ACEOF 8898rm -f conftest.$ac_objext 8899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8900 (eval $ac_compile) 2>conftest.er1 8901 ac_status=$? 8902 grep -v '^ *+' conftest.er1 >conftest.err 8903 rm -f conftest.er1 8904 cat conftest.err >&5 8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8906 (exit $ac_status); } && 8907 { ac_try='test -z "$ac_c_werror_flag" 8908 || test ! -s conftest.err' 8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8910 (eval $ac_try) 2>&5 8911 ac_status=$? 8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8913 (exit $ac_status); }; } && 8914 { ac_try='test -s conftest.$ac_objext' 8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8916 (eval $ac_try) 2>&5 8917 ac_status=$? 8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8919 (exit $ac_status); }; }; then 8920 ac_lo=$ac_mid; break 8921else 8922 echo "$as_me: failed program was:" >&5 8923sed 's/^/| /' conftest.$ac_ext >&5 8924 8925ac_hi=`expr '(' $ac_mid ')' - 1` 8926 if test $ac_mid -le $ac_hi; then 8927 ac_lo= ac_hi= 8928 break 8929 fi 8930 ac_mid=`expr 2 '*' $ac_mid` 8931fi 8932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8933 done 8934else 8935 echo "$as_me: failed program was:" >&5 8936sed 's/^/| /' conftest.$ac_ext >&5 8937 8938ac_lo= ac_hi= 8939fi 8940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8941fi 8942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8943# Binary search between lo and hi bounds. 8944while test "x$ac_lo" != "x$ac_hi"; do 8945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8946 cat >conftest.$ac_ext <<_ACEOF 8947/* confdefs.h. */ 8948_ACEOF 8949cat confdefs.h >>conftest.$ac_ext 8950cat >>conftest.$ac_ext <<_ACEOF 8951/* end confdefs.h. */ 8952$ac_includes_default 8953int 8954main () 8955{ 8956static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 8957test_array [0] = 0 8958 8959 ; 8960 return 0; 8961} 8962_ACEOF 8963rm -f conftest.$ac_objext 8964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8965 (eval $ac_compile) 2>conftest.er1 8966 ac_status=$? 8967 grep -v '^ *+' conftest.er1 >conftest.err 8968 rm -f conftest.er1 8969 cat conftest.err >&5 8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8971 (exit $ac_status); } && 8972 { ac_try='test -z "$ac_c_werror_flag" 8973 || test ! -s conftest.err' 8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8975 (eval $ac_try) 2>&5 8976 ac_status=$? 8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8978 (exit $ac_status); }; } && 8979 { ac_try='test -s conftest.$ac_objext' 8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8981 (eval $ac_try) 2>&5 8982 ac_status=$? 8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8984 (exit $ac_status); }; }; then 8985 ac_hi=$ac_mid 8986else 8987 echo "$as_me: failed program was:" >&5 8988sed 's/^/| /' conftest.$ac_ext >&5 8989 8990ac_lo=`expr '(' $ac_mid ')' + 1` 8991fi 8992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8993done 8994case $ac_lo in 8995?*) ac_cv_sizeof_long=$ac_lo;; 8996'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 8997See \`config.log' for more details." >&5 8998echo "$as_me: error: cannot compute sizeof (long), 77 8999See \`config.log' for more details." >&2;} 9000 { (exit 1); exit 1; }; } ;; 9001esac 9002else 9003 if test "$cross_compiling" = yes; then 9004 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9005See \`config.log' for more details." >&5 9006echo "$as_me: error: cannot run test program while cross compiling 9007See \`config.log' for more details." >&2;} 9008 { (exit 1); exit 1; }; } 9009else 9010 cat >conftest.$ac_ext <<_ACEOF 9011/* confdefs.h. */ 9012_ACEOF 9013cat confdefs.h >>conftest.$ac_ext 9014cat >>conftest.$ac_ext <<_ACEOF 9015/* end confdefs.h. */ 9016$ac_includes_default 9017long longval () { return (long) (sizeof (long)); } 9018unsigned long ulongval () { return (long) (sizeof (long)); } 9019#include <stdio.h> 9020#include <stdlib.h> 9021int 9022main () 9023{ 9024 9025 FILE *f = fopen ("conftest.val", "w"); 9026 if (! f) 9027 exit (1); 9028 if (((long) (sizeof (long))) < 0) 9029 { 9030 long i = longval (); 9031 if (i != ((long) (sizeof (long)))) 9032 exit (1); 9033 fprintf (f, "%ld\n", i); 9034 } 9035 else 9036 { 9037 unsigned long i = ulongval (); 9038 if (i != ((long) (sizeof (long)))) 9039 exit (1); 9040 fprintf (f, "%lu\n", i); 9041 } 9042 exit (ferror (f) || fclose (f) != 0); 9043 9044 ; 9045 return 0; 9046} 9047_ACEOF 9048rm -f conftest$ac_exeext 9049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9050 (eval $ac_link) 2>&5 9051 ac_status=$? 9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9055 (eval $ac_try) 2>&5 9056 ac_status=$? 9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9058 (exit $ac_status); }; }; then 9059 ac_cv_sizeof_long=`cat conftest.val` 9060else 9061 echo "$as_me: program exited with status $ac_status" >&5 9062echo "$as_me: failed program was:" >&5 9063sed 's/^/| /' conftest.$ac_ext >&5 9064 9065( exit $ac_status ) 9066{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 9067See \`config.log' for more details." >&5 9068echo "$as_me: error: cannot compute sizeof (long), 77 9069See \`config.log' for more details." >&2;} 9070 { (exit 1); exit 1; }; } 9071fi 9072rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9073fi 9074fi 9075rm -f conftest.val 9076else 9077 ac_cv_sizeof_long=0 9078fi 9079fi 9080echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 9081echo "${ECHO_T}$ac_cv_sizeof_long" >&6 9082cat >>confdefs.h <<_ACEOF 9083#define SIZEOF_LONG $ac_cv_sizeof_long 9084_ACEOF 9085 9086 9087 echo "$as_me:$LINENO: checking for int" >&5 9088echo $ECHO_N "checking for int... $ECHO_C" >&6 9089if test "${ac_cv_type_int+set}" = set; then 9090 echo $ECHO_N "(cached) $ECHO_C" >&6 9091else 9092 cat >conftest.$ac_ext <<_ACEOF 9093/* confdefs.h. */ 9094_ACEOF 9095cat confdefs.h >>conftest.$ac_ext 9096cat >>conftest.$ac_ext <<_ACEOF 9097/* end confdefs.h. */ 9098$ac_includes_default 9099int 9100main () 9101{ 9102if ((int *) 0) 9103 return 0; 9104if (sizeof (int)) 9105 return 0; 9106 ; 9107 return 0; 9108} 9109_ACEOF 9110rm -f conftest.$ac_objext 9111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9112 (eval $ac_compile) 2>conftest.er1 9113 ac_status=$? 9114 grep -v '^ *+' conftest.er1 >conftest.err 9115 rm -f conftest.er1 9116 cat conftest.err >&5 9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9118 (exit $ac_status); } && 9119 { ac_try='test -z "$ac_c_werror_flag" 9120 || test ! -s conftest.err' 9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9122 (eval $ac_try) 2>&5 9123 ac_status=$? 9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9125 (exit $ac_status); }; } && 9126 { ac_try='test -s conftest.$ac_objext' 9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9128 (eval $ac_try) 2>&5 9129 ac_status=$? 9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9131 (exit $ac_status); }; }; then 9132 ac_cv_type_int=yes 9133else 9134 echo "$as_me: failed program was:" >&5 9135sed 's/^/| /' conftest.$ac_ext >&5 9136 9137ac_cv_type_int=no 9138fi 9139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9140fi 9141echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 9142echo "${ECHO_T}$ac_cv_type_int" >&6 9143 9144echo "$as_me:$LINENO: checking size of int" >&5 9145echo $ECHO_N "checking size of int... $ECHO_C" >&6 9146if test "${ac_cv_sizeof_int+set}" = set; then 9147 echo $ECHO_N "(cached) $ECHO_C" >&6 9148else 9149 if test "$ac_cv_type_int" = yes; then 9150 # The cast to unsigned long works around a bug in the HP C Compiler 9151 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9152 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9153 # This bug is HP SR number 8606223364. 9154 if test "$cross_compiling" = yes; then 9155 # Depending upon the size, compute the lo and hi bounds. 9156cat >conftest.$ac_ext <<_ACEOF 9157/* confdefs.h. */ 9158_ACEOF 9159cat confdefs.h >>conftest.$ac_ext 9160cat >>conftest.$ac_ext <<_ACEOF 9161/* end confdefs.h. */ 9162$ac_includes_default 9163int 9164main () 9165{ 9166static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 9167test_array [0] = 0 9168 9169 ; 9170 return 0; 9171} 9172_ACEOF 9173rm -f conftest.$ac_objext 9174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9175 (eval $ac_compile) 2>conftest.er1 9176 ac_status=$? 9177 grep -v '^ *+' conftest.er1 >conftest.err 9178 rm -f conftest.er1 9179 cat conftest.err >&5 9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9181 (exit $ac_status); } && 9182 { ac_try='test -z "$ac_c_werror_flag" 9183 || test ! -s conftest.err' 9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9185 (eval $ac_try) 2>&5 9186 ac_status=$? 9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9188 (exit $ac_status); }; } && 9189 { ac_try='test -s conftest.$ac_objext' 9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9191 (eval $ac_try) 2>&5 9192 ac_status=$? 9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9194 (exit $ac_status); }; }; then 9195 ac_lo=0 ac_mid=0 9196 while :; do 9197 cat >conftest.$ac_ext <<_ACEOF 9198/* confdefs.h. */ 9199_ACEOF 9200cat confdefs.h >>conftest.$ac_ext 9201cat >>conftest.$ac_ext <<_ACEOF 9202/* end confdefs.h. */ 9203$ac_includes_default 9204int 9205main () 9206{ 9207static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 9208test_array [0] = 0 9209 9210 ; 9211 return 0; 9212} 9213_ACEOF 9214rm -f conftest.$ac_objext 9215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9216 (eval $ac_compile) 2>conftest.er1 9217 ac_status=$? 9218 grep -v '^ *+' conftest.er1 >conftest.err 9219 rm -f conftest.er1 9220 cat conftest.err >&5 9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9222 (exit $ac_status); } && 9223 { ac_try='test -z "$ac_c_werror_flag" 9224 || test ! -s conftest.err' 9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9226 (eval $ac_try) 2>&5 9227 ac_status=$? 9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9229 (exit $ac_status); }; } && 9230 { ac_try='test -s conftest.$ac_objext' 9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9232 (eval $ac_try) 2>&5 9233 ac_status=$? 9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9235 (exit $ac_status); }; }; then 9236 ac_hi=$ac_mid; break 9237else 9238 echo "$as_me: failed program was:" >&5 9239sed 's/^/| /' conftest.$ac_ext >&5 9240 9241ac_lo=`expr $ac_mid + 1` 9242 if test $ac_lo -le $ac_mid; then 9243 ac_lo= ac_hi= 9244 break 9245 fi 9246 ac_mid=`expr 2 '*' $ac_mid + 1` 9247fi 9248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9249 done 9250else 9251 echo "$as_me: failed program was:" >&5 9252sed 's/^/| /' conftest.$ac_ext >&5 9253 9254cat >conftest.$ac_ext <<_ACEOF 9255/* confdefs.h. */ 9256_ACEOF 9257cat confdefs.h >>conftest.$ac_ext 9258cat >>conftest.$ac_ext <<_ACEOF 9259/* end confdefs.h. */ 9260$ac_includes_default 9261int 9262main () 9263{ 9264static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 9265test_array [0] = 0 9266 9267 ; 9268 return 0; 9269} 9270_ACEOF 9271rm -f conftest.$ac_objext 9272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9273 (eval $ac_compile) 2>conftest.er1 9274 ac_status=$? 9275 grep -v '^ *+' conftest.er1 >conftest.err 9276 rm -f conftest.er1 9277 cat conftest.err >&5 9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9279 (exit $ac_status); } && 9280 { ac_try='test -z "$ac_c_werror_flag" 9281 || test ! -s conftest.err' 9282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9283 (eval $ac_try) 2>&5 9284 ac_status=$? 9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9286 (exit $ac_status); }; } && 9287 { ac_try='test -s conftest.$ac_objext' 9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9289 (eval $ac_try) 2>&5 9290 ac_status=$? 9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9292 (exit $ac_status); }; }; then 9293 ac_hi=-1 ac_mid=-1 9294 while :; do 9295 cat >conftest.$ac_ext <<_ACEOF 9296/* confdefs.h. */ 9297_ACEOF 9298cat confdefs.h >>conftest.$ac_ext 9299cat >>conftest.$ac_ext <<_ACEOF 9300/* end confdefs.h. */ 9301$ac_includes_default 9302int 9303main () 9304{ 9305static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 9306test_array [0] = 0 9307 9308 ; 9309 return 0; 9310} 9311_ACEOF 9312rm -f conftest.$ac_objext 9313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9314 (eval $ac_compile) 2>conftest.er1 9315 ac_status=$? 9316 grep -v '^ *+' conftest.er1 >conftest.err 9317 rm -f conftest.er1 9318 cat conftest.err >&5 9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9320 (exit $ac_status); } && 9321 { ac_try='test -z "$ac_c_werror_flag" 9322 || test ! -s conftest.err' 9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9324 (eval $ac_try) 2>&5 9325 ac_status=$? 9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9327 (exit $ac_status); }; } && 9328 { ac_try='test -s conftest.$ac_objext' 9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9330 (eval $ac_try) 2>&5 9331 ac_status=$? 9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9333 (exit $ac_status); }; }; then 9334 ac_lo=$ac_mid; break 9335else 9336 echo "$as_me: failed program was:" >&5 9337sed 's/^/| /' conftest.$ac_ext >&5 9338 9339ac_hi=`expr '(' $ac_mid ')' - 1` 9340 if test $ac_mid -le $ac_hi; then 9341 ac_lo= ac_hi= 9342 break 9343 fi 9344 ac_mid=`expr 2 '*' $ac_mid` 9345fi 9346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9347 done 9348else 9349 echo "$as_me: failed program was:" >&5 9350sed 's/^/| /' conftest.$ac_ext >&5 9351 9352ac_lo= ac_hi= 9353fi 9354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9355fi 9356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9357# Binary search between lo and hi bounds. 9358while test "x$ac_lo" != "x$ac_hi"; do 9359 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9360 cat >conftest.$ac_ext <<_ACEOF 9361/* confdefs.h. */ 9362_ACEOF 9363cat confdefs.h >>conftest.$ac_ext 9364cat >>conftest.$ac_ext <<_ACEOF 9365/* end confdefs.h. */ 9366$ac_includes_default 9367int 9368main () 9369{ 9370static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 9371test_array [0] = 0 9372 9373 ; 9374 return 0; 9375} 9376_ACEOF 9377rm -f conftest.$ac_objext 9378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9379 (eval $ac_compile) 2>conftest.er1 9380 ac_status=$? 9381 grep -v '^ *+' conftest.er1 >conftest.err 9382 rm -f conftest.er1 9383 cat conftest.err >&5 9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9385 (exit $ac_status); } && 9386 { ac_try='test -z "$ac_c_werror_flag" 9387 || test ! -s conftest.err' 9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9389 (eval $ac_try) 2>&5 9390 ac_status=$? 9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9392 (exit $ac_status); }; } && 9393 { ac_try='test -s conftest.$ac_objext' 9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9395 (eval $ac_try) 2>&5 9396 ac_status=$? 9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9398 (exit $ac_status); }; }; then 9399 ac_hi=$ac_mid 9400else 9401 echo "$as_me: failed program was:" >&5 9402sed 's/^/| /' conftest.$ac_ext >&5 9403 9404ac_lo=`expr '(' $ac_mid ')' + 1` 9405fi 9406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9407done 9408case $ac_lo in 9409?*) ac_cv_sizeof_int=$ac_lo;; 9410'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 9411See \`config.log' for more details." >&5 9412echo "$as_me: error: cannot compute sizeof (int), 77 9413See \`config.log' for more details." >&2;} 9414 { (exit 1); exit 1; }; } ;; 9415esac 9416else 9417 if test "$cross_compiling" = yes; then 9418 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9419See \`config.log' for more details." >&5 9420echo "$as_me: error: cannot run test program while cross compiling 9421See \`config.log' for more details." >&2;} 9422 { (exit 1); exit 1; }; } 9423else 9424 cat >conftest.$ac_ext <<_ACEOF 9425/* confdefs.h. */ 9426_ACEOF 9427cat confdefs.h >>conftest.$ac_ext 9428cat >>conftest.$ac_ext <<_ACEOF 9429/* end confdefs.h. */ 9430$ac_includes_default 9431long longval () { return (long) (sizeof (int)); } 9432unsigned long ulongval () { return (long) (sizeof (int)); } 9433#include <stdio.h> 9434#include <stdlib.h> 9435int 9436main () 9437{ 9438 9439 FILE *f = fopen ("conftest.val", "w"); 9440 if (! f) 9441 exit (1); 9442 if (((long) (sizeof (int))) < 0) 9443 { 9444 long i = longval (); 9445 if (i != ((long) (sizeof (int)))) 9446 exit (1); 9447 fprintf (f, "%ld\n", i); 9448 } 9449 else 9450 { 9451 unsigned long i = ulongval (); 9452 if (i != ((long) (sizeof (int)))) 9453 exit (1); 9454 fprintf (f, "%lu\n", i); 9455 } 9456 exit (ferror (f) || fclose (f) != 0); 9457 9458 ; 9459 return 0; 9460} 9461_ACEOF 9462rm -f conftest$ac_exeext 9463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9464 (eval $ac_link) 2>&5 9465 ac_status=$? 9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9469 (eval $ac_try) 2>&5 9470 ac_status=$? 9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9472 (exit $ac_status); }; }; then 9473 ac_cv_sizeof_int=`cat conftest.val` 9474else 9475 echo "$as_me: program exited with status $ac_status" >&5 9476echo "$as_me: failed program was:" >&5 9477sed 's/^/| /' conftest.$ac_ext >&5 9478 9479( exit $ac_status ) 9480{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 9481See \`config.log' for more details." >&5 9482echo "$as_me: error: cannot compute sizeof (int), 77 9483See \`config.log' for more details." >&2;} 9484 { (exit 1); exit 1; }; } 9485fi 9486rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9487fi 9488fi 9489rm -f conftest.val 9490else 9491 ac_cv_sizeof_int=0 9492fi 9493fi 9494echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 9495echo "${ECHO_T}$ac_cv_sizeof_int" >&6 9496cat >>confdefs.h <<_ACEOF 9497#define SIZEOF_INT $ac_cv_sizeof_int 9498_ACEOF 9499 9500 9501 echo "$as_me:$LINENO: checking for short" >&5 9502echo $ECHO_N "checking for short... $ECHO_C" >&6 9503if test "${ac_cv_type_short+set}" = set; then 9504 echo $ECHO_N "(cached) $ECHO_C" >&6 9505else 9506 cat >conftest.$ac_ext <<_ACEOF 9507/* confdefs.h. */ 9508_ACEOF 9509cat confdefs.h >>conftest.$ac_ext 9510cat >>conftest.$ac_ext <<_ACEOF 9511/* end confdefs.h. */ 9512$ac_includes_default 9513int 9514main () 9515{ 9516if ((short *) 0) 9517 return 0; 9518if (sizeof (short)) 9519 return 0; 9520 ; 9521 return 0; 9522} 9523_ACEOF 9524rm -f conftest.$ac_objext 9525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9526 (eval $ac_compile) 2>conftest.er1 9527 ac_status=$? 9528 grep -v '^ *+' conftest.er1 >conftest.err 9529 rm -f conftest.er1 9530 cat conftest.err >&5 9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9532 (exit $ac_status); } && 9533 { ac_try='test -z "$ac_c_werror_flag" 9534 || test ! -s conftest.err' 9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9536 (eval $ac_try) 2>&5 9537 ac_status=$? 9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9539 (exit $ac_status); }; } && 9540 { ac_try='test -s conftest.$ac_objext' 9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9542 (eval $ac_try) 2>&5 9543 ac_status=$? 9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9545 (exit $ac_status); }; }; then 9546 ac_cv_type_short=yes 9547else 9548 echo "$as_me: failed program was:" >&5 9549sed 's/^/| /' conftest.$ac_ext >&5 9550 9551ac_cv_type_short=no 9552fi 9553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9554fi 9555echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 9556echo "${ECHO_T}$ac_cv_type_short" >&6 9557 9558echo "$as_me:$LINENO: checking size of short" >&5 9559echo $ECHO_N "checking size of short... $ECHO_C" >&6 9560if test "${ac_cv_sizeof_short+set}" = set; then 9561 echo $ECHO_N "(cached) $ECHO_C" >&6 9562else 9563 if test "$ac_cv_type_short" = yes; then 9564 # The cast to unsigned long works around a bug in the HP C Compiler 9565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9567 # This bug is HP SR number 8606223364. 9568 if test "$cross_compiling" = yes; then 9569 # Depending upon the size, compute the lo and hi bounds. 9570cat >conftest.$ac_ext <<_ACEOF 9571/* confdefs.h. */ 9572_ACEOF 9573cat confdefs.h >>conftest.$ac_ext 9574cat >>conftest.$ac_ext <<_ACEOF 9575/* end confdefs.h. */ 9576$ac_includes_default 9577int 9578main () 9579{ 9580static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 9581test_array [0] = 0 9582 9583 ; 9584 return 0; 9585} 9586_ACEOF 9587rm -f conftest.$ac_objext 9588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9589 (eval $ac_compile) 2>conftest.er1 9590 ac_status=$? 9591 grep -v '^ *+' conftest.er1 >conftest.err 9592 rm -f conftest.er1 9593 cat conftest.err >&5 9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9595 (exit $ac_status); } && 9596 { ac_try='test -z "$ac_c_werror_flag" 9597 || test ! -s conftest.err' 9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9599 (eval $ac_try) 2>&5 9600 ac_status=$? 9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9602 (exit $ac_status); }; } && 9603 { ac_try='test -s conftest.$ac_objext' 9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9605 (eval $ac_try) 2>&5 9606 ac_status=$? 9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9608 (exit $ac_status); }; }; then 9609 ac_lo=0 ac_mid=0 9610 while :; do 9611 cat >conftest.$ac_ext <<_ACEOF 9612/* confdefs.h. */ 9613_ACEOF 9614cat confdefs.h >>conftest.$ac_ext 9615cat >>conftest.$ac_ext <<_ACEOF 9616/* end confdefs.h. */ 9617$ac_includes_default 9618int 9619main () 9620{ 9621static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 9622test_array [0] = 0 9623 9624 ; 9625 return 0; 9626} 9627_ACEOF 9628rm -f conftest.$ac_objext 9629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9630 (eval $ac_compile) 2>conftest.er1 9631 ac_status=$? 9632 grep -v '^ *+' conftest.er1 >conftest.err 9633 rm -f conftest.er1 9634 cat conftest.err >&5 9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9636 (exit $ac_status); } && 9637 { ac_try='test -z "$ac_c_werror_flag" 9638 || test ! -s conftest.err' 9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9640 (eval $ac_try) 2>&5 9641 ac_status=$? 9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9643 (exit $ac_status); }; } && 9644 { ac_try='test -s conftest.$ac_objext' 9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9646 (eval $ac_try) 2>&5 9647 ac_status=$? 9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9649 (exit $ac_status); }; }; then 9650 ac_hi=$ac_mid; break 9651else 9652 echo "$as_me: failed program was:" >&5 9653sed 's/^/| /' conftest.$ac_ext >&5 9654 9655ac_lo=`expr $ac_mid + 1` 9656 if test $ac_lo -le $ac_mid; then 9657 ac_lo= ac_hi= 9658 break 9659 fi 9660 ac_mid=`expr 2 '*' $ac_mid + 1` 9661fi 9662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9663 done 9664else 9665 echo "$as_me: failed program was:" >&5 9666sed 's/^/| /' conftest.$ac_ext >&5 9667 9668cat >conftest.$ac_ext <<_ACEOF 9669/* confdefs.h. */ 9670_ACEOF 9671cat confdefs.h >>conftest.$ac_ext 9672cat >>conftest.$ac_ext <<_ACEOF 9673/* end confdefs.h. */ 9674$ac_includes_default 9675int 9676main () 9677{ 9678static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 9679test_array [0] = 0 9680 9681 ; 9682 return 0; 9683} 9684_ACEOF 9685rm -f conftest.$ac_objext 9686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9687 (eval $ac_compile) 2>conftest.er1 9688 ac_status=$? 9689 grep -v '^ *+' conftest.er1 >conftest.err 9690 rm -f conftest.er1 9691 cat conftest.err >&5 9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9693 (exit $ac_status); } && 9694 { ac_try='test -z "$ac_c_werror_flag" 9695 || test ! -s conftest.err' 9696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9697 (eval $ac_try) 2>&5 9698 ac_status=$? 9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9700 (exit $ac_status); }; } && 9701 { ac_try='test -s conftest.$ac_objext' 9702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9703 (eval $ac_try) 2>&5 9704 ac_status=$? 9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9706 (exit $ac_status); }; }; then 9707 ac_hi=-1 ac_mid=-1 9708 while :; do 9709 cat >conftest.$ac_ext <<_ACEOF 9710/* confdefs.h. */ 9711_ACEOF 9712cat confdefs.h >>conftest.$ac_ext 9713cat >>conftest.$ac_ext <<_ACEOF 9714/* end confdefs.h. */ 9715$ac_includes_default 9716int 9717main () 9718{ 9719static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 9720test_array [0] = 0 9721 9722 ; 9723 return 0; 9724} 9725_ACEOF 9726rm -f conftest.$ac_objext 9727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9728 (eval $ac_compile) 2>conftest.er1 9729 ac_status=$? 9730 grep -v '^ *+' conftest.er1 >conftest.err 9731 rm -f conftest.er1 9732 cat conftest.err >&5 9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9734 (exit $ac_status); } && 9735 { ac_try='test -z "$ac_c_werror_flag" 9736 || test ! -s conftest.err' 9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9738 (eval $ac_try) 2>&5 9739 ac_status=$? 9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9741 (exit $ac_status); }; } && 9742 { ac_try='test -s conftest.$ac_objext' 9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9744 (eval $ac_try) 2>&5 9745 ac_status=$? 9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9747 (exit $ac_status); }; }; then 9748 ac_lo=$ac_mid; break 9749else 9750 echo "$as_me: failed program was:" >&5 9751sed 's/^/| /' conftest.$ac_ext >&5 9752 9753ac_hi=`expr '(' $ac_mid ')' - 1` 9754 if test $ac_mid -le $ac_hi; then 9755 ac_lo= ac_hi= 9756 break 9757 fi 9758 ac_mid=`expr 2 '*' $ac_mid` 9759fi 9760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9761 done 9762else 9763 echo "$as_me: failed program was:" >&5 9764sed 's/^/| /' conftest.$ac_ext >&5 9765 9766ac_lo= ac_hi= 9767fi 9768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9769fi 9770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9771# Binary search between lo and hi bounds. 9772while test "x$ac_lo" != "x$ac_hi"; do 9773 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9774 cat >conftest.$ac_ext <<_ACEOF 9775/* confdefs.h. */ 9776_ACEOF 9777cat confdefs.h >>conftest.$ac_ext 9778cat >>conftest.$ac_ext <<_ACEOF 9779/* end confdefs.h. */ 9780$ac_includes_default 9781int 9782main () 9783{ 9784static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 9785test_array [0] = 0 9786 9787 ; 9788 return 0; 9789} 9790_ACEOF 9791rm -f conftest.$ac_objext 9792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9793 (eval $ac_compile) 2>conftest.er1 9794 ac_status=$? 9795 grep -v '^ *+' conftest.er1 >conftest.err 9796 rm -f conftest.er1 9797 cat conftest.err >&5 9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9799 (exit $ac_status); } && 9800 { ac_try='test -z "$ac_c_werror_flag" 9801 || test ! -s conftest.err' 9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9803 (eval $ac_try) 2>&5 9804 ac_status=$? 9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9806 (exit $ac_status); }; } && 9807 { ac_try='test -s conftest.$ac_objext' 9808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9809 (eval $ac_try) 2>&5 9810 ac_status=$? 9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9812 (exit $ac_status); }; }; then 9813 ac_hi=$ac_mid 9814else 9815 echo "$as_me: failed program was:" >&5 9816sed 's/^/| /' conftest.$ac_ext >&5 9817 9818ac_lo=`expr '(' $ac_mid ')' + 1` 9819fi 9820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9821done 9822case $ac_lo in 9823?*) ac_cv_sizeof_short=$ac_lo;; 9824'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 9825See \`config.log' for more details." >&5 9826echo "$as_me: error: cannot compute sizeof (short), 77 9827See \`config.log' for more details." >&2;} 9828 { (exit 1); exit 1; }; } ;; 9829esac 9830else 9831 if test "$cross_compiling" = yes; then 9832 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9833See \`config.log' for more details." >&5 9834echo "$as_me: error: cannot run test program while cross compiling 9835See \`config.log' for more details." >&2;} 9836 { (exit 1); exit 1; }; } 9837else 9838 cat >conftest.$ac_ext <<_ACEOF 9839/* confdefs.h. */ 9840_ACEOF 9841cat confdefs.h >>conftest.$ac_ext 9842cat >>conftest.$ac_ext <<_ACEOF 9843/* end confdefs.h. */ 9844$ac_includes_default 9845long longval () { return (long) (sizeof (short)); } 9846unsigned long ulongval () { return (long) (sizeof (short)); } 9847#include <stdio.h> 9848#include <stdlib.h> 9849int 9850main () 9851{ 9852 9853 FILE *f = fopen ("conftest.val", "w"); 9854 if (! f) 9855 exit (1); 9856 if (((long) (sizeof (short))) < 0) 9857 { 9858 long i = longval (); 9859 if (i != ((long) (sizeof (short)))) 9860 exit (1); 9861 fprintf (f, "%ld\n", i); 9862 } 9863 else 9864 { 9865 unsigned long i = ulongval (); 9866 if (i != ((long) (sizeof (short)))) 9867 exit (1); 9868 fprintf (f, "%lu\n", i); 9869 } 9870 exit (ferror (f) || fclose (f) != 0); 9871 9872 ; 9873 return 0; 9874} 9875_ACEOF 9876rm -f conftest$ac_exeext 9877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9878 (eval $ac_link) 2>&5 9879 ac_status=$? 9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9883 (eval $ac_try) 2>&5 9884 ac_status=$? 9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9886 (exit $ac_status); }; }; then 9887 ac_cv_sizeof_short=`cat conftest.val` 9888else 9889 echo "$as_me: program exited with status $ac_status" >&5 9890echo "$as_me: failed program was:" >&5 9891sed 's/^/| /' conftest.$ac_ext >&5 9892 9893( exit $ac_status ) 9894{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 9895See \`config.log' for more details." >&5 9896echo "$as_me: error: cannot compute sizeof (short), 77 9897See \`config.log' for more details." >&2;} 9898 { (exit 1); exit 1; }; } 9899fi 9900rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9901fi 9902fi 9903rm -f conftest.val 9904else 9905 ac_cv_sizeof_short=0 9906fi 9907fi 9908echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 9909echo "${ECHO_T}$ac_cv_sizeof_short" >&6 9910cat >>confdefs.h <<_ACEOF 9911#define SIZEOF_SHORT $ac_cv_sizeof_short 9912_ACEOF 9913 9914 9915 fi 9916 FOUND=0 9917 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 9918 dc_cv_size=`eval echo $dc_cv_loop` 9919 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 9920 if test "$dc_cv_size" = "8"; then 9921 if test "$dc_cv_name" = "int"; then 9922 echo "$as_me:$LINENO: checking for uint64_t" >&5 9923echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 9924if test "${ac_cv_type_uint64_t+set}" = set; then 9925 echo $ECHO_N "(cached) $ECHO_C" >&6 9926else 9927 cat >conftest.$ac_ext <<_ACEOF 9928/* confdefs.h. */ 9929_ACEOF 9930cat confdefs.h >>conftest.$ac_ext 9931cat >>conftest.$ac_ext <<_ACEOF 9932/* end confdefs.h. */ 9933$ac_includes_default 9934int 9935main () 9936{ 9937if ((uint64_t *) 0) 9938 return 0; 9939if (sizeof (uint64_t)) 9940 return 0; 9941 ; 9942 return 0; 9943} 9944_ACEOF 9945rm -f conftest.$ac_objext 9946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9947 (eval $ac_compile) 2>conftest.er1 9948 ac_status=$? 9949 grep -v '^ *+' conftest.er1 >conftest.err 9950 rm -f conftest.er1 9951 cat conftest.err >&5 9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9953 (exit $ac_status); } && 9954 { ac_try='test -z "$ac_c_werror_flag" 9955 || test ! -s conftest.err' 9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9957 (eval $ac_try) 2>&5 9958 ac_status=$? 9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9960 (exit $ac_status); }; } && 9961 { ac_try='test -s conftest.$ac_objext' 9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9963 (eval $ac_try) 2>&5 9964 ac_status=$? 9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9966 (exit $ac_status); }; }; then 9967 ac_cv_type_uint64_t=yes 9968else 9969 echo "$as_me: failed program was:" >&5 9970sed 's/^/| /' conftest.$ac_ext >&5 9971 9972ac_cv_type_uint64_t=no 9973fi 9974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9975fi 9976echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 9977echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 9978if test $ac_cv_type_uint64_t = yes; then 9979 : 9980else 9981 9982cat >>confdefs.h <<_ACEOF 9983#define uint64_t unsigned int 9984_ACEOF 9985 9986fi 9987 9988 fi 9989 if test "$dc_cv_name" = "long"; then 9990 echo "$as_me:$LINENO: checking for uint64_t" >&5 9991echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 9992if test "${ac_cv_type_uint64_t+set}" = set; then 9993 echo $ECHO_N "(cached) $ECHO_C" >&6 9994else 9995 cat >conftest.$ac_ext <<_ACEOF 9996/* confdefs.h. */ 9997_ACEOF 9998cat confdefs.h >>conftest.$ac_ext 9999cat >>conftest.$ac_ext <<_ACEOF 10000/* end confdefs.h. */ 10001$ac_includes_default 10002int 10003main () 10004{ 10005if ((uint64_t *) 0) 10006 return 0; 10007if (sizeof (uint64_t)) 10008 return 0; 10009 ; 10010 return 0; 10011} 10012_ACEOF 10013rm -f conftest.$ac_objext 10014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10015 (eval $ac_compile) 2>conftest.er1 10016 ac_status=$? 10017 grep -v '^ *+' conftest.er1 >conftest.err 10018 rm -f conftest.er1 10019 cat conftest.err >&5 10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10021 (exit $ac_status); } && 10022 { ac_try='test -z "$ac_c_werror_flag" 10023 || test ! -s conftest.err' 10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10025 (eval $ac_try) 2>&5 10026 ac_status=$? 10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10028 (exit $ac_status); }; } && 10029 { ac_try='test -s conftest.$ac_objext' 10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10031 (eval $ac_try) 2>&5 10032 ac_status=$? 10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10034 (exit $ac_status); }; }; then 10035 ac_cv_type_uint64_t=yes 10036else 10037 echo "$as_me: failed program was:" >&5 10038sed 's/^/| /' conftest.$ac_ext >&5 10039 10040ac_cv_type_uint64_t=no 10041fi 10042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10043fi 10044echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 10045echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 10046if test $ac_cv_type_uint64_t = yes; then 10047 : 10048else 10049 10050cat >>confdefs.h <<_ACEOF 10051#define uint64_t unsigned long 10052_ACEOF 10053 10054fi 10055 10056 fi 10057 if test "$dc_cv_name" = "long_long"; then 10058 echo "$as_me:$LINENO: checking for uint64_t" >&5 10059echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 10060if test "${ac_cv_type_uint64_t+set}" = set; then 10061 echo $ECHO_N "(cached) $ECHO_C" >&6 10062else 10063 cat >conftest.$ac_ext <<_ACEOF 10064/* confdefs.h. */ 10065_ACEOF 10066cat confdefs.h >>conftest.$ac_ext 10067cat >>conftest.$ac_ext <<_ACEOF 10068/* end confdefs.h. */ 10069$ac_includes_default 10070int 10071main () 10072{ 10073if ((uint64_t *) 0) 10074 return 0; 10075if (sizeof (uint64_t)) 10076 return 0; 10077 ; 10078 return 0; 10079} 10080_ACEOF 10081rm -f conftest.$ac_objext 10082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10083 (eval $ac_compile) 2>conftest.er1 10084 ac_status=$? 10085 grep -v '^ *+' conftest.er1 >conftest.err 10086 rm -f conftest.er1 10087 cat conftest.err >&5 10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10089 (exit $ac_status); } && 10090 { ac_try='test -z "$ac_c_werror_flag" 10091 || test ! -s conftest.err' 10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10093 (eval $ac_try) 2>&5 10094 ac_status=$? 10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10096 (exit $ac_status); }; } && 10097 { ac_try='test -s conftest.$ac_objext' 10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10099 (eval $ac_try) 2>&5 10100 ac_status=$? 10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10102 (exit $ac_status); }; }; then 10103 ac_cv_type_uint64_t=yes 10104else 10105 echo "$as_me: failed program was:" >&5 10106sed 's/^/| /' conftest.$ac_ext >&5 10107 10108ac_cv_type_uint64_t=no 10109fi 10110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10111fi 10112echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 10113echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 10114if test $ac_cv_type_uint64_t = yes; then 10115 : 10116else 10117 10118cat >>confdefs.h <<_ACEOF 10119#define uint64_t unsigned long long 10120_ACEOF 10121 10122fi 10123 10124 fi 10125 if test "$dc_cv_name" = "short"; then 10126 echo "$as_me:$LINENO: checking for uint64_t" >&5 10127echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 10128if test "${ac_cv_type_uint64_t+set}" = set; then 10129 echo $ECHO_N "(cached) $ECHO_C" >&6 10130else 10131 cat >conftest.$ac_ext <<_ACEOF 10132/* confdefs.h. */ 10133_ACEOF 10134cat confdefs.h >>conftest.$ac_ext 10135cat >>conftest.$ac_ext <<_ACEOF 10136/* end confdefs.h. */ 10137$ac_includes_default 10138int 10139main () 10140{ 10141if ((uint64_t *) 0) 10142 return 0; 10143if (sizeof (uint64_t)) 10144 return 0; 10145 ; 10146 return 0; 10147} 10148_ACEOF 10149rm -f conftest.$ac_objext 10150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10151 (eval $ac_compile) 2>conftest.er1 10152 ac_status=$? 10153 grep -v '^ *+' conftest.er1 >conftest.err 10154 rm -f conftest.er1 10155 cat conftest.err >&5 10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10157 (exit $ac_status); } && 10158 { ac_try='test -z "$ac_c_werror_flag" 10159 || test ! -s conftest.err' 10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10161 (eval $ac_try) 2>&5 10162 ac_status=$? 10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10164 (exit $ac_status); }; } && 10165 { ac_try='test -s conftest.$ac_objext' 10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10167 (eval $ac_try) 2>&5 10168 ac_status=$? 10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10170 (exit $ac_status); }; }; then 10171 ac_cv_type_uint64_t=yes 10172else 10173 echo "$as_me: failed program was:" >&5 10174sed 's/^/| /' conftest.$ac_ext >&5 10175 10176ac_cv_type_uint64_t=no 10177fi 10178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10179fi 10180echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 10181echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 10182if test $ac_cv_type_uint64_t = yes; then 10183 : 10184else 10185 10186cat >>confdefs.h <<_ACEOF 10187#define uint64_t unsigned short 10188_ACEOF 10189 10190fi 10191 10192 fi 10193 FOUND=1 10194 break 10195 fi 10196 done 10197 10198 10199 if test -z "$ac_cv_sizeof_long"; then 10200 echo "$as_me:$LINENO: checking for inline" >&5 10201echo $ECHO_N "checking for inline... $ECHO_C" >&6 10202if test "${ac_cv_c_inline+set}" = set; then 10203 echo $ECHO_N "(cached) $ECHO_C" >&6 10204else 10205 ac_cv_c_inline=no 10206for ac_kw in inline __inline__ __inline; do 10207 cat >conftest.$ac_ext <<_ACEOF 10208/* confdefs.h. */ 10209_ACEOF 10210cat confdefs.h >>conftest.$ac_ext 10211cat >>conftest.$ac_ext <<_ACEOF 10212/* end confdefs.h. */ 10213#ifndef __cplusplus 10214typedef int foo_t; 10215static $ac_kw foo_t static_foo () {return 0; } 10216$ac_kw foo_t foo () {return 0; } 10217#endif 10218 10219_ACEOF 10220rm -f conftest.$ac_objext 10221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10222 (eval $ac_compile) 2>conftest.er1 10223 ac_status=$? 10224 grep -v '^ *+' conftest.er1 >conftest.err 10225 rm -f conftest.er1 10226 cat conftest.err >&5 10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10228 (exit $ac_status); } && 10229 { ac_try='test -z "$ac_c_werror_flag" 10230 || test ! -s conftest.err' 10231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10232 (eval $ac_try) 2>&5 10233 ac_status=$? 10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10235 (exit $ac_status); }; } && 10236 { ac_try='test -s conftest.$ac_objext' 10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10238 (eval $ac_try) 2>&5 10239 ac_status=$? 10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10241 (exit $ac_status); }; }; then 10242 ac_cv_c_inline=$ac_kw; break 10243else 10244 echo "$as_me: failed program was:" >&5 10245sed 's/^/| /' conftest.$ac_ext >&5 10246 10247fi 10248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10249done 10250 10251fi 10252echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 10253echo "${ECHO_T}$ac_cv_c_inline" >&6 10254 10255 10256case $ac_cv_c_inline in 10257 inline | yes) ;; 10258 *) 10259 case $ac_cv_c_inline in 10260 no) ac_val=;; 10261 *) ac_val=$ac_cv_c_inline;; 10262 esac 10263 cat >>confdefs.h <<_ACEOF 10264#ifndef __cplusplus 10265#define inline $ac_val 10266#endif 10267_ACEOF 10268 ;; 10269esac 10270 10271 echo "$as_me:$LINENO: checking for long long" >&5 10272echo $ECHO_N "checking for long long... $ECHO_C" >&6 10273if test "${ac_cv_type_long_long+set}" = set; then 10274 echo $ECHO_N "(cached) $ECHO_C" >&6 10275else 10276 cat >conftest.$ac_ext <<_ACEOF 10277/* confdefs.h. */ 10278_ACEOF 10279cat confdefs.h >>conftest.$ac_ext 10280cat >>conftest.$ac_ext <<_ACEOF 10281/* end confdefs.h. */ 10282$ac_includes_default 10283int 10284main () 10285{ 10286if ((long long *) 0) 10287 return 0; 10288if (sizeof (long long)) 10289 return 0; 10290 ; 10291 return 0; 10292} 10293_ACEOF 10294rm -f conftest.$ac_objext 10295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10296 (eval $ac_compile) 2>conftest.er1 10297 ac_status=$? 10298 grep -v '^ *+' conftest.er1 >conftest.err 10299 rm -f conftest.er1 10300 cat conftest.err >&5 10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10302 (exit $ac_status); } && 10303 { ac_try='test -z "$ac_c_werror_flag" 10304 || test ! -s conftest.err' 10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10306 (eval $ac_try) 2>&5 10307 ac_status=$? 10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10309 (exit $ac_status); }; } && 10310 { ac_try='test -s conftest.$ac_objext' 10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10312 (eval $ac_try) 2>&5 10313 ac_status=$? 10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10315 (exit $ac_status); }; }; then 10316 ac_cv_type_long_long=yes 10317else 10318 echo "$as_me: failed program was:" >&5 10319sed 's/^/| /' conftest.$ac_ext >&5 10320 10321ac_cv_type_long_long=no 10322fi 10323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10324fi 10325echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 10326echo "${ECHO_T}$ac_cv_type_long_long" >&6 10327 10328echo "$as_me:$LINENO: checking size of long long" >&5 10329echo $ECHO_N "checking size of long long... $ECHO_C" >&6 10330if test "${ac_cv_sizeof_long_long+set}" = set; then 10331 echo $ECHO_N "(cached) $ECHO_C" >&6 10332else 10333 if test "$ac_cv_type_long_long" = yes; then 10334 # The cast to unsigned long works around a bug in the HP C Compiler 10335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10337 # This bug is HP SR number 8606223364. 10338 if test "$cross_compiling" = yes; then 10339 # Depending upon the size, compute the lo and hi bounds. 10340cat >conftest.$ac_ext <<_ACEOF 10341/* confdefs.h. */ 10342_ACEOF 10343cat confdefs.h >>conftest.$ac_ext 10344cat >>conftest.$ac_ext <<_ACEOF 10345/* end confdefs.h. */ 10346$ac_includes_default 10347int 10348main () 10349{ 10350static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 10351test_array [0] = 0 10352 10353 ; 10354 return 0; 10355} 10356_ACEOF 10357rm -f conftest.$ac_objext 10358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10359 (eval $ac_compile) 2>conftest.er1 10360 ac_status=$? 10361 grep -v '^ *+' conftest.er1 >conftest.err 10362 rm -f conftest.er1 10363 cat conftest.err >&5 10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10365 (exit $ac_status); } && 10366 { ac_try='test -z "$ac_c_werror_flag" 10367 || test ! -s conftest.err' 10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10369 (eval $ac_try) 2>&5 10370 ac_status=$? 10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10372 (exit $ac_status); }; } && 10373 { ac_try='test -s conftest.$ac_objext' 10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10375 (eval $ac_try) 2>&5 10376 ac_status=$? 10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10378 (exit $ac_status); }; }; then 10379 ac_lo=0 ac_mid=0 10380 while :; do 10381 cat >conftest.$ac_ext <<_ACEOF 10382/* confdefs.h. */ 10383_ACEOF 10384cat confdefs.h >>conftest.$ac_ext 10385cat >>conftest.$ac_ext <<_ACEOF 10386/* end confdefs.h. */ 10387$ac_includes_default 10388int 10389main () 10390{ 10391static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 10392test_array [0] = 0 10393 10394 ; 10395 return 0; 10396} 10397_ACEOF 10398rm -f conftest.$ac_objext 10399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10400 (eval $ac_compile) 2>conftest.er1 10401 ac_status=$? 10402 grep -v '^ *+' conftest.er1 >conftest.err 10403 rm -f conftest.er1 10404 cat conftest.err >&5 10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10406 (exit $ac_status); } && 10407 { ac_try='test -z "$ac_c_werror_flag" 10408 || test ! -s conftest.err' 10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10410 (eval $ac_try) 2>&5 10411 ac_status=$? 10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10413 (exit $ac_status); }; } && 10414 { ac_try='test -s conftest.$ac_objext' 10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10416 (eval $ac_try) 2>&5 10417 ac_status=$? 10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10419 (exit $ac_status); }; }; then 10420 ac_hi=$ac_mid; break 10421else 10422 echo "$as_me: failed program was:" >&5 10423sed 's/^/| /' conftest.$ac_ext >&5 10424 10425ac_lo=`expr $ac_mid + 1` 10426 if test $ac_lo -le $ac_mid; then 10427 ac_lo= ac_hi= 10428 break 10429 fi 10430 ac_mid=`expr 2 '*' $ac_mid + 1` 10431fi 10432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10433 done 10434else 10435 echo "$as_me: failed program was:" >&5 10436sed 's/^/| /' conftest.$ac_ext >&5 10437 10438cat >conftest.$ac_ext <<_ACEOF 10439/* confdefs.h. */ 10440_ACEOF 10441cat confdefs.h >>conftest.$ac_ext 10442cat >>conftest.$ac_ext <<_ACEOF 10443/* end confdefs.h. */ 10444$ac_includes_default 10445int 10446main () 10447{ 10448static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 10449test_array [0] = 0 10450 10451 ; 10452 return 0; 10453} 10454_ACEOF 10455rm -f conftest.$ac_objext 10456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10457 (eval $ac_compile) 2>conftest.er1 10458 ac_status=$? 10459 grep -v '^ *+' conftest.er1 >conftest.err 10460 rm -f conftest.er1 10461 cat conftest.err >&5 10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10463 (exit $ac_status); } && 10464 { ac_try='test -z "$ac_c_werror_flag" 10465 || test ! -s conftest.err' 10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10467 (eval $ac_try) 2>&5 10468 ac_status=$? 10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10470 (exit $ac_status); }; } && 10471 { ac_try='test -s conftest.$ac_objext' 10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10473 (eval $ac_try) 2>&5 10474 ac_status=$? 10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10476 (exit $ac_status); }; }; then 10477 ac_hi=-1 ac_mid=-1 10478 while :; do 10479 cat >conftest.$ac_ext <<_ACEOF 10480/* confdefs.h. */ 10481_ACEOF 10482cat confdefs.h >>conftest.$ac_ext 10483cat >>conftest.$ac_ext <<_ACEOF 10484/* end confdefs.h. */ 10485$ac_includes_default 10486int 10487main () 10488{ 10489static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 10490test_array [0] = 0 10491 10492 ; 10493 return 0; 10494} 10495_ACEOF 10496rm -f conftest.$ac_objext 10497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10498 (eval $ac_compile) 2>conftest.er1 10499 ac_status=$? 10500 grep -v '^ *+' conftest.er1 >conftest.err 10501 rm -f conftest.er1 10502 cat conftest.err >&5 10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10504 (exit $ac_status); } && 10505 { ac_try='test -z "$ac_c_werror_flag" 10506 || test ! -s conftest.err' 10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10508 (eval $ac_try) 2>&5 10509 ac_status=$? 10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10511 (exit $ac_status); }; } && 10512 { ac_try='test -s conftest.$ac_objext' 10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10514 (eval $ac_try) 2>&5 10515 ac_status=$? 10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10517 (exit $ac_status); }; }; then 10518 ac_lo=$ac_mid; break 10519else 10520 echo "$as_me: failed program was:" >&5 10521sed 's/^/| /' conftest.$ac_ext >&5 10522 10523ac_hi=`expr '(' $ac_mid ')' - 1` 10524 if test $ac_mid -le $ac_hi; then 10525 ac_lo= ac_hi= 10526 break 10527 fi 10528 ac_mid=`expr 2 '*' $ac_mid` 10529fi 10530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10531 done 10532else 10533 echo "$as_me: failed program was:" >&5 10534sed 's/^/| /' conftest.$ac_ext >&5 10535 10536ac_lo= ac_hi= 10537fi 10538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10539fi 10540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10541# Binary search between lo and hi bounds. 10542while test "x$ac_lo" != "x$ac_hi"; do 10543 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10544 cat >conftest.$ac_ext <<_ACEOF 10545/* confdefs.h. */ 10546_ACEOF 10547cat confdefs.h >>conftest.$ac_ext 10548cat >>conftest.$ac_ext <<_ACEOF 10549/* end confdefs.h. */ 10550$ac_includes_default 10551int 10552main () 10553{ 10554static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 10555test_array [0] = 0 10556 10557 ; 10558 return 0; 10559} 10560_ACEOF 10561rm -f conftest.$ac_objext 10562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10563 (eval $ac_compile) 2>conftest.er1 10564 ac_status=$? 10565 grep -v '^ *+' conftest.er1 >conftest.err 10566 rm -f conftest.er1 10567 cat conftest.err >&5 10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10569 (exit $ac_status); } && 10570 { ac_try='test -z "$ac_c_werror_flag" 10571 || test ! -s conftest.err' 10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10573 (eval $ac_try) 2>&5 10574 ac_status=$? 10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10576 (exit $ac_status); }; } && 10577 { ac_try='test -s conftest.$ac_objext' 10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10579 (eval $ac_try) 2>&5 10580 ac_status=$? 10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10582 (exit $ac_status); }; }; then 10583 ac_hi=$ac_mid 10584else 10585 echo "$as_me: failed program was:" >&5 10586sed 's/^/| /' conftest.$ac_ext >&5 10587 10588ac_lo=`expr '(' $ac_mid ')' + 1` 10589fi 10590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10591done 10592case $ac_lo in 10593?*) ac_cv_sizeof_long_long=$ac_lo;; 10594'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 10595See \`config.log' for more details." >&5 10596echo "$as_me: error: cannot compute sizeof (long long), 77 10597See \`config.log' for more details." >&2;} 10598 { (exit 1); exit 1; }; } ;; 10599esac 10600else 10601 if test "$cross_compiling" = yes; then 10602 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10603See \`config.log' for more details." >&5 10604echo "$as_me: error: cannot run test program while cross compiling 10605See \`config.log' for more details." >&2;} 10606 { (exit 1); exit 1; }; } 10607else 10608 cat >conftest.$ac_ext <<_ACEOF 10609/* confdefs.h. */ 10610_ACEOF 10611cat confdefs.h >>conftest.$ac_ext 10612cat >>conftest.$ac_ext <<_ACEOF 10613/* end confdefs.h. */ 10614$ac_includes_default 10615long longval () { return (long) (sizeof (long long)); } 10616unsigned long ulongval () { return (long) (sizeof (long long)); } 10617#include <stdio.h> 10618#include <stdlib.h> 10619int 10620main () 10621{ 10622 10623 FILE *f = fopen ("conftest.val", "w"); 10624 if (! f) 10625 exit (1); 10626 if (((long) (sizeof (long long))) < 0) 10627 { 10628 long i = longval (); 10629 if (i != ((long) (sizeof (long long)))) 10630 exit (1); 10631 fprintf (f, "%ld\n", i); 10632 } 10633 else 10634 { 10635 unsigned long i = ulongval (); 10636 if (i != ((long) (sizeof (long long)))) 10637 exit (1); 10638 fprintf (f, "%lu\n", i); 10639 } 10640 exit (ferror (f) || fclose (f) != 0); 10641 10642 ; 10643 return 0; 10644} 10645_ACEOF 10646rm -f conftest$ac_exeext 10647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10648 (eval $ac_link) 2>&5 10649 ac_status=$? 10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10653 (eval $ac_try) 2>&5 10654 ac_status=$? 10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10656 (exit $ac_status); }; }; then 10657 ac_cv_sizeof_long_long=`cat conftest.val` 10658else 10659 echo "$as_me: program exited with status $ac_status" >&5 10660echo "$as_me: failed program was:" >&5 10661sed 's/^/| /' conftest.$ac_ext >&5 10662 10663( exit $ac_status ) 10664{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 10665See \`config.log' for more details." >&5 10666echo "$as_me: error: cannot compute sizeof (long long), 77 10667See \`config.log' for more details." >&2;} 10668 { (exit 1); exit 1; }; } 10669fi 10670rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10671fi 10672fi 10673rm -f conftest.val 10674else 10675 ac_cv_sizeof_long_long=0 10676fi 10677fi 10678echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 10679echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 10680cat >>confdefs.h <<_ACEOF 10681#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 10682_ACEOF 10683 10684 10685 echo "$as_me:$LINENO: checking for long" >&5 10686echo $ECHO_N "checking for long... $ECHO_C" >&6 10687if test "${ac_cv_type_long+set}" = set; then 10688 echo $ECHO_N "(cached) $ECHO_C" >&6 10689else 10690 cat >conftest.$ac_ext <<_ACEOF 10691/* confdefs.h. */ 10692_ACEOF 10693cat confdefs.h >>conftest.$ac_ext 10694cat >>conftest.$ac_ext <<_ACEOF 10695/* end confdefs.h. */ 10696$ac_includes_default 10697int 10698main () 10699{ 10700if ((long *) 0) 10701 return 0; 10702if (sizeof (long)) 10703 return 0; 10704 ; 10705 return 0; 10706} 10707_ACEOF 10708rm -f conftest.$ac_objext 10709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10710 (eval $ac_compile) 2>conftest.er1 10711 ac_status=$? 10712 grep -v '^ *+' conftest.er1 >conftest.err 10713 rm -f conftest.er1 10714 cat conftest.err >&5 10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10716 (exit $ac_status); } && 10717 { ac_try='test -z "$ac_c_werror_flag" 10718 || test ! -s conftest.err' 10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10720 (eval $ac_try) 2>&5 10721 ac_status=$? 10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10723 (exit $ac_status); }; } && 10724 { ac_try='test -s conftest.$ac_objext' 10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10726 (eval $ac_try) 2>&5 10727 ac_status=$? 10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10729 (exit $ac_status); }; }; then 10730 ac_cv_type_long=yes 10731else 10732 echo "$as_me: failed program was:" >&5 10733sed 's/^/| /' conftest.$ac_ext >&5 10734 10735ac_cv_type_long=no 10736fi 10737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10738fi 10739echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 10740echo "${ECHO_T}$ac_cv_type_long" >&6 10741 10742echo "$as_me:$LINENO: checking size of long" >&5 10743echo $ECHO_N "checking size of long... $ECHO_C" >&6 10744if test "${ac_cv_sizeof_long+set}" = set; then 10745 echo $ECHO_N "(cached) $ECHO_C" >&6 10746else 10747 if test "$ac_cv_type_long" = yes; then 10748 # The cast to unsigned long works around a bug in the HP C Compiler 10749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10751 # This bug is HP SR number 8606223364. 10752 if test "$cross_compiling" = yes; then 10753 # Depending upon the size, compute the lo and hi bounds. 10754cat >conftest.$ac_ext <<_ACEOF 10755/* confdefs.h. */ 10756_ACEOF 10757cat confdefs.h >>conftest.$ac_ext 10758cat >>conftest.$ac_ext <<_ACEOF 10759/* end confdefs.h. */ 10760$ac_includes_default 10761int 10762main () 10763{ 10764static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 10765test_array [0] = 0 10766 10767 ; 10768 return 0; 10769} 10770_ACEOF 10771rm -f conftest.$ac_objext 10772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10773 (eval $ac_compile) 2>conftest.er1 10774 ac_status=$? 10775 grep -v '^ *+' conftest.er1 >conftest.err 10776 rm -f conftest.er1 10777 cat conftest.err >&5 10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10779 (exit $ac_status); } && 10780 { ac_try='test -z "$ac_c_werror_flag" 10781 || test ! -s conftest.err' 10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10783 (eval $ac_try) 2>&5 10784 ac_status=$? 10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10786 (exit $ac_status); }; } && 10787 { ac_try='test -s conftest.$ac_objext' 10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10789 (eval $ac_try) 2>&5 10790 ac_status=$? 10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10792 (exit $ac_status); }; }; then 10793 ac_lo=0 ac_mid=0 10794 while :; do 10795 cat >conftest.$ac_ext <<_ACEOF 10796/* confdefs.h. */ 10797_ACEOF 10798cat confdefs.h >>conftest.$ac_ext 10799cat >>conftest.$ac_ext <<_ACEOF 10800/* end confdefs.h. */ 10801$ac_includes_default 10802int 10803main () 10804{ 10805static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 10806test_array [0] = 0 10807 10808 ; 10809 return 0; 10810} 10811_ACEOF 10812rm -f conftest.$ac_objext 10813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10814 (eval $ac_compile) 2>conftest.er1 10815 ac_status=$? 10816 grep -v '^ *+' conftest.er1 >conftest.err 10817 rm -f conftest.er1 10818 cat conftest.err >&5 10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10820 (exit $ac_status); } && 10821 { ac_try='test -z "$ac_c_werror_flag" 10822 || test ! -s conftest.err' 10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10824 (eval $ac_try) 2>&5 10825 ac_status=$? 10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10827 (exit $ac_status); }; } && 10828 { ac_try='test -s conftest.$ac_objext' 10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10830 (eval $ac_try) 2>&5 10831 ac_status=$? 10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10833 (exit $ac_status); }; }; then 10834 ac_hi=$ac_mid; break 10835else 10836 echo "$as_me: failed program was:" >&5 10837sed 's/^/| /' conftest.$ac_ext >&5 10838 10839ac_lo=`expr $ac_mid + 1` 10840 if test $ac_lo -le $ac_mid; then 10841 ac_lo= ac_hi= 10842 break 10843 fi 10844 ac_mid=`expr 2 '*' $ac_mid + 1` 10845fi 10846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10847 done 10848else 10849 echo "$as_me: failed program was:" >&5 10850sed 's/^/| /' conftest.$ac_ext >&5 10851 10852cat >conftest.$ac_ext <<_ACEOF 10853/* confdefs.h. */ 10854_ACEOF 10855cat confdefs.h >>conftest.$ac_ext 10856cat >>conftest.$ac_ext <<_ACEOF 10857/* end confdefs.h. */ 10858$ac_includes_default 10859int 10860main () 10861{ 10862static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 10863test_array [0] = 0 10864 10865 ; 10866 return 0; 10867} 10868_ACEOF 10869rm -f conftest.$ac_objext 10870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10871 (eval $ac_compile) 2>conftest.er1 10872 ac_status=$? 10873 grep -v '^ *+' conftest.er1 >conftest.err 10874 rm -f conftest.er1 10875 cat conftest.err >&5 10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10877 (exit $ac_status); } && 10878 { ac_try='test -z "$ac_c_werror_flag" 10879 || test ! -s conftest.err' 10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10881 (eval $ac_try) 2>&5 10882 ac_status=$? 10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10884 (exit $ac_status); }; } && 10885 { ac_try='test -s conftest.$ac_objext' 10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10887 (eval $ac_try) 2>&5 10888 ac_status=$? 10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10890 (exit $ac_status); }; }; then 10891 ac_hi=-1 ac_mid=-1 10892 while :; do 10893 cat >conftest.$ac_ext <<_ACEOF 10894/* confdefs.h. */ 10895_ACEOF 10896cat confdefs.h >>conftest.$ac_ext 10897cat >>conftest.$ac_ext <<_ACEOF 10898/* end confdefs.h. */ 10899$ac_includes_default 10900int 10901main () 10902{ 10903static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 10904test_array [0] = 0 10905 10906 ; 10907 return 0; 10908} 10909_ACEOF 10910rm -f conftest.$ac_objext 10911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10912 (eval $ac_compile) 2>conftest.er1 10913 ac_status=$? 10914 grep -v '^ *+' conftest.er1 >conftest.err 10915 rm -f conftest.er1 10916 cat conftest.err >&5 10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10918 (exit $ac_status); } && 10919 { ac_try='test -z "$ac_c_werror_flag" 10920 || test ! -s conftest.err' 10921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10922 (eval $ac_try) 2>&5 10923 ac_status=$? 10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10925 (exit $ac_status); }; } && 10926 { ac_try='test -s conftest.$ac_objext' 10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10928 (eval $ac_try) 2>&5 10929 ac_status=$? 10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10931 (exit $ac_status); }; }; then 10932 ac_lo=$ac_mid; break 10933else 10934 echo "$as_me: failed program was:" >&5 10935sed 's/^/| /' conftest.$ac_ext >&5 10936 10937ac_hi=`expr '(' $ac_mid ')' - 1` 10938 if test $ac_mid -le $ac_hi; then 10939 ac_lo= ac_hi= 10940 break 10941 fi 10942 ac_mid=`expr 2 '*' $ac_mid` 10943fi 10944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10945 done 10946else 10947 echo "$as_me: failed program was:" >&5 10948sed 's/^/| /' conftest.$ac_ext >&5 10949 10950ac_lo= ac_hi= 10951fi 10952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10953fi 10954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10955# Binary search between lo and hi bounds. 10956while test "x$ac_lo" != "x$ac_hi"; do 10957 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10958 cat >conftest.$ac_ext <<_ACEOF 10959/* confdefs.h. */ 10960_ACEOF 10961cat confdefs.h >>conftest.$ac_ext 10962cat >>conftest.$ac_ext <<_ACEOF 10963/* end confdefs.h. */ 10964$ac_includes_default 10965int 10966main () 10967{ 10968static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 10969test_array [0] = 0 10970 10971 ; 10972 return 0; 10973} 10974_ACEOF 10975rm -f conftest.$ac_objext 10976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10977 (eval $ac_compile) 2>conftest.er1 10978 ac_status=$? 10979 grep -v '^ *+' conftest.er1 >conftest.err 10980 rm -f conftest.er1 10981 cat conftest.err >&5 10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10983 (exit $ac_status); } && 10984 { ac_try='test -z "$ac_c_werror_flag" 10985 || test ! -s conftest.err' 10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10987 (eval $ac_try) 2>&5 10988 ac_status=$? 10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10990 (exit $ac_status); }; } && 10991 { ac_try='test -s conftest.$ac_objext' 10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10993 (eval $ac_try) 2>&5 10994 ac_status=$? 10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10996 (exit $ac_status); }; }; then 10997 ac_hi=$ac_mid 10998else 10999 echo "$as_me: failed program was:" >&5 11000sed 's/^/| /' conftest.$ac_ext >&5 11001 11002ac_lo=`expr '(' $ac_mid ')' + 1` 11003fi 11004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11005done 11006case $ac_lo in 11007?*) ac_cv_sizeof_long=$ac_lo;; 11008'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 11009See \`config.log' for more details." >&5 11010echo "$as_me: error: cannot compute sizeof (long), 77 11011See \`config.log' for more details." >&2;} 11012 { (exit 1); exit 1; }; } ;; 11013esac 11014else 11015 if test "$cross_compiling" = yes; then 11016 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 11017See \`config.log' for more details." >&5 11018echo "$as_me: error: cannot run test program while cross compiling 11019See \`config.log' for more details." >&2;} 11020 { (exit 1); exit 1; }; } 11021else 11022 cat >conftest.$ac_ext <<_ACEOF 11023/* confdefs.h. */ 11024_ACEOF 11025cat confdefs.h >>conftest.$ac_ext 11026cat >>conftest.$ac_ext <<_ACEOF 11027/* end confdefs.h. */ 11028$ac_includes_default 11029long longval () { return (long) (sizeof (long)); } 11030unsigned long ulongval () { return (long) (sizeof (long)); } 11031#include <stdio.h> 11032#include <stdlib.h> 11033int 11034main () 11035{ 11036 11037 FILE *f = fopen ("conftest.val", "w"); 11038 if (! f) 11039 exit (1); 11040 if (((long) (sizeof (long))) < 0) 11041 { 11042 long i = longval (); 11043 if (i != ((long) (sizeof (long)))) 11044 exit (1); 11045 fprintf (f, "%ld\n", i); 11046 } 11047 else 11048 { 11049 unsigned long i = ulongval (); 11050 if (i != ((long) (sizeof (long)))) 11051 exit (1); 11052 fprintf (f, "%lu\n", i); 11053 } 11054 exit (ferror (f) || fclose (f) != 0); 11055 11056 ; 11057 return 0; 11058} 11059_ACEOF 11060rm -f conftest$ac_exeext 11061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11062 (eval $ac_link) 2>&5 11063 ac_status=$? 11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11067 (eval $ac_try) 2>&5 11068 ac_status=$? 11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11070 (exit $ac_status); }; }; then 11071 ac_cv_sizeof_long=`cat conftest.val` 11072else 11073 echo "$as_me: program exited with status $ac_status" >&5 11074echo "$as_me: failed program was:" >&5 11075sed 's/^/| /' conftest.$ac_ext >&5 11076 11077( exit $ac_status ) 11078{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 11079See \`config.log' for more details." >&5 11080echo "$as_me: error: cannot compute sizeof (long), 77 11081See \`config.log' for more details." >&2;} 11082 { (exit 1); exit 1; }; } 11083fi 11084rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11085fi 11086fi 11087rm -f conftest.val 11088else 11089 ac_cv_sizeof_long=0 11090fi 11091fi 11092echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 11093echo "${ECHO_T}$ac_cv_sizeof_long" >&6 11094cat >>confdefs.h <<_ACEOF 11095#define SIZEOF_LONG $ac_cv_sizeof_long 11096_ACEOF 11097 11098 11099 echo "$as_me:$LINENO: checking for int" >&5 11100echo $ECHO_N "checking for int... $ECHO_C" >&6 11101if test "${ac_cv_type_int+set}" = set; then 11102 echo $ECHO_N "(cached) $ECHO_C" >&6 11103else 11104 cat >conftest.$ac_ext <<_ACEOF 11105/* confdefs.h. */ 11106_ACEOF 11107cat confdefs.h >>conftest.$ac_ext 11108cat >>conftest.$ac_ext <<_ACEOF 11109/* end confdefs.h. */ 11110$ac_includes_default 11111int 11112main () 11113{ 11114if ((int *) 0) 11115 return 0; 11116if (sizeof (int)) 11117 return 0; 11118 ; 11119 return 0; 11120} 11121_ACEOF 11122rm -f conftest.$ac_objext 11123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11124 (eval $ac_compile) 2>conftest.er1 11125 ac_status=$? 11126 grep -v '^ *+' conftest.er1 >conftest.err 11127 rm -f conftest.er1 11128 cat conftest.err >&5 11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11130 (exit $ac_status); } && 11131 { ac_try='test -z "$ac_c_werror_flag" 11132 || test ! -s conftest.err' 11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11134 (eval $ac_try) 2>&5 11135 ac_status=$? 11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11137 (exit $ac_status); }; } && 11138 { ac_try='test -s conftest.$ac_objext' 11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11140 (eval $ac_try) 2>&5 11141 ac_status=$? 11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11143 (exit $ac_status); }; }; then 11144 ac_cv_type_int=yes 11145else 11146 echo "$as_me: failed program was:" >&5 11147sed 's/^/| /' conftest.$ac_ext >&5 11148 11149ac_cv_type_int=no 11150fi 11151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11152fi 11153echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 11154echo "${ECHO_T}$ac_cv_type_int" >&6 11155 11156echo "$as_me:$LINENO: checking size of int" >&5 11157echo $ECHO_N "checking size of int... $ECHO_C" >&6 11158if test "${ac_cv_sizeof_int+set}" = set; then 11159 echo $ECHO_N "(cached) $ECHO_C" >&6 11160else 11161 if test "$ac_cv_type_int" = yes; then 11162 # The cast to unsigned long works around a bug in the HP C Compiler 11163 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11164 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11165 # This bug is HP SR number 8606223364. 11166 if test "$cross_compiling" = yes; then 11167 # Depending upon the size, compute the lo and hi bounds. 11168cat >conftest.$ac_ext <<_ACEOF 11169/* confdefs.h. */ 11170_ACEOF 11171cat confdefs.h >>conftest.$ac_ext 11172cat >>conftest.$ac_ext <<_ACEOF 11173/* end confdefs.h. */ 11174$ac_includes_default 11175int 11176main () 11177{ 11178static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 11179test_array [0] = 0 11180 11181 ; 11182 return 0; 11183} 11184_ACEOF 11185rm -f conftest.$ac_objext 11186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11187 (eval $ac_compile) 2>conftest.er1 11188 ac_status=$? 11189 grep -v '^ *+' conftest.er1 >conftest.err 11190 rm -f conftest.er1 11191 cat conftest.err >&5 11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11193 (exit $ac_status); } && 11194 { ac_try='test -z "$ac_c_werror_flag" 11195 || test ! -s conftest.err' 11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11197 (eval $ac_try) 2>&5 11198 ac_status=$? 11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11200 (exit $ac_status); }; } && 11201 { ac_try='test -s conftest.$ac_objext' 11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11203 (eval $ac_try) 2>&5 11204 ac_status=$? 11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11206 (exit $ac_status); }; }; then 11207 ac_lo=0 ac_mid=0 11208 while :; do 11209 cat >conftest.$ac_ext <<_ACEOF 11210/* confdefs.h. */ 11211_ACEOF 11212cat confdefs.h >>conftest.$ac_ext 11213cat >>conftest.$ac_ext <<_ACEOF 11214/* end confdefs.h. */ 11215$ac_includes_default 11216int 11217main () 11218{ 11219static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 11220test_array [0] = 0 11221 11222 ; 11223 return 0; 11224} 11225_ACEOF 11226rm -f conftest.$ac_objext 11227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11228 (eval $ac_compile) 2>conftest.er1 11229 ac_status=$? 11230 grep -v '^ *+' conftest.er1 >conftest.err 11231 rm -f conftest.er1 11232 cat conftest.err >&5 11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11234 (exit $ac_status); } && 11235 { ac_try='test -z "$ac_c_werror_flag" 11236 || test ! -s conftest.err' 11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11238 (eval $ac_try) 2>&5 11239 ac_status=$? 11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11241 (exit $ac_status); }; } && 11242 { ac_try='test -s conftest.$ac_objext' 11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11244 (eval $ac_try) 2>&5 11245 ac_status=$? 11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11247 (exit $ac_status); }; }; then 11248 ac_hi=$ac_mid; break 11249else 11250 echo "$as_me: failed program was:" >&5 11251sed 's/^/| /' conftest.$ac_ext >&5 11252 11253ac_lo=`expr $ac_mid + 1` 11254 if test $ac_lo -le $ac_mid; then 11255 ac_lo= ac_hi= 11256 break 11257 fi 11258 ac_mid=`expr 2 '*' $ac_mid + 1` 11259fi 11260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11261 done 11262else 11263 echo "$as_me: failed program was:" >&5 11264sed 's/^/| /' conftest.$ac_ext >&5 11265 11266cat >conftest.$ac_ext <<_ACEOF 11267/* confdefs.h. */ 11268_ACEOF 11269cat confdefs.h >>conftest.$ac_ext 11270cat >>conftest.$ac_ext <<_ACEOF 11271/* end confdefs.h. */ 11272$ac_includes_default 11273int 11274main () 11275{ 11276static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 11277test_array [0] = 0 11278 11279 ; 11280 return 0; 11281} 11282_ACEOF 11283rm -f conftest.$ac_objext 11284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11285 (eval $ac_compile) 2>conftest.er1 11286 ac_status=$? 11287 grep -v '^ *+' conftest.er1 >conftest.err 11288 rm -f conftest.er1 11289 cat conftest.err >&5 11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11291 (exit $ac_status); } && 11292 { ac_try='test -z "$ac_c_werror_flag" 11293 || test ! -s conftest.err' 11294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11295 (eval $ac_try) 2>&5 11296 ac_status=$? 11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11298 (exit $ac_status); }; } && 11299 { ac_try='test -s conftest.$ac_objext' 11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11301 (eval $ac_try) 2>&5 11302 ac_status=$? 11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11304 (exit $ac_status); }; }; then 11305 ac_hi=-1 ac_mid=-1 11306 while :; do 11307 cat >conftest.$ac_ext <<_ACEOF 11308/* confdefs.h. */ 11309_ACEOF 11310cat confdefs.h >>conftest.$ac_ext 11311cat >>conftest.$ac_ext <<_ACEOF 11312/* end confdefs.h. */ 11313$ac_includes_default 11314int 11315main () 11316{ 11317static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 11318test_array [0] = 0 11319 11320 ; 11321 return 0; 11322} 11323_ACEOF 11324rm -f conftest.$ac_objext 11325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11326 (eval $ac_compile) 2>conftest.er1 11327 ac_status=$? 11328 grep -v '^ *+' conftest.er1 >conftest.err 11329 rm -f conftest.er1 11330 cat conftest.err >&5 11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11332 (exit $ac_status); } && 11333 { ac_try='test -z "$ac_c_werror_flag" 11334 || test ! -s conftest.err' 11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11336 (eval $ac_try) 2>&5 11337 ac_status=$? 11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11339 (exit $ac_status); }; } && 11340 { ac_try='test -s conftest.$ac_objext' 11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11342 (eval $ac_try) 2>&5 11343 ac_status=$? 11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11345 (exit $ac_status); }; }; then 11346 ac_lo=$ac_mid; break 11347else 11348 echo "$as_me: failed program was:" >&5 11349sed 's/^/| /' conftest.$ac_ext >&5 11350 11351ac_hi=`expr '(' $ac_mid ')' - 1` 11352 if test $ac_mid -le $ac_hi; then 11353 ac_lo= ac_hi= 11354 break 11355 fi 11356 ac_mid=`expr 2 '*' $ac_mid` 11357fi 11358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11359 done 11360else 11361 echo "$as_me: failed program was:" >&5 11362sed 's/^/| /' conftest.$ac_ext >&5 11363 11364ac_lo= ac_hi= 11365fi 11366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11367fi 11368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11369# Binary search between lo and hi bounds. 11370while test "x$ac_lo" != "x$ac_hi"; do 11371 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 11372 cat >conftest.$ac_ext <<_ACEOF 11373/* confdefs.h. */ 11374_ACEOF 11375cat confdefs.h >>conftest.$ac_ext 11376cat >>conftest.$ac_ext <<_ACEOF 11377/* end confdefs.h. */ 11378$ac_includes_default 11379int 11380main () 11381{ 11382static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 11383test_array [0] = 0 11384 11385 ; 11386 return 0; 11387} 11388_ACEOF 11389rm -f conftest.$ac_objext 11390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11391 (eval $ac_compile) 2>conftest.er1 11392 ac_status=$? 11393 grep -v '^ *+' conftest.er1 >conftest.err 11394 rm -f conftest.er1 11395 cat conftest.err >&5 11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11397 (exit $ac_status); } && 11398 { ac_try='test -z "$ac_c_werror_flag" 11399 || test ! -s conftest.err' 11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11401 (eval $ac_try) 2>&5 11402 ac_status=$? 11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11404 (exit $ac_status); }; } && 11405 { ac_try='test -s conftest.$ac_objext' 11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11407 (eval $ac_try) 2>&5 11408 ac_status=$? 11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11410 (exit $ac_status); }; }; then 11411 ac_hi=$ac_mid 11412else 11413 echo "$as_me: failed program was:" >&5 11414sed 's/^/| /' conftest.$ac_ext >&5 11415 11416ac_lo=`expr '(' $ac_mid ')' + 1` 11417fi 11418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11419done 11420case $ac_lo in 11421?*) ac_cv_sizeof_int=$ac_lo;; 11422'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 11423See \`config.log' for more details." >&5 11424echo "$as_me: error: cannot compute sizeof (int), 77 11425See \`config.log' for more details." >&2;} 11426 { (exit 1); exit 1; }; } ;; 11427esac 11428else 11429 if test "$cross_compiling" = yes; then 11430 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 11431See \`config.log' for more details." >&5 11432echo "$as_me: error: cannot run test program while cross compiling 11433See \`config.log' for more details." >&2;} 11434 { (exit 1); exit 1; }; } 11435else 11436 cat >conftest.$ac_ext <<_ACEOF 11437/* confdefs.h. */ 11438_ACEOF 11439cat confdefs.h >>conftest.$ac_ext 11440cat >>conftest.$ac_ext <<_ACEOF 11441/* end confdefs.h. */ 11442$ac_includes_default 11443long longval () { return (long) (sizeof (int)); } 11444unsigned long ulongval () { return (long) (sizeof (int)); } 11445#include <stdio.h> 11446#include <stdlib.h> 11447int 11448main () 11449{ 11450 11451 FILE *f = fopen ("conftest.val", "w"); 11452 if (! f) 11453 exit (1); 11454 if (((long) (sizeof (int))) < 0) 11455 { 11456 long i = longval (); 11457 if (i != ((long) (sizeof (int)))) 11458 exit (1); 11459 fprintf (f, "%ld\n", i); 11460 } 11461 else 11462 { 11463 unsigned long i = ulongval (); 11464 if (i != ((long) (sizeof (int)))) 11465 exit (1); 11466 fprintf (f, "%lu\n", i); 11467 } 11468 exit (ferror (f) || fclose (f) != 0); 11469 11470 ; 11471 return 0; 11472} 11473_ACEOF 11474rm -f conftest$ac_exeext 11475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11476 (eval $ac_link) 2>&5 11477 ac_status=$? 11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11481 (eval $ac_try) 2>&5 11482 ac_status=$? 11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11484 (exit $ac_status); }; }; then 11485 ac_cv_sizeof_int=`cat conftest.val` 11486else 11487 echo "$as_me: program exited with status $ac_status" >&5 11488echo "$as_me: failed program was:" >&5 11489sed 's/^/| /' conftest.$ac_ext >&5 11490 11491( exit $ac_status ) 11492{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 11493See \`config.log' for more details." >&5 11494echo "$as_me: error: cannot compute sizeof (int), 77 11495See \`config.log' for more details." >&2;} 11496 { (exit 1); exit 1; }; } 11497fi 11498rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11499fi 11500fi 11501rm -f conftest.val 11502else 11503 ac_cv_sizeof_int=0 11504fi 11505fi 11506echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 11507echo "${ECHO_T}$ac_cv_sizeof_int" >&6 11508cat >>confdefs.h <<_ACEOF 11509#define SIZEOF_INT $ac_cv_sizeof_int 11510_ACEOF 11511 11512 11513 echo "$as_me:$LINENO: checking for short" >&5 11514echo $ECHO_N "checking for short... $ECHO_C" >&6 11515if test "${ac_cv_type_short+set}" = set; then 11516 echo $ECHO_N "(cached) $ECHO_C" >&6 11517else 11518 cat >conftest.$ac_ext <<_ACEOF 11519/* confdefs.h. */ 11520_ACEOF 11521cat confdefs.h >>conftest.$ac_ext 11522cat >>conftest.$ac_ext <<_ACEOF 11523/* end confdefs.h. */ 11524$ac_includes_default 11525int 11526main () 11527{ 11528if ((short *) 0) 11529 return 0; 11530if (sizeof (short)) 11531 return 0; 11532 ; 11533 return 0; 11534} 11535_ACEOF 11536rm -f conftest.$ac_objext 11537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11538 (eval $ac_compile) 2>conftest.er1 11539 ac_status=$? 11540 grep -v '^ *+' conftest.er1 >conftest.err 11541 rm -f conftest.er1 11542 cat conftest.err >&5 11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11544 (exit $ac_status); } && 11545 { ac_try='test -z "$ac_c_werror_flag" 11546 || test ! -s conftest.err' 11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11548 (eval $ac_try) 2>&5 11549 ac_status=$? 11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11551 (exit $ac_status); }; } && 11552 { ac_try='test -s conftest.$ac_objext' 11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11554 (eval $ac_try) 2>&5 11555 ac_status=$? 11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11557 (exit $ac_status); }; }; then 11558 ac_cv_type_short=yes 11559else 11560 echo "$as_me: failed program was:" >&5 11561sed 's/^/| /' conftest.$ac_ext >&5 11562 11563ac_cv_type_short=no 11564fi 11565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11566fi 11567echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 11568echo "${ECHO_T}$ac_cv_type_short" >&6 11569 11570echo "$as_me:$LINENO: checking size of short" >&5 11571echo $ECHO_N "checking size of short... $ECHO_C" >&6 11572if test "${ac_cv_sizeof_short+set}" = set; then 11573 echo $ECHO_N "(cached) $ECHO_C" >&6 11574else 11575 if test "$ac_cv_type_short" = yes; then 11576 # The cast to unsigned long works around a bug in the HP C Compiler 11577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11579 # This bug is HP SR number 8606223364. 11580 if test "$cross_compiling" = yes; then 11581 # Depending upon the size, compute the lo and hi bounds. 11582cat >conftest.$ac_ext <<_ACEOF 11583/* confdefs.h. */ 11584_ACEOF 11585cat confdefs.h >>conftest.$ac_ext 11586cat >>conftest.$ac_ext <<_ACEOF 11587/* end confdefs.h. */ 11588$ac_includes_default 11589int 11590main () 11591{ 11592static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 11593test_array [0] = 0 11594 11595 ; 11596 return 0; 11597} 11598_ACEOF 11599rm -f conftest.$ac_objext 11600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11601 (eval $ac_compile) 2>conftest.er1 11602 ac_status=$? 11603 grep -v '^ *+' conftest.er1 >conftest.err 11604 rm -f conftest.er1 11605 cat conftest.err >&5 11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11607 (exit $ac_status); } && 11608 { ac_try='test -z "$ac_c_werror_flag" 11609 || test ! -s conftest.err' 11610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11611 (eval $ac_try) 2>&5 11612 ac_status=$? 11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11614 (exit $ac_status); }; } && 11615 { ac_try='test -s conftest.$ac_objext' 11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11617 (eval $ac_try) 2>&5 11618 ac_status=$? 11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11620 (exit $ac_status); }; }; then 11621 ac_lo=0 ac_mid=0 11622 while :; do 11623 cat >conftest.$ac_ext <<_ACEOF 11624/* confdefs.h. */ 11625_ACEOF 11626cat confdefs.h >>conftest.$ac_ext 11627cat >>conftest.$ac_ext <<_ACEOF 11628/* end confdefs.h. */ 11629$ac_includes_default 11630int 11631main () 11632{ 11633static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 11634test_array [0] = 0 11635 11636 ; 11637 return 0; 11638} 11639_ACEOF 11640rm -f conftest.$ac_objext 11641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11642 (eval $ac_compile) 2>conftest.er1 11643 ac_status=$? 11644 grep -v '^ *+' conftest.er1 >conftest.err 11645 rm -f conftest.er1 11646 cat conftest.err >&5 11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11648 (exit $ac_status); } && 11649 { ac_try='test -z "$ac_c_werror_flag" 11650 || test ! -s conftest.err' 11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11652 (eval $ac_try) 2>&5 11653 ac_status=$? 11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11655 (exit $ac_status); }; } && 11656 { ac_try='test -s conftest.$ac_objext' 11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11658 (eval $ac_try) 2>&5 11659 ac_status=$? 11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11661 (exit $ac_status); }; }; then 11662 ac_hi=$ac_mid; break 11663else 11664 echo "$as_me: failed program was:" >&5 11665sed 's/^/| /' conftest.$ac_ext >&5 11666 11667ac_lo=`expr $ac_mid + 1` 11668 if test $ac_lo -le $ac_mid; then 11669 ac_lo= ac_hi= 11670 break 11671 fi 11672 ac_mid=`expr 2 '*' $ac_mid + 1` 11673fi 11674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11675 done 11676else 11677 echo "$as_me: failed program was:" >&5 11678sed 's/^/| /' conftest.$ac_ext >&5 11679 11680cat >conftest.$ac_ext <<_ACEOF 11681/* confdefs.h. */ 11682_ACEOF 11683cat confdefs.h >>conftest.$ac_ext 11684cat >>conftest.$ac_ext <<_ACEOF 11685/* end confdefs.h. */ 11686$ac_includes_default 11687int 11688main () 11689{ 11690static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 11691test_array [0] = 0 11692 11693 ; 11694 return 0; 11695} 11696_ACEOF 11697rm -f conftest.$ac_objext 11698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11699 (eval $ac_compile) 2>conftest.er1 11700 ac_status=$? 11701 grep -v '^ *+' conftest.er1 >conftest.err 11702 rm -f conftest.er1 11703 cat conftest.err >&5 11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11705 (exit $ac_status); } && 11706 { ac_try='test -z "$ac_c_werror_flag" 11707 || test ! -s conftest.err' 11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11709 (eval $ac_try) 2>&5 11710 ac_status=$? 11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11712 (exit $ac_status); }; } && 11713 { ac_try='test -s conftest.$ac_objext' 11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11715 (eval $ac_try) 2>&5 11716 ac_status=$? 11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11718 (exit $ac_status); }; }; then 11719 ac_hi=-1 ac_mid=-1 11720 while :; do 11721 cat >conftest.$ac_ext <<_ACEOF 11722/* confdefs.h. */ 11723_ACEOF 11724cat confdefs.h >>conftest.$ac_ext 11725cat >>conftest.$ac_ext <<_ACEOF 11726/* end confdefs.h. */ 11727$ac_includes_default 11728int 11729main () 11730{ 11731static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 11732test_array [0] = 0 11733 11734 ; 11735 return 0; 11736} 11737_ACEOF 11738rm -f conftest.$ac_objext 11739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11740 (eval $ac_compile) 2>conftest.er1 11741 ac_status=$? 11742 grep -v '^ *+' conftest.er1 >conftest.err 11743 rm -f conftest.er1 11744 cat conftest.err >&5 11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11746 (exit $ac_status); } && 11747 { ac_try='test -z "$ac_c_werror_flag" 11748 || test ! -s conftest.err' 11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11750 (eval $ac_try) 2>&5 11751 ac_status=$? 11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11753 (exit $ac_status); }; } && 11754 { ac_try='test -s conftest.$ac_objext' 11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11756 (eval $ac_try) 2>&5 11757 ac_status=$? 11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11759 (exit $ac_status); }; }; then 11760 ac_lo=$ac_mid; break 11761else 11762 echo "$as_me: failed program was:" >&5 11763sed 's/^/| /' conftest.$ac_ext >&5 11764 11765ac_hi=`expr '(' $ac_mid ')' - 1` 11766 if test $ac_mid -le $ac_hi; then 11767 ac_lo= ac_hi= 11768 break 11769 fi 11770 ac_mid=`expr 2 '*' $ac_mid` 11771fi 11772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11773 done 11774else 11775 echo "$as_me: failed program was:" >&5 11776sed 's/^/| /' conftest.$ac_ext >&5 11777 11778ac_lo= ac_hi= 11779fi 11780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11781fi 11782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11783# Binary search between lo and hi bounds. 11784while test "x$ac_lo" != "x$ac_hi"; do 11785 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 11786 cat >conftest.$ac_ext <<_ACEOF 11787/* confdefs.h. */ 11788_ACEOF 11789cat confdefs.h >>conftest.$ac_ext 11790cat >>conftest.$ac_ext <<_ACEOF 11791/* end confdefs.h. */ 11792$ac_includes_default 11793int 11794main () 11795{ 11796static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 11797test_array [0] = 0 11798 11799 ; 11800 return 0; 11801} 11802_ACEOF 11803rm -f conftest.$ac_objext 11804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11805 (eval $ac_compile) 2>conftest.er1 11806 ac_status=$? 11807 grep -v '^ *+' conftest.er1 >conftest.err 11808 rm -f conftest.er1 11809 cat conftest.err >&5 11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11811 (exit $ac_status); } && 11812 { ac_try='test -z "$ac_c_werror_flag" 11813 || test ! -s conftest.err' 11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11815 (eval $ac_try) 2>&5 11816 ac_status=$? 11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11818 (exit $ac_status); }; } && 11819 { ac_try='test -s conftest.$ac_objext' 11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11821 (eval $ac_try) 2>&5 11822 ac_status=$? 11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11824 (exit $ac_status); }; }; then 11825 ac_hi=$ac_mid 11826else 11827 echo "$as_me: failed program was:" >&5 11828sed 's/^/| /' conftest.$ac_ext >&5 11829 11830ac_lo=`expr '(' $ac_mid ')' + 1` 11831fi 11832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11833done 11834case $ac_lo in 11835?*) ac_cv_sizeof_short=$ac_lo;; 11836'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 11837See \`config.log' for more details." >&5 11838echo "$as_me: error: cannot compute sizeof (short), 77 11839See \`config.log' for more details." >&2;} 11840 { (exit 1); exit 1; }; } ;; 11841esac 11842else 11843 if test "$cross_compiling" = yes; then 11844 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 11845See \`config.log' for more details." >&5 11846echo "$as_me: error: cannot run test program while cross compiling 11847See \`config.log' for more details." >&2;} 11848 { (exit 1); exit 1; }; } 11849else 11850 cat >conftest.$ac_ext <<_ACEOF 11851/* confdefs.h. */ 11852_ACEOF 11853cat confdefs.h >>conftest.$ac_ext 11854cat >>conftest.$ac_ext <<_ACEOF 11855/* end confdefs.h. */ 11856$ac_includes_default 11857long longval () { return (long) (sizeof (short)); } 11858unsigned long ulongval () { return (long) (sizeof (short)); } 11859#include <stdio.h> 11860#include <stdlib.h> 11861int 11862main () 11863{ 11864 11865 FILE *f = fopen ("conftest.val", "w"); 11866 if (! f) 11867 exit (1); 11868 if (((long) (sizeof (short))) < 0) 11869 { 11870 long i = longval (); 11871 if (i != ((long) (sizeof (short)))) 11872 exit (1); 11873 fprintf (f, "%ld\n", i); 11874 } 11875 else 11876 { 11877 unsigned long i = ulongval (); 11878 if (i != ((long) (sizeof (short)))) 11879 exit (1); 11880 fprintf (f, "%lu\n", i); 11881 } 11882 exit (ferror (f) || fclose (f) != 0); 11883 11884 ; 11885 return 0; 11886} 11887_ACEOF 11888rm -f conftest$ac_exeext 11889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11890 (eval $ac_link) 2>&5 11891 ac_status=$? 11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11895 (eval $ac_try) 2>&5 11896 ac_status=$? 11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11898 (exit $ac_status); }; }; then 11899 ac_cv_sizeof_short=`cat conftest.val` 11900else 11901 echo "$as_me: program exited with status $ac_status" >&5 11902echo "$as_me: failed program was:" >&5 11903sed 's/^/| /' conftest.$ac_ext >&5 11904 11905( exit $ac_status ) 11906{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 11907See \`config.log' for more details." >&5 11908echo "$as_me: error: cannot compute sizeof (short), 77 11909See \`config.log' for more details." >&2;} 11910 { (exit 1); exit 1; }; } 11911fi 11912rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11913fi 11914fi 11915rm -f conftest.val 11916else 11917 ac_cv_sizeof_short=0 11918fi 11919fi 11920echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 11921echo "${ECHO_T}$ac_cv_sizeof_short" >&6 11922cat >>confdefs.h <<_ACEOF 11923#define SIZEOF_SHORT $ac_cv_sizeof_short 11924_ACEOF 11925 11926 11927 fi 11928 FOUND=0 11929 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 11930 dc_cv_size=`eval echo $dc_cv_loop` 11931 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 11932 if test "$dc_cv_size" = "8"; then 11933 if test "$dc_cv_name" = "int"; then 11934 echo "$as_me:$LINENO: checking for int64_t" >&5 11935echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 11936if test "${ac_cv_type_int64_t+set}" = set; then 11937 echo $ECHO_N "(cached) $ECHO_C" >&6 11938else 11939 cat >conftest.$ac_ext <<_ACEOF 11940/* confdefs.h. */ 11941_ACEOF 11942cat confdefs.h >>conftest.$ac_ext 11943cat >>conftest.$ac_ext <<_ACEOF 11944/* end confdefs.h. */ 11945$ac_includes_default 11946int 11947main () 11948{ 11949if ((int64_t *) 0) 11950 return 0; 11951if (sizeof (int64_t)) 11952 return 0; 11953 ; 11954 return 0; 11955} 11956_ACEOF 11957rm -f conftest.$ac_objext 11958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11959 (eval $ac_compile) 2>conftest.er1 11960 ac_status=$? 11961 grep -v '^ *+' conftest.er1 >conftest.err 11962 rm -f conftest.er1 11963 cat conftest.err >&5 11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11965 (exit $ac_status); } && 11966 { ac_try='test -z "$ac_c_werror_flag" 11967 || test ! -s conftest.err' 11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11969 (eval $ac_try) 2>&5 11970 ac_status=$? 11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11972 (exit $ac_status); }; } && 11973 { ac_try='test -s conftest.$ac_objext' 11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11975 (eval $ac_try) 2>&5 11976 ac_status=$? 11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11978 (exit $ac_status); }; }; then 11979 ac_cv_type_int64_t=yes 11980else 11981 echo "$as_me: failed program was:" >&5 11982sed 's/^/| /' conftest.$ac_ext >&5 11983 11984ac_cv_type_int64_t=no 11985fi 11986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11987fi 11988echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 11989echo "${ECHO_T}$ac_cv_type_int64_t" >&6 11990if test $ac_cv_type_int64_t = yes; then 11991 : 11992else 11993 11994cat >>confdefs.h <<_ACEOF 11995#define int64_t signed int 11996_ACEOF 11997 11998fi 11999 12000 fi 12001 if test "$dc_cv_name" = "long"; then 12002 echo "$as_me:$LINENO: checking for int64_t" >&5 12003echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 12004if test "${ac_cv_type_int64_t+set}" = set; then 12005 echo $ECHO_N "(cached) $ECHO_C" >&6 12006else 12007 cat >conftest.$ac_ext <<_ACEOF 12008/* confdefs.h. */ 12009_ACEOF 12010cat confdefs.h >>conftest.$ac_ext 12011cat >>conftest.$ac_ext <<_ACEOF 12012/* end confdefs.h. */ 12013$ac_includes_default 12014int 12015main () 12016{ 12017if ((int64_t *) 0) 12018 return 0; 12019if (sizeof (int64_t)) 12020 return 0; 12021 ; 12022 return 0; 12023} 12024_ACEOF 12025rm -f conftest.$ac_objext 12026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12027 (eval $ac_compile) 2>conftest.er1 12028 ac_status=$? 12029 grep -v '^ *+' conftest.er1 >conftest.err 12030 rm -f conftest.er1 12031 cat conftest.err >&5 12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12033 (exit $ac_status); } && 12034 { ac_try='test -z "$ac_c_werror_flag" 12035 || test ! -s conftest.err' 12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12037 (eval $ac_try) 2>&5 12038 ac_status=$? 12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12040 (exit $ac_status); }; } && 12041 { ac_try='test -s conftest.$ac_objext' 12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12043 (eval $ac_try) 2>&5 12044 ac_status=$? 12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12046 (exit $ac_status); }; }; then 12047 ac_cv_type_int64_t=yes 12048else 12049 echo "$as_me: failed program was:" >&5 12050sed 's/^/| /' conftest.$ac_ext >&5 12051 12052ac_cv_type_int64_t=no 12053fi 12054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12055fi 12056echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 12057echo "${ECHO_T}$ac_cv_type_int64_t" >&6 12058if test $ac_cv_type_int64_t = yes; then 12059 : 12060else 12061 12062cat >>confdefs.h <<_ACEOF 12063#define int64_t signed long 12064_ACEOF 12065 12066fi 12067 12068 fi 12069 if test "$dc_cv_name" = "long_long"; then 12070 echo "$as_me:$LINENO: checking for int64_t" >&5 12071echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 12072if test "${ac_cv_type_int64_t+set}" = set; then 12073 echo $ECHO_N "(cached) $ECHO_C" >&6 12074else 12075 cat >conftest.$ac_ext <<_ACEOF 12076/* confdefs.h. */ 12077_ACEOF 12078cat confdefs.h >>conftest.$ac_ext 12079cat >>conftest.$ac_ext <<_ACEOF 12080/* end confdefs.h. */ 12081$ac_includes_default 12082int 12083main () 12084{ 12085if ((int64_t *) 0) 12086 return 0; 12087if (sizeof (int64_t)) 12088 return 0; 12089 ; 12090 return 0; 12091} 12092_ACEOF 12093rm -f conftest.$ac_objext 12094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12095 (eval $ac_compile) 2>conftest.er1 12096 ac_status=$? 12097 grep -v '^ *+' conftest.er1 >conftest.err 12098 rm -f conftest.er1 12099 cat conftest.err >&5 12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12101 (exit $ac_status); } && 12102 { ac_try='test -z "$ac_c_werror_flag" 12103 || test ! -s conftest.err' 12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12105 (eval $ac_try) 2>&5 12106 ac_status=$? 12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12108 (exit $ac_status); }; } && 12109 { ac_try='test -s conftest.$ac_objext' 12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12111 (eval $ac_try) 2>&5 12112 ac_status=$? 12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12114 (exit $ac_status); }; }; then 12115 ac_cv_type_int64_t=yes 12116else 12117 echo "$as_me: failed program was:" >&5 12118sed 's/^/| /' conftest.$ac_ext >&5 12119 12120ac_cv_type_int64_t=no 12121fi 12122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12123fi 12124echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 12125echo "${ECHO_T}$ac_cv_type_int64_t" >&6 12126if test $ac_cv_type_int64_t = yes; then 12127 : 12128else 12129 12130cat >>confdefs.h <<_ACEOF 12131#define int64_t signed long long 12132_ACEOF 12133 12134fi 12135 12136 fi 12137 if test "$dc_cv_name" = "short"; then 12138 echo "$as_me:$LINENO: checking for int64_t" >&5 12139echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 12140if test "${ac_cv_type_int64_t+set}" = set; then 12141 echo $ECHO_N "(cached) $ECHO_C" >&6 12142else 12143 cat >conftest.$ac_ext <<_ACEOF 12144/* confdefs.h. */ 12145_ACEOF 12146cat confdefs.h >>conftest.$ac_ext 12147cat >>conftest.$ac_ext <<_ACEOF 12148/* end confdefs.h. */ 12149$ac_includes_default 12150int 12151main () 12152{ 12153if ((int64_t *) 0) 12154 return 0; 12155if (sizeof (int64_t)) 12156 return 0; 12157 ; 12158 return 0; 12159} 12160_ACEOF 12161rm -f conftest.$ac_objext 12162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12163 (eval $ac_compile) 2>conftest.er1 12164 ac_status=$? 12165 grep -v '^ *+' conftest.er1 >conftest.err 12166 rm -f conftest.er1 12167 cat conftest.err >&5 12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12169 (exit $ac_status); } && 12170 { ac_try='test -z "$ac_c_werror_flag" 12171 || test ! -s conftest.err' 12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12173 (eval $ac_try) 2>&5 12174 ac_status=$? 12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12176 (exit $ac_status); }; } && 12177 { ac_try='test -s conftest.$ac_objext' 12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12179 (eval $ac_try) 2>&5 12180 ac_status=$? 12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12182 (exit $ac_status); }; }; then 12183 ac_cv_type_int64_t=yes 12184else 12185 echo "$as_me: failed program was:" >&5 12186sed 's/^/| /' conftest.$ac_ext >&5 12187 12188ac_cv_type_int64_t=no 12189fi 12190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12191fi 12192echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 12193echo "${ECHO_T}$ac_cv_type_int64_t" >&6 12194if test $ac_cv_type_int64_t = yes; then 12195 : 12196else 12197 12198cat >>confdefs.h <<_ACEOF 12199#define int64_t signed short 12200_ACEOF 12201 12202fi 12203 12204 fi 12205 FOUND=1 12206 break 12207 fi 12208 done 12209 12210 12211 if test -z "$ac_cv_sizeof_long"; then 12212 echo "$as_me:$LINENO: checking for inline" >&5 12213echo $ECHO_N "checking for inline... $ECHO_C" >&6 12214if test "${ac_cv_c_inline+set}" = set; then 12215 echo $ECHO_N "(cached) $ECHO_C" >&6 12216else 12217 ac_cv_c_inline=no 12218for ac_kw in inline __inline__ __inline; do 12219 cat >conftest.$ac_ext <<_ACEOF 12220/* confdefs.h. */ 12221_ACEOF 12222cat confdefs.h >>conftest.$ac_ext 12223cat >>conftest.$ac_ext <<_ACEOF 12224/* end confdefs.h. */ 12225#ifndef __cplusplus 12226typedef int foo_t; 12227static $ac_kw foo_t static_foo () {return 0; } 12228$ac_kw foo_t foo () {return 0; } 12229#endif 12230 12231_ACEOF 12232rm -f conftest.$ac_objext 12233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12234 (eval $ac_compile) 2>conftest.er1 12235 ac_status=$? 12236 grep -v '^ *+' conftest.er1 >conftest.err 12237 rm -f conftest.er1 12238 cat conftest.err >&5 12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12240 (exit $ac_status); } && 12241 { ac_try='test -z "$ac_c_werror_flag" 12242 || test ! -s conftest.err' 12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12244 (eval $ac_try) 2>&5 12245 ac_status=$? 12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12247 (exit $ac_status); }; } && 12248 { ac_try='test -s conftest.$ac_objext' 12249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12250 (eval $ac_try) 2>&5 12251 ac_status=$? 12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12253 (exit $ac_status); }; }; then 12254 ac_cv_c_inline=$ac_kw; break 12255else 12256 echo "$as_me: failed program was:" >&5 12257sed 's/^/| /' conftest.$ac_ext >&5 12258 12259fi 12260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12261done 12262 12263fi 12264echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 12265echo "${ECHO_T}$ac_cv_c_inline" >&6 12266 12267 12268case $ac_cv_c_inline in 12269 inline | yes) ;; 12270 *) 12271 case $ac_cv_c_inline in 12272 no) ac_val=;; 12273 *) ac_val=$ac_cv_c_inline;; 12274 esac 12275 cat >>confdefs.h <<_ACEOF 12276#ifndef __cplusplus 12277#define inline $ac_val 12278#endif 12279_ACEOF 12280 ;; 12281esac 12282 12283 echo "$as_me:$LINENO: checking for long long" >&5 12284echo $ECHO_N "checking for long long... $ECHO_C" >&6 12285if test "${ac_cv_type_long_long+set}" = set; then 12286 echo $ECHO_N "(cached) $ECHO_C" >&6 12287else 12288 cat >conftest.$ac_ext <<_ACEOF 12289/* confdefs.h. */ 12290_ACEOF 12291cat confdefs.h >>conftest.$ac_ext 12292cat >>conftest.$ac_ext <<_ACEOF 12293/* end confdefs.h. */ 12294$ac_includes_default 12295int 12296main () 12297{ 12298if ((long long *) 0) 12299 return 0; 12300if (sizeof (long long)) 12301 return 0; 12302 ; 12303 return 0; 12304} 12305_ACEOF 12306rm -f conftest.$ac_objext 12307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12308 (eval $ac_compile) 2>conftest.er1 12309 ac_status=$? 12310 grep -v '^ *+' conftest.er1 >conftest.err 12311 rm -f conftest.er1 12312 cat conftest.err >&5 12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12314 (exit $ac_status); } && 12315 { ac_try='test -z "$ac_c_werror_flag" 12316 || test ! -s conftest.err' 12317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12318 (eval $ac_try) 2>&5 12319 ac_status=$? 12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12321 (exit $ac_status); }; } && 12322 { ac_try='test -s conftest.$ac_objext' 12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12324 (eval $ac_try) 2>&5 12325 ac_status=$? 12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12327 (exit $ac_status); }; }; then 12328 ac_cv_type_long_long=yes 12329else 12330 echo "$as_me: failed program was:" >&5 12331sed 's/^/| /' conftest.$ac_ext >&5 12332 12333ac_cv_type_long_long=no 12334fi 12335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12336fi 12337echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 12338echo "${ECHO_T}$ac_cv_type_long_long" >&6 12339 12340echo "$as_me:$LINENO: checking size of long long" >&5 12341echo $ECHO_N "checking size of long long... $ECHO_C" >&6 12342if test "${ac_cv_sizeof_long_long+set}" = set; then 12343 echo $ECHO_N "(cached) $ECHO_C" >&6 12344else 12345 if test "$ac_cv_type_long_long" = yes; then 12346 # The cast to unsigned long works around a bug in the HP C Compiler 12347 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12348 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12349 # This bug is HP SR number 8606223364. 12350 if test "$cross_compiling" = yes; then 12351 # Depending upon the size, compute the lo and hi bounds. 12352cat >conftest.$ac_ext <<_ACEOF 12353/* confdefs.h. */ 12354_ACEOF 12355cat confdefs.h >>conftest.$ac_ext 12356cat >>conftest.$ac_ext <<_ACEOF 12357/* end confdefs.h. */ 12358$ac_includes_default 12359int 12360main () 12361{ 12362static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 12363test_array [0] = 0 12364 12365 ; 12366 return 0; 12367} 12368_ACEOF 12369rm -f conftest.$ac_objext 12370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12371 (eval $ac_compile) 2>conftest.er1 12372 ac_status=$? 12373 grep -v '^ *+' conftest.er1 >conftest.err 12374 rm -f conftest.er1 12375 cat conftest.err >&5 12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12377 (exit $ac_status); } && 12378 { ac_try='test -z "$ac_c_werror_flag" 12379 || test ! -s conftest.err' 12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12381 (eval $ac_try) 2>&5 12382 ac_status=$? 12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12384 (exit $ac_status); }; } && 12385 { ac_try='test -s conftest.$ac_objext' 12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12387 (eval $ac_try) 2>&5 12388 ac_status=$? 12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12390 (exit $ac_status); }; }; then 12391 ac_lo=0 ac_mid=0 12392 while :; do 12393 cat >conftest.$ac_ext <<_ACEOF 12394/* confdefs.h. */ 12395_ACEOF 12396cat confdefs.h >>conftest.$ac_ext 12397cat >>conftest.$ac_ext <<_ACEOF 12398/* end confdefs.h. */ 12399$ac_includes_default 12400int 12401main () 12402{ 12403static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 12404test_array [0] = 0 12405 12406 ; 12407 return 0; 12408} 12409_ACEOF 12410rm -f conftest.$ac_objext 12411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12412 (eval $ac_compile) 2>conftest.er1 12413 ac_status=$? 12414 grep -v '^ *+' conftest.er1 >conftest.err 12415 rm -f conftest.er1 12416 cat conftest.err >&5 12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12418 (exit $ac_status); } && 12419 { ac_try='test -z "$ac_c_werror_flag" 12420 || test ! -s conftest.err' 12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12422 (eval $ac_try) 2>&5 12423 ac_status=$? 12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12425 (exit $ac_status); }; } && 12426 { ac_try='test -s conftest.$ac_objext' 12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12428 (eval $ac_try) 2>&5 12429 ac_status=$? 12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12431 (exit $ac_status); }; }; then 12432 ac_hi=$ac_mid; break 12433else 12434 echo "$as_me: failed program was:" >&5 12435sed 's/^/| /' conftest.$ac_ext >&5 12436 12437ac_lo=`expr $ac_mid + 1` 12438 if test $ac_lo -le $ac_mid; then 12439 ac_lo= ac_hi= 12440 break 12441 fi 12442 ac_mid=`expr 2 '*' $ac_mid + 1` 12443fi 12444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12445 done 12446else 12447 echo "$as_me: failed program was:" >&5 12448sed 's/^/| /' conftest.$ac_ext >&5 12449 12450cat >conftest.$ac_ext <<_ACEOF 12451/* confdefs.h. */ 12452_ACEOF 12453cat confdefs.h >>conftest.$ac_ext 12454cat >>conftest.$ac_ext <<_ACEOF 12455/* end confdefs.h. */ 12456$ac_includes_default 12457int 12458main () 12459{ 12460static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 12461test_array [0] = 0 12462 12463 ; 12464 return 0; 12465} 12466_ACEOF 12467rm -f conftest.$ac_objext 12468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12469 (eval $ac_compile) 2>conftest.er1 12470 ac_status=$? 12471 grep -v '^ *+' conftest.er1 >conftest.err 12472 rm -f conftest.er1 12473 cat conftest.err >&5 12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12475 (exit $ac_status); } && 12476 { ac_try='test -z "$ac_c_werror_flag" 12477 || test ! -s conftest.err' 12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12479 (eval $ac_try) 2>&5 12480 ac_status=$? 12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12482 (exit $ac_status); }; } && 12483 { ac_try='test -s conftest.$ac_objext' 12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12485 (eval $ac_try) 2>&5 12486 ac_status=$? 12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12488 (exit $ac_status); }; }; then 12489 ac_hi=-1 ac_mid=-1 12490 while :; do 12491 cat >conftest.$ac_ext <<_ACEOF 12492/* confdefs.h. */ 12493_ACEOF 12494cat confdefs.h >>conftest.$ac_ext 12495cat >>conftest.$ac_ext <<_ACEOF 12496/* end confdefs.h. */ 12497$ac_includes_default 12498int 12499main () 12500{ 12501static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 12502test_array [0] = 0 12503 12504 ; 12505 return 0; 12506} 12507_ACEOF 12508rm -f conftest.$ac_objext 12509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12510 (eval $ac_compile) 2>conftest.er1 12511 ac_status=$? 12512 grep -v '^ *+' conftest.er1 >conftest.err 12513 rm -f conftest.er1 12514 cat conftest.err >&5 12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12516 (exit $ac_status); } && 12517 { ac_try='test -z "$ac_c_werror_flag" 12518 || test ! -s conftest.err' 12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12520 (eval $ac_try) 2>&5 12521 ac_status=$? 12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12523 (exit $ac_status); }; } && 12524 { ac_try='test -s conftest.$ac_objext' 12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12526 (eval $ac_try) 2>&5 12527 ac_status=$? 12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12529 (exit $ac_status); }; }; then 12530 ac_lo=$ac_mid; break 12531else 12532 echo "$as_me: failed program was:" >&5 12533sed 's/^/| /' conftest.$ac_ext >&5 12534 12535ac_hi=`expr '(' $ac_mid ')' - 1` 12536 if test $ac_mid -le $ac_hi; then 12537 ac_lo= ac_hi= 12538 break 12539 fi 12540 ac_mid=`expr 2 '*' $ac_mid` 12541fi 12542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12543 done 12544else 12545 echo "$as_me: failed program was:" >&5 12546sed 's/^/| /' conftest.$ac_ext >&5 12547 12548ac_lo= ac_hi= 12549fi 12550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12551fi 12552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12553# Binary search between lo and hi bounds. 12554while test "x$ac_lo" != "x$ac_hi"; do 12555 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12556 cat >conftest.$ac_ext <<_ACEOF 12557/* confdefs.h. */ 12558_ACEOF 12559cat confdefs.h >>conftest.$ac_ext 12560cat >>conftest.$ac_ext <<_ACEOF 12561/* end confdefs.h. */ 12562$ac_includes_default 12563int 12564main () 12565{ 12566static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 12567test_array [0] = 0 12568 12569 ; 12570 return 0; 12571} 12572_ACEOF 12573rm -f conftest.$ac_objext 12574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12575 (eval $ac_compile) 2>conftest.er1 12576 ac_status=$? 12577 grep -v '^ *+' conftest.er1 >conftest.err 12578 rm -f conftest.er1 12579 cat conftest.err >&5 12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12581 (exit $ac_status); } && 12582 { ac_try='test -z "$ac_c_werror_flag" 12583 || test ! -s conftest.err' 12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12585 (eval $ac_try) 2>&5 12586 ac_status=$? 12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12588 (exit $ac_status); }; } && 12589 { ac_try='test -s conftest.$ac_objext' 12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12591 (eval $ac_try) 2>&5 12592 ac_status=$? 12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12594 (exit $ac_status); }; }; then 12595 ac_hi=$ac_mid 12596else 12597 echo "$as_me: failed program was:" >&5 12598sed 's/^/| /' conftest.$ac_ext >&5 12599 12600ac_lo=`expr '(' $ac_mid ')' + 1` 12601fi 12602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12603done 12604case $ac_lo in 12605?*) ac_cv_sizeof_long_long=$ac_lo;; 12606'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 12607See \`config.log' for more details." >&5 12608echo "$as_me: error: cannot compute sizeof (long long), 77 12609See \`config.log' for more details." >&2;} 12610 { (exit 1); exit 1; }; } ;; 12611esac 12612else 12613 if test "$cross_compiling" = yes; then 12614 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12615See \`config.log' for more details." >&5 12616echo "$as_me: error: cannot run test program while cross compiling 12617See \`config.log' for more details." >&2;} 12618 { (exit 1); exit 1; }; } 12619else 12620 cat >conftest.$ac_ext <<_ACEOF 12621/* confdefs.h. */ 12622_ACEOF 12623cat confdefs.h >>conftest.$ac_ext 12624cat >>conftest.$ac_ext <<_ACEOF 12625/* end confdefs.h. */ 12626$ac_includes_default 12627long longval () { return (long) (sizeof (long long)); } 12628unsigned long ulongval () { return (long) (sizeof (long long)); } 12629#include <stdio.h> 12630#include <stdlib.h> 12631int 12632main () 12633{ 12634 12635 FILE *f = fopen ("conftest.val", "w"); 12636 if (! f) 12637 exit (1); 12638 if (((long) (sizeof (long long))) < 0) 12639 { 12640 long i = longval (); 12641 if (i != ((long) (sizeof (long long)))) 12642 exit (1); 12643 fprintf (f, "%ld\n", i); 12644 } 12645 else 12646 { 12647 unsigned long i = ulongval (); 12648 if (i != ((long) (sizeof (long long)))) 12649 exit (1); 12650 fprintf (f, "%lu\n", i); 12651 } 12652 exit (ferror (f) || fclose (f) != 0); 12653 12654 ; 12655 return 0; 12656} 12657_ACEOF 12658rm -f conftest$ac_exeext 12659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12660 (eval $ac_link) 2>&5 12661 ac_status=$? 12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12665 (eval $ac_try) 2>&5 12666 ac_status=$? 12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12668 (exit $ac_status); }; }; then 12669 ac_cv_sizeof_long_long=`cat conftest.val` 12670else 12671 echo "$as_me: program exited with status $ac_status" >&5 12672echo "$as_me: failed program was:" >&5 12673sed 's/^/| /' conftest.$ac_ext >&5 12674 12675( exit $ac_status ) 12676{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 12677See \`config.log' for more details." >&5 12678echo "$as_me: error: cannot compute sizeof (long long), 77 12679See \`config.log' for more details." >&2;} 12680 { (exit 1); exit 1; }; } 12681fi 12682rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12683fi 12684fi 12685rm -f conftest.val 12686else 12687 ac_cv_sizeof_long_long=0 12688fi 12689fi 12690echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 12691echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 12692cat >>confdefs.h <<_ACEOF 12693#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 12694_ACEOF 12695 12696 12697 echo "$as_me:$LINENO: checking for long" >&5 12698echo $ECHO_N "checking for long... $ECHO_C" >&6 12699if test "${ac_cv_type_long+set}" = set; then 12700 echo $ECHO_N "(cached) $ECHO_C" >&6 12701else 12702 cat >conftest.$ac_ext <<_ACEOF 12703/* confdefs.h. */ 12704_ACEOF 12705cat confdefs.h >>conftest.$ac_ext 12706cat >>conftest.$ac_ext <<_ACEOF 12707/* end confdefs.h. */ 12708$ac_includes_default 12709int 12710main () 12711{ 12712if ((long *) 0) 12713 return 0; 12714if (sizeof (long)) 12715 return 0; 12716 ; 12717 return 0; 12718} 12719_ACEOF 12720rm -f conftest.$ac_objext 12721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12722 (eval $ac_compile) 2>conftest.er1 12723 ac_status=$? 12724 grep -v '^ *+' conftest.er1 >conftest.err 12725 rm -f conftest.er1 12726 cat conftest.err >&5 12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12728 (exit $ac_status); } && 12729 { ac_try='test -z "$ac_c_werror_flag" 12730 || test ! -s conftest.err' 12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12732 (eval $ac_try) 2>&5 12733 ac_status=$? 12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12735 (exit $ac_status); }; } && 12736 { ac_try='test -s conftest.$ac_objext' 12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12738 (eval $ac_try) 2>&5 12739 ac_status=$? 12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12741 (exit $ac_status); }; }; then 12742 ac_cv_type_long=yes 12743else 12744 echo "$as_me: failed program was:" >&5 12745sed 's/^/| /' conftest.$ac_ext >&5 12746 12747ac_cv_type_long=no 12748fi 12749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12750fi 12751echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 12752echo "${ECHO_T}$ac_cv_type_long" >&6 12753 12754echo "$as_me:$LINENO: checking size of long" >&5 12755echo $ECHO_N "checking size of long... $ECHO_C" >&6 12756if test "${ac_cv_sizeof_long+set}" = set; then 12757 echo $ECHO_N "(cached) $ECHO_C" >&6 12758else 12759 if test "$ac_cv_type_long" = yes; then 12760 # The cast to unsigned long works around a bug in the HP C Compiler 12761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12763 # This bug is HP SR number 8606223364. 12764 if test "$cross_compiling" = yes; then 12765 # Depending upon the size, compute the lo and hi bounds. 12766cat >conftest.$ac_ext <<_ACEOF 12767/* confdefs.h. */ 12768_ACEOF 12769cat confdefs.h >>conftest.$ac_ext 12770cat >>conftest.$ac_ext <<_ACEOF 12771/* end confdefs.h. */ 12772$ac_includes_default 12773int 12774main () 12775{ 12776static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 12777test_array [0] = 0 12778 12779 ; 12780 return 0; 12781} 12782_ACEOF 12783rm -f conftest.$ac_objext 12784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12785 (eval $ac_compile) 2>conftest.er1 12786 ac_status=$? 12787 grep -v '^ *+' conftest.er1 >conftest.err 12788 rm -f conftest.er1 12789 cat conftest.err >&5 12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12791 (exit $ac_status); } && 12792 { ac_try='test -z "$ac_c_werror_flag" 12793 || test ! -s conftest.err' 12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12795 (eval $ac_try) 2>&5 12796 ac_status=$? 12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12798 (exit $ac_status); }; } && 12799 { ac_try='test -s conftest.$ac_objext' 12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12801 (eval $ac_try) 2>&5 12802 ac_status=$? 12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12804 (exit $ac_status); }; }; then 12805 ac_lo=0 ac_mid=0 12806 while :; do 12807 cat >conftest.$ac_ext <<_ACEOF 12808/* confdefs.h. */ 12809_ACEOF 12810cat confdefs.h >>conftest.$ac_ext 12811cat >>conftest.$ac_ext <<_ACEOF 12812/* end confdefs.h. */ 12813$ac_includes_default 12814int 12815main () 12816{ 12817static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 12818test_array [0] = 0 12819 12820 ; 12821 return 0; 12822} 12823_ACEOF 12824rm -f conftest.$ac_objext 12825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12826 (eval $ac_compile) 2>conftest.er1 12827 ac_status=$? 12828 grep -v '^ *+' conftest.er1 >conftest.err 12829 rm -f conftest.er1 12830 cat conftest.err >&5 12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12832 (exit $ac_status); } && 12833 { ac_try='test -z "$ac_c_werror_flag" 12834 || test ! -s conftest.err' 12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12836 (eval $ac_try) 2>&5 12837 ac_status=$? 12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12839 (exit $ac_status); }; } && 12840 { ac_try='test -s conftest.$ac_objext' 12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12842 (eval $ac_try) 2>&5 12843 ac_status=$? 12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12845 (exit $ac_status); }; }; then 12846 ac_hi=$ac_mid; break 12847else 12848 echo "$as_me: failed program was:" >&5 12849sed 's/^/| /' conftest.$ac_ext >&5 12850 12851ac_lo=`expr $ac_mid + 1` 12852 if test $ac_lo -le $ac_mid; then 12853 ac_lo= ac_hi= 12854 break 12855 fi 12856 ac_mid=`expr 2 '*' $ac_mid + 1` 12857fi 12858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12859 done 12860else 12861 echo "$as_me: failed program was:" >&5 12862sed 's/^/| /' conftest.$ac_ext >&5 12863 12864cat >conftest.$ac_ext <<_ACEOF 12865/* confdefs.h. */ 12866_ACEOF 12867cat confdefs.h >>conftest.$ac_ext 12868cat >>conftest.$ac_ext <<_ACEOF 12869/* end confdefs.h. */ 12870$ac_includes_default 12871int 12872main () 12873{ 12874static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 12875test_array [0] = 0 12876 12877 ; 12878 return 0; 12879} 12880_ACEOF 12881rm -f conftest.$ac_objext 12882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12883 (eval $ac_compile) 2>conftest.er1 12884 ac_status=$? 12885 grep -v '^ *+' conftest.er1 >conftest.err 12886 rm -f conftest.er1 12887 cat conftest.err >&5 12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12889 (exit $ac_status); } && 12890 { ac_try='test -z "$ac_c_werror_flag" 12891 || test ! -s conftest.err' 12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12893 (eval $ac_try) 2>&5 12894 ac_status=$? 12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12896 (exit $ac_status); }; } && 12897 { ac_try='test -s conftest.$ac_objext' 12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12899 (eval $ac_try) 2>&5 12900 ac_status=$? 12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12902 (exit $ac_status); }; }; then 12903 ac_hi=-1 ac_mid=-1 12904 while :; do 12905 cat >conftest.$ac_ext <<_ACEOF 12906/* confdefs.h. */ 12907_ACEOF 12908cat confdefs.h >>conftest.$ac_ext 12909cat >>conftest.$ac_ext <<_ACEOF 12910/* end confdefs.h. */ 12911$ac_includes_default 12912int 12913main () 12914{ 12915static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 12916test_array [0] = 0 12917 12918 ; 12919 return 0; 12920} 12921_ACEOF 12922rm -f conftest.$ac_objext 12923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12924 (eval $ac_compile) 2>conftest.er1 12925 ac_status=$? 12926 grep -v '^ *+' conftest.er1 >conftest.err 12927 rm -f conftest.er1 12928 cat conftest.err >&5 12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12930 (exit $ac_status); } && 12931 { ac_try='test -z "$ac_c_werror_flag" 12932 || test ! -s conftest.err' 12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12934 (eval $ac_try) 2>&5 12935 ac_status=$? 12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12937 (exit $ac_status); }; } && 12938 { ac_try='test -s conftest.$ac_objext' 12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12940 (eval $ac_try) 2>&5 12941 ac_status=$? 12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12943 (exit $ac_status); }; }; then 12944 ac_lo=$ac_mid; break 12945else 12946 echo "$as_me: failed program was:" >&5 12947sed 's/^/| /' conftest.$ac_ext >&5 12948 12949ac_hi=`expr '(' $ac_mid ')' - 1` 12950 if test $ac_mid -le $ac_hi; then 12951 ac_lo= ac_hi= 12952 break 12953 fi 12954 ac_mid=`expr 2 '*' $ac_mid` 12955fi 12956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12957 done 12958else 12959 echo "$as_me: failed program was:" >&5 12960sed 's/^/| /' conftest.$ac_ext >&5 12961 12962ac_lo= ac_hi= 12963fi 12964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12965fi 12966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12967# Binary search between lo and hi bounds. 12968while test "x$ac_lo" != "x$ac_hi"; do 12969 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12970 cat >conftest.$ac_ext <<_ACEOF 12971/* confdefs.h. */ 12972_ACEOF 12973cat confdefs.h >>conftest.$ac_ext 12974cat >>conftest.$ac_ext <<_ACEOF 12975/* end confdefs.h. */ 12976$ac_includes_default 12977int 12978main () 12979{ 12980static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 12981test_array [0] = 0 12982 12983 ; 12984 return 0; 12985} 12986_ACEOF 12987rm -f conftest.$ac_objext 12988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12989 (eval $ac_compile) 2>conftest.er1 12990 ac_status=$? 12991 grep -v '^ *+' conftest.er1 >conftest.err 12992 rm -f conftest.er1 12993 cat conftest.err >&5 12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12995 (exit $ac_status); } && 12996 { ac_try='test -z "$ac_c_werror_flag" 12997 || test ! -s conftest.err' 12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12999 (eval $ac_try) 2>&5 13000 ac_status=$? 13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13002 (exit $ac_status); }; } && 13003 { ac_try='test -s conftest.$ac_objext' 13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13005 (eval $ac_try) 2>&5 13006 ac_status=$? 13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13008 (exit $ac_status); }; }; then 13009 ac_hi=$ac_mid 13010else 13011 echo "$as_me: failed program was:" >&5 13012sed 's/^/| /' conftest.$ac_ext >&5 13013 13014ac_lo=`expr '(' $ac_mid ')' + 1` 13015fi 13016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13017done 13018case $ac_lo in 13019?*) ac_cv_sizeof_long=$ac_lo;; 13020'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 13021See \`config.log' for more details." >&5 13022echo "$as_me: error: cannot compute sizeof (long), 77 13023See \`config.log' for more details." >&2;} 13024 { (exit 1); exit 1; }; } ;; 13025esac 13026else 13027 if test "$cross_compiling" = yes; then 13028 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 13029See \`config.log' for more details." >&5 13030echo "$as_me: error: cannot run test program while cross compiling 13031See \`config.log' for more details." >&2;} 13032 { (exit 1); exit 1; }; } 13033else 13034 cat >conftest.$ac_ext <<_ACEOF 13035/* confdefs.h. */ 13036_ACEOF 13037cat confdefs.h >>conftest.$ac_ext 13038cat >>conftest.$ac_ext <<_ACEOF 13039/* end confdefs.h. */ 13040$ac_includes_default 13041long longval () { return (long) (sizeof (long)); } 13042unsigned long ulongval () { return (long) (sizeof (long)); } 13043#include <stdio.h> 13044#include <stdlib.h> 13045int 13046main () 13047{ 13048 13049 FILE *f = fopen ("conftest.val", "w"); 13050 if (! f) 13051 exit (1); 13052 if (((long) (sizeof (long))) < 0) 13053 { 13054 long i = longval (); 13055 if (i != ((long) (sizeof (long)))) 13056 exit (1); 13057 fprintf (f, "%ld\n", i); 13058 } 13059 else 13060 { 13061 unsigned long i = ulongval (); 13062 if (i != ((long) (sizeof (long)))) 13063 exit (1); 13064 fprintf (f, "%lu\n", i); 13065 } 13066 exit (ferror (f) || fclose (f) != 0); 13067 13068 ; 13069 return 0; 13070} 13071_ACEOF 13072rm -f conftest$ac_exeext 13073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13074 (eval $ac_link) 2>&5 13075 ac_status=$? 13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13079 (eval $ac_try) 2>&5 13080 ac_status=$? 13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13082 (exit $ac_status); }; }; then 13083 ac_cv_sizeof_long=`cat conftest.val` 13084else 13085 echo "$as_me: program exited with status $ac_status" >&5 13086echo "$as_me: failed program was:" >&5 13087sed 's/^/| /' conftest.$ac_ext >&5 13088 13089( exit $ac_status ) 13090{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 13091See \`config.log' for more details." >&5 13092echo "$as_me: error: cannot compute sizeof (long), 77 13093See \`config.log' for more details." >&2;} 13094 { (exit 1); exit 1; }; } 13095fi 13096rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13097fi 13098fi 13099rm -f conftest.val 13100else 13101 ac_cv_sizeof_long=0 13102fi 13103fi 13104echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 13105echo "${ECHO_T}$ac_cv_sizeof_long" >&6 13106cat >>confdefs.h <<_ACEOF 13107#define SIZEOF_LONG $ac_cv_sizeof_long 13108_ACEOF 13109 13110 13111 echo "$as_me:$LINENO: checking for int" >&5 13112echo $ECHO_N "checking for int... $ECHO_C" >&6 13113if test "${ac_cv_type_int+set}" = set; then 13114 echo $ECHO_N "(cached) $ECHO_C" >&6 13115else 13116 cat >conftest.$ac_ext <<_ACEOF 13117/* confdefs.h. */ 13118_ACEOF 13119cat confdefs.h >>conftest.$ac_ext 13120cat >>conftest.$ac_ext <<_ACEOF 13121/* end confdefs.h. */ 13122$ac_includes_default 13123int 13124main () 13125{ 13126if ((int *) 0) 13127 return 0; 13128if (sizeof (int)) 13129 return 0; 13130 ; 13131 return 0; 13132} 13133_ACEOF 13134rm -f conftest.$ac_objext 13135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13136 (eval $ac_compile) 2>conftest.er1 13137 ac_status=$? 13138 grep -v '^ *+' conftest.er1 >conftest.err 13139 rm -f conftest.er1 13140 cat conftest.err >&5 13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13142 (exit $ac_status); } && 13143 { ac_try='test -z "$ac_c_werror_flag" 13144 || test ! -s conftest.err' 13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13146 (eval $ac_try) 2>&5 13147 ac_status=$? 13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13149 (exit $ac_status); }; } && 13150 { ac_try='test -s conftest.$ac_objext' 13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13152 (eval $ac_try) 2>&5 13153 ac_status=$? 13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13155 (exit $ac_status); }; }; then 13156 ac_cv_type_int=yes 13157else 13158 echo "$as_me: failed program was:" >&5 13159sed 's/^/| /' conftest.$ac_ext >&5 13160 13161ac_cv_type_int=no 13162fi 13163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13164fi 13165echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 13166echo "${ECHO_T}$ac_cv_type_int" >&6 13167 13168echo "$as_me:$LINENO: checking size of int" >&5 13169echo $ECHO_N "checking size of int... $ECHO_C" >&6 13170if test "${ac_cv_sizeof_int+set}" = set; then 13171 echo $ECHO_N "(cached) $ECHO_C" >&6 13172else 13173 if test "$ac_cv_type_int" = yes; then 13174 # The cast to unsigned long works around a bug in the HP C Compiler 13175 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13176 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13177 # This bug is HP SR number 8606223364. 13178 if test "$cross_compiling" = yes; then 13179 # Depending upon the size, compute the lo and hi bounds. 13180cat >conftest.$ac_ext <<_ACEOF 13181/* confdefs.h. */ 13182_ACEOF 13183cat confdefs.h >>conftest.$ac_ext 13184cat >>conftest.$ac_ext <<_ACEOF 13185/* end confdefs.h. */ 13186$ac_includes_default 13187int 13188main () 13189{ 13190static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 13191test_array [0] = 0 13192 13193 ; 13194 return 0; 13195} 13196_ACEOF 13197rm -f conftest.$ac_objext 13198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13199 (eval $ac_compile) 2>conftest.er1 13200 ac_status=$? 13201 grep -v '^ *+' conftest.er1 >conftest.err 13202 rm -f conftest.er1 13203 cat conftest.err >&5 13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13205 (exit $ac_status); } && 13206 { ac_try='test -z "$ac_c_werror_flag" 13207 || test ! -s conftest.err' 13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13209 (eval $ac_try) 2>&5 13210 ac_status=$? 13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13212 (exit $ac_status); }; } && 13213 { ac_try='test -s conftest.$ac_objext' 13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13215 (eval $ac_try) 2>&5 13216 ac_status=$? 13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13218 (exit $ac_status); }; }; then 13219 ac_lo=0 ac_mid=0 13220 while :; do 13221 cat >conftest.$ac_ext <<_ACEOF 13222/* confdefs.h. */ 13223_ACEOF 13224cat confdefs.h >>conftest.$ac_ext 13225cat >>conftest.$ac_ext <<_ACEOF 13226/* end confdefs.h. */ 13227$ac_includes_default 13228int 13229main () 13230{ 13231static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 13232test_array [0] = 0 13233 13234 ; 13235 return 0; 13236} 13237_ACEOF 13238rm -f conftest.$ac_objext 13239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13240 (eval $ac_compile) 2>conftest.er1 13241 ac_status=$? 13242 grep -v '^ *+' conftest.er1 >conftest.err 13243 rm -f conftest.er1 13244 cat conftest.err >&5 13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13246 (exit $ac_status); } && 13247 { ac_try='test -z "$ac_c_werror_flag" 13248 || test ! -s conftest.err' 13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13250 (eval $ac_try) 2>&5 13251 ac_status=$? 13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13253 (exit $ac_status); }; } && 13254 { ac_try='test -s conftest.$ac_objext' 13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13256 (eval $ac_try) 2>&5 13257 ac_status=$? 13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13259 (exit $ac_status); }; }; then 13260 ac_hi=$ac_mid; break 13261else 13262 echo "$as_me: failed program was:" >&5 13263sed 's/^/| /' conftest.$ac_ext >&5 13264 13265ac_lo=`expr $ac_mid + 1` 13266 if test $ac_lo -le $ac_mid; then 13267 ac_lo= ac_hi= 13268 break 13269 fi 13270 ac_mid=`expr 2 '*' $ac_mid + 1` 13271fi 13272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13273 done 13274else 13275 echo "$as_me: failed program was:" >&5 13276sed 's/^/| /' conftest.$ac_ext >&5 13277 13278cat >conftest.$ac_ext <<_ACEOF 13279/* confdefs.h. */ 13280_ACEOF 13281cat confdefs.h >>conftest.$ac_ext 13282cat >>conftest.$ac_ext <<_ACEOF 13283/* end confdefs.h. */ 13284$ac_includes_default 13285int 13286main () 13287{ 13288static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 13289test_array [0] = 0 13290 13291 ; 13292 return 0; 13293} 13294_ACEOF 13295rm -f conftest.$ac_objext 13296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13297 (eval $ac_compile) 2>conftest.er1 13298 ac_status=$? 13299 grep -v '^ *+' conftest.er1 >conftest.err 13300 rm -f conftest.er1 13301 cat conftest.err >&5 13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13303 (exit $ac_status); } && 13304 { ac_try='test -z "$ac_c_werror_flag" 13305 || test ! -s conftest.err' 13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13307 (eval $ac_try) 2>&5 13308 ac_status=$? 13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13310 (exit $ac_status); }; } && 13311 { ac_try='test -s conftest.$ac_objext' 13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13313 (eval $ac_try) 2>&5 13314 ac_status=$? 13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13316 (exit $ac_status); }; }; then 13317 ac_hi=-1 ac_mid=-1 13318 while :; do 13319 cat >conftest.$ac_ext <<_ACEOF 13320/* confdefs.h. */ 13321_ACEOF 13322cat confdefs.h >>conftest.$ac_ext 13323cat >>conftest.$ac_ext <<_ACEOF 13324/* end confdefs.h. */ 13325$ac_includes_default 13326int 13327main () 13328{ 13329static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 13330test_array [0] = 0 13331 13332 ; 13333 return 0; 13334} 13335_ACEOF 13336rm -f conftest.$ac_objext 13337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13338 (eval $ac_compile) 2>conftest.er1 13339 ac_status=$? 13340 grep -v '^ *+' conftest.er1 >conftest.err 13341 rm -f conftest.er1 13342 cat conftest.err >&5 13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13344 (exit $ac_status); } && 13345 { ac_try='test -z "$ac_c_werror_flag" 13346 || test ! -s conftest.err' 13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13348 (eval $ac_try) 2>&5 13349 ac_status=$? 13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13351 (exit $ac_status); }; } && 13352 { ac_try='test -s conftest.$ac_objext' 13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13354 (eval $ac_try) 2>&5 13355 ac_status=$? 13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13357 (exit $ac_status); }; }; then 13358 ac_lo=$ac_mid; break 13359else 13360 echo "$as_me: failed program was:" >&5 13361sed 's/^/| /' conftest.$ac_ext >&5 13362 13363ac_hi=`expr '(' $ac_mid ')' - 1` 13364 if test $ac_mid -le $ac_hi; then 13365 ac_lo= ac_hi= 13366 break 13367 fi 13368 ac_mid=`expr 2 '*' $ac_mid` 13369fi 13370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13371 done 13372else 13373 echo "$as_me: failed program was:" >&5 13374sed 's/^/| /' conftest.$ac_ext >&5 13375 13376ac_lo= ac_hi= 13377fi 13378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13379fi 13380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13381# Binary search between lo and hi bounds. 13382while test "x$ac_lo" != "x$ac_hi"; do 13383 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13384 cat >conftest.$ac_ext <<_ACEOF 13385/* confdefs.h. */ 13386_ACEOF 13387cat confdefs.h >>conftest.$ac_ext 13388cat >>conftest.$ac_ext <<_ACEOF 13389/* end confdefs.h. */ 13390$ac_includes_default 13391int 13392main () 13393{ 13394static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 13395test_array [0] = 0 13396 13397 ; 13398 return 0; 13399} 13400_ACEOF 13401rm -f conftest.$ac_objext 13402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13403 (eval $ac_compile) 2>conftest.er1 13404 ac_status=$? 13405 grep -v '^ *+' conftest.er1 >conftest.err 13406 rm -f conftest.er1 13407 cat conftest.err >&5 13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13409 (exit $ac_status); } && 13410 { ac_try='test -z "$ac_c_werror_flag" 13411 || test ! -s conftest.err' 13412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13413 (eval $ac_try) 2>&5 13414 ac_status=$? 13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13416 (exit $ac_status); }; } && 13417 { ac_try='test -s conftest.$ac_objext' 13418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13419 (eval $ac_try) 2>&5 13420 ac_status=$? 13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13422 (exit $ac_status); }; }; then 13423 ac_hi=$ac_mid 13424else 13425 echo "$as_me: failed program was:" >&5 13426sed 's/^/| /' conftest.$ac_ext >&5 13427 13428ac_lo=`expr '(' $ac_mid ')' + 1` 13429fi 13430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13431done 13432case $ac_lo in 13433?*) ac_cv_sizeof_int=$ac_lo;; 13434'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 13435See \`config.log' for more details." >&5 13436echo "$as_me: error: cannot compute sizeof (int), 77 13437See \`config.log' for more details." >&2;} 13438 { (exit 1); exit 1; }; } ;; 13439esac 13440else 13441 if test "$cross_compiling" = yes; then 13442 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 13443See \`config.log' for more details." >&5 13444echo "$as_me: error: cannot run test program while cross compiling 13445See \`config.log' for more details." >&2;} 13446 { (exit 1); exit 1; }; } 13447else 13448 cat >conftest.$ac_ext <<_ACEOF 13449/* confdefs.h. */ 13450_ACEOF 13451cat confdefs.h >>conftest.$ac_ext 13452cat >>conftest.$ac_ext <<_ACEOF 13453/* end confdefs.h. */ 13454$ac_includes_default 13455long longval () { return (long) (sizeof (int)); } 13456unsigned long ulongval () { return (long) (sizeof (int)); } 13457#include <stdio.h> 13458#include <stdlib.h> 13459int 13460main () 13461{ 13462 13463 FILE *f = fopen ("conftest.val", "w"); 13464 if (! f) 13465 exit (1); 13466 if (((long) (sizeof (int))) < 0) 13467 { 13468 long i = longval (); 13469 if (i != ((long) (sizeof (int)))) 13470 exit (1); 13471 fprintf (f, "%ld\n", i); 13472 } 13473 else 13474 { 13475 unsigned long i = ulongval (); 13476 if (i != ((long) (sizeof (int)))) 13477 exit (1); 13478 fprintf (f, "%lu\n", i); 13479 } 13480 exit (ferror (f) || fclose (f) != 0); 13481 13482 ; 13483 return 0; 13484} 13485_ACEOF 13486rm -f conftest$ac_exeext 13487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13488 (eval $ac_link) 2>&5 13489 ac_status=$? 13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13493 (eval $ac_try) 2>&5 13494 ac_status=$? 13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13496 (exit $ac_status); }; }; then 13497 ac_cv_sizeof_int=`cat conftest.val` 13498else 13499 echo "$as_me: program exited with status $ac_status" >&5 13500echo "$as_me: failed program was:" >&5 13501sed 's/^/| /' conftest.$ac_ext >&5 13502 13503( exit $ac_status ) 13504{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 13505See \`config.log' for more details." >&5 13506echo "$as_me: error: cannot compute sizeof (int), 77 13507See \`config.log' for more details." >&2;} 13508 { (exit 1); exit 1; }; } 13509fi 13510rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13511fi 13512fi 13513rm -f conftest.val 13514else 13515 ac_cv_sizeof_int=0 13516fi 13517fi 13518echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 13519echo "${ECHO_T}$ac_cv_sizeof_int" >&6 13520cat >>confdefs.h <<_ACEOF 13521#define SIZEOF_INT $ac_cv_sizeof_int 13522_ACEOF 13523 13524 13525 echo "$as_me:$LINENO: checking for short" >&5 13526echo $ECHO_N "checking for short... $ECHO_C" >&6 13527if test "${ac_cv_type_short+set}" = set; then 13528 echo $ECHO_N "(cached) $ECHO_C" >&6 13529else 13530 cat >conftest.$ac_ext <<_ACEOF 13531/* confdefs.h. */ 13532_ACEOF 13533cat confdefs.h >>conftest.$ac_ext 13534cat >>conftest.$ac_ext <<_ACEOF 13535/* end confdefs.h. */ 13536$ac_includes_default 13537int 13538main () 13539{ 13540if ((short *) 0) 13541 return 0; 13542if (sizeof (short)) 13543 return 0; 13544 ; 13545 return 0; 13546} 13547_ACEOF 13548rm -f conftest.$ac_objext 13549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13550 (eval $ac_compile) 2>conftest.er1 13551 ac_status=$? 13552 grep -v '^ *+' conftest.er1 >conftest.err 13553 rm -f conftest.er1 13554 cat conftest.err >&5 13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13556 (exit $ac_status); } && 13557 { ac_try='test -z "$ac_c_werror_flag" 13558 || test ! -s conftest.err' 13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13560 (eval $ac_try) 2>&5 13561 ac_status=$? 13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13563 (exit $ac_status); }; } && 13564 { ac_try='test -s conftest.$ac_objext' 13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13566 (eval $ac_try) 2>&5 13567 ac_status=$? 13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13569 (exit $ac_status); }; }; then 13570 ac_cv_type_short=yes 13571else 13572 echo "$as_me: failed program was:" >&5 13573sed 's/^/| /' conftest.$ac_ext >&5 13574 13575ac_cv_type_short=no 13576fi 13577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13578fi 13579echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 13580echo "${ECHO_T}$ac_cv_type_short" >&6 13581 13582echo "$as_me:$LINENO: checking size of short" >&5 13583echo $ECHO_N "checking size of short... $ECHO_C" >&6 13584if test "${ac_cv_sizeof_short+set}" = set; then 13585 echo $ECHO_N "(cached) $ECHO_C" >&6 13586else 13587 if test "$ac_cv_type_short" = yes; then 13588 # The cast to unsigned long works around a bug in the HP C Compiler 13589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13591 # This bug is HP SR number 8606223364. 13592 if test "$cross_compiling" = yes; then 13593 # Depending upon the size, compute the lo and hi bounds. 13594cat >conftest.$ac_ext <<_ACEOF 13595/* confdefs.h. */ 13596_ACEOF 13597cat confdefs.h >>conftest.$ac_ext 13598cat >>conftest.$ac_ext <<_ACEOF 13599/* end confdefs.h. */ 13600$ac_includes_default 13601int 13602main () 13603{ 13604static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 13605test_array [0] = 0 13606 13607 ; 13608 return 0; 13609} 13610_ACEOF 13611rm -f conftest.$ac_objext 13612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13613 (eval $ac_compile) 2>conftest.er1 13614 ac_status=$? 13615 grep -v '^ *+' conftest.er1 >conftest.err 13616 rm -f conftest.er1 13617 cat conftest.err >&5 13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13619 (exit $ac_status); } && 13620 { ac_try='test -z "$ac_c_werror_flag" 13621 || test ! -s conftest.err' 13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13623 (eval $ac_try) 2>&5 13624 ac_status=$? 13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13626 (exit $ac_status); }; } && 13627 { ac_try='test -s conftest.$ac_objext' 13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13629 (eval $ac_try) 2>&5 13630 ac_status=$? 13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13632 (exit $ac_status); }; }; then 13633 ac_lo=0 ac_mid=0 13634 while :; do 13635 cat >conftest.$ac_ext <<_ACEOF 13636/* confdefs.h. */ 13637_ACEOF 13638cat confdefs.h >>conftest.$ac_ext 13639cat >>conftest.$ac_ext <<_ACEOF 13640/* end confdefs.h. */ 13641$ac_includes_default 13642int 13643main () 13644{ 13645static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 13646test_array [0] = 0 13647 13648 ; 13649 return 0; 13650} 13651_ACEOF 13652rm -f conftest.$ac_objext 13653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13654 (eval $ac_compile) 2>conftest.er1 13655 ac_status=$? 13656 grep -v '^ *+' conftest.er1 >conftest.err 13657 rm -f conftest.er1 13658 cat conftest.err >&5 13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13660 (exit $ac_status); } && 13661 { ac_try='test -z "$ac_c_werror_flag" 13662 || test ! -s conftest.err' 13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13664 (eval $ac_try) 2>&5 13665 ac_status=$? 13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13667 (exit $ac_status); }; } && 13668 { ac_try='test -s conftest.$ac_objext' 13669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13670 (eval $ac_try) 2>&5 13671 ac_status=$? 13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13673 (exit $ac_status); }; }; then 13674 ac_hi=$ac_mid; break 13675else 13676 echo "$as_me: failed program was:" >&5 13677sed 's/^/| /' conftest.$ac_ext >&5 13678 13679ac_lo=`expr $ac_mid + 1` 13680 if test $ac_lo -le $ac_mid; then 13681 ac_lo= ac_hi= 13682 break 13683 fi 13684 ac_mid=`expr 2 '*' $ac_mid + 1` 13685fi 13686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13687 done 13688else 13689 echo "$as_me: failed program was:" >&5 13690sed 's/^/| /' conftest.$ac_ext >&5 13691 13692cat >conftest.$ac_ext <<_ACEOF 13693/* confdefs.h. */ 13694_ACEOF 13695cat confdefs.h >>conftest.$ac_ext 13696cat >>conftest.$ac_ext <<_ACEOF 13697/* end confdefs.h. */ 13698$ac_includes_default 13699int 13700main () 13701{ 13702static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 13703test_array [0] = 0 13704 13705 ; 13706 return 0; 13707} 13708_ACEOF 13709rm -f conftest.$ac_objext 13710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13711 (eval $ac_compile) 2>conftest.er1 13712 ac_status=$? 13713 grep -v '^ *+' conftest.er1 >conftest.err 13714 rm -f conftest.er1 13715 cat conftest.err >&5 13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13717 (exit $ac_status); } && 13718 { ac_try='test -z "$ac_c_werror_flag" 13719 || test ! -s conftest.err' 13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13721 (eval $ac_try) 2>&5 13722 ac_status=$? 13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13724 (exit $ac_status); }; } && 13725 { ac_try='test -s conftest.$ac_objext' 13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13727 (eval $ac_try) 2>&5 13728 ac_status=$? 13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13730 (exit $ac_status); }; }; then 13731 ac_hi=-1 ac_mid=-1 13732 while :; do 13733 cat >conftest.$ac_ext <<_ACEOF 13734/* confdefs.h. */ 13735_ACEOF 13736cat confdefs.h >>conftest.$ac_ext 13737cat >>conftest.$ac_ext <<_ACEOF 13738/* end confdefs.h. */ 13739$ac_includes_default 13740int 13741main () 13742{ 13743static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 13744test_array [0] = 0 13745 13746 ; 13747 return 0; 13748} 13749_ACEOF 13750rm -f conftest.$ac_objext 13751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13752 (eval $ac_compile) 2>conftest.er1 13753 ac_status=$? 13754 grep -v '^ *+' conftest.er1 >conftest.err 13755 rm -f conftest.er1 13756 cat conftest.err >&5 13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13758 (exit $ac_status); } && 13759 { ac_try='test -z "$ac_c_werror_flag" 13760 || test ! -s conftest.err' 13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13762 (eval $ac_try) 2>&5 13763 ac_status=$? 13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13765 (exit $ac_status); }; } && 13766 { ac_try='test -s conftest.$ac_objext' 13767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13768 (eval $ac_try) 2>&5 13769 ac_status=$? 13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13771 (exit $ac_status); }; }; then 13772 ac_lo=$ac_mid; break 13773else 13774 echo "$as_me: failed program was:" >&5 13775sed 's/^/| /' conftest.$ac_ext >&5 13776 13777ac_hi=`expr '(' $ac_mid ')' - 1` 13778 if test $ac_mid -le $ac_hi; then 13779 ac_lo= ac_hi= 13780 break 13781 fi 13782 ac_mid=`expr 2 '*' $ac_mid` 13783fi 13784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13785 done 13786else 13787 echo "$as_me: failed program was:" >&5 13788sed 's/^/| /' conftest.$ac_ext >&5 13789 13790ac_lo= ac_hi= 13791fi 13792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13793fi 13794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13795# Binary search between lo and hi bounds. 13796while test "x$ac_lo" != "x$ac_hi"; do 13797 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13798 cat >conftest.$ac_ext <<_ACEOF 13799/* confdefs.h. */ 13800_ACEOF 13801cat confdefs.h >>conftest.$ac_ext 13802cat >>conftest.$ac_ext <<_ACEOF 13803/* end confdefs.h. */ 13804$ac_includes_default 13805int 13806main () 13807{ 13808static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 13809test_array [0] = 0 13810 13811 ; 13812 return 0; 13813} 13814_ACEOF 13815rm -f conftest.$ac_objext 13816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13817 (eval $ac_compile) 2>conftest.er1 13818 ac_status=$? 13819 grep -v '^ *+' conftest.er1 >conftest.err 13820 rm -f conftest.er1 13821 cat conftest.err >&5 13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13823 (exit $ac_status); } && 13824 { ac_try='test -z "$ac_c_werror_flag" 13825 || test ! -s conftest.err' 13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13827 (eval $ac_try) 2>&5 13828 ac_status=$? 13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13830 (exit $ac_status); }; } && 13831 { ac_try='test -s conftest.$ac_objext' 13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13833 (eval $ac_try) 2>&5 13834 ac_status=$? 13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13836 (exit $ac_status); }; }; then 13837 ac_hi=$ac_mid 13838else 13839 echo "$as_me: failed program was:" >&5 13840sed 's/^/| /' conftest.$ac_ext >&5 13841 13842ac_lo=`expr '(' $ac_mid ')' + 1` 13843fi 13844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13845done 13846case $ac_lo in 13847?*) ac_cv_sizeof_short=$ac_lo;; 13848'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 13849See \`config.log' for more details." >&5 13850echo "$as_me: error: cannot compute sizeof (short), 77 13851See \`config.log' for more details." >&2;} 13852 { (exit 1); exit 1; }; } ;; 13853esac 13854else 13855 if test "$cross_compiling" = yes; then 13856 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 13857See \`config.log' for more details." >&5 13858echo "$as_me: error: cannot run test program while cross compiling 13859See \`config.log' for more details." >&2;} 13860 { (exit 1); exit 1; }; } 13861else 13862 cat >conftest.$ac_ext <<_ACEOF 13863/* confdefs.h. */ 13864_ACEOF 13865cat confdefs.h >>conftest.$ac_ext 13866cat >>conftest.$ac_ext <<_ACEOF 13867/* end confdefs.h. */ 13868$ac_includes_default 13869long longval () { return (long) (sizeof (short)); } 13870unsigned long ulongval () { return (long) (sizeof (short)); } 13871#include <stdio.h> 13872#include <stdlib.h> 13873int 13874main () 13875{ 13876 13877 FILE *f = fopen ("conftest.val", "w"); 13878 if (! f) 13879 exit (1); 13880 if (((long) (sizeof (short))) < 0) 13881 { 13882 long i = longval (); 13883 if (i != ((long) (sizeof (short)))) 13884 exit (1); 13885 fprintf (f, "%ld\n", i); 13886 } 13887 else 13888 { 13889 unsigned long i = ulongval (); 13890 if (i != ((long) (sizeof (short)))) 13891 exit (1); 13892 fprintf (f, "%lu\n", i); 13893 } 13894 exit (ferror (f) || fclose (f) != 0); 13895 13896 ; 13897 return 0; 13898} 13899_ACEOF 13900rm -f conftest$ac_exeext 13901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13902 (eval $ac_link) 2>&5 13903 ac_status=$? 13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13907 (eval $ac_try) 2>&5 13908 ac_status=$? 13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13910 (exit $ac_status); }; }; then 13911 ac_cv_sizeof_short=`cat conftest.val` 13912else 13913 echo "$as_me: program exited with status $ac_status" >&5 13914echo "$as_me: failed program was:" >&5 13915sed 's/^/| /' conftest.$ac_ext >&5 13916 13917( exit $ac_status ) 13918{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 13919See \`config.log' for more details." >&5 13920echo "$as_me: error: cannot compute sizeof (short), 77 13921See \`config.log' for more details." >&2;} 13922 { (exit 1); exit 1; }; } 13923fi 13924rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13925fi 13926fi 13927rm -f conftest.val 13928else 13929 ac_cv_sizeof_short=0 13930fi 13931fi 13932echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 13933echo "${ECHO_T}$ac_cv_sizeof_short" >&6 13934cat >>confdefs.h <<_ACEOF 13935#define SIZEOF_SHORT $ac_cv_sizeof_short 13936_ACEOF 13937 13938 13939 fi 13940 FOUND=0 13941 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 13942 dc_cv_size=`eval echo $dc_cv_loop` 13943 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 13944 if test "$dc_cv_size" = "4"; then 13945 if test "$dc_cv_name" = "int"; then 13946 echo "$as_me:$LINENO: checking for uint32_t" >&5 13947echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 13948if test "${ac_cv_type_uint32_t+set}" = set; then 13949 echo $ECHO_N "(cached) $ECHO_C" >&6 13950else 13951 cat >conftest.$ac_ext <<_ACEOF 13952/* confdefs.h. */ 13953_ACEOF 13954cat confdefs.h >>conftest.$ac_ext 13955cat >>conftest.$ac_ext <<_ACEOF 13956/* end confdefs.h. */ 13957$ac_includes_default 13958int 13959main () 13960{ 13961if ((uint32_t *) 0) 13962 return 0; 13963if (sizeof (uint32_t)) 13964 return 0; 13965 ; 13966 return 0; 13967} 13968_ACEOF 13969rm -f conftest.$ac_objext 13970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13971 (eval $ac_compile) 2>conftest.er1 13972 ac_status=$? 13973 grep -v '^ *+' conftest.er1 >conftest.err 13974 rm -f conftest.er1 13975 cat conftest.err >&5 13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13977 (exit $ac_status); } && 13978 { ac_try='test -z "$ac_c_werror_flag" 13979 || test ! -s conftest.err' 13980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13981 (eval $ac_try) 2>&5 13982 ac_status=$? 13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13984 (exit $ac_status); }; } && 13985 { ac_try='test -s conftest.$ac_objext' 13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13987 (eval $ac_try) 2>&5 13988 ac_status=$? 13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13990 (exit $ac_status); }; }; then 13991 ac_cv_type_uint32_t=yes 13992else 13993 echo "$as_me: failed program was:" >&5 13994sed 's/^/| /' conftest.$ac_ext >&5 13995 13996ac_cv_type_uint32_t=no 13997fi 13998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13999fi 14000echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 14001echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 14002if test $ac_cv_type_uint32_t = yes; then 14003 : 14004else 14005 14006cat >>confdefs.h <<_ACEOF 14007#define uint32_t unsigned int 14008_ACEOF 14009 14010fi 14011 14012 fi 14013 if test "$dc_cv_name" = "long"; then 14014 echo "$as_me:$LINENO: checking for uint32_t" >&5 14015echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 14016if test "${ac_cv_type_uint32_t+set}" = set; then 14017 echo $ECHO_N "(cached) $ECHO_C" >&6 14018else 14019 cat >conftest.$ac_ext <<_ACEOF 14020/* confdefs.h. */ 14021_ACEOF 14022cat confdefs.h >>conftest.$ac_ext 14023cat >>conftest.$ac_ext <<_ACEOF 14024/* end confdefs.h. */ 14025$ac_includes_default 14026int 14027main () 14028{ 14029if ((uint32_t *) 0) 14030 return 0; 14031if (sizeof (uint32_t)) 14032 return 0; 14033 ; 14034 return 0; 14035} 14036_ACEOF 14037rm -f conftest.$ac_objext 14038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14039 (eval $ac_compile) 2>conftest.er1 14040 ac_status=$? 14041 grep -v '^ *+' conftest.er1 >conftest.err 14042 rm -f conftest.er1 14043 cat conftest.err >&5 14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14045 (exit $ac_status); } && 14046 { ac_try='test -z "$ac_c_werror_flag" 14047 || test ! -s conftest.err' 14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14049 (eval $ac_try) 2>&5 14050 ac_status=$? 14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14052 (exit $ac_status); }; } && 14053 { ac_try='test -s conftest.$ac_objext' 14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14055 (eval $ac_try) 2>&5 14056 ac_status=$? 14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14058 (exit $ac_status); }; }; then 14059 ac_cv_type_uint32_t=yes 14060else 14061 echo "$as_me: failed program was:" >&5 14062sed 's/^/| /' conftest.$ac_ext >&5 14063 14064ac_cv_type_uint32_t=no 14065fi 14066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14067fi 14068echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 14069echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 14070if test $ac_cv_type_uint32_t = yes; then 14071 : 14072else 14073 14074cat >>confdefs.h <<_ACEOF 14075#define uint32_t unsigned long 14076_ACEOF 14077 14078fi 14079 14080 fi 14081 if test "$dc_cv_name" = "long_long"; then 14082 echo "$as_me:$LINENO: checking for uint32_t" >&5 14083echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 14084if test "${ac_cv_type_uint32_t+set}" = set; then 14085 echo $ECHO_N "(cached) $ECHO_C" >&6 14086else 14087 cat >conftest.$ac_ext <<_ACEOF 14088/* confdefs.h. */ 14089_ACEOF 14090cat confdefs.h >>conftest.$ac_ext 14091cat >>conftest.$ac_ext <<_ACEOF 14092/* end confdefs.h. */ 14093$ac_includes_default 14094int 14095main () 14096{ 14097if ((uint32_t *) 0) 14098 return 0; 14099if (sizeof (uint32_t)) 14100 return 0; 14101 ; 14102 return 0; 14103} 14104_ACEOF 14105rm -f conftest.$ac_objext 14106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14107 (eval $ac_compile) 2>conftest.er1 14108 ac_status=$? 14109 grep -v '^ *+' conftest.er1 >conftest.err 14110 rm -f conftest.er1 14111 cat conftest.err >&5 14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14113 (exit $ac_status); } && 14114 { ac_try='test -z "$ac_c_werror_flag" 14115 || test ! -s conftest.err' 14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14117 (eval $ac_try) 2>&5 14118 ac_status=$? 14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14120 (exit $ac_status); }; } && 14121 { ac_try='test -s conftest.$ac_objext' 14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14123 (eval $ac_try) 2>&5 14124 ac_status=$? 14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14126 (exit $ac_status); }; }; then 14127 ac_cv_type_uint32_t=yes 14128else 14129 echo "$as_me: failed program was:" >&5 14130sed 's/^/| /' conftest.$ac_ext >&5 14131 14132ac_cv_type_uint32_t=no 14133fi 14134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14135fi 14136echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 14137echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 14138if test $ac_cv_type_uint32_t = yes; then 14139 : 14140else 14141 14142cat >>confdefs.h <<_ACEOF 14143#define uint32_t unsigned long long 14144_ACEOF 14145 14146fi 14147 14148 fi 14149 if test "$dc_cv_name" = "short"; then 14150 echo "$as_me:$LINENO: checking for uint32_t" >&5 14151echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 14152if test "${ac_cv_type_uint32_t+set}" = set; then 14153 echo $ECHO_N "(cached) $ECHO_C" >&6 14154else 14155 cat >conftest.$ac_ext <<_ACEOF 14156/* confdefs.h. */ 14157_ACEOF 14158cat confdefs.h >>conftest.$ac_ext 14159cat >>conftest.$ac_ext <<_ACEOF 14160/* end confdefs.h. */ 14161$ac_includes_default 14162int 14163main () 14164{ 14165if ((uint32_t *) 0) 14166 return 0; 14167if (sizeof (uint32_t)) 14168 return 0; 14169 ; 14170 return 0; 14171} 14172_ACEOF 14173rm -f conftest.$ac_objext 14174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14175 (eval $ac_compile) 2>conftest.er1 14176 ac_status=$? 14177 grep -v '^ *+' conftest.er1 >conftest.err 14178 rm -f conftest.er1 14179 cat conftest.err >&5 14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14181 (exit $ac_status); } && 14182 { ac_try='test -z "$ac_c_werror_flag" 14183 || test ! -s conftest.err' 14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14185 (eval $ac_try) 2>&5 14186 ac_status=$? 14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14188 (exit $ac_status); }; } && 14189 { ac_try='test -s conftest.$ac_objext' 14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14191 (eval $ac_try) 2>&5 14192 ac_status=$? 14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14194 (exit $ac_status); }; }; then 14195 ac_cv_type_uint32_t=yes 14196else 14197 echo "$as_me: failed program was:" >&5 14198sed 's/^/| /' conftest.$ac_ext >&5 14199 14200ac_cv_type_uint32_t=no 14201fi 14202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14203fi 14204echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 14205echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 14206if test $ac_cv_type_uint32_t = yes; then 14207 : 14208else 14209 14210cat >>confdefs.h <<_ACEOF 14211#define uint32_t unsigned short 14212_ACEOF 14213 14214fi 14215 14216 fi 14217 FOUND=1 14218 break 14219 fi 14220 done 14221 14222 14223 if test -z "$ac_cv_sizeof_long"; then 14224 echo "$as_me:$LINENO: checking for inline" >&5 14225echo $ECHO_N "checking for inline... $ECHO_C" >&6 14226if test "${ac_cv_c_inline+set}" = set; then 14227 echo $ECHO_N "(cached) $ECHO_C" >&6 14228else 14229 ac_cv_c_inline=no 14230for ac_kw in inline __inline__ __inline; do 14231 cat >conftest.$ac_ext <<_ACEOF 14232/* confdefs.h. */ 14233_ACEOF 14234cat confdefs.h >>conftest.$ac_ext 14235cat >>conftest.$ac_ext <<_ACEOF 14236/* end confdefs.h. */ 14237#ifndef __cplusplus 14238typedef int foo_t; 14239static $ac_kw foo_t static_foo () {return 0; } 14240$ac_kw foo_t foo () {return 0; } 14241#endif 14242 14243_ACEOF 14244rm -f conftest.$ac_objext 14245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14246 (eval $ac_compile) 2>conftest.er1 14247 ac_status=$? 14248 grep -v '^ *+' conftest.er1 >conftest.err 14249 rm -f conftest.er1 14250 cat conftest.err >&5 14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14252 (exit $ac_status); } && 14253 { ac_try='test -z "$ac_c_werror_flag" 14254 || test ! -s conftest.err' 14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14256 (eval $ac_try) 2>&5 14257 ac_status=$? 14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14259 (exit $ac_status); }; } && 14260 { ac_try='test -s conftest.$ac_objext' 14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14262 (eval $ac_try) 2>&5 14263 ac_status=$? 14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14265 (exit $ac_status); }; }; then 14266 ac_cv_c_inline=$ac_kw; break 14267else 14268 echo "$as_me: failed program was:" >&5 14269sed 's/^/| /' conftest.$ac_ext >&5 14270 14271fi 14272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14273done 14274 14275fi 14276echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 14277echo "${ECHO_T}$ac_cv_c_inline" >&6 14278 14279 14280case $ac_cv_c_inline in 14281 inline | yes) ;; 14282 *) 14283 case $ac_cv_c_inline in 14284 no) ac_val=;; 14285 *) ac_val=$ac_cv_c_inline;; 14286 esac 14287 cat >>confdefs.h <<_ACEOF 14288#ifndef __cplusplus 14289#define inline $ac_val 14290#endif 14291_ACEOF 14292 ;; 14293esac 14294 14295 echo "$as_me:$LINENO: checking for long long" >&5 14296echo $ECHO_N "checking for long long... $ECHO_C" >&6 14297if test "${ac_cv_type_long_long+set}" = set; then 14298 echo $ECHO_N "(cached) $ECHO_C" >&6 14299else 14300 cat >conftest.$ac_ext <<_ACEOF 14301/* confdefs.h. */ 14302_ACEOF 14303cat confdefs.h >>conftest.$ac_ext 14304cat >>conftest.$ac_ext <<_ACEOF 14305/* end confdefs.h. */ 14306$ac_includes_default 14307int 14308main () 14309{ 14310if ((long long *) 0) 14311 return 0; 14312if (sizeof (long long)) 14313 return 0; 14314 ; 14315 return 0; 14316} 14317_ACEOF 14318rm -f conftest.$ac_objext 14319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14320 (eval $ac_compile) 2>conftest.er1 14321 ac_status=$? 14322 grep -v '^ *+' conftest.er1 >conftest.err 14323 rm -f conftest.er1 14324 cat conftest.err >&5 14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14326 (exit $ac_status); } && 14327 { ac_try='test -z "$ac_c_werror_flag" 14328 || test ! -s conftest.err' 14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14330 (eval $ac_try) 2>&5 14331 ac_status=$? 14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14333 (exit $ac_status); }; } && 14334 { ac_try='test -s conftest.$ac_objext' 14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14336 (eval $ac_try) 2>&5 14337 ac_status=$? 14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14339 (exit $ac_status); }; }; then 14340 ac_cv_type_long_long=yes 14341else 14342 echo "$as_me: failed program was:" >&5 14343sed 's/^/| /' conftest.$ac_ext >&5 14344 14345ac_cv_type_long_long=no 14346fi 14347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14348fi 14349echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 14350echo "${ECHO_T}$ac_cv_type_long_long" >&6 14351 14352echo "$as_me:$LINENO: checking size of long long" >&5 14353echo $ECHO_N "checking size of long long... $ECHO_C" >&6 14354if test "${ac_cv_sizeof_long_long+set}" = set; then 14355 echo $ECHO_N "(cached) $ECHO_C" >&6 14356else 14357 if test "$ac_cv_type_long_long" = yes; then 14358 # The cast to unsigned long works around a bug in the HP C Compiler 14359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14361 # This bug is HP SR number 8606223364. 14362 if test "$cross_compiling" = yes; then 14363 # Depending upon the size, compute the lo and hi bounds. 14364cat >conftest.$ac_ext <<_ACEOF 14365/* confdefs.h. */ 14366_ACEOF 14367cat confdefs.h >>conftest.$ac_ext 14368cat >>conftest.$ac_ext <<_ACEOF 14369/* end confdefs.h. */ 14370$ac_includes_default 14371int 14372main () 14373{ 14374static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 14375test_array [0] = 0 14376 14377 ; 14378 return 0; 14379} 14380_ACEOF 14381rm -f conftest.$ac_objext 14382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14383 (eval $ac_compile) 2>conftest.er1 14384 ac_status=$? 14385 grep -v '^ *+' conftest.er1 >conftest.err 14386 rm -f conftest.er1 14387 cat conftest.err >&5 14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14389 (exit $ac_status); } && 14390 { ac_try='test -z "$ac_c_werror_flag" 14391 || test ! -s conftest.err' 14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14393 (eval $ac_try) 2>&5 14394 ac_status=$? 14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14396 (exit $ac_status); }; } && 14397 { ac_try='test -s conftest.$ac_objext' 14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14399 (eval $ac_try) 2>&5 14400 ac_status=$? 14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14402 (exit $ac_status); }; }; then 14403 ac_lo=0 ac_mid=0 14404 while :; do 14405 cat >conftest.$ac_ext <<_ACEOF 14406/* confdefs.h. */ 14407_ACEOF 14408cat confdefs.h >>conftest.$ac_ext 14409cat >>conftest.$ac_ext <<_ACEOF 14410/* end confdefs.h. */ 14411$ac_includes_default 14412int 14413main () 14414{ 14415static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 14416test_array [0] = 0 14417 14418 ; 14419 return 0; 14420} 14421_ACEOF 14422rm -f conftest.$ac_objext 14423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14424 (eval $ac_compile) 2>conftest.er1 14425 ac_status=$? 14426 grep -v '^ *+' conftest.er1 >conftest.err 14427 rm -f conftest.er1 14428 cat conftest.err >&5 14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14430 (exit $ac_status); } && 14431 { ac_try='test -z "$ac_c_werror_flag" 14432 || test ! -s conftest.err' 14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14434 (eval $ac_try) 2>&5 14435 ac_status=$? 14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14437 (exit $ac_status); }; } && 14438 { ac_try='test -s conftest.$ac_objext' 14439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14440 (eval $ac_try) 2>&5 14441 ac_status=$? 14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14443 (exit $ac_status); }; }; then 14444 ac_hi=$ac_mid; break 14445else 14446 echo "$as_me: failed program was:" >&5 14447sed 's/^/| /' conftest.$ac_ext >&5 14448 14449ac_lo=`expr $ac_mid + 1` 14450 if test $ac_lo -le $ac_mid; then 14451 ac_lo= ac_hi= 14452 break 14453 fi 14454 ac_mid=`expr 2 '*' $ac_mid + 1` 14455fi 14456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14457 done 14458else 14459 echo "$as_me: failed program was:" >&5 14460sed 's/^/| /' conftest.$ac_ext >&5 14461 14462cat >conftest.$ac_ext <<_ACEOF 14463/* confdefs.h. */ 14464_ACEOF 14465cat confdefs.h >>conftest.$ac_ext 14466cat >>conftest.$ac_ext <<_ACEOF 14467/* end confdefs.h. */ 14468$ac_includes_default 14469int 14470main () 14471{ 14472static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 14473test_array [0] = 0 14474 14475 ; 14476 return 0; 14477} 14478_ACEOF 14479rm -f conftest.$ac_objext 14480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14481 (eval $ac_compile) 2>conftest.er1 14482 ac_status=$? 14483 grep -v '^ *+' conftest.er1 >conftest.err 14484 rm -f conftest.er1 14485 cat conftest.err >&5 14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14487 (exit $ac_status); } && 14488 { ac_try='test -z "$ac_c_werror_flag" 14489 || test ! -s conftest.err' 14490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14491 (eval $ac_try) 2>&5 14492 ac_status=$? 14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14494 (exit $ac_status); }; } && 14495 { ac_try='test -s conftest.$ac_objext' 14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14497 (eval $ac_try) 2>&5 14498 ac_status=$? 14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14500 (exit $ac_status); }; }; then 14501 ac_hi=-1 ac_mid=-1 14502 while :; do 14503 cat >conftest.$ac_ext <<_ACEOF 14504/* confdefs.h. */ 14505_ACEOF 14506cat confdefs.h >>conftest.$ac_ext 14507cat >>conftest.$ac_ext <<_ACEOF 14508/* end confdefs.h. */ 14509$ac_includes_default 14510int 14511main () 14512{ 14513static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 14514test_array [0] = 0 14515 14516 ; 14517 return 0; 14518} 14519_ACEOF 14520rm -f conftest.$ac_objext 14521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14522 (eval $ac_compile) 2>conftest.er1 14523 ac_status=$? 14524 grep -v '^ *+' conftest.er1 >conftest.err 14525 rm -f conftest.er1 14526 cat conftest.err >&5 14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14528 (exit $ac_status); } && 14529 { ac_try='test -z "$ac_c_werror_flag" 14530 || test ! -s conftest.err' 14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14532 (eval $ac_try) 2>&5 14533 ac_status=$? 14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14535 (exit $ac_status); }; } && 14536 { ac_try='test -s conftest.$ac_objext' 14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14538 (eval $ac_try) 2>&5 14539 ac_status=$? 14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14541 (exit $ac_status); }; }; then 14542 ac_lo=$ac_mid; break 14543else 14544 echo "$as_me: failed program was:" >&5 14545sed 's/^/| /' conftest.$ac_ext >&5 14546 14547ac_hi=`expr '(' $ac_mid ')' - 1` 14548 if test $ac_mid -le $ac_hi; then 14549 ac_lo= ac_hi= 14550 break 14551 fi 14552 ac_mid=`expr 2 '*' $ac_mid` 14553fi 14554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14555 done 14556else 14557 echo "$as_me: failed program was:" >&5 14558sed 's/^/| /' conftest.$ac_ext >&5 14559 14560ac_lo= ac_hi= 14561fi 14562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14563fi 14564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14565# Binary search between lo and hi bounds. 14566while test "x$ac_lo" != "x$ac_hi"; do 14567 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14568 cat >conftest.$ac_ext <<_ACEOF 14569/* confdefs.h. */ 14570_ACEOF 14571cat confdefs.h >>conftest.$ac_ext 14572cat >>conftest.$ac_ext <<_ACEOF 14573/* end confdefs.h. */ 14574$ac_includes_default 14575int 14576main () 14577{ 14578static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 14579test_array [0] = 0 14580 14581 ; 14582 return 0; 14583} 14584_ACEOF 14585rm -f conftest.$ac_objext 14586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14587 (eval $ac_compile) 2>conftest.er1 14588 ac_status=$? 14589 grep -v '^ *+' conftest.er1 >conftest.err 14590 rm -f conftest.er1 14591 cat conftest.err >&5 14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14593 (exit $ac_status); } && 14594 { ac_try='test -z "$ac_c_werror_flag" 14595 || test ! -s conftest.err' 14596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14597 (eval $ac_try) 2>&5 14598 ac_status=$? 14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14600 (exit $ac_status); }; } && 14601 { ac_try='test -s conftest.$ac_objext' 14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14603 (eval $ac_try) 2>&5 14604 ac_status=$? 14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14606 (exit $ac_status); }; }; then 14607 ac_hi=$ac_mid 14608else 14609 echo "$as_me: failed program was:" >&5 14610sed 's/^/| /' conftest.$ac_ext >&5 14611 14612ac_lo=`expr '(' $ac_mid ')' + 1` 14613fi 14614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14615done 14616case $ac_lo in 14617?*) ac_cv_sizeof_long_long=$ac_lo;; 14618'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 14619See \`config.log' for more details." >&5 14620echo "$as_me: error: cannot compute sizeof (long long), 77 14621See \`config.log' for more details." >&2;} 14622 { (exit 1); exit 1; }; } ;; 14623esac 14624else 14625 if test "$cross_compiling" = yes; then 14626 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 14627See \`config.log' for more details." >&5 14628echo "$as_me: error: cannot run test program while cross compiling 14629See \`config.log' for more details." >&2;} 14630 { (exit 1); exit 1; }; } 14631else 14632 cat >conftest.$ac_ext <<_ACEOF 14633/* confdefs.h. */ 14634_ACEOF 14635cat confdefs.h >>conftest.$ac_ext 14636cat >>conftest.$ac_ext <<_ACEOF 14637/* end confdefs.h. */ 14638$ac_includes_default 14639long longval () { return (long) (sizeof (long long)); } 14640unsigned long ulongval () { return (long) (sizeof (long long)); } 14641#include <stdio.h> 14642#include <stdlib.h> 14643int 14644main () 14645{ 14646 14647 FILE *f = fopen ("conftest.val", "w"); 14648 if (! f) 14649 exit (1); 14650 if (((long) (sizeof (long long))) < 0) 14651 { 14652 long i = longval (); 14653 if (i != ((long) (sizeof (long long)))) 14654 exit (1); 14655 fprintf (f, "%ld\n", i); 14656 } 14657 else 14658 { 14659 unsigned long i = ulongval (); 14660 if (i != ((long) (sizeof (long long)))) 14661 exit (1); 14662 fprintf (f, "%lu\n", i); 14663 } 14664 exit (ferror (f) || fclose (f) != 0); 14665 14666 ; 14667 return 0; 14668} 14669_ACEOF 14670rm -f conftest$ac_exeext 14671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14672 (eval $ac_link) 2>&5 14673 ac_status=$? 14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14677 (eval $ac_try) 2>&5 14678 ac_status=$? 14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14680 (exit $ac_status); }; }; then 14681 ac_cv_sizeof_long_long=`cat conftest.val` 14682else 14683 echo "$as_me: program exited with status $ac_status" >&5 14684echo "$as_me: failed program was:" >&5 14685sed 's/^/| /' conftest.$ac_ext >&5 14686 14687( exit $ac_status ) 14688{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 14689See \`config.log' for more details." >&5 14690echo "$as_me: error: cannot compute sizeof (long long), 77 14691See \`config.log' for more details." >&2;} 14692 { (exit 1); exit 1; }; } 14693fi 14694rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14695fi 14696fi 14697rm -f conftest.val 14698else 14699 ac_cv_sizeof_long_long=0 14700fi 14701fi 14702echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 14703echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 14704cat >>confdefs.h <<_ACEOF 14705#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 14706_ACEOF 14707 14708 14709 echo "$as_me:$LINENO: checking for long" >&5 14710echo $ECHO_N "checking for long... $ECHO_C" >&6 14711if test "${ac_cv_type_long+set}" = set; then 14712 echo $ECHO_N "(cached) $ECHO_C" >&6 14713else 14714 cat >conftest.$ac_ext <<_ACEOF 14715/* confdefs.h. */ 14716_ACEOF 14717cat confdefs.h >>conftest.$ac_ext 14718cat >>conftest.$ac_ext <<_ACEOF 14719/* end confdefs.h. */ 14720$ac_includes_default 14721int 14722main () 14723{ 14724if ((long *) 0) 14725 return 0; 14726if (sizeof (long)) 14727 return 0; 14728 ; 14729 return 0; 14730} 14731_ACEOF 14732rm -f conftest.$ac_objext 14733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14734 (eval $ac_compile) 2>conftest.er1 14735 ac_status=$? 14736 grep -v '^ *+' conftest.er1 >conftest.err 14737 rm -f conftest.er1 14738 cat conftest.err >&5 14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14740 (exit $ac_status); } && 14741 { ac_try='test -z "$ac_c_werror_flag" 14742 || test ! -s conftest.err' 14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14744 (eval $ac_try) 2>&5 14745 ac_status=$? 14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14747 (exit $ac_status); }; } && 14748 { ac_try='test -s conftest.$ac_objext' 14749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14750 (eval $ac_try) 2>&5 14751 ac_status=$? 14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14753 (exit $ac_status); }; }; then 14754 ac_cv_type_long=yes 14755else 14756 echo "$as_me: failed program was:" >&5 14757sed 's/^/| /' conftest.$ac_ext >&5 14758 14759ac_cv_type_long=no 14760fi 14761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14762fi 14763echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 14764echo "${ECHO_T}$ac_cv_type_long" >&6 14765 14766echo "$as_me:$LINENO: checking size of long" >&5 14767echo $ECHO_N "checking size of long... $ECHO_C" >&6 14768if test "${ac_cv_sizeof_long+set}" = set; then 14769 echo $ECHO_N "(cached) $ECHO_C" >&6 14770else 14771 if test "$ac_cv_type_long" = yes; then 14772 # The cast to unsigned long works around a bug in the HP C Compiler 14773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14775 # This bug is HP SR number 8606223364. 14776 if test "$cross_compiling" = yes; then 14777 # Depending upon the size, compute the lo and hi bounds. 14778cat >conftest.$ac_ext <<_ACEOF 14779/* confdefs.h. */ 14780_ACEOF 14781cat confdefs.h >>conftest.$ac_ext 14782cat >>conftest.$ac_ext <<_ACEOF 14783/* end confdefs.h. */ 14784$ac_includes_default 14785int 14786main () 14787{ 14788static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 14789test_array [0] = 0 14790 14791 ; 14792 return 0; 14793} 14794_ACEOF 14795rm -f conftest.$ac_objext 14796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14797 (eval $ac_compile) 2>conftest.er1 14798 ac_status=$? 14799 grep -v '^ *+' conftest.er1 >conftest.err 14800 rm -f conftest.er1 14801 cat conftest.err >&5 14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14803 (exit $ac_status); } && 14804 { ac_try='test -z "$ac_c_werror_flag" 14805 || test ! -s conftest.err' 14806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14807 (eval $ac_try) 2>&5 14808 ac_status=$? 14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14810 (exit $ac_status); }; } && 14811 { ac_try='test -s conftest.$ac_objext' 14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14813 (eval $ac_try) 2>&5 14814 ac_status=$? 14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14816 (exit $ac_status); }; }; then 14817 ac_lo=0 ac_mid=0 14818 while :; do 14819 cat >conftest.$ac_ext <<_ACEOF 14820/* confdefs.h. */ 14821_ACEOF 14822cat confdefs.h >>conftest.$ac_ext 14823cat >>conftest.$ac_ext <<_ACEOF 14824/* end confdefs.h. */ 14825$ac_includes_default 14826int 14827main () 14828{ 14829static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 14830test_array [0] = 0 14831 14832 ; 14833 return 0; 14834} 14835_ACEOF 14836rm -f conftest.$ac_objext 14837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14838 (eval $ac_compile) 2>conftest.er1 14839 ac_status=$? 14840 grep -v '^ *+' conftest.er1 >conftest.err 14841 rm -f conftest.er1 14842 cat conftest.err >&5 14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14844 (exit $ac_status); } && 14845 { ac_try='test -z "$ac_c_werror_flag" 14846 || test ! -s conftest.err' 14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14848 (eval $ac_try) 2>&5 14849 ac_status=$? 14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14851 (exit $ac_status); }; } && 14852 { ac_try='test -s conftest.$ac_objext' 14853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14854 (eval $ac_try) 2>&5 14855 ac_status=$? 14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14857 (exit $ac_status); }; }; then 14858 ac_hi=$ac_mid; break 14859else 14860 echo "$as_me: failed program was:" >&5 14861sed 's/^/| /' conftest.$ac_ext >&5 14862 14863ac_lo=`expr $ac_mid + 1` 14864 if test $ac_lo -le $ac_mid; then 14865 ac_lo= ac_hi= 14866 break 14867 fi 14868 ac_mid=`expr 2 '*' $ac_mid + 1` 14869fi 14870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14871 done 14872else 14873 echo "$as_me: failed program was:" >&5 14874sed 's/^/| /' conftest.$ac_ext >&5 14875 14876cat >conftest.$ac_ext <<_ACEOF 14877/* confdefs.h. */ 14878_ACEOF 14879cat confdefs.h >>conftest.$ac_ext 14880cat >>conftest.$ac_ext <<_ACEOF 14881/* end confdefs.h. */ 14882$ac_includes_default 14883int 14884main () 14885{ 14886static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 14887test_array [0] = 0 14888 14889 ; 14890 return 0; 14891} 14892_ACEOF 14893rm -f conftest.$ac_objext 14894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14895 (eval $ac_compile) 2>conftest.er1 14896 ac_status=$? 14897 grep -v '^ *+' conftest.er1 >conftest.err 14898 rm -f conftest.er1 14899 cat conftest.err >&5 14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14901 (exit $ac_status); } && 14902 { ac_try='test -z "$ac_c_werror_flag" 14903 || test ! -s conftest.err' 14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14905 (eval $ac_try) 2>&5 14906 ac_status=$? 14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14908 (exit $ac_status); }; } && 14909 { ac_try='test -s conftest.$ac_objext' 14910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14911 (eval $ac_try) 2>&5 14912 ac_status=$? 14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14914 (exit $ac_status); }; }; then 14915 ac_hi=-1 ac_mid=-1 14916 while :; do 14917 cat >conftest.$ac_ext <<_ACEOF 14918/* confdefs.h. */ 14919_ACEOF 14920cat confdefs.h >>conftest.$ac_ext 14921cat >>conftest.$ac_ext <<_ACEOF 14922/* end confdefs.h. */ 14923$ac_includes_default 14924int 14925main () 14926{ 14927static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 14928test_array [0] = 0 14929 14930 ; 14931 return 0; 14932} 14933_ACEOF 14934rm -f conftest.$ac_objext 14935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14936 (eval $ac_compile) 2>conftest.er1 14937 ac_status=$? 14938 grep -v '^ *+' conftest.er1 >conftest.err 14939 rm -f conftest.er1 14940 cat conftest.err >&5 14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14942 (exit $ac_status); } && 14943 { ac_try='test -z "$ac_c_werror_flag" 14944 || test ! -s conftest.err' 14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14946 (eval $ac_try) 2>&5 14947 ac_status=$? 14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14949 (exit $ac_status); }; } && 14950 { ac_try='test -s conftest.$ac_objext' 14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14952 (eval $ac_try) 2>&5 14953 ac_status=$? 14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14955 (exit $ac_status); }; }; then 14956 ac_lo=$ac_mid; break 14957else 14958 echo "$as_me: failed program was:" >&5 14959sed 's/^/| /' conftest.$ac_ext >&5 14960 14961ac_hi=`expr '(' $ac_mid ')' - 1` 14962 if test $ac_mid -le $ac_hi; then 14963 ac_lo= ac_hi= 14964 break 14965 fi 14966 ac_mid=`expr 2 '*' $ac_mid` 14967fi 14968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14969 done 14970else 14971 echo "$as_me: failed program was:" >&5 14972sed 's/^/| /' conftest.$ac_ext >&5 14973 14974ac_lo= ac_hi= 14975fi 14976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14977fi 14978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14979# Binary search between lo and hi bounds. 14980while test "x$ac_lo" != "x$ac_hi"; do 14981 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14982 cat >conftest.$ac_ext <<_ACEOF 14983/* confdefs.h. */ 14984_ACEOF 14985cat confdefs.h >>conftest.$ac_ext 14986cat >>conftest.$ac_ext <<_ACEOF 14987/* end confdefs.h. */ 14988$ac_includes_default 14989int 14990main () 14991{ 14992static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 14993test_array [0] = 0 14994 14995 ; 14996 return 0; 14997} 14998_ACEOF 14999rm -f conftest.$ac_objext 15000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15001 (eval $ac_compile) 2>conftest.er1 15002 ac_status=$? 15003 grep -v '^ *+' conftest.er1 >conftest.err 15004 rm -f conftest.er1 15005 cat conftest.err >&5 15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15007 (exit $ac_status); } && 15008 { ac_try='test -z "$ac_c_werror_flag" 15009 || test ! -s conftest.err' 15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15011 (eval $ac_try) 2>&5 15012 ac_status=$? 15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15014 (exit $ac_status); }; } && 15015 { ac_try='test -s conftest.$ac_objext' 15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15017 (eval $ac_try) 2>&5 15018 ac_status=$? 15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15020 (exit $ac_status); }; }; then 15021 ac_hi=$ac_mid 15022else 15023 echo "$as_me: failed program was:" >&5 15024sed 's/^/| /' conftest.$ac_ext >&5 15025 15026ac_lo=`expr '(' $ac_mid ')' + 1` 15027fi 15028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15029done 15030case $ac_lo in 15031?*) ac_cv_sizeof_long=$ac_lo;; 15032'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 15033See \`config.log' for more details." >&5 15034echo "$as_me: error: cannot compute sizeof (long), 77 15035See \`config.log' for more details." >&2;} 15036 { (exit 1); exit 1; }; } ;; 15037esac 15038else 15039 if test "$cross_compiling" = yes; then 15040 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 15041See \`config.log' for more details." >&5 15042echo "$as_me: error: cannot run test program while cross compiling 15043See \`config.log' for more details." >&2;} 15044 { (exit 1); exit 1; }; } 15045else 15046 cat >conftest.$ac_ext <<_ACEOF 15047/* confdefs.h. */ 15048_ACEOF 15049cat confdefs.h >>conftest.$ac_ext 15050cat >>conftest.$ac_ext <<_ACEOF 15051/* end confdefs.h. */ 15052$ac_includes_default 15053long longval () { return (long) (sizeof (long)); } 15054unsigned long ulongval () { return (long) (sizeof (long)); } 15055#include <stdio.h> 15056#include <stdlib.h> 15057int 15058main () 15059{ 15060 15061 FILE *f = fopen ("conftest.val", "w"); 15062 if (! f) 15063 exit (1); 15064 if (((long) (sizeof (long))) < 0) 15065 { 15066 long i = longval (); 15067 if (i != ((long) (sizeof (long)))) 15068 exit (1); 15069 fprintf (f, "%ld\n", i); 15070 } 15071 else 15072 { 15073 unsigned long i = ulongval (); 15074 if (i != ((long) (sizeof (long)))) 15075 exit (1); 15076 fprintf (f, "%lu\n", i); 15077 } 15078 exit (ferror (f) || fclose (f) != 0); 15079 15080 ; 15081 return 0; 15082} 15083_ACEOF 15084rm -f conftest$ac_exeext 15085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15086 (eval $ac_link) 2>&5 15087 ac_status=$? 15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15091 (eval $ac_try) 2>&5 15092 ac_status=$? 15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15094 (exit $ac_status); }; }; then 15095 ac_cv_sizeof_long=`cat conftest.val` 15096else 15097 echo "$as_me: program exited with status $ac_status" >&5 15098echo "$as_me: failed program was:" >&5 15099sed 's/^/| /' conftest.$ac_ext >&5 15100 15101( exit $ac_status ) 15102{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 15103See \`config.log' for more details." >&5 15104echo "$as_me: error: cannot compute sizeof (long), 77 15105See \`config.log' for more details." >&2;} 15106 { (exit 1); exit 1; }; } 15107fi 15108rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15109fi 15110fi 15111rm -f conftest.val 15112else 15113 ac_cv_sizeof_long=0 15114fi 15115fi 15116echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 15117echo "${ECHO_T}$ac_cv_sizeof_long" >&6 15118cat >>confdefs.h <<_ACEOF 15119#define SIZEOF_LONG $ac_cv_sizeof_long 15120_ACEOF 15121 15122 15123 echo "$as_me:$LINENO: checking for int" >&5 15124echo $ECHO_N "checking for int... $ECHO_C" >&6 15125if test "${ac_cv_type_int+set}" = set; then 15126 echo $ECHO_N "(cached) $ECHO_C" >&6 15127else 15128 cat >conftest.$ac_ext <<_ACEOF 15129/* confdefs.h. */ 15130_ACEOF 15131cat confdefs.h >>conftest.$ac_ext 15132cat >>conftest.$ac_ext <<_ACEOF 15133/* end confdefs.h. */ 15134$ac_includes_default 15135int 15136main () 15137{ 15138if ((int *) 0) 15139 return 0; 15140if (sizeof (int)) 15141 return 0; 15142 ; 15143 return 0; 15144} 15145_ACEOF 15146rm -f conftest.$ac_objext 15147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15148 (eval $ac_compile) 2>conftest.er1 15149 ac_status=$? 15150 grep -v '^ *+' conftest.er1 >conftest.err 15151 rm -f conftest.er1 15152 cat conftest.err >&5 15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15154 (exit $ac_status); } && 15155 { ac_try='test -z "$ac_c_werror_flag" 15156 || test ! -s conftest.err' 15157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15158 (eval $ac_try) 2>&5 15159 ac_status=$? 15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15161 (exit $ac_status); }; } && 15162 { ac_try='test -s conftest.$ac_objext' 15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15164 (eval $ac_try) 2>&5 15165 ac_status=$? 15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15167 (exit $ac_status); }; }; then 15168 ac_cv_type_int=yes 15169else 15170 echo "$as_me: failed program was:" >&5 15171sed 's/^/| /' conftest.$ac_ext >&5 15172 15173ac_cv_type_int=no 15174fi 15175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15176fi 15177echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 15178echo "${ECHO_T}$ac_cv_type_int" >&6 15179 15180echo "$as_me:$LINENO: checking size of int" >&5 15181echo $ECHO_N "checking size of int... $ECHO_C" >&6 15182if test "${ac_cv_sizeof_int+set}" = set; then 15183 echo $ECHO_N "(cached) $ECHO_C" >&6 15184else 15185 if test "$ac_cv_type_int" = yes; then 15186 # The cast to unsigned long works around a bug in the HP C Compiler 15187 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15188 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15189 # This bug is HP SR number 8606223364. 15190 if test "$cross_compiling" = yes; then 15191 # Depending upon the size, compute the lo and hi bounds. 15192cat >conftest.$ac_ext <<_ACEOF 15193/* confdefs.h. */ 15194_ACEOF 15195cat confdefs.h >>conftest.$ac_ext 15196cat >>conftest.$ac_ext <<_ACEOF 15197/* end confdefs.h. */ 15198$ac_includes_default 15199int 15200main () 15201{ 15202static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 15203test_array [0] = 0 15204 15205 ; 15206 return 0; 15207} 15208_ACEOF 15209rm -f conftest.$ac_objext 15210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15211 (eval $ac_compile) 2>conftest.er1 15212 ac_status=$? 15213 grep -v '^ *+' conftest.er1 >conftest.err 15214 rm -f conftest.er1 15215 cat conftest.err >&5 15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15217 (exit $ac_status); } && 15218 { ac_try='test -z "$ac_c_werror_flag" 15219 || test ! -s conftest.err' 15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15221 (eval $ac_try) 2>&5 15222 ac_status=$? 15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15224 (exit $ac_status); }; } && 15225 { ac_try='test -s conftest.$ac_objext' 15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15227 (eval $ac_try) 2>&5 15228 ac_status=$? 15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15230 (exit $ac_status); }; }; then 15231 ac_lo=0 ac_mid=0 15232 while :; do 15233 cat >conftest.$ac_ext <<_ACEOF 15234/* confdefs.h. */ 15235_ACEOF 15236cat confdefs.h >>conftest.$ac_ext 15237cat >>conftest.$ac_ext <<_ACEOF 15238/* end confdefs.h. */ 15239$ac_includes_default 15240int 15241main () 15242{ 15243static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 15244test_array [0] = 0 15245 15246 ; 15247 return 0; 15248} 15249_ACEOF 15250rm -f conftest.$ac_objext 15251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15252 (eval $ac_compile) 2>conftest.er1 15253 ac_status=$? 15254 grep -v '^ *+' conftest.er1 >conftest.err 15255 rm -f conftest.er1 15256 cat conftest.err >&5 15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15258 (exit $ac_status); } && 15259 { ac_try='test -z "$ac_c_werror_flag" 15260 || test ! -s conftest.err' 15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15262 (eval $ac_try) 2>&5 15263 ac_status=$? 15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15265 (exit $ac_status); }; } && 15266 { ac_try='test -s conftest.$ac_objext' 15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15268 (eval $ac_try) 2>&5 15269 ac_status=$? 15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15271 (exit $ac_status); }; }; then 15272 ac_hi=$ac_mid; break 15273else 15274 echo "$as_me: failed program was:" >&5 15275sed 's/^/| /' conftest.$ac_ext >&5 15276 15277ac_lo=`expr $ac_mid + 1` 15278 if test $ac_lo -le $ac_mid; then 15279 ac_lo= ac_hi= 15280 break 15281 fi 15282 ac_mid=`expr 2 '*' $ac_mid + 1` 15283fi 15284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15285 done 15286else 15287 echo "$as_me: failed program was:" >&5 15288sed 's/^/| /' conftest.$ac_ext >&5 15289 15290cat >conftest.$ac_ext <<_ACEOF 15291/* confdefs.h. */ 15292_ACEOF 15293cat confdefs.h >>conftest.$ac_ext 15294cat >>conftest.$ac_ext <<_ACEOF 15295/* end confdefs.h. */ 15296$ac_includes_default 15297int 15298main () 15299{ 15300static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 15301test_array [0] = 0 15302 15303 ; 15304 return 0; 15305} 15306_ACEOF 15307rm -f conftest.$ac_objext 15308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15309 (eval $ac_compile) 2>conftest.er1 15310 ac_status=$? 15311 grep -v '^ *+' conftest.er1 >conftest.err 15312 rm -f conftest.er1 15313 cat conftest.err >&5 15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15315 (exit $ac_status); } && 15316 { ac_try='test -z "$ac_c_werror_flag" 15317 || test ! -s conftest.err' 15318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15319 (eval $ac_try) 2>&5 15320 ac_status=$? 15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15322 (exit $ac_status); }; } && 15323 { ac_try='test -s conftest.$ac_objext' 15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15325 (eval $ac_try) 2>&5 15326 ac_status=$? 15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15328 (exit $ac_status); }; }; then 15329 ac_hi=-1 ac_mid=-1 15330 while :; do 15331 cat >conftest.$ac_ext <<_ACEOF 15332/* confdefs.h. */ 15333_ACEOF 15334cat confdefs.h >>conftest.$ac_ext 15335cat >>conftest.$ac_ext <<_ACEOF 15336/* end confdefs.h. */ 15337$ac_includes_default 15338int 15339main () 15340{ 15341static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 15342test_array [0] = 0 15343 15344 ; 15345 return 0; 15346} 15347_ACEOF 15348rm -f conftest.$ac_objext 15349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15350 (eval $ac_compile) 2>conftest.er1 15351 ac_status=$? 15352 grep -v '^ *+' conftest.er1 >conftest.err 15353 rm -f conftest.er1 15354 cat conftest.err >&5 15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15356 (exit $ac_status); } && 15357 { ac_try='test -z "$ac_c_werror_flag" 15358 || test ! -s conftest.err' 15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15360 (eval $ac_try) 2>&5 15361 ac_status=$? 15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15363 (exit $ac_status); }; } && 15364 { ac_try='test -s conftest.$ac_objext' 15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15366 (eval $ac_try) 2>&5 15367 ac_status=$? 15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15369 (exit $ac_status); }; }; then 15370 ac_lo=$ac_mid; break 15371else 15372 echo "$as_me: failed program was:" >&5 15373sed 's/^/| /' conftest.$ac_ext >&5 15374 15375ac_hi=`expr '(' $ac_mid ')' - 1` 15376 if test $ac_mid -le $ac_hi; then 15377 ac_lo= ac_hi= 15378 break 15379 fi 15380 ac_mid=`expr 2 '*' $ac_mid` 15381fi 15382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15383 done 15384else 15385 echo "$as_me: failed program was:" >&5 15386sed 's/^/| /' conftest.$ac_ext >&5 15387 15388ac_lo= ac_hi= 15389fi 15390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15391fi 15392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15393# Binary search between lo and hi bounds. 15394while test "x$ac_lo" != "x$ac_hi"; do 15395 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 15396 cat >conftest.$ac_ext <<_ACEOF 15397/* confdefs.h. */ 15398_ACEOF 15399cat confdefs.h >>conftest.$ac_ext 15400cat >>conftest.$ac_ext <<_ACEOF 15401/* end confdefs.h. */ 15402$ac_includes_default 15403int 15404main () 15405{ 15406static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 15407test_array [0] = 0 15408 15409 ; 15410 return 0; 15411} 15412_ACEOF 15413rm -f conftest.$ac_objext 15414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15415 (eval $ac_compile) 2>conftest.er1 15416 ac_status=$? 15417 grep -v '^ *+' conftest.er1 >conftest.err 15418 rm -f conftest.er1 15419 cat conftest.err >&5 15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15421 (exit $ac_status); } && 15422 { ac_try='test -z "$ac_c_werror_flag" 15423 || test ! -s conftest.err' 15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15425 (eval $ac_try) 2>&5 15426 ac_status=$? 15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15428 (exit $ac_status); }; } && 15429 { ac_try='test -s conftest.$ac_objext' 15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15431 (eval $ac_try) 2>&5 15432 ac_status=$? 15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15434 (exit $ac_status); }; }; then 15435 ac_hi=$ac_mid 15436else 15437 echo "$as_me: failed program was:" >&5 15438sed 's/^/| /' conftest.$ac_ext >&5 15439 15440ac_lo=`expr '(' $ac_mid ')' + 1` 15441fi 15442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15443done 15444case $ac_lo in 15445?*) ac_cv_sizeof_int=$ac_lo;; 15446'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 15447See \`config.log' for more details." >&5 15448echo "$as_me: error: cannot compute sizeof (int), 77 15449See \`config.log' for more details." >&2;} 15450 { (exit 1); exit 1; }; } ;; 15451esac 15452else 15453 if test "$cross_compiling" = yes; then 15454 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 15455See \`config.log' for more details." >&5 15456echo "$as_me: error: cannot run test program while cross compiling 15457See \`config.log' for more details." >&2;} 15458 { (exit 1); exit 1; }; } 15459else 15460 cat >conftest.$ac_ext <<_ACEOF 15461/* confdefs.h. */ 15462_ACEOF 15463cat confdefs.h >>conftest.$ac_ext 15464cat >>conftest.$ac_ext <<_ACEOF 15465/* end confdefs.h. */ 15466$ac_includes_default 15467long longval () { return (long) (sizeof (int)); } 15468unsigned long ulongval () { return (long) (sizeof (int)); } 15469#include <stdio.h> 15470#include <stdlib.h> 15471int 15472main () 15473{ 15474 15475 FILE *f = fopen ("conftest.val", "w"); 15476 if (! f) 15477 exit (1); 15478 if (((long) (sizeof (int))) < 0) 15479 { 15480 long i = longval (); 15481 if (i != ((long) (sizeof (int)))) 15482 exit (1); 15483 fprintf (f, "%ld\n", i); 15484 } 15485 else 15486 { 15487 unsigned long i = ulongval (); 15488 if (i != ((long) (sizeof (int)))) 15489 exit (1); 15490 fprintf (f, "%lu\n", i); 15491 } 15492 exit (ferror (f) || fclose (f) != 0); 15493 15494 ; 15495 return 0; 15496} 15497_ACEOF 15498rm -f conftest$ac_exeext 15499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15500 (eval $ac_link) 2>&5 15501 ac_status=$? 15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15505 (eval $ac_try) 2>&5 15506 ac_status=$? 15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15508 (exit $ac_status); }; }; then 15509 ac_cv_sizeof_int=`cat conftest.val` 15510else 15511 echo "$as_me: program exited with status $ac_status" >&5 15512echo "$as_me: failed program was:" >&5 15513sed 's/^/| /' conftest.$ac_ext >&5 15514 15515( exit $ac_status ) 15516{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 15517See \`config.log' for more details." >&5 15518echo "$as_me: error: cannot compute sizeof (int), 77 15519See \`config.log' for more details." >&2;} 15520 { (exit 1); exit 1; }; } 15521fi 15522rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15523fi 15524fi 15525rm -f conftest.val 15526else 15527 ac_cv_sizeof_int=0 15528fi 15529fi 15530echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 15531echo "${ECHO_T}$ac_cv_sizeof_int" >&6 15532cat >>confdefs.h <<_ACEOF 15533#define SIZEOF_INT $ac_cv_sizeof_int 15534_ACEOF 15535 15536 15537 echo "$as_me:$LINENO: checking for short" >&5 15538echo $ECHO_N "checking for short... $ECHO_C" >&6 15539if test "${ac_cv_type_short+set}" = set; then 15540 echo $ECHO_N "(cached) $ECHO_C" >&6 15541else 15542 cat >conftest.$ac_ext <<_ACEOF 15543/* confdefs.h. */ 15544_ACEOF 15545cat confdefs.h >>conftest.$ac_ext 15546cat >>conftest.$ac_ext <<_ACEOF 15547/* end confdefs.h. */ 15548$ac_includes_default 15549int 15550main () 15551{ 15552if ((short *) 0) 15553 return 0; 15554if (sizeof (short)) 15555 return 0; 15556 ; 15557 return 0; 15558} 15559_ACEOF 15560rm -f conftest.$ac_objext 15561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15562 (eval $ac_compile) 2>conftest.er1 15563 ac_status=$? 15564 grep -v '^ *+' conftest.er1 >conftest.err 15565 rm -f conftest.er1 15566 cat conftest.err >&5 15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15568 (exit $ac_status); } && 15569 { ac_try='test -z "$ac_c_werror_flag" 15570 || test ! -s conftest.err' 15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15572 (eval $ac_try) 2>&5 15573 ac_status=$? 15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15575 (exit $ac_status); }; } && 15576 { ac_try='test -s conftest.$ac_objext' 15577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15578 (eval $ac_try) 2>&5 15579 ac_status=$? 15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15581 (exit $ac_status); }; }; then 15582 ac_cv_type_short=yes 15583else 15584 echo "$as_me: failed program was:" >&5 15585sed 's/^/| /' conftest.$ac_ext >&5 15586 15587ac_cv_type_short=no 15588fi 15589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15590fi 15591echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 15592echo "${ECHO_T}$ac_cv_type_short" >&6 15593 15594echo "$as_me:$LINENO: checking size of short" >&5 15595echo $ECHO_N "checking size of short... $ECHO_C" >&6 15596if test "${ac_cv_sizeof_short+set}" = set; then 15597 echo $ECHO_N "(cached) $ECHO_C" >&6 15598else 15599 if test "$ac_cv_type_short" = yes; then 15600 # The cast to unsigned long works around a bug in the HP C Compiler 15601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15603 # This bug is HP SR number 8606223364. 15604 if test "$cross_compiling" = yes; then 15605 # Depending upon the size, compute the lo and hi bounds. 15606cat >conftest.$ac_ext <<_ACEOF 15607/* confdefs.h. */ 15608_ACEOF 15609cat confdefs.h >>conftest.$ac_ext 15610cat >>conftest.$ac_ext <<_ACEOF 15611/* end confdefs.h. */ 15612$ac_includes_default 15613int 15614main () 15615{ 15616static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 15617test_array [0] = 0 15618 15619 ; 15620 return 0; 15621} 15622_ACEOF 15623rm -f conftest.$ac_objext 15624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15625 (eval $ac_compile) 2>conftest.er1 15626 ac_status=$? 15627 grep -v '^ *+' conftest.er1 >conftest.err 15628 rm -f conftest.er1 15629 cat conftest.err >&5 15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15631 (exit $ac_status); } && 15632 { ac_try='test -z "$ac_c_werror_flag" 15633 || test ! -s conftest.err' 15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15635 (eval $ac_try) 2>&5 15636 ac_status=$? 15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15638 (exit $ac_status); }; } && 15639 { ac_try='test -s conftest.$ac_objext' 15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15641 (eval $ac_try) 2>&5 15642 ac_status=$? 15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15644 (exit $ac_status); }; }; then 15645 ac_lo=0 ac_mid=0 15646 while :; do 15647 cat >conftest.$ac_ext <<_ACEOF 15648/* confdefs.h. */ 15649_ACEOF 15650cat confdefs.h >>conftest.$ac_ext 15651cat >>conftest.$ac_ext <<_ACEOF 15652/* end confdefs.h. */ 15653$ac_includes_default 15654int 15655main () 15656{ 15657static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 15658test_array [0] = 0 15659 15660 ; 15661 return 0; 15662} 15663_ACEOF 15664rm -f conftest.$ac_objext 15665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15666 (eval $ac_compile) 2>conftest.er1 15667 ac_status=$? 15668 grep -v '^ *+' conftest.er1 >conftest.err 15669 rm -f conftest.er1 15670 cat conftest.err >&5 15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15672 (exit $ac_status); } && 15673 { ac_try='test -z "$ac_c_werror_flag" 15674 || test ! -s conftest.err' 15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15676 (eval $ac_try) 2>&5 15677 ac_status=$? 15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15679 (exit $ac_status); }; } && 15680 { ac_try='test -s conftest.$ac_objext' 15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15682 (eval $ac_try) 2>&5 15683 ac_status=$? 15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15685 (exit $ac_status); }; }; then 15686 ac_hi=$ac_mid; break 15687else 15688 echo "$as_me: failed program was:" >&5 15689sed 's/^/| /' conftest.$ac_ext >&5 15690 15691ac_lo=`expr $ac_mid + 1` 15692 if test $ac_lo -le $ac_mid; then 15693 ac_lo= ac_hi= 15694 break 15695 fi 15696 ac_mid=`expr 2 '*' $ac_mid + 1` 15697fi 15698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15699 done 15700else 15701 echo "$as_me: failed program was:" >&5 15702sed 's/^/| /' conftest.$ac_ext >&5 15703 15704cat >conftest.$ac_ext <<_ACEOF 15705/* confdefs.h. */ 15706_ACEOF 15707cat confdefs.h >>conftest.$ac_ext 15708cat >>conftest.$ac_ext <<_ACEOF 15709/* end confdefs.h. */ 15710$ac_includes_default 15711int 15712main () 15713{ 15714static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 15715test_array [0] = 0 15716 15717 ; 15718 return 0; 15719} 15720_ACEOF 15721rm -f conftest.$ac_objext 15722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15723 (eval $ac_compile) 2>conftest.er1 15724 ac_status=$? 15725 grep -v '^ *+' conftest.er1 >conftest.err 15726 rm -f conftest.er1 15727 cat conftest.err >&5 15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15729 (exit $ac_status); } && 15730 { ac_try='test -z "$ac_c_werror_flag" 15731 || test ! -s conftest.err' 15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15733 (eval $ac_try) 2>&5 15734 ac_status=$? 15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15736 (exit $ac_status); }; } && 15737 { ac_try='test -s conftest.$ac_objext' 15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15739 (eval $ac_try) 2>&5 15740 ac_status=$? 15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15742 (exit $ac_status); }; }; then 15743 ac_hi=-1 ac_mid=-1 15744 while :; do 15745 cat >conftest.$ac_ext <<_ACEOF 15746/* confdefs.h. */ 15747_ACEOF 15748cat confdefs.h >>conftest.$ac_ext 15749cat >>conftest.$ac_ext <<_ACEOF 15750/* end confdefs.h. */ 15751$ac_includes_default 15752int 15753main () 15754{ 15755static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 15756test_array [0] = 0 15757 15758 ; 15759 return 0; 15760} 15761_ACEOF 15762rm -f conftest.$ac_objext 15763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15764 (eval $ac_compile) 2>conftest.er1 15765 ac_status=$? 15766 grep -v '^ *+' conftest.er1 >conftest.err 15767 rm -f conftest.er1 15768 cat conftest.err >&5 15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15770 (exit $ac_status); } && 15771 { ac_try='test -z "$ac_c_werror_flag" 15772 || test ! -s conftest.err' 15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15774 (eval $ac_try) 2>&5 15775 ac_status=$? 15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15777 (exit $ac_status); }; } && 15778 { ac_try='test -s conftest.$ac_objext' 15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15780 (eval $ac_try) 2>&5 15781 ac_status=$? 15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15783 (exit $ac_status); }; }; then 15784 ac_lo=$ac_mid; break 15785else 15786 echo "$as_me: failed program was:" >&5 15787sed 's/^/| /' conftest.$ac_ext >&5 15788 15789ac_hi=`expr '(' $ac_mid ')' - 1` 15790 if test $ac_mid -le $ac_hi; then 15791 ac_lo= ac_hi= 15792 break 15793 fi 15794 ac_mid=`expr 2 '*' $ac_mid` 15795fi 15796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15797 done 15798else 15799 echo "$as_me: failed program was:" >&5 15800sed 's/^/| /' conftest.$ac_ext >&5 15801 15802ac_lo= ac_hi= 15803fi 15804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15805fi 15806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15807# Binary search between lo and hi bounds. 15808while test "x$ac_lo" != "x$ac_hi"; do 15809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 15810 cat >conftest.$ac_ext <<_ACEOF 15811/* confdefs.h. */ 15812_ACEOF 15813cat confdefs.h >>conftest.$ac_ext 15814cat >>conftest.$ac_ext <<_ACEOF 15815/* end confdefs.h. */ 15816$ac_includes_default 15817int 15818main () 15819{ 15820static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 15821test_array [0] = 0 15822 15823 ; 15824 return 0; 15825} 15826_ACEOF 15827rm -f conftest.$ac_objext 15828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15829 (eval $ac_compile) 2>conftest.er1 15830 ac_status=$? 15831 grep -v '^ *+' conftest.er1 >conftest.err 15832 rm -f conftest.er1 15833 cat conftest.err >&5 15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15835 (exit $ac_status); } && 15836 { ac_try='test -z "$ac_c_werror_flag" 15837 || test ! -s conftest.err' 15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15839 (eval $ac_try) 2>&5 15840 ac_status=$? 15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15842 (exit $ac_status); }; } && 15843 { ac_try='test -s conftest.$ac_objext' 15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15845 (eval $ac_try) 2>&5 15846 ac_status=$? 15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15848 (exit $ac_status); }; }; then 15849 ac_hi=$ac_mid 15850else 15851 echo "$as_me: failed program was:" >&5 15852sed 's/^/| /' conftest.$ac_ext >&5 15853 15854ac_lo=`expr '(' $ac_mid ')' + 1` 15855fi 15856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15857done 15858case $ac_lo in 15859?*) ac_cv_sizeof_short=$ac_lo;; 15860'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 15861See \`config.log' for more details." >&5 15862echo "$as_me: error: cannot compute sizeof (short), 77 15863See \`config.log' for more details." >&2;} 15864 { (exit 1); exit 1; }; } ;; 15865esac 15866else 15867 if test "$cross_compiling" = yes; then 15868 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 15869See \`config.log' for more details." >&5 15870echo "$as_me: error: cannot run test program while cross compiling 15871See \`config.log' for more details." >&2;} 15872 { (exit 1); exit 1; }; } 15873else 15874 cat >conftest.$ac_ext <<_ACEOF 15875/* confdefs.h. */ 15876_ACEOF 15877cat confdefs.h >>conftest.$ac_ext 15878cat >>conftest.$ac_ext <<_ACEOF 15879/* end confdefs.h. */ 15880$ac_includes_default 15881long longval () { return (long) (sizeof (short)); } 15882unsigned long ulongval () { return (long) (sizeof (short)); } 15883#include <stdio.h> 15884#include <stdlib.h> 15885int 15886main () 15887{ 15888 15889 FILE *f = fopen ("conftest.val", "w"); 15890 if (! f) 15891 exit (1); 15892 if (((long) (sizeof (short))) < 0) 15893 { 15894 long i = longval (); 15895 if (i != ((long) (sizeof (short)))) 15896 exit (1); 15897 fprintf (f, "%ld\n", i); 15898 } 15899 else 15900 { 15901 unsigned long i = ulongval (); 15902 if (i != ((long) (sizeof (short)))) 15903 exit (1); 15904 fprintf (f, "%lu\n", i); 15905 } 15906 exit (ferror (f) || fclose (f) != 0); 15907 15908 ; 15909 return 0; 15910} 15911_ACEOF 15912rm -f conftest$ac_exeext 15913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15914 (eval $ac_link) 2>&5 15915 ac_status=$? 15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15919 (eval $ac_try) 2>&5 15920 ac_status=$? 15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15922 (exit $ac_status); }; }; then 15923 ac_cv_sizeof_short=`cat conftest.val` 15924else 15925 echo "$as_me: program exited with status $ac_status" >&5 15926echo "$as_me: failed program was:" >&5 15927sed 's/^/| /' conftest.$ac_ext >&5 15928 15929( exit $ac_status ) 15930{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 15931See \`config.log' for more details." >&5 15932echo "$as_me: error: cannot compute sizeof (short), 77 15933See \`config.log' for more details." >&2;} 15934 { (exit 1); exit 1; }; } 15935fi 15936rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15937fi 15938fi 15939rm -f conftest.val 15940else 15941 ac_cv_sizeof_short=0 15942fi 15943fi 15944echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 15945echo "${ECHO_T}$ac_cv_sizeof_short" >&6 15946cat >>confdefs.h <<_ACEOF 15947#define SIZEOF_SHORT $ac_cv_sizeof_short 15948_ACEOF 15949 15950 15951 fi 15952 FOUND=0 15953 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 15954 dc_cv_size=`eval echo $dc_cv_loop` 15955 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 15956 if test "$dc_cv_size" = "4"; then 15957 if test "$dc_cv_name" = "int"; then 15958 echo "$as_me:$LINENO: checking for int32_t" >&5 15959echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 15960if test "${ac_cv_type_int32_t+set}" = set; then 15961 echo $ECHO_N "(cached) $ECHO_C" >&6 15962else 15963 cat >conftest.$ac_ext <<_ACEOF 15964/* confdefs.h. */ 15965_ACEOF 15966cat confdefs.h >>conftest.$ac_ext 15967cat >>conftest.$ac_ext <<_ACEOF 15968/* end confdefs.h. */ 15969$ac_includes_default 15970int 15971main () 15972{ 15973if ((int32_t *) 0) 15974 return 0; 15975if (sizeof (int32_t)) 15976 return 0; 15977 ; 15978 return 0; 15979} 15980_ACEOF 15981rm -f conftest.$ac_objext 15982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15983 (eval $ac_compile) 2>conftest.er1 15984 ac_status=$? 15985 grep -v '^ *+' conftest.er1 >conftest.err 15986 rm -f conftest.er1 15987 cat conftest.err >&5 15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15989 (exit $ac_status); } && 15990 { ac_try='test -z "$ac_c_werror_flag" 15991 || test ! -s conftest.err' 15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15993 (eval $ac_try) 2>&5 15994 ac_status=$? 15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15996 (exit $ac_status); }; } && 15997 { ac_try='test -s conftest.$ac_objext' 15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15999 (eval $ac_try) 2>&5 16000 ac_status=$? 16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16002 (exit $ac_status); }; }; then 16003 ac_cv_type_int32_t=yes 16004else 16005 echo "$as_me: failed program was:" >&5 16006sed 's/^/| /' conftest.$ac_ext >&5 16007 16008ac_cv_type_int32_t=no 16009fi 16010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16011fi 16012echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 16013echo "${ECHO_T}$ac_cv_type_int32_t" >&6 16014if test $ac_cv_type_int32_t = yes; then 16015 : 16016else 16017 16018cat >>confdefs.h <<_ACEOF 16019#define int32_t signed int 16020_ACEOF 16021 16022fi 16023 16024 fi 16025 if test "$dc_cv_name" = "long"; then 16026 echo "$as_me:$LINENO: checking for int32_t" >&5 16027echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 16028if test "${ac_cv_type_int32_t+set}" = set; then 16029 echo $ECHO_N "(cached) $ECHO_C" >&6 16030else 16031 cat >conftest.$ac_ext <<_ACEOF 16032/* confdefs.h. */ 16033_ACEOF 16034cat confdefs.h >>conftest.$ac_ext 16035cat >>conftest.$ac_ext <<_ACEOF 16036/* end confdefs.h. */ 16037$ac_includes_default 16038int 16039main () 16040{ 16041if ((int32_t *) 0) 16042 return 0; 16043if (sizeof (int32_t)) 16044 return 0; 16045 ; 16046 return 0; 16047} 16048_ACEOF 16049rm -f conftest.$ac_objext 16050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16051 (eval $ac_compile) 2>conftest.er1 16052 ac_status=$? 16053 grep -v '^ *+' conftest.er1 >conftest.err 16054 rm -f conftest.er1 16055 cat conftest.err >&5 16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16057 (exit $ac_status); } && 16058 { ac_try='test -z "$ac_c_werror_flag" 16059 || test ! -s conftest.err' 16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16061 (eval $ac_try) 2>&5 16062 ac_status=$? 16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16064 (exit $ac_status); }; } && 16065 { ac_try='test -s conftest.$ac_objext' 16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16067 (eval $ac_try) 2>&5 16068 ac_status=$? 16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16070 (exit $ac_status); }; }; then 16071 ac_cv_type_int32_t=yes 16072else 16073 echo "$as_me: failed program was:" >&5 16074sed 's/^/| /' conftest.$ac_ext >&5 16075 16076ac_cv_type_int32_t=no 16077fi 16078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16079fi 16080echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 16081echo "${ECHO_T}$ac_cv_type_int32_t" >&6 16082if test $ac_cv_type_int32_t = yes; then 16083 : 16084else 16085 16086cat >>confdefs.h <<_ACEOF 16087#define int32_t signed long 16088_ACEOF 16089 16090fi 16091 16092 fi 16093 if test "$dc_cv_name" = "long_long"; then 16094 echo "$as_me:$LINENO: checking for int32_t" >&5 16095echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 16096if test "${ac_cv_type_int32_t+set}" = set; then 16097 echo $ECHO_N "(cached) $ECHO_C" >&6 16098else 16099 cat >conftest.$ac_ext <<_ACEOF 16100/* confdefs.h. */ 16101_ACEOF 16102cat confdefs.h >>conftest.$ac_ext 16103cat >>conftest.$ac_ext <<_ACEOF 16104/* end confdefs.h. */ 16105$ac_includes_default 16106int 16107main () 16108{ 16109if ((int32_t *) 0) 16110 return 0; 16111if (sizeof (int32_t)) 16112 return 0; 16113 ; 16114 return 0; 16115} 16116_ACEOF 16117rm -f conftest.$ac_objext 16118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16119 (eval $ac_compile) 2>conftest.er1 16120 ac_status=$? 16121 grep -v '^ *+' conftest.er1 >conftest.err 16122 rm -f conftest.er1 16123 cat conftest.err >&5 16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16125 (exit $ac_status); } && 16126 { ac_try='test -z "$ac_c_werror_flag" 16127 || test ! -s conftest.err' 16128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16129 (eval $ac_try) 2>&5 16130 ac_status=$? 16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16132 (exit $ac_status); }; } && 16133 { ac_try='test -s conftest.$ac_objext' 16134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16135 (eval $ac_try) 2>&5 16136 ac_status=$? 16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16138 (exit $ac_status); }; }; then 16139 ac_cv_type_int32_t=yes 16140else 16141 echo "$as_me: failed program was:" >&5 16142sed 's/^/| /' conftest.$ac_ext >&5 16143 16144ac_cv_type_int32_t=no 16145fi 16146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16147fi 16148echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 16149echo "${ECHO_T}$ac_cv_type_int32_t" >&6 16150if test $ac_cv_type_int32_t = yes; then 16151 : 16152else 16153 16154cat >>confdefs.h <<_ACEOF 16155#define int32_t signed long long 16156_ACEOF 16157 16158fi 16159 16160 fi 16161 if test "$dc_cv_name" = "short"; then 16162 echo "$as_me:$LINENO: checking for int32_t" >&5 16163echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 16164if test "${ac_cv_type_int32_t+set}" = set; then 16165 echo $ECHO_N "(cached) $ECHO_C" >&6 16166else 16167 cat >conftest.$ac_ext <<_ACEOF 16168/* confdefs.h. */ 16169_ACEOF 16170cat confdefs.h >>conftest.$ac_ext 16171cat >>conftest.$ac_ext <<_ACEOF 16172/* end confdefs.h. */ 16173$ac_includes_default 16174int 16175main () 16176{ 16177if ((int32_t *) 0) 16178 return 0; 16179if (sizeof (int32_t)) 16180 return 0; 16181 ; 16182 return 0; 16183} 16184_ACEOF 16185rm -f conftest.$ac_objext 16186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16187 (eval $ac_compile) 2>conftest.er1 16188 ac_status=$? 16189 grep -v '^ *+' conftest.er1 >conftest.err 16190 rm -f conftest.er1 16191 cat conftest.err >&5 16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16193 (exit $ac_status); } && 16194 { ac_try='test -z "$ac_c_werror_flag" 16195 || test ! -s conftest.err' 16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16197 (eval $ac_try) 2>&5 16198 ac_status=$? 16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16200 (exit $ac_status); }; } && 16201 { ac_try='test -s conftest.$ac_objext' 16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16203 (eval $ac_try) 2>&5 16204 ac_status=$? 16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16206 (exit $ac_status); }; }; then 16207 ac_cv_type_int32_t=yes 16208else 16209 echo "$as_me: failed program was:" >&5 16210sed 's/^/| /' conftest.$ac_ext >&5 16211 16212ac_cv_type_int32_t=no 16213fi 16214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16215fi 16216echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 16217echo "${ECHO_T}$ac_cv_type_int32_t" >&6 16218if test $ac_cv_type_int32_t = yes; then 16219 : 16220else 16221 16222cat >>confdefs.h <<_ACEOF 16223#define int32_t signed short 16224_ACEOF 16225 16226fi 16227 16228 fi 16229 FOUND=1 16230 break 16231 fi 16232 done 16233 16234 16235 if test -z "$ac_cv_sizeof_long"; then 16236 echo "$as_me:$LINENO: checking for inline" >&5 16237echo $ECHO_N "checking for inline... $ECHO_C" >&6 16238if test "${ac_cv_c_inline+set}" = set; then 16239 echo $ECHO_N "(cached) $ECHO_C" >&6 16240else 16241 ac_cv_c_inline=no 16242for ac_kw in inline __inline__ __inline; do 16243 cat >conftest.$ac_ext <<_ACEOF 16244/* confdefs.h. */ 16245_ACEOF 16246cat confdefs.h >>conftest.$ac_ext 16247cat >>conftest.$ac_ext <<_ACEOF 16248/* end confdefs.h. */ 16249#ifndef __cplusplus 16250typedef int foo_t; 16251static $ac_kw foo_t static_foo () {return 0; } 16252$ac_kw foo_t foo () {return 0; } 16253#endif 16254 16255_ACEOF 16256rm -f conftest.$ac_objext 16257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16258 (eval $ac_compile) 2>conftest.er1 16259 ac_status=$? 16260 grep -v '^ *+' conftest.er1 >conftest.err 16261 rm -f conftest.er1 16262 cat conftest.err >&5 16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16264 (exit $ac_status); } && 16265 { ac_try='test -z "$ac_c_werror_flag" 16266 || test ! -s conftest.err' 16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16268 (eval $ac_try) 2>&5 16269 ac_status=$? 16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16271 (exit $ac_status); }; } && 16272 { ac_try='test -s conftest.$ac_objext' 16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16274 (eval $ac_try) 2>&5 16275 ac_status=$? 16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16277 (exit $ac_status); }; }; then 16278 ac_cv_c_inline=$ac_kw; break 16279else 16280 echo "$as_me: failed program was:" >&5 16281sed 's/^/| /' conftest.$ac_ext >&5 16282 16283fi 16284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16285done 16286 16287fi 16288echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 16289echo "${ECHO_T}$ac_cv_c_inline" >&6 16290 16291 16292case $ac_cv_c_inline in 16293 inline | yes) ;; 16294 *) 16295 case $ac_cv_c_inline in 16296 no) ac_val=;; 16297 *) ac_val=$ac_cv_c_inline;; 16298 esac 16299 cat >>confdefs.h <<_ACEOF 16300#ifndef __cplusplus 16301#define inline $ac_val 16302#endif 16303_ACEOF 16304 ;; 16305esac 16306 16307 echo "$as_me:$LINENO: checking for long long" >&5 16308echo $ECHO_N "checking for long long... $ECHO_C" >&6 16309if test "${ac_cv_type_long_long+set}" = set; then 16310 echo $ECHO_N "(cached) $ECHO_C" >&6 16311else 16312 cat >conftest.$ac_ext <<_ACEOF 16313/* confdefs.h. */ 16314_ACEOF 16315cat confdefs.h >>conftest.$ac_ext 16316cat >>conftest.$ac_ext <<_ACEOF 16317/* end confdefs.h. */ 16318$ac_includes_default 16319int 16320main () 16321{ 16322if ((long long *) 0) 16323 return 0; 16324if (sizeof (long long)) 16325 return 0; 16326 ; 16327 return 0; 16328} 16329_ACEOF 16330rm -f conftest.$ac_objext 16331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16332 (eval $ac_compile) 2>conftest.er1 16333 ac_status=$? 16334 grep -v '^ *+' conftest.er1 >conftest.err 16335 rm -f conftest.er1 16336 cat conftest.err >&5 16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16338 (exit $ac_status); } && 16339 { ac_try='test -z "$ac_c_werror_flag" 16340 || test ! -s conftest.err' 16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16342 (eval $ac_try) 2>&5 16343 ac_status=$? 16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16345 (exit $ac_status); }; } && 16346 { ac_try='test -s conftest.$ac_objext' 16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16348 (eval $ac_try) 2>&5 16349 ac_status=$? 16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16351 (exit $ac_status); }; }; then 16352 ac_cv_type_long_long=yes 16353else 16354 echo "$as_me: failed program was:" >&5 16355sed 's/^/| /' conftest.$ac_ext >&5 16356 16357ac_cv_type_long_long=no 16358fi 16359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16360fi 16361echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 16362echo "${ECHO_T}$ac_cv_type_long_long" >&6 16363 16364echo "$as_me:$LINENO: checking size of long long" >&5 16365echo $ECHO_N "checking size of long long... $ECHO_C" >&6 16366if test "${ac_cv_sizeof_long_long+set}" = set; then 16367 echo $ECHO_N "(cached) $ECHO_C" >&6 16368else 16369 if test "$ac_cv_type_long_long" = yes; then 16370 # The cast to unsigned long works around a bug in the HP C Compiler 16371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16373 # This bug is HP SR number 8606223364. 16374 if test "$cross_compiling" = yes; then 16375 # Depending upon the size, compute the lo and hi bounds. 16376cat >conftest.$ac_ext <<_ACEOF 16377/* confdefs.h. */ 16378_ACEOF 16379cat confdefs.h >>conftest.$ac_ext 16380cat >>conftest.$ac_ext <<_ACEOF 16381/* end confdefs.h. */ 16382$ac_includes_default 16383int 16384main () 16385{ 16386static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 16387test_array [0] = 0 16388 16389 ; 16390 return 0; 16391} 16392_ACEOF 16393rm -f conftest.$ac_objext 16394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16395 (eval $ac_compile) 2>conftest.er1 16396 ac_status=$? 16397 grep -v '^ *+' conftest.er1 >conftest.err 16398 rm -f conftest.er1 16399 cat conftest.err >&5 16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16401 (exit $ac_status); } && 16402 { ac_try='test -z "$ac_c_werror_flag" 16403 || test ! -s conftest.err' 16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16405 (eval $ac_try) 2>&5 16406 ac_status=$? 16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16408 (exit $ac_status); }; } && 16409 { ac_try='test -s conftest.$ac_objext' 16410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16411 (eval $ac_try) 2>&5 16412 ac_status=$? 16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16414 (exit $ac_status); }; }; then 16415 ac_lo=0 ac_mid=0 16416 while :; do 16417 cat >conftest.$ac_ext <<_ACEOF 16418/* confdefs.h. */ 16419_ACEOF 16420cat confdefs.h >>conftest.$ac_ext 16421cat >>conftest.$ac_ext <<_ACEOF 16422/* end confdefs.h. */ 16423$ac_includes_default 16424int 16425main () 16426{ 16427static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 16428test_array [0] = 0 16429 16430 ; 16431 return 0; 16432} 16433_ACEOF 16434rm -f conftest.$ac_objext 16435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16436 (eval $ac_compile) 2>conftest.er1 16437 ac_status=$? 16438 grep -v '^ *+' conftest.er1 >conftest.err 16439 rm -f conftest.er1 16440 cat conftest.err >&5 16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16442 (exit $ac_status); } && 16443 { ac_try='test -z "$ac_c_werror_flag" 16444 || test ! -s conftest.err' 16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16446 (eval $ac_try) 2>&5 16447 ac_status=$? 16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16449 (exit $ac_status); }; } && 16450 { ac_try='test -s conftest.$ac_objext' 16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16452 (eval $ac_try) 2>&5 16453 ac_status=$? 16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16455 (exit $ac_status); }; }; then 16456 ac_hi=$ac_mid; break 16457else 16458 echo "$as_me: failed program was:" >&5 16459sed 's/^/| /' conftest.$ac_ext >&5 16460 16461ac_lo=`expr $ac_mid + 1` 16462 if test $ac_lo -le $ac_mid; then 16463 ac_lo= ac_hi= 16464 break 16465 fi 16466 ac_mid=`expr 2 '*' $ac_mid + 1` 16467fi 16468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16469 done 16470else 16471 echo "$as_me: failed program was:" >&5 16472sed 's/^/| /' conftest.$ac_ext >&5 16473 16474cat >conftest.$ac_ext <<_ACEOF 16475/* confdefs.h. */ 16476_ACEOF 16477cat confdefs.h >>conftest.$ac_ext 16478cat >>conftest.$ac_ext <<_ACEOF 16479/* end confdefs.h. */ 16480$ac_includes_default 16481int 16482main () 16483{ 16484static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 16485test_array [0] = 0 16486 16487 ; 16488 return 0; 16489} 16490_ACEOF 16491rm -f conftest.$ac_objext 16492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16493 (eval $ac_compile) 2>conftest.er1 16494 ac_status=$? 16495 grep -v '^ *+' conftest.er1 >conftest.err 16496 rm -f conftest.er1 16497 cat conftest.err >&5 16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16499 (exit $ac_status); } && 16500 { ac_try='test -z "$ac_c_werror_flag" 16501 || test ! -s conftest.err' 16502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16503 (eval $ac_try) 2>&5 16504 ac_status=$? 16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16506 (exit $ac_status); }; } && 16507 { ac_try='test -s conftest.$ac_objext' 16508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16509 (eval $ac_try) 2>&5 16510 ac_status=$? 16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16512 (exit $ac_status); }; }; then 16513 ac_hi=-1 ac_mid=-1 16514 while :; do 16515 cat >conftest.$ac_ext <<_ACEOF 16516/* confdefs.h. */ 16517_ACEOF 16518cat confdefs.h >>conftest.$ac_ext 16519cat >>conftest.$ac_ext <<_ACEOF 16520/* end confdefs.h. */ 16521$ac_includes_default 16522int 16523main () 16524{ 16525static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 16526test_array [0] = 0 16527 16528 ; 16529 return 0; 16530} 16531_ACEOF 16532rm -f conftest.$ac_objext 16533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16534 (eval $ac_compile) 2>conftest.er1 16535 ac_status=$? 16536 grep -v '^ *+' conftest.er1 >conftest.err 16537 rm -f conftest.er1 16538 cat conftest.err >&5 16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16540 (exit $ac_status); } && 16541 { ac_try='test -z "$ac_c_werror_flag" 16542 || test ! -s conftest.err' 16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16544 (eval $ac_try) 2>&5 16545 ac_status=$? 16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16547 (exit $ac_status); }; } && 16548 { ac_try='test -s conftest.$ac_objext' 16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16550 (eval $ac_try) 2>&5 16551 ac_status=$? 16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16553 (exit $ac_status); }; }; then 16554 ac_lo=$ac_mid; break 16555else 16556 echo "$as_me: failed program was:" >&5 16557sed 's/^/| /' conftest.$ac_ext >&5 16558 16559ac_hi=`expr '(' $ac_mid ')' - 1` 16560 if test $ac_mid -le $ac_hi; then 16561 ac_lo= ac_hi= 16562 break 16563 fi 16564 ac_mid=`expr 2 '*' $ac_mid` 16565fi 16566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16567 done 16568else 16569 echo "$as_me: failed program was:" >&5 16570sed 's/^/| /' conftest.$ac_ext >&5 16571 16572ac_lo= ac_hi= 16573fi 16574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16575fi 16576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16577# Binary search between lo and hi bounds. 16578while test "x$ac_lo" != "x$ac_hi"; do 16579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 16580 cat >conftest.$ac_ext <<_ACEOF 16581/* confdefs.h. */ 16582_ACEOF 16583cat confdefs.h >>conftest.$ac_ext 16584cat >>conftest.$ac_ext <<_ACEOF 16585/* end confdefs.h. */ 16586$ac_includes_default 16587int 16588main () 16589{ 16590static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 16591test_array [0] = 0 16592 16593 ; 16594 return 0; 16595} 16596_ACEOF 16597rm -f conftest.$ac_objext 16598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16599 (eval $ac_compile) 2>conftest.er1 16600 ac_status=$? 16601 grep -v '^ *+' conftest.er1 >conftest.err 16602 rm -f conftest.er1 16603 cat conftest.err >&5 16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16605 (exit $ac_status); } && 16606 { ac_try='test -z "$ac_c_werror_flag" 16607 || test ! -s conftest.err' 16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16609 (eval $ac_try) 2>&5 16610 ac_status=$? 16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16612 (exit $ac_status); }; } && 16613 { ac_try='test -s conftest.$ac_objext' 16614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16615 (eval $ac_try) 2>&5 16616 ac_status=$? 16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16618 (exit $ac_status); }; }; then 16619 ac_hi=$ac_mid 16620else 16621 echo "$as_me: failed program was:" >&5 16622sed 's/^/| /' conftest.$ac_ext >&5 16623 16624ac_lo=`expr '(' $ac_mid ')' + 1` 16625fi 16626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16627done 16628case $ac_lo in 16629?*) ac_cv_sizeof_long_long=$ac_lo;; 16630'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 16631See \`config.log' for more details." >&5 16632echo "$as_me: error: cannot compute sizeof (long long), 77 16633See \`config.log' for more details." >&2;} 16634 { (exit 1); exit 1; }; } ;; 16635esac 16636else 16637 if test "$cross_compiling" = yes; then 16638 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 16639See \`config.log' for more details." >&5 16640echo "$as_me: error: cannot run test program while cross compiling 16641See \`config.log' for more details." >&2;} 16642 { (exit 1); exit 1; }; } 16643else 16644 cat >conftest.$ac_ext <<_ACEOF 16645/* confdefs.h. */ 16646_ACEOF 16647cat confdefs.h >>conftest.$ac_ext 16648cat >>conftest.$ac_ext <<_ACEOF 16649/* end confdefs.h. */ 16650$ac_includes_default 16651long longval () { return (long) (sizeof (long long)); } 16652unsigned long ulongval () { return (long) (sizeof (long long)); } 16653#include <stdio.h> 16654#include <stdlib.h> 16655int 16656main () 16657{ 16658 16659 FILE *f = fopen ("conftest.val", "w"); 16660 if (! f) 16661 exit (1); 16662 if (((long) (sizeof (long long))) < 0) 16663 { 16664 long i = longval (); 16665 if (i != ((long) (sizeof (long long)))) 16666 exit (1); 16667 fprintf (f, "%ld\n", i); 16668 } 16669 else 16670 { 16671 unsigned long i = ulongval (); 16672 if (i != ((long) (sizeof (long long)))) 16673 exit (1); 16674 fprintf (f, "%lu\n", i); 16675 } 16676 exit (ferror (f) || fclose (f) != 0); 16677 16678 ; 16679 return 0; 16680} 16681_ACEOF 16682rm -f conftest$ac_exeext 16683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16684 (eval $ac_link) 2>&5 16685 ac_status=$? 16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16689 (eval $ac_try) 2>&5 16690 ac_status=$? 16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16692 (exit $ac_status); }; }; then 16693 ac_cv_sizeof_long_long=`cat conftest.val` 16694else 16695 echo "$as_me: program exited with status $ac_status" >&5 16696echo "$as_me: failed program was:" >&5 16697sed 's/^/| /' conftest.$ac_ext >&5 16698 16699( exit $ac_status ) 16700{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 16701See \`config.log' for more details." >&5 16702echo "$as_me: error: cannot compute sizeof (long long), 77 16703See \`config.log' for more details." >&2;} 16704 { (exit 1); exit 1; }; } 16705fi 16706rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16707fi 16708fi 16709rm -f conftest.val 16710else 16711 ac_cv_sizeof_long_long=0 16712fi 16713fi 16714echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 16715echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 16716cat >>confdefs.h <<_ACEOF 16717#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 16718_ACEOF 16719 16720 16721 echo "$as_me:$LINENO: checking for long" >&5 16722echo $ECHO_N "checking for long... $ECHO_C" >&6 16723if test "${ac_cv_type_long+set}" = set; then 16724 echo $ECHO_N "(cached) $ECHO_C" >&6 16725else 16726 cat >conftest.$ac_ext <<_ACEOF 16727/* confdefs.h. */ 16728_ACEOF 16729cat confdefs.h >>conftest.$ac_ext 16730cat >>conftest.$ac_ext <<_ACEOF 16731/* end confdefs.h. */ 16732$ac_includes_default 16733int 16734main () 16735{ 16736if ((long *) 0) 16737 return 0; 16738if (sizeof (long)) 16739 return 0; 16740 ; 16741 return 0; 16742} 16743_ACEOF 16744rm -f conftest.$ac_objext 16745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16746 (eval $ac_compile) 2>conftest.er1 16747 ac_status=$? 16748 grep -v '^ *+' conftest.er1 >conftest.err 16749 rm -f conftest.er1 16750 cat conftest.err >&5 16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16752 (exit $ac_status); } && 16753 { ac_try='test -z "$ac_c_werror_flag" 16754 || test ! -s conftest.err' 16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16756 (eval $ac_try) 2>&5 16757 ac_status=$? 16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16759 (exit $ac_status); }; } && 16760 { ac_try='test -s conftest.$ac_objext' 16761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16762 (eval $ac_try) 2>&5 16763 ac_status=$? 16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16765 (exit $ac_status); }; }; then 16766 ac_cv_type_long=yes 16767else 16768 echo "$as_me: failed program was:" >&5 16769sed 's/^/| /' conftest.$ac_ext >&5 16770 16771ac_cv_type_long=no 16772fi 16773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16774fi 16775echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 16776echo "${ECHO_T}$ac_cv_type_long" >&6 16777 16778echo "$as_me:$LINENO: checking size of long" >&5 16779echo $ECHO_N "checking size of long... $ECHO_C" >&6 16780if test "${ac_cv_sizeof_long+set}" = set; then 16781 echo $ECHO_N "(cached) $ECHO_C" >&6 16782else 16783 if test "$ac_cv_type_long" = yes; then 16784 # The cast to unsigned long works around a bug in the HP C Compiler 16785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16787 # This bug is HP SR number 8606223364. 16788 if test "$cross_compiling" = yes; then 16789 # Depending upon the size, compute the lo and hi bounds. 16790cat >conftest.$ac_ext <<_ACEOF 16791/* confdefs.h. */ 16792_ACEOF 16793cat confdefs.h >>conftest.$ac_ext 16794cat >>conftest.$ac_ext <<_ACEOF 16795/* end confdefs.h. */ 16796$ac_includes_default 16797int 16798main () 16799{ 16800static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 16801test_array [0] = 0 16802 16803 ; 16804 return 0; 16805} 16806_ACEOF 16807rm -f conftest.$ac_objext 16808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16809 (eval $ac_compile) 2>conftest.er1 16810 ac_status=$? 16811 grep -v '^ *+' conftest.er1 >conftest.err 16812 rm -f conftest.er1 16813 cat conftest.err >&5 16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16815 (exit $ac_status); } && 16816 { ac_try='test -z "$ac_c_werror_flag" 16817 || test ! -s conftest.err' 16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16819 (eval $ac_try) 2>&5 16820 ac_status=$? 16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16822 (exit $ac_status); }; } && 16823 { ac_try='test -s conftest.$ac_objext' 16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16825 (eval $ac_try) 2>&5 16826 ac_status=$? 16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16828 (exit $ac_status); }; }; then 16829 ac_lo=0 ac_mid=0 16830 while :; do 16831 cat >conftest.$ac_ext <<_ACEOF 16832/* confdefs.h. */ 16833_ACEOF 16834cat confdefs.h >>conftest.$ac_ext 16835cat >>conftest.$ac_ext <<_ACEOF 16836/* end confdefs.h. */ 16837$ac_includes_default 16838int 16839main () 16840{ 16841static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 16842test_array [0] = 0 16843 16844 ; 16845 return 0; 16846} 16847_ACEOF 16848rm -f conftest.$ac_objext 16849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16850 (eval $ac_compile) 2>conftest.er1 16851 ac_status=$? 16852 grep -v '^ *+' conftest.er1 >conftest.err 16853 rm -f conftest.er1 16854 cat conftest.err >&5 16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16856 (exit $ac_status); } && 16857 { ac_try='test -z "$ac_c_werror_flag" 16858 || test ! -s conftest.err' 16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16860 (eval $ac_try) 2>&5 16861 ac_status=$? 16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16863 (exit $ac_status); }; } && 16864 { ac_try='test -s conftest.$ac_objext' 16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16866 (eval $ac_try) 2>&5 16867 ac_status=$? 16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16869 (exit $ac_status); }; }; then 16870 ac_hi=$ac_mid; break 16871else 16872 echo "$as_me: failed program was:" >&5 16873sed 's/^/| /' conftest.$ac_ext >&5 16874 16875ac_lo=`expr $ac_mid + 1` 16876 if test $ac_lo -le $ac_mid; then 16877 ac_lo= ac_hi= 16878 break 16879 fi 16880 ac_mid=`expr 2 '*' $ac_mid + 1` 16881fi 16882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16883 done 16884else 16885 echo "$as_me: failed program was:" >&5 16886sed 's/^/| /' conftest.$ac_ext >&5 16887 16888cat >conftest.$ac_ext <<_ACEOF 16889/* confdefs.h. */ 16890_ACEOF 16891cat confdefs.h >>conftest.$ac_ext 16892cat >>conftest.$ac_ext <<_ACEOF 16893/* end confdefs.h. */ 16894$ac_includes_default 16895int 16896main () 16897{ 16898static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 16899test_array [0] = 0 16900 16901 ; 16902 return 0; 16903} 16904_ACEOF 16905rm -f conftest.$ac_objext 16906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16907 (eval $ac_compile) 2>conftest.er1 16908 ac_status=$? 16909 grep -v '^ *+' conftest.er1 >conftest.err 16910 rm -f conftest.er1 16911 cat conftest.err >&5 16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16913 (exit $ac_status); } && 16914 { ac_try='test -z "$ac_c_werror_flag" 16915 || test ! -s conftest.err' 16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16917 (eval $ac_try) 2>&5 16918 ac_status=$? 16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16920 (exit $ac_status); }; } && 16921 { ac_try='test -s conftest.$ac_objext' 16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16923 (eval $ac_try) 2>&5 16924 ac_status=$? 16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16926 (exit $ac_status); }; }; then 16927 ac_hi=-1 ac_mid=-1 16928 while :; do 16929 cat >conftest.$ac_ext <<_ACEOF 16930/* confdefs.h. */ 16931_ACEOF 16932cat confdefs.h >>conftest.$ac_ext 16933cat >>conftest.$ac_ext <<_ACEOF 16934/* end confdefs.h. */ 16935$ac_includes_default 16936int 16937main () 16938{ 16939static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 16940test_array [0] = 0 16941 16942 ; 16943 return 0; 16944} 16945_ACEOF 16946rm -f conftest.$ac_objext 16947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16948 (eval $ac_compile) 2>conftest.er1 16949 ac_status=$? 16950 grep -v '^ *+' conftest.er1 >conftest.err 16951 rm -f conftest.er1 16952 cat conftest.err >&5 16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16954 (exit $ac_status); } && 16955 { ac_try='test -z "$ac_c_werror_flag" 16956 || test ! -s conftest.err' 16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16958 (eval $ac_try) 2>&5 16959 ac_status=$? 16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16961 (exit $ac_status); }; } && 16962 { ac_try='test -s conftest.$ac_objext' 16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16964 (eval $ac_try) 2>&5 16965 ac_status=$? 16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16967 (exit $ac_status); }; }; then 16968 ac_lo=$ac_mid; break 16969else 16970 echo "$as_me: failed program was:" >&5 16971sed 's/^/| /' conftest.$ac_ext >&5 16972 16973ac_hi=`expr '(' $ac_mid ')' - 1` 16974 if test $ac_mid -le $ac_hi; then 16975 ac_lo= ac_hi= 16976 break 16977 fi 16978 ac_mid=`expr 2 '*' $ac_mid` 16979fi 16980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16981 done 16982else 16983 echo "$as_me: failed program was:" >&5 16984sed 's/^/| /' conftest.$ac_ext >&5 16985 16986ac_lo= ac_hi= 16987fi 16988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16989fi 16990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16991# Binary search between lo and hi bounds. 16992while test "x$ac_lo" != "x$ac_hi"; do 16993 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 16994 cat >conftest.$ac_ext <<_ACEOF 16995/* confdefs.h. */ 16996_ACEOF 16997cat confdefs.h >>conftest.$ac_ext 16998cat >>conftest.$ac_ext <<_ACEOF 16999/* end confdefs.h. */ 17000$ac_includes_default 17001int 17002main () 17003{ 17004static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 17005test_array [0] = 0 17006 17007 ; 17008 return 0; 17009} 17010_ACEOF 17011rm -f conftest.$ac_objext 17012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17013 (eval $ac_compile) 2>conftest.er1 17014 ac_status=$? 17015 grep -v '^ *+' conftest.er1 >conftest.err 17016 rm -f conftest.er1 17017 cat conftest.err >&5 17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17019 (exit $ac_status); } && 17020 { ac_try='test -z "$ac_c_werror_flag" 17021 || test ! -s conftest.err' 17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17023 (eval $ac_try) 2>&5 17024 ac_status=$? 17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17026 (exit $ac_status); }; } && 17027 { ac_try='test -s conftest.$ac_objext' 17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17029 (eval $ac_try) 2>&5 17030 ac_status=$? 17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17032 (exit $ac_status); }; }; then 17033 ac_hi=$ac_mid 17034else 17035 echo "$as_me: failed program was:" >&5 17036sed 's/^/| /' conftest.$ac_ext >&5 17037 17038ac_lo=`expr '(' $ac_mid ')' + 1` 17039fi 17040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17041done 17042case $ac_lo in 17043?*) ac_cv_sizeof_long=$ac_lo;; 17044'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 17045See \`config.log' for more details." >&5 17046echo "$as_me: error: cannot compute sizeof (long), 77 17047See \`config.log' for more details." >&2;} 17048 { (exit 1); exit 1; }; } ;; 17049esac 17050else 17051 if test "$cross_compiling" = yes; then 17052 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 17053See \`config.log' for more details." >&5 17054echo "$as_me: error: cannot run test program while cross compiling 17055See \`config.log' for more details." >&2;} 17056 { (exit 1); exit 1; }; } 17057else 17058 cat >conftest.$ac_ext <<_ACEOF 17059/* confdefs.h. */ 17060_ACEOF 17061cat confdefs.h >>conftest.$ac_ext 17062cat >>conftest.$ac_ext <<_ACEOF 17063/* end confdefs.h. */ 17064$ac_includes_default 17065long longval () { return (long) (sizeof (long)); } 17066unsigned long ulongval () { return (long) (sizeof (long)); } 17067#include <stdio.h> 17068#include <stdlib.h> 17069int 17070main () 17071{ 17072 17073 FILE *f = fopen ("conftest.val", "w"); 17074 if (! f) 17075 exit (1); 17076 if (((long) (sizeof (long))) < 0) 17077 { 17078 long i = longval (); 17079 if (i != ((long) (sizeof (long)))) 17080 exit (1); 17081 fprintf (f, "%ld\n", i); 17082 } 17083 else 17084 { 17085 unsigned long i = ulongval (); 17086 if (i != ((long) (sizeof (long)))) 17087 exit (1); 17088 fprintf (f, "%lu\n", i); 17089 } 17090 exit (ferror (f) || fclose (f) != 0); 17091 17092 ; 17093 return 0; 17094} 17095_ACEOF 17096rm -f conftest$ac_exeext 17097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17098 (eval $ac_link) 2>&5 17099 ac_status=$? 17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17103 (eval $ac_try) 2>&5 17104 ac_status=$? 17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17106 (exit $ac_status); }; }; then 17107 ac_cv_sizeof_long=`cat conftest.val` 17108else 17109 echo "$as_me: program exited with status $ac_status" >&5 17110echo "$as_me: failed program was:" >&5 17111sed 's/^/| /' conftest.$ac_ext >&5 17112 17113( exit $ac_status ) 17114{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 17115See \`config.log' for more details." >&5 17116echo "$as_me: error: cannot compute sizeof (long), 77 17117See \`config.log' for more details." >&2;} 17118 { (exit 1); exit 1; }; } 17119fi 17120rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17121fi 17122fi 17123rm -f conftest.val 17124else 17125 ac_cv_sizeof_long=0 17126fi 17127fi 17128echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 17129echo "${ECHO_T}$ac_cv_sizeof_long" >&6 17130cat >>confdefs.h <<_ACEOF 17131#define SIZEOF_LONG $ac_cv_sizeof_long 17132_ACEOF 17133 17134 17135 echo "$as_me:$LINENO: checking for int" >&5 17136echo $ECHO_N "checking for int... $ECHO_C" >&6 17137if test "${ac_cv_type_int+set}" = set; then 17138 echo $ECHO_N "(cached) $ECHO_C" >&6 17139else 17140 cat >conftest.$ac_ext <<_ACEOF 17141/* confdefs.h. */ 17142_ACEOF 17143cat confdefs.h >>conftest.$ac_ext 17144cat >>conftest.$ac_ext <<_ACEOF 17145/* end confdefs.h. */ 17146$ac_includes_default 17147int 17148main () 17149{ 17150if ((int *) 0) 17151 return 0; 17152if (sizeof (int)) 17153 return 0; 17154 ; 17155 return 0; 17156} 17157_ACEOF 17158rm -f conftest.$ac_objext 17159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17160 (eval $ac_compile) 2>conftest.er1 17161 ac_status=$? 17162 grep -v '^ *+' conftest.er1 >conftest.err 17163 rm -f conftest.er1 17164 cat conftest.err >&5 17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17166 (exit $ac_status); } && 17167 { ac_try='test -z "$ac_c_werror_flag" 17168 || test ! -s conftest.err' 17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17170 (eval $ac_try) 2>&5 17171 ac_status=$? 17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17173 (exit $ac_status); }; } && 17174 { ac_try='test -s conftest.$ac_objext' 17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17176 (eval $ac_try) 2>&5 17177 ac_status=$? 17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17179 (exit $ac_status); }; }; then 17180 ac_cv_type_int=yes 17181else 17182 echo "$as_me: failed program was:" >&5 17183sed 's/^/| /' conftest.$ac_ext >&5 17184 17185ac_cv_type_int=no 17186fi 17187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17188fi 17189echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 17190echo "${ECHO_T}$ac_cv_type_int" >&6 17191 17192echo "$as_me:$LINENO: checking size of int" >&5 17193echo $ECHO_N "checking size of int... $ECHO_C" >&6 17194if test "${ac_cv_sizeof_int+set}" = set; then 17195 echo $ECHO_N "(cached) $ECHO_C" >&6 17196else 17197 if test "$ac_cv_type_int" = yes; then 17198 # The cast to unsigned long works around a bug in the HP C Compiler 17199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17201 # This bug is HP SR number 8606223364. 17202 if test "$cross_compiling" = yes; then 17203 # Depending upon the size, compute the lo and hi bounds. 17204cat >conftest.$ac_ext <<_ACEOF 17205/* confdefs.h. */ 17206_ACEOF 17207cat confdefs.h >>conftest.$ac_ext 17208cat >>conftest.$ac_ext <<_ACEOF 17209/* end confdefs.h. */ 17210$ac_includes_default 17211int 17212main () 17213{ 17214static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 17215test_array [0] = 0 17216 17217 ; 17218 return 0; 17219} 17220_ACEOF 17221rm -f conftest.$ac_objext 17222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17223 (eval $ac_compile) 2>conftest.er1 17224 ac_status=$? 17225 grep -v '^ *+' conftest.er1 >conftest.err 17226 rm -f conftest.er1 17227 cat conftest.err >&5 17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17229 (exit $ac_status); } && 17230 { ac_try='test -z "$ac_c_werror_flag" 17231 || test ! -s conftest.err' 17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17233 (eval $ac_try) 2>&5 17234 ac_status=$? 17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17236 (exit $ac_status); }; } && 17237 { ac_try='test -s conftest.$ac_objext' 17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17239 (eval $ac_try) 2>&5 17240 ac_status=$? 17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17242 (exit $ac_status); }; }; then 17243 ac_lo=0 ac_mid=0 17244 while :; do 17245 cat >conftest.$ac_ext <<_ACEOF 17246/* confdefs.h. */ 17247_ACEOF 17248cat confdefs.h >>conftest.$ac_ext 17249cat >>conftest.$ac_ext <<_ACEOF 17250/* end confdefs.h. */ 17251$ac_includes_default 17252int 17253main () 17254{ 17255static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 17256test_array [0] = 0 17257 17258 ; 17259 return 0; 17260} 17261_ACEOF 17262rm -f conftest.$ac_objext 17263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17264 (eval $ac_compile) 2>conftest.er1 17265 ac_status=$? 17266 grep -v '^ *+' conftest.er1 >conftest.err 17267 rm -f conftest.er1 17268 cat conftest.err >&5 17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17270 (exit $ac_status); } && 17271 { ac_try='test -z "$ac_c_werror_flag" 17272 || test ! -s conftest.err' 17273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17274 (eval $ac_try) 2>&5 17275 ac_status=$? 17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17277 (exit $ac_status); }; } && 17278 { ac_try='test -s conftest.$ac_objext' 17279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17280 (eval $ac_try) 2>&5 17281 ac_status=$? 17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17283 (exit $ac_status); }; }; then 17284 ac_hi=$ac_mid; break 17285else 17286 echo "$as_me: failed program was:" >&5 17287sed 's/^/| /' conftest.$ac_ext >&5 17288 17289ac_lo=`expr $ac_mid + 1` 17290 if test $ac_lo -le $ac_mid; then 17291 ac_lo= ac_hi= 17292 break 17293 fi 17294 ac_mid=`expr 2 '*' $ac_mid + 1` 17295fi 17296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17297 done 17298else 17299 echo "$as_me: failed program was:" >&5 17300sed 's/^/| /' conftest.$ac_ext >&5 17301 17302cat >conftest.$ac_ext <<_ACEOF 17303/* confdefs.h. */ 17304_ACEOF 17305cat confdefs.h >>conftest.$ac_ext 17306cat >>conftest.$ac_ext <<_ACEOF 17307/* end confdefs.h. */ 17308$ac_includes_default 17309int 17310main () 17311{ 17312static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 17313test_array [0] = 0 17314 17315 ; 17316 return 0; 17317} 17318_ACEOF 17319rm -f conftest.$ac_objext 17320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17321 (eval $ac_compile) 2>conftest.er1 17322 ac_status=$? 17323 grep -v '^ *+' conftest.er1 >conftest.err 17324 rm -f conftest.er1 17325 cat conftest.err >&5 17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17327 (exit $ac_status); } && 17328 { ac_try='test -z "$ac_c_werror_flag" 17329 || test ! -s conftest.err' 17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17331 (eval $ac_try) 2>&5 17332 ac_status=$? 17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17334 (exit $ac_status); }; } && 17335 { ac_try='test -s conftest.$ac_objext' 17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17337 (eval $ac_try) 2>&5 17338 ac_status=$? 17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17340 (exit $ac_status); }; }; then 17341 ac_hi=-1 ac_mid=-1 17342 while :; do 17343 cat >conftest.$ac_ext <<_ACEOF 17344/* confdefs.h. */ 17345_ACEOF 17346cat confdefs.h >>conftest.$ac_ext 17347cat >>conftest.$ac_ext <<_ACEOF 17348/* end confdefs.h. */ 17349$ac_includes_default 17350int 17351main () 17352{ 17353static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 17354test_array [0] = 0 17355 17356 ; 17357 return 0; 17358} 17359_ACEOF 17360rm -f conftest.$ac_objext 17361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17362 (eval $ac_compile) 2>conftest.er1 17363 ac_status=$? 17364 grep -v '^ *+' conftest.er1 >conftest.err 17365 rm -f conftest.er1 17366 cat conftest.err >&5 17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17368 (exit $ac_status); } && 17369 { ac_try='test -z "$ac_c_werror_flag" 17370 || test ! -s conftest.err' 17371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17372 (eval $ac_try) 2>&5 17373 ac_status=$? 17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17375 (exit $ac_status); }; } && 17376 { ac_try='test -s conftest.$ac_objext' 17377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17378 (eval $ac_try) 2>&5 17379 ac_status=$? 17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17381 (exit $ac_status); }; }; then 17382 ac_lo=$ac_mid; break 17383else 17384 echo "$as_me: failed program was:" >&5 17385sed 's/^/| /' conftest.$ac_ext >&5 17386 17387ac_hi=`expr '(' $ac_mid ')' - 1` 17388 if test $ac_mid -le $ac_hi; then 17389 ac_lo= ac_hi= 17390 break 17391 fi 17392 ac_mid=`expr 2 '*' $ac_mid` 17393fi 17394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17395 done 17396else 17397 echo "$as_me: failed program was:" >&5 17398sed 's/^/| /' conftest.$ac_ext >&5 17399 17400ac_lo= ac_hi= 17401fi 17402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17403fi 17404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17405# Binary search between lo and hi bounds. 17406while test "x$ac_lo" != "x$ac_hi"; do 17407 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 17408 cat >conftest.$ac_ext <<_ACEOF 17409/* confdefs.h. */ 17410_ACEOF 17411cat confdefs.h >>conftest.$ac_ext 17412cat >>conftest.$ac_ext <<_ACEOF 17413/* end confdefs.h. */ 17414$ac_includes_default 17415int 17416main () 17417{ 17418static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 17419test_array [0] = 0 17420 17421 ; 17422 return 0; 17423} 17424_ACEOF 17425rm -f conftest.$ac_objext 17426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17427 (eval $ac_compile) 2>conftest.er1 17428 ac_status=$? 17429 grep -v '^ *+' conftest.er1 >conftest.err 17430 rm -f conftest.er1 17431 cat conftest.err >&5 17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17433 (exit $ac_status); } && 17434 { ac_try='test -z "$ac_c_werror_flag" 17435 || test ! -s conftest.err' 17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17437 (eval $ac_try) 2>&5 17438 ac_status=$? 17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17440 (exit $ac_status); }; } && 17441 { ac_try='test -s conftest.$ac_objext' 17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17443 (eval $ac_try) 2>&5 17444 ac_status=$? 17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17446 (exit $ac_status); }; }; then 17447 ac_hi=$ac_mid 17448else 17449 echo "$as_me: failed program was:" >&5 17450sed 's/^/| /' conftest.$ac_ext >&5 17451 17452ac_lo=`expr '(' $ac_mid ')' + 1` 17453fi 17454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17455done 17456case $ac_lo in 17457?*) ac_cv_sizeof_int=$ac_lo;; 17458'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 17459See \`config.log' for more details." >&5 17460echo "$as_me: error: cannot compute sizeof (int), 77 17461See \`config.log' for more details." >&2;} 17462 { (exit 1); exit 1; }; } ;; 17463esac 17464else 17465 if test "$cross_compiling" = yes; then 17466 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 17467See \`config.log' for more details." >&5 17468echo "$as_me: error: cannot run test program while cross compiling 17469See \`config.log' for more details." >&2;} 17470 { (exit 1); exit 1; }; } 17471else 17472 cat >conftest.$ac_ext <<_ACEOF 17473/* confdefs.h. */ 17474_ACEOF 17475cat confdefs.h >>conftest.$ac_ext 17476cat >>conftest.$ac_ext <<_ACEOF 17477/* end confdefs.h. */ 17478$ac_includes_default 17479long longval () { return (long) (sizeof (int)); } 17480unsigned long ulongval () { return (long) (sizeof (int)); } 17481#include <stdio.h> 17482#include <stdlib.h> 17483int 17484main () 17485{ 17486 17487 FILE *f = fopen ("conftest.val", "w"); 17488 if (! f) 17489 exit (1); 17490 if (((long) (sizeof (int))) < 0) 17491 { 17492 long i = longval (); 17493 if (i != ((long) (sizeof (int)))) 17494 exit (1); 17495 fprintf (f, "%ld\n", i); 17496 } 17497 else 17498 { 17499 unsigned long i = ulongval (); 17500 if (i != ((long) (sizeof (int)))) 17501 exit (1); 17502 fprintf (f, "%lu\n", i); 17503 } 17504 exit (ferror (f) || fclose (f) != 0); 17505 17506 ; 17507 return 0; 17508} 17509_ACEOF 17510rm -f conftest$ac_exeext 17511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17512 (eval $ac_link) 2>&5 17513 ac_status=$? 17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17517 (eval $ac_try) 2>&5 17518 ac_status=$? 17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17520 (exit $ac_status); }; }; then 17521 ac_cv_sizeof_int=`cat conftest.val` 17522else 17523 echo "$as_me: program exited with status $ac_status" >&5 17524echo "$as_me: failed program was:" >&5 17525sed 's/^/| /' conftest.$ac_ext >&5 17526 17527( exit $ac_status ) 17528{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 17529See \`config.log' for more details." >&5 17530echo "$as_me: error: cannot compute sizeof (int), 77 17531See \`config.log' for more details." >&2;} 17532 { (exit 1); exit 1; }; } 17533fi 17534rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17535fi 17536fi 17537rm -f conftest.val 17538else 17539 ac_cv_sizeof_int=0 17540fi 17541fi 17542echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 17543echo "${ECHO_T}$ac_cv_sizeof_int" >&6 17544cat >>confdefs.h <<_ACEOF 17545#define SIZEOF_INT $ac_cv_sizeof_int 17546_ACEOF 17547 17548 17549 echo "$as_me:$LINENO: checking for short" >&5 17550echo $ECHO_N "checking for short... $ECHO_C" >&6 17551if test "${ac_cv_type_short+set}" = set; then 17552 echo $ECHO_N "(cached) $ECHO_C" >&6 17553else 17554 cat >conftest.$ac_ext <<_ACEOF 17555/* confdefs.h. */ 17556_ACEOF 17557cat confdefs.h >>conftest.$ac_ext 17558cat >>conftest.$ac_ext <<_ACEOF 17559/* end confdefs.h. */ 17560$ac_includes_default 17561int 17562main () 17563{ 17564if ((short *) 0) 17565 return 0; 17566if (sizeof (short)) 17567 return 0; 17568 ; 17569 return 0; 17570} 17571_ACEOF 17572rm -f conftest.$ac_objext 17573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17574 (eval $ac_compile) 2>conftest.er1 17575 ac_status=$? 17576 grep -v '^ *+' conftest.er1 >conftest.err 17577 rm -f conftest.er1 17578 cat conftest.err >&5 17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17580 (exit $ac_status); } && 17581 { ac_try='test -z "$ac_c_werror_flag" 17582 || test ! -s conftest.err' 17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17584 (eval $ac_try) 2>&5 17585 ac_status=$? 17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17587 (exit $ac_status); }; } && 17588 { ac_try='test -s conftest.$ac_objext' 17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17590 (eval $ac_try) 2>&5 17591 ac_status=$? 17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17593 (exit $ac_status); }; }; then 17594 ac_cv_type_short=yes 17595else 17596 echo "$as_me: failed program was:" >&5 17597sed 's/^/| /' conftest.$ac_ext >&5 17598 17599ac_cv_type_short=no 17600fi 17601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17602fi 17603echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 17604echo "${ECHO_T}$ac_cv_type_short" >&6 17605 17606echo "$as_me:$LINENO: checking size of short" >&5 17607echo $ECHO_N "checking size of short... $ECHO_C" >&6 17608if test "${ac_cv_sizeof_short+set}" = set; then 17609 echo $ECHO_N "(cached) $ECHO_C" >&6 17610else 17611 if test "$ac_cv_type_short" = yes; then 17612 # The cast to unsigned long works around a bug in the HP C Compiler 17613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17615 # This bug is HP SR number 8606223364. 17616 if test "$cross_compiling" = yes; then 17617 # Depending upon the size, compute the lo and hi bounds. 17618cat >conftest.$ac_ext <<_ACEOF 17619/* confdefs.h. */ 17620_ACEOF 17621cat confdefs.h >>conftest.$ac_ext 17622cat >>conftest.$ac_ext <<_ACEOF 17623/* end confdefs.h. */ 17624$ac_includes_default 17625int 17626main () 17627{ 17628static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 17629test_array [0] = 0 17630 17631 ; 17632 return 0; 17633} 17634_ACEOF 17635rm -f conftest.$ac_objext 17636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17637 (eval $ac_compile) 2>conftest.er1 17638 ac_status=$? 17639 grep -v '^ *+' conftest.er1 >conftest.err 17640 rm -f conftest.er1 17641 cat conftest.err >&5 17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17643 (exit $ac_status); } && 17644 { ac_try='test -z "$ac_c_werror_flag" 17645 || test ! -s conftest.err' 17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17647 (eval $ac_try) 2>&5 17648 ac_status=$? 17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17650 (exit $ac_status); }; } && 17651 { ac_try='test -s conftest.$ac_objext' 17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17653 (eval $ac_try) 2>&5 17654 ac_status=$? 17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17656 (exit $ac_status); }; }; then 17657 ac_lo=0 ac_mid=0 17658 while :; do 17659 cat >conftest.$ac_ext <<_ACEOF 17660/* confdefs.h. */ 17661_ACEOF 17662cat confdefs.h >>conftest.$ac_ext 17663cat >>conftest.$ac_ext <<_ACEOF 17664/* end confdefs.h. */ 17665$ac_includes_default 17666int 17667main () 17668{ 17669static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 17670test_array [0] = 0 17671 17672 ; 17673 return 0; 17674} 17675_ACEOF 17676rm -f conftest.$ac_objext 17677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17678 (eval $ac_compile) 2>conftest.er1 17679 ac_status=$? 17680 grep -v '^ *+' conftest.er1 >conftest.err 17681 rm -f conftest.er1 17682 cat conftest.err >&5 17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17684 (exit $ac_status); } && 17685 { ac_try='test -z "$ac_c_werror_flag" 17686 || test ! -s conftest.err' 17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17688 (eval $ac_try) 2>&5 17689 ac_status=$? 17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17691 (exit $ac_status); }; } && 17692 { ac_try='test -s conftest.$ac_objext' 17693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17694 (eval $ac_try) 2>&5 17695 ac_status=$? 17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17697 (exit $ac_status); }; }; then 17698 ac_hi=$ac_mid; break 17699else 17700 echo "$as_me: failed program was:" >&5 17701sed 's/^/| /' conftest.$ac_ext >&5 17702 17703ac_lo=`expr $ac_mid + 1` 17704 if test $ac_lo -le $ac_mid; then 17705 ac_lo= ac_hi= 17706 break 17707 fi 17708 ac_mid=`expr 2 '*' $ac_mid + 1` 17709fi 17710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17711 done 17712else 17713 echo "$as_me: failed program was:" >&5 17714sed 's/^/| /' conftest.$ac_ext >&5 17715 17716cat >conftest.$ac_ext <<_ACEOF 17717/* confdefs.h. */ 17718_ACEOF 17719cat confdefs.h >>conftest.$ac_ext 17720cat >>conftest.$ac_ext <<_ACEOF 17721/* end confdefs.h. */ 17722$ac_includes_default 17723int 17724main () 17725{ 17726static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 17727test_array [0] = 0 17728 17729 ; 17730 return 0; 17731} 17732_ACEOF 17733rm -f conftest.$ac_objext 17734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17735 (eval $ac_compile) 2>conftest.er1 17736 ac_status=$? 17737 grep -v '^ *+' conftest.er1 >conftest.err 17738 rm -f conftest.er1 17739 cat conftest.err >&5 17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17741 (exit $ac_status); } && 17742 { ac_try='test -z "$ac_c_werror_flag" 17743 || test ! -s conftest.err' 17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17745 (eval $ac_try) 2>&5 17746 ac_status=$? 17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17748 (exit $ac_status); }; } && 17749 { ac_try='test -s conftest.$ac_objext' 17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17751 (eval $ac_try) 2>&5 17752 ac_status=$? 17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17754 (exit $ac_status); }; }; then 17755 ac_hi=-1 ac_mid=-1 17756 while :; do 17757 cat >conftest.$ac_ext <<_ACEOF 17758/* confdefs.h. */ 17759_ACEOF 17760cat confdefs.h >>conftest.$ac_ext 17761cat >>conftest.$ac_ext <<_ACEOF 17762/* end confdefs.h. */ 17763$ac_includes_default 17764int 17765main () 17766{ 17767static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 17768test_array [0] = 0 17769 17770 ; 17771 return 0; 17772} 17773_ACEOF 17774rm -f conftest.$ac_objext 17775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17776 (eval $ac_compile) 2>conftest.er1 17777 ac_status=$? 17778 grep -v '^ *+' conftest.er1 >conftest.err 17779 rm -f conftest.er1 17780 cat conftest.err >&5 17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17782 (exit $ac_status); } && 17783 { ac_try='test -z "$ac_c_werror_flag" 17784 || test ! -s conftest.err' 17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17786 (eval $ac_try) 2>&5 17787 ac_status=$? 17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17789 (exit $ac_status); }; } && 17790 { ac_try='test -s conftest.$ac_objext' 17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17792 (eval $ac_try) 2>&5 17793 ac_status=$? 17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17795 (exit $ac_status); }; }; then 17796 ac_lo=$ac_mid; break 17797else 17798 echo "$as_me: failed program was:" >&5 17799sed 's/^/| /' conftest.$ac_ext >&5 17800 17801ac_hi=`expr '(' $ac_mid ')' - 1` 17802 if test $ac_mid -le $ac_hi; then 17803 ac_lo= ac_hi= 17804 break 17805 fi 17806 ac_mid=`expr 2 '*' $ac_mid` 17807fi 17808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17809 done 17810else 17811 echo "$as_me: failed program was:" >&5 17812sed 's/^/| /' conftest.$ac_ext >&5 17813 17814ac_lo= ac_hi= 17815fi 17816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17817fi 17818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17819# Binary search between lo and hi bounds. 17820while test "x$ac_lo" != "x$ac_hi"; do 17821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 17822 cat >conftest.$ac_ext <<_ACEOF 17823/* confdefs.h. */ 17824_ACEOF 17825cat confdefs.h >>conftest.$ac_ext 17826cat >>conftest.$ac_ext <<_ACEOF 17827/* end confdefs.h. */ 17828$ac_includes_default 17829int 17830main () 17831{ 17832static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 17833test_array [0] = 0 17834 17835 ; 17836 return 0; 17837} 17838_ACEOF 17839rm -f conftest.$ac_objext 17840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17841 (eval $ac_compile) 2>conftest.er1 17842 ac_status=$? 17843 grep -v '^ *+' conftest.er1 >conftest.err 17844 rm -f conftest.er1 17845 cat conftest.err >&5 17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17847 (exit $ac_status); } && 17848 { ac_try='test -z "$ac_c_werror_flag" 17849 || test ! -s conftest.err' 17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17851 (eval $ac_try) 2>&5 17852 ac_status=$? 17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17854 (exit $ac_status); }; } && 17855 { ac_try='test -s conftest.$ac_objext' 17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17857 (eval $ac_try) 2>&5 17858 ac_status=$? 17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17860 (exit $ac_status); }; }; then 17861 ac_hi=$ac_mid 17862else 17863 echo "$as_me: failed program was:" >&5 17864sed 's/^/| /' conftest.$ac_ext >&5 17865 17866ac_lo=`expr '(' $ac_mid ')' + 1` 17867fi 17868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17869done 17870case $ac_lo in 17871?*) ac_cv_sizeof_short=$ac_lo;; 17872'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 17873See \`config.log' for more details." >&5 17874echo "$as_me: error: cannot compute sizeof (short), 77 17875See \`config.log' for more details." >&2;} 17876 { (exit 1); exit 1; }; } ;; 17877esac 17878else 17879 if test "$cross_compiling" = yes; then 17880 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 17881See \`config.log' for more details." >&5 17882echo "$as_me: error: cannot run test program while cross compiling 17883See \`config.log' for more details." >&2;} 17884 { (exit 1); exit 1; }; } 17885else 17886 cat >conftest.$ac_ext <<_ACEOF 17887/* confdefs.h. */ 17888_ACEOF 17889cat confdefs.h >>conftest.$ac_ext 17890cat >>conftest.$ac_ext <<_ACEOF 17891/* end confdefs.h. */ 17892$ac_includes_default 17893long longval () { return (long) (sizeof (short)); } 17894unsigned long ulongval () { return (long) (sizeof (short)); } 17895#include <stdio.h> 17896#include <stdlib.h> 17897int 17898main () 17899{ 17900 17901 FILE *f = fopen ("conftest.val", "w"); 17902 if (! f) 17903 exit (1); 17904 if (((long) (sizeof (short))) < 0) 17905 { 17906 long i = longval (); 17907 if (i != ((long) (sizeof (short)))) 17908 exit (1); 17909 fprintf (f, "%ld\n", i); 17910 } 17911 else 17912 { 17913 unsigned long i = ulongval (); 17914 if (i != ((long) (sizeof (short)))) 17915 exit (1); 17916 fprintf (f, "%lu\n", i); 17917 } 17918 exit (ferror (f) || fclose (f) != 0); 17919 17920 ; 17921 return 0; 17922} 17923_ACEOF 17924rm -f conftest$ac_exeext 17925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17926 (eval $ac_link) 2>&5 17927 ac_status=$? 17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17931 (eval $ac_try) 2>&5 17932 ac_status=$? 17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17934 (exit $ac_status); }; }; then 17935 ac_cv_sizeof_short=`cat conftest.val` 17936else 17937 echo "$as_me: program exited with status $ac_status" >&5 17938echo "$as_me: failed program was:" >&5 17939sed 's/^/| /' conftest.$ac_ext >&5 17940 17941( exit $ac_status ) 17942{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 17943See \`config.log' for more details." >&5 17944echo "$as_me: error: cannot compute sizeof (short), 77 17945See \`config.log' for more details." >&2;} 17946 { (exit 1); exit 1; }; } 17947fi 17948rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17949fi 17950fi 17951rm -f conftest.val 17952else 17953 ac_cv_sizeof_short=0 17954fi 17955fi 17956echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 17957echo "${ECHO_T}$ac_cv_sizeof_short" >&6 17958cat >>confdefs.h <<_ACEOF 17959#define SIZEOF_SHORT $ac_cv_sizeof_short 17960_ACEOF 17961 17962 17963 fi 17964 FOUND=0 17965 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 17966 dc_cv_size=`eval echo $dc_cv_loop` 17967 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 17968 if test "$dc_cv_size" = "2"; then 17969 if test "$dc_cv_name" = "int"; then 17970 echo "$as_me:$LINENO: checking for uint16_t" >&5 17971echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 17972if test "${ac_cv_type_uint16_t+set}" = set; then 17973 echo $ECHO_N "(cached) $ECHO_C" >&6 17974else 17975 cat >conftest.$ac_ext <<_ACEOF 17976/* confdefs.h. */ 17977_ACEOF 17978cat confdefs.h >>conftest.$ac_ext 17979cat >>conftest.$ac_ext <<_ACEOF 17980/* end confdefs.h. */ 17981$ac_includes_default 17982int 17983main () 17984{ 17985if ((uint16_t *) 0) 17986 return 0; 17987if (sizeof (uint16_t)) 17988 return 0; 17989 ; 17990 return 0; 17991} 17992_ACEOF 17993rm -f conftest.$ac_objext 17994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17995 (eval $ac_compile) 2>conftest.er1 17996 ac_status=$? 17997 grep -v '^ *+' conftest.er1 >conftest.err 17998 rm -f conftest.er1 17999 cat conftest.err >&5 18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18001 (exit $ac_status); } && 18002 { ac_try='test -z "$ac_c_werror_flag" 18003 || test ! -s conftest.err' 18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18005 (eval $ac_try) 2>&5 18006 ac_status=$? 18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18008 (exit $ac_status); }; } && 18009 { ac_try='test -s conftest.$ac_objext' 18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18011 (eval $ac_try) 2>&5 18012 ac_status=$? 18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18014 (exit $ac_status); }; }; then 18015 ac_cv_type_uint16_t=yes 18016else 18017 echo "$as_me: failed program was:" >&5 18018sed 's/^/| /' conftest.$ac_ext >&5 18019 18020ac_cv_type_uint16_t=no 18021fi 18022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18023fi 18024echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 18025echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 18026if test $ac_cv_type_uint16_t = yes; then 18027 : 18028else 18029 18030cat >>confdefs.h <<_ACEOF 18031#define uint16_t unsigned int 18032_ACEOF 18033 18034fi 18035 18036 fi 18037 if test "$dc_cv_name" = "long"; then 18038 echo "$as_me:$LINENO: checking for uint16_t" >&5 18039echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 18040if test "${ac_cv_type_uint16_t+set}" = set; then 18041 echo $ECHO_N "(cached) $ECHO_C" >&6 18042else 18043 cat >conftest.$ac_ext <<_ACEOF 18044/* confdefs.h. */ 18045_ACEOF 18046cat confdefs.h >>conftest.$ac_ext 18047cat >>conftest.$ac_ext <<_ACEOF 18048/* end confdefs.h. */ 18049$ac_includes_default 18050int 18051main () 18052{ 18053if ((uint16_t *) 0) 18054 return 0; 18055if (sizeof (uint16_t)) 18056 return 0; 18057 ; 18058 return 0; 18059} 18060_ACEOF 18061rm -f conftest.$ac_objext 18062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18063 (eval $ac_compile) 2>conftest.er1 18064 ac_status=$? 18065 grep -v '^ *+' conftest.er1 >conftest.err 18066 rm -f conftest.er1 18067 cat conftest.err >&5 18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18069 (exit $ac_status); } && 18070 { ac_try='test -z "$ac_c_werror_flag" 18071 || test ! -s conftest.err' 18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18073 (eval $ac_try) 2>&5 18074 ac_status=$? 18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18076 (exit $ac_status); }; } && 18077 { ac_try='test -s conftest.$ac_objext' 18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18079 (eval $ac_try) 2>&5 18080 ac_status=$? 18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18082 (exit $ac_status); }; }; then 18083 ac_cv_type_uint16_t=yes 18084else 18085 echo "$as_me: failed program was:" >&5 18086sed 's/^/| /' conftest.$ac_ext >&5 18087 18088ac_cv_type_uint16_t=no 18089fi 18090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18091fi 18092echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 18093echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 18094if test $ac_cv_type_uint16_t = yes; then 18095 : 18096else 18097 18098cat >>confdefs.h <<_ACEOF 18099#define uint16_t unsigned long 18100_ACEOF 18101 18102fi 18103 18104 fi 18105 if test "$dc_cv_name" = "long_long"; then 18106 echo "$as_me:$LINENO: checking for uint16_t" >&5 18107echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 18108if test "${ac_cv_type_uint16_t+set}" = set; then 18109 echo $ECHO_N "(cached) $ECHO_C" >&6 18110else 18111 cat >conftest.$ac_ext <<_ACEOF 18112/* confdefs.h. */ 18113_ACEOF 18114cat confdefs.h >>conftest.$ac_ext 18115cat >>conftest.$ac_ext <<_ACEOF 18116/* end confdefs.h. */ 18117$ac_includes_default 18118int 18119main () 18120{ 18121if ((uint16_t *) 0) 18122 return 0; 18123if (sizeof (uint16_t)) 18124 return 0; 18125 ; 18126 return 0; 18127} 18128_ACEOF 18129rm -f conftest.$ac_objext 18130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18131 (eval $ac_compile) 2>conftest.er1 18132 ac_status=$? 18133 grep -v '^ *+' conftest.er1 >conftest.err 18134 rm -f conftest.er1 18135 cat conftest.err >&5 18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18137 (exit $ac_status); } && 18138 { ac_try='test -z "$ac_c_werror_flag" 18139 || test ! -s conftest.err' 18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18141 (eval $ac_try) 2>&5 18142 ac_status=$? 18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18144 (exit $ac_status); }; } && 18145 { ac_try='test -s conftest.$ac_objext' 18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18147 (eval $ac_try) 2>&5 18148 ac_status=$? 18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18150 (exit $ac_status); }; }; then 18151 ac_cv_type_uint16_t=yes 18152else 18153 echo "$as_me: failed program was:" >&5 18154sed 's/^/| /' conftest.$ac_ext >&5 18155 18156ac_cv_type_uint16_t=no 18157fi 18158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18159fi 18160echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 18161echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 18162if test $ac_cv_type_uint16_t = yes; then 18163 : 18164else 18165 18166cat >>confdefs.h <<_ACEOF 18167#define uint16_t unsigned long long 18168_ACEOF 18169 18170fi 18171 18172 fi 18173 if test "$dc_cv_name" = "short"; then 18174 echo "$as_me:$LINENO: checking for uint16_t" >&5 18175echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 18176if test "${ac_cv_type_uint16_t+set}" = set; then 18177 echo $ECHO_N "(cached) $ECHO_C" >&6 18178else 18179 cat >conftest.$ac_ext <<_ACEOF 18180/* confdefs.h. */ 18181_ACEOF 18182cat confdefs.h >>conftest.$ac_ext 18183cat >>conftest.$ac_ext <<_ACEOF 18184/* end confdefs.h. */ 18185$ac_includes_default 18186int 18187main () 18188{ 18189if ((uint16_t *) 0) 18190 return 0; 18191if (sizeof (uint16_t)) 18192 return 0; 18193 ; 18194 return 0; 18195} 18196_ACEOF 18197rm -f conftest.$ac_objext 18198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18199 (eval $ac_compile) 2>conftest.er1 18200 ac_status=$? 18201 grep -v '^ *+' conftest.er1 >conftest.err 18202 rm -f conftest.er1 18203 cat conftest.err >&5 18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18205 (exit $ac_status); } && 18206 { ac_try='test -z "$ac_c_werror_flag" 18207 || test ! -s conftest.err' 18208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18209 (eval $ac_try) 2>&5 18210 ac_status=$? 18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18212 (exit $ac_status); }; } && 18213 { ac_try='test -s conftest.$ac_objext' 18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18215 (eval $ac_try) 2>&5 18216 ac_status=$? 18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18218 (exit $ac_status); }; }; then 18219 ac_cv_type_uint16_t=yes 18220else 18221 echo "$as_me: failed program was:" >&5 18222sed 's/^/| /' conftest.$ac_ext >&5 18223 18224ac_cv_type_uint16_t=no 18225fi 18226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18227fi 18228echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 18229echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 18230if test $ac_cv_type_uint16_t = yes; then 18231 : 18232else 18233 18234cat >>confdefs.h <<_ACEOF 18235#define uint16_t unsigned short 18236_ACEOF 18237 18238fi 18239 18240 fi 18241 FOUND=1 18242 break 18243 fi 18244 done 18245 18246 18247 if test -z "$ac_cv_sizeof_long"; then 18248 echo "$as_me:$LINENO: checking for inline" >&5 18249echo $ECHO_N "checking for inline... $ECHO_C" >&6 18250if test "${ac_cv_c_inline+set}" = set; then 18251 echo $ECHO_N "(cached) $ECHO_C" >&6 18252else 18253 ac_cv_c_inline=no 18254for ac_kw in inline __inline__ __inline; do 18255 cat >conftest.$ac_ext <<_ACEOF 18256/* confdefs.h. */ 18257_ACEOF 18258cat confdefs.h >>conftest.$ac_ext 18259cat >>conftest.$ac_ext <<_ACEOF 18260/* end confdefs.h. */ 18261#ifndef __cplusplus 18262typedef int foo_t; 18263static $ac_kw foo_t static_foo () {return 0; } 18264$ac_kw foo_t foo () {return 0; } 18265#endif 18266 18267_ACEOF 18268rm -f conftest.$ac_objext 18269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18270 (eval $ac_compile) 2>conftest.er1 18271 ac_status=$? 18272 grep -v '^ *+' conftest.er1 >conftest.err 18273 rm -f conftest.er1 18274 cat conftest.err >&5 18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18276 (exit $ac_status); } && 18277 { ac_try='test -z "$ac_c_werror_flag" 18278 || test ! -s conftest.err' 18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18280 (eval $ac_try) 2>&5 18281 ac_status=$? 18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18283 (exit $ac_status); }; } && 18284 { ac_try='test -s conftest.$ac_objext' 18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18286 (eval $ac_try) 2>&5 18287 ac_status=$? 18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18289 (exit $ac_status); }; }; then 18290 ac_cv_c_inline=$ac_kw; break 18291else 18292 echo "$as_me: failed program was:" >&5 18293sed 's/^/| /' conftest.$ac_ext >&5 18294 18295fi 18296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18297done 18298 18299fi 18300echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 18301echo "${ECHO_T}$ac_cv_c_inline" >&6 18302 18303 18304case $ac_cv_c_inline in 18305 inline | yes) ;; 18306 *) 18307 case $ac_cv_c_inline in 18308 no) ac_val=;; 18309 *) ac_val=$ac_cv_c_inline;; 18310 esac 18311 cat >>confdefs.h <<_ACEOF 18312#ifndef __cplusplus 18313#define inline $ac_val 18314#endif 18315_ACEOF 18316 ;; 18317esac 18318 18319 echo "$as_me:$LINENO: checking for long long" >&5 18320echo $ECHO_N "checking for long long... $ECHO_C" >&6 18321if test "${ac_cv_type_long_long+set}" = set; then 18322 echo $ECHO_N "(cached) $ECHO_C" >&6 18323else 18324 cat >conftest.$ac_ext <<_ACEOF 18325/* confdefs.h. */ 18326_ACEOF 18327cat confdefs.h >>conftest.$ac_ext 18328cat >>conftest.$ac_ext <<_ACEOF 18329/* end confdefs.h. */ 18330$ac_includes_default 18331int 18332main () 18333{ 18334if ((long long *) 0) 18335 return 0; 18336if (sizeof (long long)) 18337 return 0; 18338 ; 18339 return 0; 18340} 18341_ACEOF 18342rm -f conftest.$ac_objext 18343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18344 (eval $ac_compile) 2>conftest.er1 18345 ac_status=$? 18346 grep -v '^ *+' conftest.er1 >conftest.err 18347 rm -f conftest.er1 18348 cat conftest.err >&5 18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18350 (exit $ac_status); } && 18351 { ac_try='test -z "$ac_c_werror_flag" 18352 || test ! -s conftest.err' 18353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18354 (eval $ac_try) 2>&5 18355 ac_status=$? 18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18357 (exit $ac_status); }; } && 18358 { ac_try='test -s conftest.$ac_objext' 18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18360 (eval $ac_try) 2>&5 18361 ac_status=$? 18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18363 (exit $ac_status); }; }; then 18364 ac_cv_type_long_long=yes 18365else 18366 echo "$as_me: failed program was:" >&5 18367sed 's/^/| /' conftest.$ac_ext >&5 18368 18369ac_cv_type_long_long=no 18370fi 18371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18372fi 18373echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 18374echo "${ECHO_T}$ac_cv_type_long_long" >&6 18375 18376echo "$as_me:$LINENO: checking size of long long" >&5 18377echo $ECHO_N "checking size of long long... $ECHO_C" >&6 18378if test "${ac_cv_sizeof_long_long+set}" = set; then 18379 echo $ECHO_N "(cached) $ECHO_C" >&6 18380else 18381 if test "$ac_cv_type_long_long" = yes; then 18382 # The cast to unsigned long works around a bug in the HP C Compiler 18383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18385 # This bug is HP SR number 8606223364. 18386 if test "$cross_compiling" = yes; then 18387 # Depending upon the size, compute the lo and hi bounds. 18388cat >conftest.$ac_ext <<_ACEOF 18389/* confdefs.h. */ 18390_ACEOF 18391cat confdefs.h >>conftest.$ac_ext 18392cat >>conftest.$ac_ext <<_ACEOF 18393/* end confdefs.h. */ 18394$ac_includes_default 18395int 18396main () 18397{ 18398static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 18399test_array [0] = 0 18400 18401 ; 18402 return 0; 18403} 18404_ACEOF 18405rm -f conftest.$ac_objext 18406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18407 (eval $ac_compile) 2>conftest.er1 18408 ac_status=$? 18409 grep -v '^ *+' conftest.er1 >conftest.err 18410 rm -f conftest.er1 18411 cat conftest.err >&5 18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18413 (exit $ac_status); } && 18414 { ac_try='test -z "$ac_c_werror_flag" 18415 || test ! -s conftest.err' 18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18417 (eval $ac_try) 2>&5 18418 ac_status=$? 18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18420 (exit $ac_status); }; } && 18421 { ac_try='test -s conftest.$ac_objext' 18422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18423 (eval $ac_try) 2>&5 18424 ac_status=$? 18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18426 (exit $ac_status); }; }; then 18427 ac_lo=0 ac_mid=0 18428 while :; do 18429 cat >conftest.$ac_ext <<_ACEOF 18430/* confdefs.h. */ 18431_ACEOF 18432cat confdefs.h >>conftest.$ac_ext 18433cat >>conftest.$ac_ext <<_ACEOF 18434/* end confdefs.h. */ 18435$ac_includes_default 18436int 18437main () 18438{ 18439static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 18440test_array [0] = 0 18441 18442 ; 18443 return 0; 18444} 18445_ACEOF 18446rm -f conftest.$ac_objext 18447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18448 (eval $ac_compile) 2>conftest.er1 18449 ac_status=$? 18450 grep -v '^ *+' conftest.er1 >conftest.err 18451 rm -f conftest.er1 18452 cat conftest.err >&5 18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18454 (exit $ac_status); } && 18455 { ac_try='test -z "$ac_c_werror_flag" 18456 || test ! -s conftest.err' 18457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18458 (eval $ac_try) 2>&5 18459 ac_status=$? 18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18461 (exit $ac_status); }; } && 18462 { ac_try='test -s conftest.$ac_objext' 18463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18464 (eval $ac_try) 2>&5 18465 ac_status=$? 18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18467 (exit $ac_status); }; }; then 18468 ac_hi=$ac_mid; break 18469else 18470 echo "$as_me: failed program was:" >&5 18471sed 's/^/| /' conftest.$ac_ext >&5 18472 18473ac_lo=`expr $ac_mid + 1` 18474 if test $ac_lo -le $ac_mid; then 18475 ac_lo= ac_hi= 18476 break 18477 fi 18478 ac_mid=`expr 2 '*' $ac_mid + 1` 18479fi 18480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18481 done 18482else 18483 echo "$as_me: failed program was:" >&5 18484sed 's/^/| /' conftest.$ac_ext >&5 18485 18486cat >conftest.$ac_ext <<_ACEOF 18487/* confdefs.h. */ 18488_ACEOF 18489cat confdefs.h >>conftest.$ac_ext 18490cat >>conftest.$ac_ext <<_ACEOF 18491/* end confdefs.h. */ 18492$ac_includes_default 18493int 18494main () 18495{ 18496static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 18497test_array [0] = 0 18498 18499 ; 18500 return 0; 18501} 18502_ACEOF 18503rm -f conftest.$ac_objext 18504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18505 (eval $ac_compile) 2>conftest.er1 18506 ac_status=$? 18507 grep -v '^ *+' conftest.er1 >conftest.err 18508 rm -f conftest.er1 18509 cat conftest.err >&5 18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18511 (exit $ac_status); } && 18512 { ac_try='test -z "$ac_c_werror_flag" 18513 || test ! -s conftest.err' 18514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18515 (eval $ac_try) 2>&5 18516 ac_status=$? 18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18518 (exit $ac_status); }; } && 18519 { ac_try='test -s conftest.$ac_objext' 18520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18521 (eval $ac_try) 2>&5 18522 ac_status=$? 18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18524 (exit $ac_status); }; }; then 18525 ac_hi=-1 ac_mid=-1 18526 while :; do 18527 cat >conftest.$ac_ext <<_ACEOF 18528/* confdefs.h. */ 18529_ACEOF 18530cat confdefs.h >>conftest.$ac_ext 18531cat >>conftest.$ac_ext <<_ACEOF 18532/* end confdefs.h. */ 18533$ac_includes_default 18534int 18535main () 18536{ 18537static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 18538test_array [0] = 0 18539 18540 ; 18541 return 0; 18542} 18543_ACEOF 18544rm -f conftest.$ac_objext 18545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18546 (eval $ac_compile) 2>conftest.er1 18547 ac_status=$? 18548 grep -v '^ *+' conftest.er1 >conftest.err 18549 rm -f conftest.er1 18550 cat conftest.err >&5 18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18552 (exit $ac_status); } && 18553 { ac_try='test -z "$ac_c_werror_flag" 18554 || test ! -s conftest.err' 18555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18556 (eval $ac_try) 2>&5 18557 ac_status=$? 18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18559 (exit $ac_status); }; } && 18560 { ac_try='test -s conftest.$ac_objext' 18561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18562 (eval $ac_try) 2>&5 18563 ac_status=$? 18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18565 (exit $ac_status); }; }; then 18566 ac_lo=$ac_mid; break 18567else 18568 echo "$as_me: failed program was:" >&5 18569sed 's/^/| /' conftest.$ac_ext >&5 18570 18571ac_hi=`expr '(' $ac_mid ')' - 1` 18572 if test $ac_mid -le $ac_hi; then 18573 ac_lo= ac_hi= 18574 break 18575 fi 18576 ac_mid=`expr 2 '*' $ac_mid` 18577fi 18578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18579 done 18580else 18581 echo "$as_me: failed program was:" >&5 18582sed 's/^/| /' conftest.$ac_ext >&5 18583 18584ac_lo= ac_hi= 18585fi 18586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18587fi 18588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18589# Binary search between lo and hi bounds. 18590while test "x$ac_lo" != "x$ac_hi"; do 18591 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 18592 cat >conftest.$ac_ext <<_ACEOF 18593/* confdefs.h. */ 18594_ACEOF 18595cat confdefs.h >>conftest.$ac_ext 18596cat >>conftest.$ac_ext <<_ACEOF 18597/* end confdefs.h. */ 18598$ac_includes_default 18599int 18600main () 18601{ 18602static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 18603test_array [0] = 0 18604 18605 ; 18606 return 0; 18607} 18608_ACEOF 18609rm -f conftest.$ac_objext 18610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18611 (eval $ac_compile) 2>conftest.er1 18612 ac_status=$? 18613 grep -v '^ *+' conftest.er1 >conftest.err 18614 rm -f conftest.er1 18615 cat conftest.err >&5 18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18617 (exit $ac_status); } && 18618 { ac_try='test -z "$ac_c_werror_flag" 18619 || test ! -s conftest.err' 18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18621 (eval $ac_try) 2>&5 18622 ac_status=$? 18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18624 (exit $ac_status); }; } && 18625 { ac_try='test -s conftest.$ac_objext' 18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18627 (eval $ac_try) 2>&5 18628 ac_status=$? 18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18630 (exit $ac_status); }; }; then 18631 ac_hi=$ac_mid 18632else 18633 echo "$as_me: failed program was:" >&5 18634sed 's/^/| /' conftest.$ac_ext >&5 18635 18636ac_lo=`expr '(' $ac_mid ')' + 1` 18637fi 18638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18639done 18640case $ac_lo in 18641?*) ac_cv_sizeof_long_long=$ac_lo;; 18642'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 18643See \`config.log' for more details." >&5 18644echo "$as_me: error: cannot compute sizeof (long long), 77 18645See \`config.log' for more details." >&2;} 18646 { (exit 1); exit 1; }; } ;; 18647esac 18648else 18649 if test "$cross_compiling" = yes; then 18650 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 18651See \`config.log' for more details." >&5 18652echo "$as_me: error: cannot run test program while cross compiling 18653See \`config.log' for more details." >&2;} 18654 { (exit 1); exit 1; }; } 18655else 18656 cat >conftest.$ac_ext <<_ACEOF 18657/* confdefs.h. */ 18658_ACEOF 18659cat confdefs.h >>conftest.$ac_ext 18660cat >>conftest.$ac_ext <<_ACEOF 18661/* end confdefs.h. */ 18662$ac_includes_default 18663long longval () { return (long) (sizeof (long long)); } 18664unsigned long ulongval () { return (long) (sizeof (long long)); } 18665#include <stdio.h> 18666#include <stdlib.h> 18667int 18668main () 18669{ 18670 18671 FILE *f = fopen ("conftest.val", "w"); 18672 if (! f) 18673 exit (1); 18674 if (((long) (sizeof (long long))) < 0) 18675 { 18676 long i = longval (); 18677 if (i != ((long) (sizeof (long long)))) 18678 exit (1); 18679 fprintf (f, "%ld\n", i); 18680 } 18681 else 18682 { 18683 unsigned long i = ulongval (); 18684 if (i != ((long) (sizeof (long long)))) 18685 exit (1); 18686 fprintf (f, "%lu\n", i); 18687 } 18688 exit (ferror (f) || fclose (f) != 0); 18689 18690 ; 18691 return 0; 18692} 18693_ACEOF 18694rm -f conftest$ac_exeext 18695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18696 (eval $ac_link) 2>&5 18697 ac_status=$? 18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18701 (eval $ac_try) 2>&5 18702 ac_status=$? 18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18704 (exit $ac_status); }; }; then 18705 ac_cv_sizeof_long_long=`cat conftest.val` 18706else 18707 echo "$as_me: program exited with status $ac_status" >&5 18708echo "$as_me: failed program was:" >&5 18709sed 's/^/| /' conftest.$ac_ext >&5 18710 18711( exit $ac_status ) 18712{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 18713See \`config.log' for more details." >&5 18714echo "$as_me: error: cannot compute sizeof (long long), 77 18715See \`config.log' for more details." >&2;} 18716 { (exit 1); exit 1; }; } 18717fi 18718rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18719fi 18720fi 18721rm -f conftest.val 18722else 18723 ac_cv_sizeof_long_long=0 18724fi 18725fi 18726echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 18727echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 18728cat >>confdefs.h <<_ACEOF 18729#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 18730_ACEOF 18731 18732 18733 echo "$as_me:$LINENO: checking for long" >&5 18734echo $ECHO_N "checking for long... $ECHO_C" >&6 18735if test "${ac_cv_type_long+set}" = set; then 18736 echo $ECHO_N "(cached) $ECHO_C" >&6 18737else 18738 cat >conftest.$ac_ext <<_ACEOF 18739/* confdefs.h. */ 18740_ACEOF 18741cat confdefs.h >>conftest.$ac_ext 18742cat >>conftest.$ac_ext <<_ACEOF 18743/* end confdefs.h. */ 18744$ac_includes_default 18745int 18746main () 18747{ 18748if ((long *) 0) 18749 return 0; 18750if (sizeof (long)) 18751 return 0; 18752 ; 18753 return 0; 18754} 18755_ACEOF 18756rm -f conftest.$ac_objext 18757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18758 (eval $ac_compile) 2>conftest.er1 18759 ac_status=$? 18760 grep -v '^ *+' conftest.er1 >conftest.err 18761 rm -f conftest.er1 18762 cat conftest.err >&5 18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18764 (exit $ac_status); } && 18765 { ac_try='test -z "$ac_c_werror_flag" 18766 || test ! -s conftest.err' 18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18768 (eval $ac_try) 2>&5 18769 ac_status=$? 18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18771 (exit $ac_status); }; } && 18772 { ac_try='test -s conftest.$ac_objext' 18773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18774 (eval $ac_try) 2>&5 18775 ac_status=$? 18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18777 (exit $ac_status); }; }; then 18778 ac_cv_type_long=yes 18779else 18780 echo "$as_me: failed program was:" >&5 18781sed 's/^/| /' conftest.$ac_ext >&5 18782 18783ac_cv_type_long=no 18784fi 18785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18786fi 18787echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 18788echo "${ECHO_T}$ac_cv_type_long" >&6 18789 18790echo "$as_me:$LINENO: checking size of long" >&5 18791echo $ECHO_N "checking size of long... $ECHO_C" >&6 18792if test "${ac_cv_sizeof_long+set}" = set; then 18793 echo $ECHO_N "(cached) $ECHO_C" >&6 18794else 18795 if test "$ac_cv_type_long" = yes; then 18796 # The cast to unsigned long works around a bug in the HP C Compiler 18797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18799 # This bug is HP SR number 8606223364. 18800 if test "$cross_compiling" = yes; then 18801 # Depending upon the size, compute the lo and hi bounds. 18802cat >conftest.$ac_ext <<_ACEOF 18803/* confdefs.h. */ 18804_ACEOF 18805cat confdefs.h >>conftest.$ac_ext 18806cat >>conftest.$ac_ext <<_ACEOF 18807/* end confdefs.h. */ 18808$ac_includes_default 18809int 18810main () 18811{ 18812static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 18813test_array [0] = 0 18814 18815 ; 18816 return 0; 18817} 18818_ACEOF 18819rm -f conftest.$ac_objext 18820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18821 (eval $ac_compile) 2>conftest.er1 18822 ac_status=$? 18823 grep -v '^ *+' conftest.er1 >conftest.err 18824 rm -f conftest.er1 18825 cat conftest.err >&5 18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18827 (exit $ac_status); } && 18828 { ac_try='test -z "$ac_c_werror_flag" 18829 || test ! -s conftest.err' 18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18831 (eval $ac_try) 2>&5 18832 ac_status=$? 18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18834 (exit $ac_status); }; } && 18835 { ac_try='test -s conftest.$ac_objext' 18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18837 (eval $ac_try) 2>&5 18838 ac_status=$? 18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18840 (exit $ac_status); }; }; then 18841 ac_lo=0 ac_mid=0 18842 while :; do 18843 cat >conftest.$ac_ext <<_ACEOF 18844/* confdefs.h. */ 18845_ACEOF 18846cat confdefs.h >>conftest.$ac_ext 18847cat >>conftest.$ac_ext <<_ACEOF 18848/* end confdefs.h. */ 18849$ac_includes_default 18850int 18851main () 18852{ 18853static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 18854test_array [0] = 0 18855 18856 ; 18857 return 0; 18858} 18859_ACEOF 18860rm -f conftest.$ac_objext 18861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18862 (eval $ac_compile) 2>conftest.er1 18863 ac_status=$? 18864 grep -v '^ *+' conftest.er1 >conftest.err 18865 rm -f conftest.er1 18866 cat conftest.err >&5 18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18868 (exit $ac_status); } && 18869 { ac_try='test -z "$ac_c_werror_flag" 18870 || test ! -s conftest.err' 18871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18872 (eval $ac_try) 2>&5 18873 ac_status=$? 18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18875 (exit $ac_status); }; } && 18876 { ac_try='test -s conftest.$ac_objext' 18877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18878 (eval $ac_try) 2>&5 18879 ac_status=$? 18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18881 (exit $ac_status); }; }; then 18882 ac_hi=$ac_mid; break 18883else 18884 echo "$as_me: failed program was:" >&5 18885sed 's/^/| /' conftest.$ac_ext >&5 18886 18887ac_lo=`expr $ac_mid + 1` 18888 if test $ac_lo -le $ac_mid; then 18889 ac_lo= ac_hi= 18890 break 18891 fi 18892 ac_mid=`expr 2 '*' $ac_mid + 1` 18893fi 18894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18895 done 18896else 18897 echo "$as_me: failed program was:" >&5 18898sed 's/^/| /' conftest.$ac_ext >&5 18899 18900cat >conftest.$ac_ext <<_ACEOF 18901/* confdefs.h. */ 18902_ACEOF 18903cat confdefs.h >>conftest.$ac_ext 18904cat >>conftest.$ac_ext <<_ACEOF 18905/* end confdefs.h. */ 18906$ac_includes_default 18907int 18908main () 18909{ 18910static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 18911test_array [0] = 0 18912 18913 ; 18914 return 0; 18915} 18916_ACEOF 18917rm -f conftest.$ac_objext 18918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18919 (eval $ac_compile) 2>conftest.er1 18920 ac_status=$? 18921 grep -v '^ *+' conftest.er1 >conftest.err 18922 rm -f conftest.er1 18923 cat conftest.err >&5 18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18925 (exit $ac_status); } && 18926 { ac_try='test -z "$ac_c_werror_flag" 18927 || test ! -s conftest.err' 18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18929 (eval $ac_try) 2>&5 18930 ac_status=$? 18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18932 (exit $ac_status); }; } && 18933 { ac_try='test -s conftest.$ac_objext' 18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18935 (eval $ac_try) 2>&5 18936 ac_status=$? 18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18938 (exit $ac_status); }; }; then 18939 ac_hi=-1 ac_mid=-1 18940 while :; do 18941 cat >conftest.$ac_ext <<_ACEOF 18942/* confdefs.h. */ 18943_ACEOF 18944cat confdefs.h >>conftest.$ac_ext 18945cat >>conftest.$ac_ext <<_ACEOF 18946/* end confdefs.h. */ 18947$ac_includes_default 18948int 18949main () 18950{ 18951static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 18952test_array [0] = 0 18953 18954 ; 18955 return 0; 18956} 18957_ACEOF 18958rm -f conftest.$ac_objext 18959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18960 (eval $ac_compile) 2>conftest.er1 18961 ac_status=$? 18962 grep -v '^ *+' conftest.er1 >conftest.err 18963 rm -f conftest.er1 18964 cat conftest.err >&5 18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18966 (exit $ac_status); } && 18967 { ac_try='test -z "$ac_c_werror_flag" 18968 || test ! -s conftest.err' 18969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18970 (eval $ac_try) 2>&5 18971 ac_status=$? 18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18973 (exit $ac_status); }; } && 18974 { ac_try='test -s conftest.$ac_objext' 18975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18976 (eval $ac_try) 2>&5 18977 ac_status=$? 18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18979 (exit $ac_status); }; }; then 18980 ac_lo=$ac_mid; break 18981else 18982 echo "$as_me: failed program was:" >&5 18983sed 's/^/| /' conftest.$ac_ext >&5 18984 18985ac_hi=`expr '(' $ac_mid ')' - 1` 18986 if test $ac_mid -le $ac_hi; then 18987 ac_lo= ac_hi= 18988 break 18989 fi 18990 ac_mid=`expr 2 '*' $ac_mid` 18991fi 18992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18993 done 18994else 18995 echo "$as_me: failed program was:" >&5 18996sed 's/^/| /' conftest.$ac_ext >&5 18997 18998ac_lo= ac_hi= 18999fi 19000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19001fi 19002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19003# Binary search between lo and hi bounds. 19004while test "x$ac_lo" != "x$ac_hi"; do 19005 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 19006 cat >conftest.$ac_ext <<_ACEOF 19007/* confdefs.h. */ 19008_ACEOF 19009cat confdefs.h >>conftest.$ac_ext 19010cat >>conftest.$ac_ext <<_ACEOF 19011/* end confdefs.h. */ 19012$ac_includes_default 19013int 19014main () 19015{ 19016static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 19017test_array [0] = 0 19018 19019 ; 19020 return 0; 19021} 19022_ACEOF 19023rm -f conftest.$ac_objext 19024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19025 (eval $ac_compile) 2>conftest.er1 19026 ac_status=$? 19027 grep -v '^ *+' conftest.er1 >conftest.err 19028 rm -f conftest.er1 19029 cat conftest.err >&5 19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19031 (exit $ac_status); } && 19032 { ac_try='test -z "$ac_c_werror_flag" 19033 || test ! -s conftest.err' 19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19035 (eval $ac_try) 2>&5 19036 ac_status=$? 19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19038 (exit $ac_status); }; } && 19039 { ac_try='test -s conftest.$ac_objext' 19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19041 (eval $ac_try) 2>&5 19042 ac_status=$? 19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19044 (exit $ac_status); }; }; then 19045 ac_hi=$ac_mid 19046else 19047 echo "$as_me: failed program was:" >&5 19048sed 's/^/| /' conftest.$ac_ext >&5 19049 19050ac_lo=`expr '(' $ac_mid ')' + 1` 19051fi 19052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19053done 19054case $ac_lo in 19055?*) ac_cv_sizeof_long=$ac_lo;; 19056'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 19057See \`config.log' for more details." >&5 19058echo "$as_me: error: cannot compute sizeof (long), 77 19059See \`config.log' for more details." >&2;} 19060 { (exit 1); exit 1; }; } ;; 19061esac 19062else 19063 if test "$cross_compiling" = yes; then 19064 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 19065See \`config.log' for more details." >&5 19066echo "$as_me: error: cannot run test program while cross compiling 19067See \`config.log' for more details." >&2;} 19068 { (exit 1); exit 1; }; } 19069else 19070 cat >conftest.$ac_ext <<_ACEOF 19071/* confdefs.h. */ 19072_ACEOF 19073cat confdefs.h >>conftest.$ac_ext 19074cat >>conftest.$ac_ext <<_ACEOF 19075/* end confdefs.h. */ 19076$ac_includes_default 19077long longval () { return (long) (sizeof (long)); } 19078unsigned long ulongval () { return (long) (sizeof (long)); } 19079#include <stdio.h> 19080#include <stdlib.h> 19081int 19082main () 19083{ 19084 19085 FILE *f = fopen ("conftest.val", "w"); 19086 if (! f) 19087 exit (1); 19088 if (((long) (sizeof (long))) < 0) 19089 { 19090 long i = longval (); 19091 if (i != ((long) (sizeof (long)))) 19092 exit (1); 19093 fprintf (f, "%ld\n", i); 19094 } 19095 else 19096 { 19097 unsigned long i = ulongval (); 19098 if (i != ((long) (sizeof (long)))) 19099 exit (1); 19100 fprintf (f, "%lu\n", i); 19101 } 19102 exit (ferror (f) || fclose (f) != 0); 19103 19104 ; 19105 return 0; 19106} 19107_ACEOF 19108rm -f conftest$ac_exeext 19109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19110 (eval $ac_link) 2>&5 19111 ac_status=$? 19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19115 (eval $ac_try) 2>&5 19116 ac_status=$? 19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19118 (exit $ac_status); }; }; then 19119 ac_cv_sizeof_long=`cat conftest.val` 19120else 19121 echo "$as_me: program exited with status $ac_status" >&5 19122echo "$as_me: failed program was:" >&5 19123sed 's/^/| /' conftest.$ac_ext >&5 19124 19125( exit $ac_status ) 19126{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 19127See \`config.log' for more details." >&5 19128echo "$as_me: error: cannot compute sizeof (long), 77 19129See \`config.log' for more details." >&2;} 19130 { (exit 1); exit 1; }; } 19131fi 19132rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19133fi 19134fi 19135rm -f conftest.val 19136else 19137 ac_cv_sizeof_long=0 19138fi 19139fi 19140echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 19141echo "${ECHO_T}$ac_cv_sizeof_long" >&6 19142cat >>confdefs.h <<_ACEOF 19143#define SIZEOF_LONG $ac_cv_sizeof_long 19144_ACEOF 19145 19146 19147 echo "$as_me:$LINENO: checking for int" >&5 19148echo $ECHO_N "checking for int... $ECHO_C" >&6 19149if test "${ac_cv_type_int+set}" = set; then 19150 echo $ECHO_N "(cached) $ECHO_C" >&6 19151else 19152 cat >conftest.$ac_ext <<_ACEOF 19153/* confdefs.h. */ 19154_ACEOF 19155cat confdefs.h >>conftest.$ac_ext 19156cat >>conftest.$ac_ext <<_ACEOF 19157/* end confdefs.h. */ 19158$ac_includes_default 19159int 19160main () 19161{ 19162if ((int *) 0) 19163 return 0; 19164if (sizeof (int)) 19165 return 0; 19166 ; 19167 return 0; 19168} 19169_ACEOF 19170rm -f conftest.$ac_objext 19171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19172 (eval $ac_compile) 2>conftest.er1 19173 ac_status=$? 19174 grep -v '^ *+' conftest.er1 >conftest.err 19175 rm -f conftest.er1 19176 cat conftest.err >&5 19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19178 (exit $ac_status); } && 19179 { ac_try='test -z "$ac_c_werror_flag" 19180 || test ! -s conftest.err' 19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19182 (eval $ac_try) 2>&5 19183 ac_status=$? 19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19185 (exit $ac_status); }; } && 19186 { ac_try='test -s conftest.$ac_objext' 19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19188 (eval $ac_try) 2>&5 19189 ac_status=$? 19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19191 (exit $ac_status); }; }; then 19192 ac_cv_type_int=yes 19193else 19194 echo "$as_me: failed program was:" >&5 19195sed 's/^/| /' conftest.$ac_ext >&5 19196 19197ac_cv_type_int=no 19198fi 19199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19200fi 19201echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 19202echo "${ECHO_T}$ac_cv_type_int" >&6 19203 19204echo "$as_me:$LINENO: checking size of int" >&5 19205echo $ECHO_N "checking size of int... $ECHO_C" >&6 19206if test "${ac_cv_sizeof_int+set}" = set; then 19207 echo $ECHO_N "(cached) $ECHO_C" >&6 19208else 19209 if test "$ac_cv_type_int" = yes; then 19210 # The cast to unsigned long works around a bug in the HP C Compiler 19211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19213 # This bug is HP SR number 8606223364. 19214 if test "$cross_compiling" = yes; then 19215 # Depending upon the size, compute the lo and hi bounds. 19216cat >conftest.$ac_ext <<_ACEOF 19217/* confdefs.h. */ 19218_ACEOF 19219cat confdefs.h >>conftest.$ac_ext 19220cat >>conftest.$ac_ext <<_ACEOF 19221/* end confdefs.h. */ 19222$ac_includes_default 19223int 19224main () 19225{ 19226static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 19227test_array [0] = 0 19228 19229 ; 19230 return 0; 19231} 19232_ACEOF 19233rm -f conftest.$ac_objext 19234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19235 (eval $ac_compile) 2>conftest.er1 19236 ac_status=$? 19237 grep -v '^ *+' conftest.er1 >conftest.err 19238 rm -f conftest.er1 19239 cat conftest.err >&5 19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19241 (exit $ac_status); } && 19242 { ac_try='test -z "$ac_c_werror_flag" 19243 || test ! -s conftest.err' 19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19245 (eval $ac_try) 2>&5 19246 ac_status=$? 19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19248 (exit $ac_status); }; } && 19249 { ac_try='test -s conftest.$ac_objext' 19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19251 (eval $ac_try) 2>&5 19252 ac_status=$? 19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19254 (exit $ac_status); }; }; then 19255 ac_lo=0 ac_mid=0 19256 while :; do 19257 cat >conftest.$ac_ext <<_ACEOF 19258/* confdefs.h. */ 19259_ACEOF 19260cat confdefs.h >>conftest.$ac_ext 19261cat >>conftest.$ac_ext <<_ACEOF 19262/* end confdefs.h. */ 19263$ac_includes_default 19264int 19265main () 19266{ 19267static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 19268test_array [0] = 0 19269 19270 ; 19271 return 0; 19272} 19273_ACEOF 19274rm -f conftest.$ac_objext 19275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19276 (eval $ac_compile) 2>conftest.er1 19277 ac_status=$? 19278 grep -v '^ *+' conftest.er1 >conftest.err 19279 rm -f conftest.er1 19280 cat conftest.err >&5 19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19282 (exit $ac_status); } && 19283 { ac_try='test -z "$ac_c_werror_flag" 19284 || test ! -s conftest.err' 19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19286 (eval $ac_try) 2>&5 19287 ac_status=$? 19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19289 (exit $ac_status); }; } && 19290 { ac_try='test -s conftest.$ac_objext' 19291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19292 (eval $ac_try) 2>&5 19293 ac_status=$? 19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19295 (exit $ac_status); }; }; then 19296 ac_hi=$ac_mid; break 19297else 19298 echo "$as_me: failed program was:" >&5 19299sed 's/^/| /' conftest.$ac_ext >&5 19300 19301ac_lo=`expr $ac_mid + 1` 19302 if test $ac_lo -le $ac_mid; then 19303 ac_lo= ac_hi= 19304 break 19305 fi 19306 ac_mid=`expr 2 '*' $ac_mid + 1` 19307fi 19308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19309 done 19310else 19311 echo "$as_me: failed program was:" >&5 19312sed 's/^/| /' conftest.$ac_ext >&5 19313 19314cat >conftest.$ac_ext <<_ACEOF 19315/* confdefs.h. */ 19316_ACEOF 19317cat confdefs.h >>conftest.$ac_ext 19318cat >>conftest.$ac_ext <<_ACEOF 19319/* end confdefs.h. */ 19320$ac_includes_default 19321int 19322main () 19323{ 19324static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 19325test_array [0] = 0 19326 19327 ; 19328 return 0; 19329} 19330_ACEOF 19331rm -f conftest.$ac_objext 19332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19333 (eval $ac_compile) 2>conftest.er1 19334 ac_status=$? 19335 grep -v '^ *+' conftest.er1 >conftest.err 19336 rm -f conftest.er1 19337 cat conftest.err >&5 19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19339 (exit $ac_status); } && 19340 { ac_try='test -z "$ac_c_werror_flag" 19341 || test ! -s conftest.err' 19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19343 (eval $ac_try) 2>&5 19344 ac_status=$? 19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19346 (exit $ac_status); }; } && 19347 { ac_try='test -s conftest.$ac_objext' 19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19349 (eval $ac_try) 2>&5 19350 ac_status=$? 19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19352 (exit $ac_status); }; }; then 19353 ac_hi=-1 ac_mid=-1 19354 while :; do 19355 cat >conftest.$ac_ext <<_ACEOF 19356/* confdefs.h. */ 19357_ACEOF 19358cat confdefs.h >>conftest.$ac_ext 19359cat >>conftest.$ac_ext <<_ACEOF 19360/* end confdefs.h. */ 19361$ac_includes_default 19362int 19363main () 19364{ 19365static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 19366test_array [0] = 0 19367 19368 ; 19369 return 0; 19370} 19371_ACEOF 19372rm -f conftest.$ac_objext 19373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19374 (eval $ac_compile) 2>conftest.er1 19375 ac_status=$? 19376 grep -v '^ *+' conftest.er1 >conftest.err 19377 rm -f conftest.er1 19378 cat conftest.err >&5 19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19380 (exit $ac_status); } && 19381 { ac_try='test -z "$ac_c_werror_flag" 19382 || test ! -s conftest.err' 19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19384 (eval $ac_try) 2>&5 19385 ac_status=$? 19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19387 (exit $ac_status); }; } && 19388 { ac_try='test -s conftest.$ac_objext' 19389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19390 (eval $ac_try) 2>&5 19391 ac_status=$? 19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19393 (exit $ac_status); }; }; then 19394 ac_lo=$ac_mid; break 19395else 19396 echo "$as_me: failed program was:" >&5 19397sed 's/^/| /' conftest.$ac_ext >&5 19398 19399ac_hi=`expr '(' $ac_mid ')' - 1` 19400 if test $ac_mid -le $ac_hi; then 19401 ac_lo= ac_hi= 19402 break 19403 fi 19404 ac_mid=`expr 2 '*' $ac_mid` 19405fi 19406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19407 done 19408else 19409 echo "$as_me: failed program was:" >&5 19410sed 's/^/| /' conftest.$ac_ext >&5 19411 19412ac_lo= ac_hi= 19413fi 19414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19415fi 19416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19417# Binary search between lo and hi bounds. 19418while test "x$ac_lo" != "x$ac_hi"; do 19419 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 19420 cat >conftest.$ac_ext <<_ACEOF 19421/* confdefs.h. */ 19422_ACEOF 19423cat confdefs.h >>conftest.$ac_ext 19424cat >>conftest.$ac_ext <<_ACEOF 19425/* end confdefs.h. */ 19426$ac_includes_default 19427int 19428main () 19429{ 19430static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 19431test_array [0] = 0 19432 19433 ; 19434 return 0; 19435} 19436_ACEOF 19437rm -f conftest.$ac_objext 19438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19439 (eval $ac_compile) 2>conftest.er1 19440 ac_status=$? 19441 grep -v '^ *+' conftest.er1 >conftest.err 19442 rm -f conftest.er1 19443 cat conftest.err >&5 19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19445 (exit $ac_status); } && 19446 { ac_try='test -z "$ac_c_werror_flag" 19447 || test ! -s conftest.err' 19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19449 (eval $ac_try) 2>&5 19450 ac_status=$? 19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19452 (exit $ac_status); }; } && 19453 { ac_try='test -s conftest.$ac_objext' 19454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19455 (eval $ac_try) 2>&5 19456 ac_status=$? 19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19458 (exit $ac_status); }; }; then 19459 ac_hi=$ac_mid 19460else 19461 echo "$as_me: failed program was:" >&5 19462sed 's/^/| /' conftest.$ac_ext >&5 19463 19464ac_lo=`expr '(' $ac_mid ')' + 1` 19465fi 19466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19467done 19468case $ac_lo in 19469?*) ac_cv_sizeof_int=$ac_lo;; 19470'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 19471See \`config.log' for more details." >&5 19472echo "$as_me: error: cannot compute sizeof (int), 77 19473See \`config.log' for more details." >&2;} 19474 { (exit 1); exit 1; }; } ;; 19475esac 19476else 19477 if test "$cross_compiling" = yes; then 19478 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 19479See \`config.log' for more details." >&5 19480echo "$as_me: error: cannot run test program while cross compiling 19481See \`config.log' for more details." >&2;} 19482 { (exit 1); exit 1; }; } 19483else 19484 cat >conftest.$ac_ext <<_ACEOF 19485/* confdefs.h. */ 19486_ACEOF 19487cat confdefs.h >>conftest.$ac_ext 19488cat >>conftest.$ac_ext <<_ACEOF 19489/* end confdefs.h. */ 19490$ac_includes_default 19491long longval () { return (long) (sizeof (int)); } 19492unsigned long ulongval () { return (long) (sizeof (int)); } 19493#include <stdio.h> 19494#include <stdlib.h> 19495int 19496main () 19497{ 19498 19499 FILE *f = fopen ("conftest.val", "w"); 19500 if (! f) 19501 exit (1); 19502 if (((long) (sizeof (int))) < 0) 19503 { 19504 long i = longval (); 19505 if (i != ((long) (sizeof (int)))) 19506 exit (1); 19507 fprintf (f, "%ld\n", i); 19508 } 19509 else 19510 { 19511 unsigned long i = ulongval (); 19512 if (i != ((long) (sizeof (int)))) 19513 exit (1); 19514 fprintf (f, "%lu\n", i); 19515 } 19516 exit (ferror (f) || fclose (f) != 0); 19517 19518 ; 19519 return 0; 19520} 19521_ACEOF 19522rm -f conftest$ac_exeext 19523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19524 (eval $ac_link) 2>&5 19525 ac_status=$? 19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19529 (eval $ac_try) 2>&5 19530 ac_status=$? 19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19532 (exit $ac_status); }; }; then 19533 ac_cv_sizeof_int=`cat conftest.val` 19534else 19535 echo "$as_me: program exited with status $ac_status" >&5 19536echo "$as_me: failed program was:" >&5 19537sed 's/^/| /' conftest.$ac_ext >&5 19538 19539( exit $ac_status ) 19540{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 19541See \`config.log' for more details." >&5 19542echo "$as_me: error: cannot compute sizeof (int), 77 19543See \`config.log' for more details." >&2;} 19544 { (exit 1); exit 1; }; } 19545fi 19546rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19547fi 19548fi 19549rm -f conftest.val 19550else 19551 ac_cv_sizeof_int=0 19552fi 19553fi 19554echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 19555echo "${ECHO_T}$ac_cv_sizeof_int" >&6 19556cat >>confdefs.h <<_ACEOF 19557#define SIZEOF_INT $ac_cv_sizeof_int 19558_ACEOF 19559 19560 19561 echo "$as_me:$LINENO: checking for short" >&5 19562echo $ECHO_N "checking for short... $ECHO_C" >&6 19563if test "${ac_cv_type_short+set}" = set; then 19564 echo $ECHO_N "(cached) $ECHO_C" >&6 19565else 19566 cat >conftest.$ac_ext <<_ACEOF 19567/* confdefs.h. */ 19568_ACEOF 19569cat confdefs.h >>conftest.$ac_ext 19570cat >>conftest.$ac_ext <<_ACEOF 19571/* end confdefs.h. */ 19572$ac_includes_default 19573int 19574main () 19575{ 19576if ((short *) 0) 19577 return 0; 19578if (sizeof (short)) 19579 return 0; 19580 ; 19581 return 0; 19582} 19583_ACEOF 19584rm -f conftest.$ac_objext 19585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19586 (eval $ac_compile) 2>conftest.er1 19587 ac_status=$? 19588 grep -v '^ *+' conftest.er1 >conftest.err 19589 rm -f conftest.er1 19590 cat conftest.err >&5 19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19592 (exit $ac_status); } && 19593 { ac_try='test -z "$ac_c_werror_flag" 19594 || test ! -s conftest.err' 19595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19596 (eval $ac_try) 2>&5 19597 ac_status=$? 19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19599 (exit $ac_status); }; } && 19600 { ac_try='test -s conftest.$ac_objext' 19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19602 (eval $ac_try) 2>&5 19603 ac_status=$? 19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19605 (exit $ac_status); }; }; then 19606 ac_cv_type_short=yes 19607else 19608 echo "$as_me: failed program was:" >&5 19609sed 's/^/| /' conftest.$ac_ext >&5 19610 19611ac_cv_type_short=no 19612fi 19613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19614fi 19615echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 19616echo "${ECHO_T}$ac_cv_type_short" >&6 19617 19618echo "$as_me:$LINENO: checking size of short" >&5 19619echo $ECHO_N "checking size of short... $ECHO_C" >&6 19620if test "${ac_cv_sizeof_short+set}" = set; then 19621 echo $ECHO_N "(cached) $ECHO_C" >&6 19622else 19623 if test "$ac_cv_type_short" = yes; then 19624 # The cast to unsigned long works around a bug in the HP C Compiler 19625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19627 # This bug is HP SR number 8606223364. 19628 if test "$cross_compiling" = yes; then 19629 # Depending upon the size, compute the lo and hi bounds. 19630cat >conftest.$ac_ext <<_ACEOF 19631/* confdefs.h. */ 19632_ACEOF 19633cat confdefs.h >>conftest.$ac_ext 19634cat >>conftest.$ac_ext <<_ACEOF 19635/* end confdefs.h. */ 19636$ac_includes_default 19637int 19638main () 19639{ 19640static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 19641test_array [0] = 0 19642 19643 ; 19644 return 0; 19645} 19646_ACEOF 19647rm -f conftest.$ac_objext 19648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19649 (eval $ac_compile) 2>conftest.er1 19650 ac_status=$? 19651 grep -v '^ *+' conftest.er1 >conftest.err 19652 rm -f conftest.er1 19653 cat conftest.err >&5 19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19655 (exit $ac_status); } && 19656 { ac_try='test -z "$ac_c_werror_flag" 19657 || test ! -s conftest.err' 19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19659 (eval $ac_try) 2>&5 19660 ac_status=$? 19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19662 (exit $ac_status); }; } && 19663 { ac_try='test -s conftest.$ac_objext' 19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19665 (eval $ac_try) 2>&5 19666 ac_status=$? 19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19668 (exit $ac_status); }; }; then 19669 ac_lo=0 ac_mid=0 19670 while :; do 19671 cat >conftest.$ac_ext <<_ACEOF 19672/* confdefs.h. */ 19673_ACEOF 19674cat confdefs.h >>conftest.$ac_ext 19675cat >>conftest.$ac_ext <<_ACEOF 19676/* end confdefs.h. */ 19677$ac_includes_default 19678int 19679main () 19680{ 19681static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 19682test_array [0] = 0 19683 19684 ; 19685 return 0; 19686} 19687_ACEOF 19688rm -f conftest.$ac_objext 19689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19690 (eval $ac_compile) 2>conftest.er1 19691 ac_status=$? 19692 grep -v '^ *+' conftest.er1 >conftest.err 19693 rm -f conftest.er1 19694 cat conftest.err >&5 19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19696 (exit $ac_status); } && 19697 { ac_try='test -z "$ac_c_werror_flag" 19698 || test ! -s conftest.err' 19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19700 (eval $ac_try) 2>&5 19701 ac_status=$? 19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19703 (exit $ac_status); }; } && 19704 { ac_try='test -s conftest.$ac_objext' 19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19706 (eval $ac_try) 2>&5 19707 ac_status=$? 19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19709 (exit $ac_status); }; }; then 19710 ac_hi=$ac_mid; break 19711else 19712 echo "$as_me: failed program was:" >&5 19713sed 's/^/| /' conftest.$ac_ext >&5 19714 19715ac_lo=`expr $ac_mid + 1` 19716 if test $ac_lo -le $ac_mid; then 19717 ac_lo= ac_hi= 19718 break 19719 fi 19720 ac_mid=`expr 2 '*' $ac_mid + 1` 19721fi 19722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19723 done 19724else 19725 echo "$as_me: failed program was:" >&5 19726sed 's/^/| /' conftest.$ac_ext >&5 19727 19728cat >conftest.$ac_ext <<_ACEOF 19729/* confdefs.h. */ 19730_ACEOF 19731cat confdefs.h >>conftest.$ac_ext 19732cat >>conftest.$ac_ext <<_ACEOF 19733/* end confdefs.h. */ 19734$ac_includes_default 19735int 19736main () 19737{ 19738static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 19739test_array [0] = 0 19740 19741 ; 19742 return 0; 19743} 19744_ACEOF 19745rm -f conftest.$ac_objext 19746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19747 (eval $ac_compile) 2>conftest.er1 19748 ac_status=$? 19749 grep -v '^ *+' conftest.er1 >conftest.err 19750 rm -f conftest.er1 19751 cat conftest.err >&5 19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19753 (exit $ac_status); } && 19754 { ac_try='test -z "$ac_c_werror_flag" 19755 || test ! -s conftest.err' 19756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19757 (eval $ac_try) 2>&5 19758 ac_status=$? 19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19760 (exit $ac_status); }; } && 19761 { ac_try='test -s conftest.$ac_objext' 19762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19763 (eval $ac_try) 2>&5 19764 ac_status=$? 19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19766 (exit $ac_status); }; }; then 19767 ac_hi=-1 ac_mid=-1 19768 while :; do 19769 cat >conftest.$ac_ext <<_ACEOF 19770/* confdefs.h. */ 19771_ACEOF 19772cat confdefs.h >>conftest.$ac_ext 19773cat >>conftest.$ac_ext <<_ACEOF 19774/* end confdefs.h. */ 19775$ac_includes_default 19776int 19777main () 19778{ 19779static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 19780test_array [0] = 0 19781 19782 ; 19783 return 0; 19784} 19785_ACEOF 19786rm -f conftest.$ac_objext 19787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19788 (eval $ac_compile) 2>conftest.er1 19789 ac_status=$? 19790 grep -v '^ *+' conftest.er1 >conftest.err 19791 rm -f conftest.er1 19792 cat conftest.err >&5 19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19794 (exit $ac_status); } && 19795 { ac_try='test -z "$ac_c_werror_flag" 19796 || test ! -s conftest.err' 19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19798 (eval $ac_try) 2>&5 19799 ac_status=$? 19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19801 (exit $ac_status); }; } && 19802 { ac_try='test -s conftest.$ac_objext' 19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19804 (eval $ac_try) 2>&5 19805 ac_status=$? 19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19807 (exit $ac_status); }; }; then 19808 ac_lo=$ac_mid; break 19809else 19810 echo "$as_me: failed program was:" >&5 19811sed 's/^/| /' conftest.$ac_ext >&5 19812 19813ac_hi=`expr '(' $ac_mid ')' - 1` 19814 if test $ac_mid -le $ac_hi; then 19815 ac_lo= ac_hi= 19816 break 19817 fi 19818 ac_mid=`expr 2 '*' $ac_mid` 19819fi 19820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19821 done 19822else 19823 echo "$as_me: failed program was:" >&5 19824sed 's/^/| /' conftest.$ac_ext >&5 19825 19826ac_lo= ac_hi= 19827fi 19828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19829fi 19830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19831# Binary search between lo and hi bounds. 19832while test "x$ac_lo" != "x$ac_hi"; do 19833 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 19834 cat >conftest.$ac_ext <<_ACEOF 19835/* confdefs.h. */ 19836_ACEOF 19837cat confdefs.h >>conftest.$ac_ext 19838cat >>conftest.$ac_ext <<_ACEOF 19839/* end confdefs.h. */ 19840$ac_includes_default 19841int 19842main () 19843{ 19844static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 19845test_array [0] = 0 19846 19847 ; 19848 return 0; 19849} 19850_ACEOF 19851rm -f conftest.$ac_objext 19852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19853 (eval $ac_compile) 2>conftest.er1 19854 ac_status=$? 19855 grep -v '^ *+' conftest.er1 >conftest.err 19856 rm -f conftest.er1 19857 cat conftest.err >&5 19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19859 (exit $ac_status); } && 19860 { ac_try='test -z "$ac_c_werror_flag" 19861 || test ! -s conftest.err' 19862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19863 (eval $ac_try) 2>&5 19864 ac_status=$? 19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19866 (exit $ac_status); }; } && 19867 { ac_try='test -s conftest.$ac_objext' 19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19869 (eval $ac_try) 2>&5 19870 ac_status=$? 19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19872 (exit $ac_status); }; }; then 19873 ac_hi=$ac_mid 19874else 19875 echo "$as_me: failed program was:" >&5 19876sed 's/^/| /' conftest.$ac_ext >&5 19877 19878ac_lo=`expr '(' $ac_mid ')' + 1` 19879fi 19880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19881done 19882case $ac_lo in 19883?*) ac_cv_sizeof_short=$ac_lo;; 19884'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 19885See \`config.log' for more details." >&5 19886echo "$as_me: error: cannot compute sizeof (short), 77 19887See \`config.log' for more details." >&2;} 19888 { (exit 1); exit 1; }; } ;; 19889esac 19890else 19891 if test "$cross_compiling" = yes; then 19892 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 19893See \`config.log' for more details." >&5 19894echo "$as_me: error: cannot run test program while cross compiling 19895See \`config.log' for more details." >&2;} 19896 { (exit 1); exit 1; }; } 19897else 19898 cat >conftest.$ac_ext <<_ACEOF 19899/* confdefs.h. */ 19900_ACEOF 19901cat confdefs.h >>conftest.$ac_ext 19902cat >>conftest.$ac_ext <<_ACEOF 19903/* end confdefs.h. */ 19904$ac_includes_default 19905long longval () { return (long) (sizeof (short)); } 19906unsigned long ulongval () { return (long) (sizeof (short)); } 19907#include <stdio.h> 19908#include <stdlib.h> 19909int 19910main () 19911{ 19912 19913 FILE *f = fopen ("conftest.val", "w"); 19914 if (! f) 19915 exit (1); 19916 if (((long) (sizeof (short))) < 0) 19917 { 19918 long i = longval (); 19919 if (i != ((long) (sizeof (short)))) 19920 exit (1); 19921 fprintf (f, "%ld\n", i); 19922 } 19923 else 19924 { 19925 unsigned long i = ulongval (); 19926 if (i != ((long) (sizeof (short)))) 19927 exit (1); 19928 fprintf (f, "%lu\n", i); 19929 } 19930 exit (ferror (f) || fclose (f) != 0); 19931 19932 ; 19933 return 0; 19934} 19935_ACEOF 19936rm -f conftest$ac_exeext 19937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19938 (eval $ac_link) 2>&5 19939 ac_status=$? 19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19943 (eval $ac_try) 2>&5 19944 ac_status=$? 19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19946 (exit $ac_status); }; }; then 19947 ac_cv_sizeof_short=`cat conftest.val` 19948else 19949 echo "$as_me: program exited with status $ac_status" >&5 19950echo "$as_me: failed program was:" >&5 19951sed 's/^/| /' conftest.$ac_ext >&5 19952 19953( exit $ac_status ) 19954{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 19955See \`config.log' for more details." >&5 19956echo "$as_me: error: cannot compute sizeof (short), 77 19957See \`config.log' for more details." >&2;} 19958 { (exit 1); exit 1; }; } 19959fi 19960rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19961fi 19962fi 19963rm -f conftest.val 19964else 19965 ac_cv_sizeof_short=0 19966fi 19967fi 19968echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 19969echo "${ECHO_T}$ac_cv_sizeof_short" >&6 19970cat >>confdefs.h <<_ACEOF 19971#define SIZEOF_SHORT $ac_cv_sizeof_short 19972_ACEOF 19973 19974 19975 fi 19976 FOUND=0 19977 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 19978 dc_cv_size=`eval echo $dc_cv_loop` 19979 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 19980 if test "$dc_cv_size" = "2"; then 19981 if test "$dc_cv_name" = "int"; then 19982 echo "$as_me:$LINENO: checking for int16_t" >&5 19983echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 19984if test "${ac_cv_type_int16_t+set}" = set; then 19985 echo $ECHO_N "(cached) $ECHO_C" >&6 19986else 19987 cat >conftest.$ac_ext <<_ACEOF 19988/* confdefs.h. */ 19989_ACEOF 19990cat confdefs.h >>conftest.$ac_ext 19991cat >>conftest.$ac_ext <<_ACEOF 19992/* end confdefs.h. */ 19993$ac_includes_default 19994int 19995main () 19996{ 19997if ((int16_t *) 0) 19998 return 0; 19999if (sizeof (int16_t)) 20000 return 0; 20001 ; 20002 return 0; 20003} 20004_ACEOF 20005rm -f conftest.$ac_objext 20006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20007 (eval $ac_compile) 2>conftest.er1 20008 ac_status=$? 20009 grep -v '^ *+' conftest.er1 >conftest.err 20010 rm -f conftest.er1 20011 cat conftest.err >&5 20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20013 (exit $ac_status); } && 20014 { ac_try='test -z "$ac_c_werror_flag" 20015 || test ! -s conftest.err' 20016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20017 (eval $ac_try) 2>&5 20018 ac_status=$? 20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20020 (exit $ac_status); }; } && 20021 { ac_try='test -s conftest.$ac_objext' 20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20023 (eval $ac_try) 2>&5 20024 ac_status=$? 20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20026 (exit $ac_status); }; }; then 20027 ac_cv_type_int16_t=yes 20028else 20029 echo "$as_me: failed program was:" >&5 20030sed 's/^/| /' conftest.$ac_ext >&5 20031 20032ac_cv_type_int16_t=no 20033fi 20034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20035fi 20036echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 20037echo "${ECHO_T}$ac_cv_type_int16_t" >&6 20038if test $ac_cv_type_int16_t = yes; then 20039 : 20040else 20041 20042cat >>confdefs.h <<_ACEOF 20043#define int16_t signed int 20044_ACEOF 20045 20046fi 20047 20048 fi 20049 if test "$dc_cv_name" = "long"; then 20050 echo "$as_me:$LINENO: checking for int16_t" >&5 20051echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 20052if test "${ac_cv_type_int16_t+set}" = set; then 20053 echo $ECHO_N "(cached) $ECHO_C" >&6 20054else 20055 cat >conftest.$ac_ext <<_ACEOF 20056/* confdefs.h. */ 20057_ACEOF 20058cat confdefs.h >>conftest.$ac_ext 20059cat >>conftest.$ac_ext <<_ACEOF 20060/* end confdefs.h. */ 20061$ac_includes_default 20062int 20063main () 20064{ 20065if ((int16_t *) 0) 20066 return 0; 20067if (sizeof (int16_t)) 20068 return 0; 20069 ; 20070 return 0; 20071} 20072_ACEOF 20073rm -f conftest.$ac_objext 20074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20075 (eval $ac_compile) 2>conftest.er1 20076 ac_status=$? 20077 grep -v '^ *+' conftest.er1 >conftest.err 20078 rm -f conftest.er1 20079 cat conftest.err >&5 20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20081 (exit $ac_status); } && 20082 { ac_try='test -z "$ac_c_werror_flag" 20083 || test ! -s conftest.err' 20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20085 (eval $ac_try) 2>&5 20086 ac_status=$? 20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20088 (exit $ac_status); }; } && 20089 { ac_try='test -s conftest.$ac_objext' 20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20091 (eval $ac_try) 2>&5 20092 ac_status=$? 20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20094 (exit $ac_status); }; }; then 20095 ac_cv_type_int16_t=yes 20096else 20097 echo "$as_me: failed program was:" >&5 20098sed 's/^/| /' conftest.$ac_ext >&5 20099 20100ac_cv_type_int16_t=no 20101fi 20102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20103fi 20104echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 20105echo "${ECHO_T}$ac_cv_type_int16_t" >&6 20106if test $ac_cv_type_int16_t = yes; then 20107 : 20108else 20109 20110cat >>confdefs.h <<_ACEOF 20111#define int16_t signed long 20112_ACEOF 20113 20114fi 20115 20116 fi 20117 if test "$dc_cv_name" = "long_long"; then 20118 echo "$as_me:$LINENO: checking for int16_t" >&5 20119echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 20120if test "${ac_cv_type_int16_t+set}" = set; then 20121 echo $ECHO_N "(cached) $ECHO_C" >&6 20122else 20123 cat >conftest.$ac_ext <<_ACEOF 20124/* confdefs.h. */ 20125_ACEOF 20126cat confdefs.h >>conftest.$ac_ext 20127cat >>conftest.$ac_ext <<_ACEOF 20128/* end confdefs.h. */ 20129$ac_includes_default 20130int 20131main () 20132{ 20133if ((int16_t *) 0) 20134 return 0; 20135if (sizeof (int16_t)) 20136 return 0; 20137 ; 20138 return 0; 20139} 20140_ACEOF 20141rm -f conftest.$ac_objext 20142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20143 (eval $ac_compile) 2>conftest.er1 20144 ac_status=$? 20145 grep -v '^ *+' conftest.er1 >conftest.err 20146 rm -f conftest.er1 20147 cat conftest.err >&5 20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20149 (exit $ac_status); } && 20150 { ac_try='test -z "$ac_c_werror_flag" 20151 || test ! -s conftest.err' 20152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20153 (eval $ac_try) 2>&5 20154 ac_status=$? 20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20156 (exit $ac_status); }; } && 20157 { ac_try='test -s conftest.$ac_objext' 20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20159 (eval $ac_try) 2>&5 20160 ac_status=$? 20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20162 (exit $ac_status); }; }; then 20163 ac_cv_type_int16_t=yes 20164else 20165 echo "$as_me: failed program was:" >&5 20166sed 's/^/| /' conftest.$ac_ext >&5 20167 20168ac_cv_type_int16_t=no 20169fi 20170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20171fi 20172echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 20173echo "${ECHO_T}$ac_cv_type_int16_t" >&6 20174if test $ac_cv_type_int16_t = yes; then 20175 : 20176else 20177 20178cat >>confdefs.h <<_ACEOF 20179#define int16_t signed long long 20180_ACEOF 20181 20182fi 20183 20184 fi 20185 if test "$dc_cv_name" = "short"; then 20186 echo "$as_me:$LINENO: checking for int16_t" >&5 20187echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 20188if test "${ac_cv_type_int16_t+set}" = set; then 20189 echo $ECHO_N "(cached) $ECHO_C" >&6 20190else 20191 cat >conftest.$ac_ext <<_ACEOF 20192/* confdefs.h. */ 20193_ACEOF 20194cat confdefs.h >>conftest.$ac_ext 20195cat >>conftest.$ac_ext <<_ACEOF 20196/* end confdefs.h. */ 20197$ac_includes_default 20198int 20199main () 20200{ 20201if ((int16_t *) 0) 20202 return 0; 20203if (sizeof (int16_t)) 20204 return 0; 20205 ; 20206 return 0; 20207} 20208_ACEOF 20209rm -f conftest.$ac_objext 20210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20211 (eval $ac_compile) 2>conftest.er1 20212 ac_status=$? 20213 grep -v '^ *+' conftest.er1 >conftest.err 20214 rm -f conftest.er1 20215 cat conftest.err >&5 20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20217 (exit $ac_status); } && 20218 { ac_try='test -z "$ac_c_werror_flag" 20219 || test ! -s conftest.err' 20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20221 (eval $ac_try) 2>&5 20222 ac_status=$? 20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20224 (exit $ac_status); }; } && 20225 { ac_try='test -s conftest.$ac_objext' 20226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20227 (eval $ac_try) 2>&5 20228 ac_status=$? 20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20230 (exit $ac_status); }; }; then 20231 ac_cv_type_int16_t=yes 20232else 20233 echo "$as_me: failed program was:" >&5 20234sed 's/^/| /' conftest.$ac_ext >&5 20235 20236ac_cv_type_int16_t=no 20237fi 20238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20239fi 20240echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 20241echo "${ECHO_T}$ac_cv_type_int16_t" >&6 20242if test $ac_cv_type_int16_t = yes; then 20243 : 20244else 20245 20246cat >>confdefs.h <<_ACEOF 20247#define int16_t signed short 20248_ACEOF 20249 20250fi 20251 20252 fi 20253 FOUND=1 20254 break 20255 fi 20256 done 20257 20258 20259echo "$as_me:$LINENO: checking for compress2 in -lz" >&5 20260echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6 20261if test "${ac_cv_lib_z_compress2+set}" = set; then 20262 echo $ECHO_N "(cached) $ECHO_C" >&6 20263else 20264 ac_check_lib_save_LIBS=$LIBS 20265LIBS="-lz $LIBS" 20266cat >conftest.$ac_ext <<_ACEOF 20267/* confdefs.h. */ 20268_ACEOF 20269cat confdefs.h >>conftest.$ac_ext 20270cat >>conftest.$ac_ext <<_ACEOF 20271/* end confdefs.h. */ 20272 20273/* Override any gcc2 internal prototype to avoid an error. */ 20274#ifdef __cplusplus 20275extern "C" 20276#endif 20277/* We use char because int might match the return type of a gcc2 20278 builtin and then its argument prototype would still apply. */ 20279char compress2 (); 20280int 20281main () 20282{ 20283compress2 (); 20284 ; 20285 return 0; 20286} 20287_ACEOF 20288rm -f conftest.$ac_objext conftest$ac_exeext 20289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20290 (eval $ac_link) 2>conftest.er1 20291 ac_status=$? 20292 grep -v '^ *+' conftest.er1 >conftest.err 20293 rm -f conftest.er1 20294 cat conftest.err >&5 20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20296 (exit $ac_status); } && 20297 { ac_try='test -z "$ac_c_werror_flag" 20298 || test ! -s conftest.err' 20299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20300 (eval $ac_try) 2>&5 20301 ac_status=$? 20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20303 (exit $ac_status); }; } && 20304 { ac_try='test -s conftest$ac_exeext' 20305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20306 (eval $ac_try) 2>&5 20307 ac_status=$? 20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20309 (exit $ac_status); }; }; then 20310 ac_cv_lib_z_compress2=yes 20311else 20312 echo "$as_me: failed program was:" >&5 20313sed 's/^/| /' conftest.$ac_ext >&5 20314 20315ac_cv_lib_z_compress2=no 20316fi 20317rm -f conftest.err conftest.$ac_objext \ 20318 conftest$ac_exeext conftest.$ac_ext 20319LIBS=$ac_check_lib_save_LIBS 20320fi 20321echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5 20322echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6 20323if test $ac_cv_lib_z_compress2 = yes; then 20324 20325cat >>confdefs.h <<\_ACEOF 20326#define HAVE_COMPRESS2 20327_ACEOF 20328 20329fi 20330 20331echo "$as_me:$LINENO: checking for gzdopen in -lz" >&5 20332echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6 20333if test "${ac_cv_lib_z_gzdopen+set}" = set; then 20334 echo $ECHO_N "(cached) $ECHO_C" >&6 20335else 20336 ac_check_lib_save_LIBS=$LIBS 20337LIBS="-lz $LIBS" 20338cat >conftest.$ac_ext <<_ACEOF 20339/* confdefs.h. */ 20340_ACEOF 20341cat confdefs.h >>conftest.$ac_ext 20342cat >>conftest.$ac_ext <<_ACEOF 20343/* end confdefs.h. */ 20344 20345/* Override any gcc2 internal prototype to avoid an error. */ 20346#ifdef __cplusplus 20347extern "C" 20348#endif 20349/* We use char because int might match the return type of a gcc2 20350 builtin and then its argument prototype would still apply. */ 20351char gzdopen (); 20352int 20353main () 20354{ 20355gzdopen (); 20356 ; 20357 return 0; 20358} 20359_ACEOF 20360rm -f conftest.$ac_objext conftest$ac_exeext 20361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20362 (eval $ac_link) 2>conftest.er1 20363 ac_status=$? 20364 grep -v '^ *+' conftest.er1 >conftest.err 20365 rm -f conftest.er1 20366 cat conftest.err >&5 20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20368 (exit $ac_status); } && 20369 { ac_try='test -z "$ac_c_werror_flag" 20370 || test ! -s conftest.err' 20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20372 (eval $ac_try) 2>&5 20373 ac_status=$? 20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20375 (exit $ac_status); }; } && 20376 { ac_try='test -s conftest$ac_exeext' 20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20378 (eval $ac_try) 2>&5 20379 ac_status=$? 20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20381 (exit $ac_status); }; }; then 20382 ac_cv_lib_z_gzdopen=yes 20383else 20384 echo "$as_me: failed program was:" >&5 20385sed 's/^/| /' conftest.$ac_ext >&5 20386 20387ac_cv_lib_z_gzdopen=no 20388fi 20389rm -f conftest.err conftest.$ac_objext \ 20390 conftest$ac_exeext conftest.$ac_ext 20391LIBS=$ac_check_lib_save_LIBS 20392fi 20393echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzdopen" >&5 20394echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6 20395if test $ac_cv_lib_z_gzdopen = yes; then 20396 20397cat >>confdefs.h <<\_ACEOF 20398#define HAVE_GZDOPEN 20399_ACEOF 20400 20401fi 20402 20403echo "$as_me:$LINENO: checking for bzBuffToBuffCompress in -lbz2" >&5 20404echo $ECHO_N "checking for bzBuffToBuffCompress in -lbz2... $ECHO_C" >&6 20405if test "${ac_cv_lib_bz2_bzBuffToBuffCompress+set}" = set; then 20406 echo $ECHO_N "(cached) $ECHO_C" >&6 20407else 20408 ac_check_lib_save_LIBS=$LIBS 20409LIBS="-lbz2 $LIBS" 20410cat >conftest.$ac_ext <<_ACEOF 20411/* confdefs.h. */ 20412_ACEOF 20413cat confdefs.h >>conftest.$ac_ext 20414cat >>conftest.$ac_ext <<_ACEOF 20415/* end confdefs.h. */ 20416 20417/* Override any gcc2 internal prototype to avoid an error. */ 20418#ifdef __cplusplus 20419extern "C" 20420#endif 20421/* We use char because int might match the return type of a gcc2 20422 builtin and then its argument prototype would still apply. */ 20423char bzBuffToBuffCompress (); 20424int 20425main () 20426{ 20427bzBuffToBuffCompress (); 20428 ; 20429 return 0; 20430} 20431_ACEOF 20432rm -f conftest.$ac_objext conftest$ac_exeext 20433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20434 (eval $ac_link) 2>conftest.er1 20435 ac_status=$? 20436 grep -v '^ *+' conftest.er1 >conftest.err 20437 rm -f conftest.er1 20438 cat conftest.err >&5 20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20440 (exit $ac_status); } && 20441 { ac_try='test -z "$ac_c_werror_flag" 20442 || test ! -s conftest.err' 20443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20444 (eval $ac_try) 2>&5 20445 ac_status=$? 20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20447 (exit $ac_status); }; } && 20448 { ac_try='test -s conftest$ac_exeext' 20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20450 (eval $ac_try) 2>&5 20451 ac_status=$? 20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20453 (exit $ac_status); }; }; then 20454 ac_cv_lib_bz2_bzBuffToBuffCompress=yes 20455else 20456 echo "$as_me: failed program was:" >&5 20457sed 's/^/| /' conftest.$ac_ext >&5 20458 20459ac_cv_lib_bz2_bzBuffToBuffCompress=no 20460fi 20461rm -f conftest.err conftest.$ac_objext \ 20462 conftest$ac_exeext conftest.$ac_ext 20463LIBS=$ac_check_lib_save_LIBS 20464fi 20465echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_bzBuffToBuffCompress" >&5 20466echo "${ECHO_T}$ac_cv_lib_bz2_bzBuffToBuffCompress" >&6 20467if test $ac_cv_lib_bz2_bzBuffToBuffCompress = yes; then 20468 20469cat >>confdefs.h <<\_ACEOF 20470#define HAVE_OLD_BZ2 20471_ACEOF 20472 20473fi 20474 20475echo "$as_me:$LINENO: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5 20476echo $ECHO_N "checking for BZ2_bzBuffToBuffCompress in -lbz2... $ECHO_C" >&6 20477if test "${ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress+set}" = set; then 20478 echo $ECHO_N "(cached) $ECHO_C" >&6 20479else 20480 ac_check_lib_save_LIBS=$LIBS 20481LIBS="-lbz2 $LIBS" 20482cat >conftest.$ac_ext <<_ACEOF 20483/* confdefs.h. */ 20484_ACEOF 20485cat confdefs.h >>conftest.$ac_ext 20486cat >>conftest.$ac_ext <<_ACEOF 20487/* end confdefs.h. */ 20488 20489/* Override any gcc2 internal prototype to avoid an error. */ 20490#ifdef __cplusplus 20491extern "C" 20492#endif 20493/* We use char because int might match the return type of a gcc2 20494 builtin and then its argument prototype would still apply. */ 20495char BZ2_bzBuffToBuffCompress (); 20496int 20497main () 20498{ 20499BZ2_bzBuffToBuffCompress (); 20500 ; 20501 return 0; 20502} 20503_ACEOF 20504rm -f conftest.$ac_objext conftest$ac_exeext 20505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20506 (eval $ac_link) 2>conftest.er1 20507 ac_status=$? 20508 grep -v '^ *+' conftest.er1 >conftest.err 20509 rm -f conftest.er1 20510 cat conftest.err >&5 20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20512 (exit $ac_status); } && 20513 { ac_try='test -z "$ac_c_werror_flag" 20514 || test ! -s conftest.err' 20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20516 (eval $ac_try) 2>&5 20517 ac_status=$? 20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20519 (exit $ac_status); }; } && 20520 { ac_try='test -s conftest$ac_exeext' 20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20522 (eval $ac_try) 2>&5 20523 ac_status=$? 20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20525 (exit $ac_status); }; }; then 20526 ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes 20527else 20528 echo "$as_me: failed program was:" >&5 20529sed 's/^/| /' conftest.$ac_ext >&5 20530 20531ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no 20532fi 20533rm -f conftest.err conftest.$ac_objext \ 20534 conftest$ac_exeext conftest.$ac_ext 20535LIBS=$ac_check_lib_save_LIBS 20536fi 20537echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5 20538echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6 20539if test $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress = yes; then 20540 20541cat >>confdefs.h <<\_ACEOF 20542#define HAVE_NEW_BZ2 20543_ACEOF 20544 20545fi 20546 20547echo "$as_me:$LINENO: checking for bzdopen in -lbz2" >&5 20548echo $ECHO_N "checking for bzdopen in -lbz2... $ECHO_C" >&6 20549if test "${ac_cv_lib_bz2_bzdopen+set}" = set; then 20550 echo $ECHO_N "(cached) $ECHO_C" >&6 20551else 20552 ac_check_lib_save_LIBS=$LIBS 20553LIBS="-lbz2 $LIBS" 20554cat >conftest.$ac_ext <<_ACEOF 20555/* confdefs.h. */ 20556_ACEOF 20557cat confdefs.h >>conftest.$ac_ext 20558cat >>conftest.$ac_ext <<_ACEOF 20559/* end confdefs.h. */ 20560 20561/* Override any gcc2 internal prototype to avoid an error. */ 20562#ifdef __cplusplus 20563extern "C" 20564#endif 20565/* We use char because int might match the return type of a gcc2 20566 builtin and then its argument prototype would still apply. */ 20567char bzdopen (); 20568int 20569main () 20570{ 20571bzdopen (); 20572 ; 20573 return 0; 20574} 20575_ACEOF 20576rm -f conftest.$ac_objext conftest$ac_exeext 20577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20578 (eval $ac_link) 2>conftest.er1 20579 ac_status=$? 20580 grep -v '^ *+' conftest.er1 >conftest.err 20581 rm -f conftest.er1 20582 cat conftest.err >&5 20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20584 (exit $ac_status); } && 20585 { ac_try='test -z "$ac_c_werror_flag" 20586 || test ! -s conftest.err' 20587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20588 (eval $ac_try) 2>&5 20589 ac_status=$? 20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20591 (exit $ac_status); }; } && 20592 { ac_try='test -s conftest$ac_exeext' 20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20594 (eval $ac_try) 2>&5 20595 ac_status=$? 20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20597 (exit $ac_status); }; }; then 20598 ac_cv_lib_bz2_bzdopen=yes 20599else 20600 echo "$as_me: failed program was:" >&5 20601sed 's/^/| /' conftest.$ac_ext >&5 20602 20603ac_cv_lib_bz2_bzdopen=no 20604fi 20605rm -f conftest.err conftest.$ac_objext \ 20606 conftest$ac_exeext conftest.$ac_ext 20607LIBS=$ac_check_lib_save_LIBS 20608fi 20609echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_bzdopen" >&5 20610echo "${ECHO_T}$ac_cv_lib_bz2_bzdopen" >&6 20611if test $ac_cv_lib_bz2_bzdopen = yes; then 20612 20613cat >>confdefs.h <<\_ACEOF 20614#define HAVE_BZDOPEN 20615_ACEOF 20616 20617fi 20618 20619echo "$as_me:$LINENO: checking for BZ2_bzdopen in -lbz2" >&5 20620echo $ECHO_N "checking for BZ2_bzdopen in -lbz2... $ECHO_C" >&6 20621if test "${ac_cv_lib_bz2_BZ2_bzdopen+set}" = set; then 20622 echo $ECHO_N "(cached) $ECHO_C" >&6 20623else 20624 ac_check_lib_save_LIBS=$LIBS 20625LIBS="-lbz2 $LIBS" 20626cat >conftest.$ac_ext <<_ACEOF 20627/* confdefs.h. */ 20628_ACEOF 20629cat confdefs.h >>conftest.$ac_ext 20630cat >>conftest.$ac_ext <<_ACEOF 20631/* end confdefs.h. */ 20632 20633/* Override any gcc2 internal prototype to avoid an error. */ 20634#ifdef __cplusplus 20635extern "C" 20636#endif 20637/* We use char because int might match the return type of a gcc2 20638 builtin and then its argument prototype would still apply. */ 20639char BZ2_bzdopen (); 20640int 20641main () 20642{ 20643BZ2_bzdopen (); 20644 ; 20645 return 0; 20646} 20647_ACEOF 20648rm -f conftest.$ac_objext conftest$ac_exeext 20649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20650 (eval $ac_link) 2>conftest.er1 20651 ac_status=$? 20652 grep -v '^ *+' conftest.er1 >conftest.err 20653 rm -f conftest.er1 20654 cat conftest.err >&5 20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20656 (exit $ac_status); } && 20657 { ac_try='test -z "$ac_c_werror_flag" 20658 || test ! -s conftest.err' 20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20660 (eval $ac_try) 2>&5 20661 ac_status=$? 20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20663 (exit $ac_status); }; } && 20664 { ac_try='test -s conftest$ac_exeext' 20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20666 (eval $ac_try) 2>&5 20667 ac_status=$? 20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20669 (exit $ac_status); }; }; then 20670 ac_cv_lib_bz2_BZ2_bzdopen=yes 20671else 20672 echo "$as_me: failed program was:" >&5 20673sed 's/^/| /' conftest.$ac_ext >&5 20674 20675ac_cv_lib_bz2_BZ2_bzdopen=no 20676fi 20677rm -f conftest.err conftest.$ac_objext \ 20678 conftest$ac_exeext conftest.$ac_ext 20679LIBS=$ac_check_lib_save_LIBS 20680fi 20681echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzdopen" >&5 20682echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzdopen" >&6 20683if test $ac_cv_lib_bz2_BZ2_bzdopen = yes; then 20684 20685cat >>confdefs.h <<\_ACEOF 20686#define HAVE_NEW_BZDOPEN 20687_ACEOF 20688 20689fi 20690 20691 20692 20693 20694 20695 20696for ac_func in getopt strsep getpass mkstemp uname 20697do 20698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20699echo "$as_me:$LINENO: checking for $ac_func" >&5 20700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20701if eval "test \"\${$as_ac_var+set}\" = set"; then 20702 echo $ECHO_N "(cached) $ECHO_C" >&6 20703else 20704 cat >conftest.$ac_ext <<_ACEOF 20705/* confdefs.h. */ 20706_ACEOF 20707cat confdefs.h >>conftest.$ac_ext 20708cat >>conftest.$ac_ext <<_ACEOF 20709/* end confdefs.h. */ 20710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20711 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20712#define $ac_func innocuous_$ac_func 20713 20714/* System header to define __stub macros and hopefully few prototypes, 20715 which can conflict with char $ac_func (); below. 20716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20717 <limits.h> exists even on freestanding compilers. */ 20718 20719#ifdef __STDC__ 20720# include <limits.h> 20721#else 20722# include <assert.h> 20723#endif 20724 20725#undef $ac_func 20726 20727/* Override any gcc2 internal prototype to avoid an error. */ 20728#ifdef __cplusplus 20729extern "C" 20730{ 20731#endif 20732/* We use char because int might match the return type of a gcc2 20733 builtin and then its argument prototype would still apply. */ 20734char $ac_func (); 20735/* The GNU C library defines this for functions which it implements 20736 to always fail with ENOSYS. Some functions are actually named 20737 something starting with __ and the normal name is an alias. */ 20738#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20739choke me 20740#else 20741char (*f) () = $ac_func; 20742#endif 20743#ifdef __cplusplus 20744} 20745#endif 20746 20747int 20748main () 20749{ 20750return f != $ac_func; 20751 ; 20752 return 0; 20753} 20754_ACEOF 20755rm -f conftest.$ac_objext conftest$ac_exeext 20756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20757 (eval $ac_link) 2>conftest.er1 20758 ac_status=$? 20759 grep -v '^ *+' conftest.er1 >conftest.err 20760 rm -f conftest.er1 20761 cat conftest.err >&5 20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20763 (exit $ac_status); } && 20764 { ac_try='test -z "$ac_c_werror_flag" 20765 || test ! -s conftest.err' 20766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20767 (eval $ac_try) 2>&5 20768 ac_status=$? 20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20770 (exit $ac_status); }; } && 20771 { ac_try='test -s conftest$ac_exeext' 20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20773 (eval $ac_try) 2>&5 20774 ac_status=$? 20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20776 (exit $ac_status); }; }; then 20777 eval "$as_ac_var=yes" 20778else 20779 echo "$as_me: failed program was:" >&5 20780sed 's/^/| /' conftest.$ac_ext >&5 20781 20782eval "$as_ac_var=no" 20783fi 20784rm -f conftest.err conftest.$ac_objext \ 20785 conftest$ac_exeext conftest.$ac_ext 20786fi 20787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 20788echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20789if test `eval echo '${'$as_ac_var'}'` = yes; then 20790 cat >>confdefs.h <<_ACEOF 20791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20792_ACEOF 20793 20794else 20795 case $LIBOBJS in 20796 "$ac_func.$ac_objext" | \ 20797 *" $ac_func.$ac_objext" | \ 20798 "$ac_func.$ac_objext "* | \ 20799 *" $ac_func.$ac_objext "* ) ;; 20800 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 20801esac 20802 20803fi 20804done 20805 20806 20807 20808 20809 20810 20811 20812for ac_header in windows.h windowsx.h winsock2.h 20813do 20814as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20815if eval "test \"\${$as_ac_Header+set}\" = set"; then 20816 echo "$as_me:$LINENO: checking for $ac_header" >&5 20817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20818if eval "test \"\${$as_ac_Header+set}\" = set"; then 20819 echo $ECHO_N "(cached) $ECHO_C" >&6 20820fi 20821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20822echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20823else 20824 # Is the header compilable? 20825echo "$as_me:$LINENO: checking $ac_header usability" >&5 20826echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 20827cat >conftest.$ac_ext <<_ACEOF 20828/* confdefs.h. */ 20829_ACEOF 20830cat confdefs.h >>conftest.$ac_ext 20831cat >>conftest.$ac_ext <<_ACEOF 20832/* end confdefs.h. */ 20833$ac_includes_default 20834#include <$ac_header> 20835_ACEOF 20836rm -f conftest.$ac_objext 20837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20838 (eval $ac_compile) 2>conftest.er1 20839 ac_status=$? 20840 grep -v '^ *+' conftest.er1 >conftest.err 20841 rm -f conftest.er1 20842 cat conftest.err >&5 20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20844 (exit $ac_status); } && 20845 { ac_try='test -z "$ac_c_werror_flag" 20846 || test ! -s conftest.err' 20847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20848 (eval $ac_try) 2>&5 20849 ac_status=$? 20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20851 (exit $ac_status); }; } && 20852 { ac_try='test -s conftest.$ac_objext' 20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20854 (eval $ac_try) 2>&5 20855 ac_status=$? 20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20857 (exit $ac_status); }; }; then 20858 ac_header_compiler=yes 20859else 20860 echo "$as_me: failed program was:" >&5 20861sed 's/^/| /' conftest.$ac_ext >&5 20862 20863ac_header_compiler=no 20864fi 20865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20866echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20867echo "${ECHO_T}$ac_header_compiler" >&6 20868 20869# Is the header present? 20870echo "$as_me:$LINENO: checking $ac_header presence" >&5 20871echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 20872cat >conftest.$ac_ext <<_ACEOF 20873/* confdefs.h. */ 20874_ACEOF 20875cat confdefs.h >>conftest.$ac_ext 20876cat >>conftest.$ac_ext <<_ACEOF 20877/* end confdefs.h. */ 20878#include <$ac_header> 20879_ACEOF 20880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20882 ac_status=$? 20883 grep -v '^ *+' conftest.er1 >conftest.err 20884 rm -f conftest.er1 20885 cat conftest.err >&5 20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20887 (exit $ac_status); } >/dev/null; then 20888 if test -s conftest.err; then 20889 ac_cpp_err=$ac_c_preproc_warn_flag 20890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20891 else 20892 ac_cpp_err= 20893 fi 20894else 20895 ac_cpp_err=yes 20896fi 20897if test -z "$ac_cpp_err"; then 20898 ac_header_preproc=yes 20899else 20900 echo "$as_me: failed program was:" >&5 20901sed 's/^/| /' conftest.$ac_ext >&5 20902 20903 ac_header_preproc=no 20904fi 20905rm -f conftest.err conftest.$ac_ext 20906echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20907echo "${ECHO_T}$ac_header_preproc" >&6 20908 20909# So? What about this header? 20910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20911 yes:no: ) 20912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20913echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20915echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20916 ac_header_preproc=yes 20917 ;; 20918 no:yes:* ) 20919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20920echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20922echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20924echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20926echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20928echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20930echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20931 ( 20932 cat <<\_ASBOX 20933## ------------------------------------------ ## 20934## Report this to the AC_PACKAGE_NAME lists. ## 20935## ------------------------------------------ ## 20936_ASBOX 20937 ) | 20938 sed "s/^/$as_me: WARNING: /" >&2 20939 ;; 20940esac 20941echo "$as_me:$LINENO: checking for $ac_header" >&5 20942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20943if eval "test \"\${$as_ac_Header+set}\" = set"; then 20944 echo $ECHO_N "(cached) $ECHO_C" >&6 20945else 20946 eval "$as_ac_Header=\$ac_header_preproc" 20947fi 20948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20950 20951fi 20952if test `eval echo '${'$as_ac_Header'}'` = yes; then 20953 cat >>confdefs.h <<_ACEOF 20954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20955_ACEOF 20956 20957fi 20958 20959done 20960 20961 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5 20962echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6 20963if test "${ac_cv_lib_wsock32_main+set}" = set; then 20964 echo $ECHO_N "(cached) $ECHO_C" >&6 20965else 20966 ac_check_lib_save_LIBS=$LIBS 20967LIBS="-lwsock32 $LIBS" 20968cat >conftest.$ac_ext <<_ACEOF 20969/* confdefs.h. */ 20970_ACEOF 20971cat confdefs.h >>conftest.$ac_ext 20972cat >>conftest.$ac_ext <<_ACEOF 20973/* end confdefs.h. */ 20974 20975 20976int 20977main () 20978{ 20979main (); 20980 ; 20981 return 0; 20982} 20983_ACEOF 20984rm -f conftest.$ac_objext conftest$ac_exeext 20985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20986 (eval $ac_link) 2>conftest.er1 20987 ac_status=$? 20988 grep -v '^ *+' conftest.er1 >conftest.err 20989 rm -f conftest.er1 20990 cat conftest.err >&5 20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20992 (exit $ac_status); } && 20993 { ac_try='test -z "$ac_c_werror_flag" 20994 || test ! -s conftest.err' 20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20996 (eval $ac_try) 2>&5 20997 ac_status=$? 20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20999 (exit $ac_status); }; } && 21000 { ac_try='test -s conftest$ac_exeext' 21001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21002 (eval $ac_try) 2>&5 21003 ac_status=$? 21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21005 (exit $ac_status); }; }; then 21006 ac_cv_lib_wsock32_main=yes 21007else 21008 echo "$as_me: failed program was:" >&5 21009sed 's/^/| /' conftest.$ac_ext >&5 21010 21011ac_cv_lib_wsock32_main=no 21012fi 21013rm -f conftest.err conftest.$ac_objext \ 21014 conftest$ac_exeext conftest.$ac_ext 21015LIBS=$ac_check_lib_save_LIBS 21016fi 21017echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5 21018echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6 21019if test $ac_cv_lib_wsock32_main = yes; then 21020 21021 21022cat >>confdefs.h <<\_ACEOF 21023#define HAVE_LIBWSOCK32 21024_ACEOF 21025 21026 LIBS="${LIBS} -lwsock32" 21027 21028fi 21029 21030 21031 21032 21033 21034 SHLIBOBJS="" 21035 for obj in $LIBOBJS; do 21036 SHLIBOBJS="$SHLIBOBJS `echo $obj | sed 's/\.o$/_shr.o/g'`" 21037 done 21038 21039 21040 ac_config_files="$ac_config_files Makefile" 21041cat >confcache <<\_ACEOF 21042# This file is a shell script that caches the results of configure 21043# tests run on this system so they can be shared between configure 21044# scripts and configure runs, see configure's option --config-cache. 21045# It is not useful on other systems. If it contains results you don't 21046# want to keep, you may remove or edit it. 21047# 21048# config.status only pays attention to the cache file if you give it 21049# the --recheck option to rerun configure. 21050# 21051# `ac_cv_env_foo' variables (set or unset) will be overridden when 21052# loading this file, other *unset* `ac_cv_foo' will be assigned the 21053# following values. 21054 21055_ACEOF 21056 21057# The following way of writing the cache mishandles newlines in values, 21058# but we know of no workaround that is simple, portable, and efficient. 21059# So, don't put newlines in cache variables' values. 21060# Ultrix sh set writes to stderr and can't be redirected directly, 21061# and sets the high bit in the cache file unless we assign to the vars. 21062{ 21063 (set) 2>&1 | 21064 case `(ac_space=' '; set | grep ac_space) 2>&1` in 21065 *ac_space=\ *) 21066 # `set' does not quote correctly, so add quotes (double-quote 21067 # substitution turns \\\\ into \\, and sed turns \\ into \). 21068 sed -n \ 21069 "s/'/'\\\\''/g; 21070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21071 ;; 21072 *) 21073 # `set' quotes correctly as required by POSIX, so do not add quotes. 21074 sed -n \ 21075 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 21076 ;; 21077 esac; 21078} | 21079 sed ' 21080 t clear 21081 : clear 21082 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21083 t end 21084 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21085 : end' >>confcache 21086if diff $cache_file confcache >/dev/null 2>&1; then :; else 21087 if test -w $cache_file; then 21088 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 21089 cat confcache >$cache_file 21090 else 21091 echo "not updating unwritable cache $cache_file" 21092 fi 21093fi 21094rm -f confcache 21095 21096test "x$prefix" = xNONE && prefix=$ac_default_prefix 21097# Let make expand exec_prefix. 21098test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21099 21100# VPATH may cause trouble with some makes, so we remove $(srcdir), 21101# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21102# trailing colons and then remove the whole line if VPATH becomes empty 21103# (actually we leave an empty line to preserve line numbers). 21104if test "x$srcdir" = x.; then 21105 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21106s/:*\$(srcdir):*/:/; 21107s/:*\${srcdir}:*/:/; 21108s/:*@srcdir@:*/:/; 21109s/^\([^=]*=[ ]*\):*/\1/; 21110s/:*$//; 21111s/^[^=]*=[ ]*$//; 21112}' 21113fi 21114 21115DEFS=-DHAVE_CONFIG_H 21116 21117ac_libobjs= 21118ac_ltlibobjs= 21119for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21120 # 1. Remove the extension, and $U if already installed. 21121 ac_i=`echo "$ac_i" | 21122 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 21123 # 2. Add them. 21124 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 21125 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 21126done 21127LIBOBJS=$ac_libobjs 21128 21129LTLIBOBJS=$ac_ltlibobjs 21130 21131 21132 21133: ${CONFIG_STATUS=./config.status} 21134ac_clean_files_save=$ac_clean_files 21135ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21136{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21137echo "$as_me: creating $CONFIG_STATUS" >&6;} 21138cat >$CONFIG_STATUS <<_ACEOF 21139#! $SHELL 21140# Generated by $as_me. 21141# Run this file to recreate the current configuration. 21142# Compiler output produced by configure, useful for debugging 21143# configure, is in config.log if it exists. 21144 21145debug=false 21146ac_cs_recheck=false 21147ac_cs_silent=false 21148SHELL=\${CONFIG_SHELL-$SHELL} 21149_ACEOF 21150 21151cat >>$CONFIG_STATUS <<\_ACEOF 21152## --------------------- ## 21153## M4sh Initialization. ## 21154## --------------------- ## 21155 21156# Be Bourne compatible 21157if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21158 emulate sh 21159 NULLCMD=: 21160 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21161 # is contrary to our usage. Disable this feature. 21162 alias -g '${1+"$@"}'='"$@"' 21163elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21164 set -o posix 21165fi 21166DUALCASE=1; export DUALCASE # for MKS sh 21167 21168# Support unset when possible. 21169if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21170 as_unset=unset 21171else 21172 as_unset=false 21173fi 21174 21175 21176# Work around bugs in pre-3.0 UWIN ksh. 21177$as_unset ENV MAIL MAILPATH 21178PS1='$ ' 21179PS2='> ' 21180PS4='+ ' 21181 21182# NLS nuisances. 21183for as_var in \ 21184 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21185 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21186 LC_TELEPHONE LC_TIME 21187do 21188 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21189 eval $as_var=C; export $as_var 21190 else 21191 $as_unset $as_var 21192 fi 21193done 21194 21195# Required to use basename. 21196if expr a : '\(a\)' >/dev/null 2>&1; then 21197 as_expr=expr 21198else 21199 as_expr=false 21200fi 21201 21202if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 21203 as_basename=basename 21204else 21205 as_basename=false 21206fi 21207 21208 21209# Name of the executable. 21210as_me=`$as_basename "$0" || 21211$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21212 X"$0" : 'X\(//\)$' \| \ 21213 X"$0" : 'X\(/\)$' \| \ 21214 . : '\(.\)' 2>/dev/null || 21215echo X/"$0" | 21216 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 21217 /^X\/\(\/\/\)$/{ s//\1/; q; } 21218 /^X\/\(\/\).*/{ s//\1/; q; } 21219 s/.*/./; q'` 21220 21221 21222# PATH needs CR, and LINENO needs CR and PATH. 21223# Avoid depending upon Character Ranges. 21224as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21225as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21226as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21227as_cr_digits='0123456789' 21228as_cr_alnum=$as_cr_Letters$as_cr_digits 21229 21230# The user is always right. 21231if test "${PATH_SEPARATOR+set}" != set; then 21232 echo "#! /bin/sh" >conf$$.sh 21233 echo "exit 0" >>conf$$.sh 21234 chmod +x conf$$.sh 21235 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21236 PATH_SEPARATOR=';' 21237 else 21238 PATH_SEPARATOR=: 21239 fi 21240 rm -f conf$$.sh 21241fi 21242 21243 21244 as_lineno_1=$LINENO 21245 as_lineno_2=$LINENO 21246 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21247 test "x$as_lineno_1" != "x$as_lineno_2" && 21248 test "x$as_lineno_3" = "x$as_lineno_2" || { 21249 # Find who we are. Look in the path if we contain no path at all 21250 # relative or not. 21251 case $0 in 21252 *[\\/]* ) as_myself=$0 ;; 21253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21254for as_dir in $PATH 21255do 21256 IFS=$as_save_IFS 21257 test -z "$as_dir" && as_dir=. 21258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21259done 21260 21261 ;; 21262 esac 21263 # We did not find ourselves, most probably we were run as `sh COMMAND' 21264 # in which case we are not to be found in the path. 21265 if test "x$as_myself" = x; then 21266 as_myself=$0 21267 fi 21268 if test ! -f "$as_myself"; then 21269 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 21270echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 21271 { (exit 1); exit 1; }; } 21272 fi 21273 case $CONFIG_SHELL in 21274 '') 21275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21276for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 21277do 21278 IFS=$as_save_IFS 21279 test -z "$as_dir" && as_dir=. 21280 for as_base in sh bash ksh sh5; do 21281 case $as_dir in 21282 /*) 21283 if ("$as_dir/$as_base" -c ' 21284 as_lineno_1=$LINENO 21285 as_lineno_2=$LINENO 21286 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21287 test "x$as_lineno_1" != "x$as_lineno_2" && 21288 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 21289 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 21290 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 21291 CONFIG_SHELL=$as_dir/$as_base 21292 export CONFIG_SHELL 21293 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 21294 fi;; 21295 esac 21296 done 21297done 21298;; 21299 esac 21300 21301 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21302 # uniformly replaced by the line number. The first 'sed' inserts a 21303 # line-number line before each line; the second 'sed' does the real 21304 # work. The second script uses 'N' to pair each line-number line 21305 # with the numbered line, and appends trailing '-' during 21306 # substitution so that $LINENO is not a special case at line end. 21307 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21308 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 21309 sed '=' <$as_myself | 21310 sed ' 21311 N 21312 s,$,-, 21313 : loop 21314 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 21315 t loop 21316 s,-$,, 21317 s,^['$as_cr_digits']*\n,, 21318 ' >$as_me.lineno && 21319 chmod +x $as_me.lineno || 21320 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 21321echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 21322 { (exit 1); exit 1; }; } 21323 21324 # Don't try to exec as it changes $[0], causing all sort of problems 21325 # (the dirname of $[0] is not the place where we might find the 21326 # original and so on. Autoconf is especially sensible to this). 21327 . ./$as_me.lineno 21328 # Exit status is that of the last command. 21329 exit 21330} 21331 21332 21333case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 21334 *c*,-n*) ECHO_N= ECHO_C=' 21335' ECHO_T=' ' ;; 21336 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 21337 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 21338esac 21339 21340if expr a : '\(a\)' >/dev/null 2>&1; then 21341 as_expr=expr 21342else 21343 as_expr=false 21344fi 21345 21346rm -f conf$$ conf$$.exe conf$$.file 21347echo >conf$$.file 21348if ln -s conf$$.file conf$$ 2>/dev/null; then 21349 # We could just check for DJGPP; but this test a) works b) is more generic 21350 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 21351 if test -f conf$$.exe; then 21352 # Don't use ln at all; we don't have any links 21353 as_ln_s='cp -p' 21354 else 21355 as_ln_s='ln -s' 21356 fi 21357elif ln conf$$.file conf$$ 2>/dev/null; then 21358 as_ln_s=ln 21359else 21360 as_ln_s='cp -p' 21361fi 21362rm -f conf$$ conf$$.exe conf$$.file 21363 21364if mkdir -p . 2>/dev/null; then 21365 as_mkdir_p=: 21366else 21367 test -d ./-p && rmdir ./-p 21368 as_mkdir_p=false 21369fi 21370 21371as_executable_p="test -f" 21372 21373# Sed expression to map a string onto a valid CPP name. 21374as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21375 21376# Sed expression to map a string onto a valid variable name. 21377as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21378 21379 21380# IFS 21381# We need space, tab and new line, in precisely that order. 21382as_nl=' 21383' 21384IFS=" $as_nl" 21385 21386# CDPATH. 21387$as_unset CDPATH 21388 21389exec 6>&1 21390 21391# Open the log real soon, to keep \$[0] and so on meaningful, and to 21392# report actual input values of CONFIG_FILES etc. instead of their 21393# values after options handling. Logging --version etc. is OK. 21394exec 5>>config.log 21395{ 21396 echo 21397 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21398## Running $as_me. ## 21399_ASBOX 21400} >&5 21401cat >&5 <<_CSEOF 21402 21403This file was extended by $as_me, which was 21404generated by GNU Autoconf 2.59. Invocation command line was 21405 21406 CONFIG_FILES = $CONFIG_FILES 21407 CONFIG_HEADERS = $CONFIG_HEADERS 21408 CONFIG_LINKS = $CONFIG_LINKS 21409 CONFIG_COMMANDS = $CONFIG_COMMANDS 21410 $ $0 $@ 21411 21412_CSEOF 21413echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 21414echo >&5 21415_ACEOF 21416 21417# Files that config.status was made for. 21418if test -n "$ac_config_files"; then 21419 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 21420fi 21421 21422if test -n "$ac_config_headers"; then 21423 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 21424fi 21425 21426if test -n "$ac_config_links"; then 21427 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 21428fi 21429 21430if test -n "$ac_config_commands"; then 21431 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 21432fi 21433 21434cat >>$CONFIG_STATUS <<\_ACEOF 21435 21436ac_cs_usage="\ 21437\`$as_me' instantiates files from templates according to the 21438current configuration. 21439 21440Usage: $0 [OPTIONS] [FILE]... 21441 21442 -h, --help print this help, then exit 21443 -V, --version print version number, then exit 21444 -q, --quiet do not print progress messages 21445 -d, --debug don't remove temporary files 21446 --recheck update $as_me by reconfiguring in the same conditions 21447 --file=FILE[:TEMPLATE] 21448 instantiate the configuration file FILE 21449 --header=FILE[:TEMPLATE] 21450 instantiate the configuration header FILE 21451 21452Configuration files: 21453$config_files 21454 21455Configuration headers: 21456$config_headers 21457 21458Report bugs to <bug-autoconf@gnu.org>." 21459_ACEOF 21460 21461cat >>$CONFIG_STATUS <<_ACEOF 21462ac_cs_version="\\ 21463config.status 21464configured by $0, generated by GNU Autoconf 2.59, 21465 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 21466 21467Copyright (C) 2003 Free Software Foundation, Inc. 21468This config.status script is free software; the Free Software Foundation 21469gives unlimited permission to copy, distribute and modify it." 21470srcdir=$srcdir 21471INSTALL="$INSTALL" 21472_ACEOF 21473 21474cat >>$CONFIG_STATUS <<\_ACEOF 21475# If no file are specified by the user, then we need to provide default 21476# value. By we need to know if files were specified by the user. 21477ac_need_defaults=: 21478while test $# != 0 21479do 21480 case $1 in 21481 --*=*) 21482 ac_option=`expr "x$1" : 'x\([^=]*\)='` 21483 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 21484 ac_shift=: 21485 ;; 21486 -*) 21487 ac_option=$1 21488 ac_optarg=$2 21489 ac_shift=shift 21490 ;; 21491 *) # This is not an option, so the user has probably given explicit 21492 # arguments. 21493 ac_option=$1 21494 ac_need_defaults=false;; 21495 esac 21496 21497 case $ac_option in 21498 # Handling of the options. 21499_ACEOF 21500cat >>$CONFIG_STATUS <<\_ACEOF 21501 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21502 ac_cs_recheck=: ;; 21503 --version | --vers* | -V ) 21504 echo "$ac_cs_version"; exit 0 ;; 21505 --he | --h) 21506 # Conflict between --help and --header 21507 { { echo "$as_me:$LINENO: error: ambiguous option: $1 21508Try \`$0 --help' for more information." >&5 21509echo "$as_me: error: ambiguous option: $1 21510Try \`$0 --help' for more information." >&2;} 21511 { (exit 1); exit 1; }; };; 21512 --help | --hel | -h ) 21513 echo "$ac_cs_usage"; exit 0 ;; 21514 --debug | --d* | -d ) 21515 debug=: ;; 21516 --file | --fil | --fi | --f ) 21517 $ac_shift 21518 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21519 ac_need_defaults=false;; 21520 --header | --heade | --head | --hea ) 21521 $ac_shift 21522 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21523 ac_need_defaults=false;; 21524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21525 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21526 ac_cs_silent=: ;; 21527 21528 # This is an error. 21529 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 21530Try \`$0 --help' for more information." >&5 21531echo "$as_me: error: unrecognized option: $1 21532Try \`$0 --help' for more information." >&2;} 21533 { (exit 1); exit 1; }; } ;; 21534 21535 *) ac_config_targets="$ac_config_targets $1" ;; 21536 21537 esac 21538 shift 21539done 21540 21541ac_configure_extra_args= 21542 21543if $ac_cs_silent; then 21544 exec 6>/dev/null 21545 ac_configure_extra_args="$ac_configure_extra_args --silent" 21546fi 21547 21548_ACEOF 21549cat >>$CONFIG_STATUS <<_ACEOF 21550if \$ac_cs_recheck; then 21551 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21552 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21553fi 21554 21555_ACEOF 21556 21557 21558 21559 21560 21561cat >>$CONFIG_STATUS <<\_ACEOF 21562for ac_config_target in $ac_config_targets 21563do 21564 case "$ac_config_target" in 21565 # Handling of arguments. 21566 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21567 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21568 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21569echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21570 { (exit 1); exit 1; }; };; 21571 esac 21572done 21573 21574# If the user did not use the arguments to specify the items to instantiate, 21575# then the envvar interface is used. Set only those that are not. 21576# We use the long form for the default assignment because of an extremely 21577# bizarre bug on SunOS 4.1.3. 21578if $ac_need_defaults; then 21579 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21580 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21581fi 21582 21583# Have a temporary directory for convenience. Make it in the build tree 21584# simply because there is no reason to put it here, and in addition, 21585# creating and moving files from /tmp can sometimes cause problems. 21586# Create a temporary directory, and hook for its removal unless debugging. 21587$debug || 21588{ 21589 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 21590 trap '{ (exit 1); exit 1; }' 1 2 13 15 21591} 21592 21593# Create a (secure) tmp directory for tmp files. 21594 21595{ 21596 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 21597 test -n "$tmp" && test -d "$tmp" 21598} || 21599{ 21600 tmp=./confstat$$-$RANDOM 21601 (umask 077 && mkdir $tmp) 21602} || 21603{ 21604 echo "$me: cannot create a temporary directory in ." >&2 21605 { (exit 1); exit 1; } 21606} 21607 21608_ACEOF 21609 21610cat >>$CONFIG_STATUS <<_ACEOF 21611 21612# 21613# CONFIG_FILES section. 21614# 21615 21616# No need to generate the scripts if there are no CONFIG_FILES. 21617# This happens for instance when ./config.status config.h 21618if test -n "\$CONFIG_FILES"; then 21619 # Protect against being on the right side of a sed subst in config.status. 21620 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 21621 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 21622s,@SHELL@,$SHELL,;t t 21623s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 21624s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 21625s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 21626s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 21627s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 21628s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 21629s,@exec_prefix@,$exec_prefix,;t t 21630s,@prefix@,$prefix,;t t 21631s,@program_transform_name@,$program_transform_name,;t t 21632s,@bindir@,$bindir,;t t 21633s,@sbindir@,$sbindir,;t t 21634s,@libexecdir@,$libexecdir,;t t 21635s,@datadir@,$datadir,;t t 21636s,@sysconfdir@,$sysconfdir,;t t 21637s,@sharedstatedir@,$sharedstatedir,;t t 21638s,@localstatedir@,$localstatedir,;t t 21639s,@libdir@,$libdir,;t t 21640s,@includedir@,$includedir,;t t 21641s,@oldincludedir@,$oldincludedir,;t t 21642s,@infodir@,$infodir,;t t 21643s,@mandir@,$mandir,;t t 21644s,@build_alias@,$build_alias,;t t 21645s,@host_alias@,$host_alias,;t t 21646s,@target_alias@,$target_alias,;t t 21647s,@DEFS@,$DEFS,;t t 21648s,@ECHO_C@,$ECHO_C,;t t 21649s,@ECHO_N@,$ECHO_N,;t t 21650s,@ECHO_T@,$ECHO_T,;t t 21651s,@LIBS@,$LIBS,;t t 21652s,@CC@,$CC,;t t 21653s,@CFLAGS@,$CFLAGS,;t t 21654s,@LDFLAGS@,$LDFLAGS,;t t 21655s,@CPPFLAGS@,$CPPFLAGS,;t t 21656s,@ac_ct_CC@,$ac_ct_CC,;t t 21657s,@EXEEXT@,$EXEEXT,;t t 21658s,@OBJEXT@,$OBJEXT,;t t 21659s,@SET_MAKE@,$SET_MAKE,;t t 21660s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 21661s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 21662s,@INSTALL_DATA@,$INSTALL_DATA,;t t 21663s,@AR@,$AR,;t t 21664s,@ac_ct_AR@,$ac_ct_AR,;t t 21665s,@RANLIB@,$RANLIB,;t t 21666s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 21667s,@DEPEND@,$DEPEND,;t t 21668s,@CPP@,$CPP,;t t 21669s,@EGREP@,$EGREP,;t t 21670s,@build@,$build,;t t 21671s,@build_cpu@,$build_cpu,;t t 21672s,@build_vendor@,$build_vendor,;t t 21673s,@build_os@,$build_os,;t t 21674s,@host@,$host,;t t 21675s,@host_cpu@,$host_cpu,;t t 21676s,@host_vendor@,$host_vendor,;t t 21677s,@host_os@,$host_os,;t t 21678s,@SHOBJEXT@,$SHOBJEXT,;t t 21679s,@SHOBJFLAGS@,$SHOBJFLAGS,;t t 21680s,@SHOBJLDFLAGS@,$SHOBJLDFLAGS,;t t 21681s,@AREXT@,$AREXT,;t t 21682s,@SHLIBOBJS@,$SHLIBOBJS,;t t 21683s,@ALLMODLIBS@,$ALLMODLIBS,;t t 21684s,@ALGO@,$ALGO,;t t 21685s,@MODLIBS@,$MODLIBS,;t t 21686s,@MODLIBSCOND@,$MODLIBSCOND,;t t 21687s,@DEFAULT@,$DEFAULT,;t t 21688s,@MODS@,$MODS,;t t 21689s,@NOMODS@,$NOMODS,;t t 21690s,@LIBOBJS@,$LIBOBJS,;t t 21691s,@LTLIBOBJS@,$LTLIBOBJS,;t t 21692CEOF 21693 21694_ACEOF 21695 21696 cat >>$CONFIG_STATUS <<\_ACEOF 21697 # Split the substitutions into bite-sized pieces for seds with 21698 # small command number limits, like on Digital OSF/1 and HP-UX. 21699 ac_max_sed_lines=48 21700 ac_sed_frag=1 # Number of current file. 21701 ac_beg=1 # First line for current file. 21702 ac_end=$ac_max_sed_lines # Line after last line for current file. 21703 ac_more_lines=: 21704 ac_sed_cmds= 21705 while $ac_more_lines; do 21706 if test $ac_beg -gt 1; then 21707 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21708 else 21709 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21710 fi 21711 if test ! -s $tmp/subs.frag; then 21712 ac_more_lines=false 21713 else 21714 # The purpose of the label and of the branching condition is to 21715 # speed up the sed processing (if there are no `@' at all, there 21716 # is no need to browse any of the substitutions). 21717 # These are the two extra sed commands mentioned above. 21718 (echo ':t 21719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 21720 if test -z "$ac_sed_cmds"; then 21721 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 21722 else 21723 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 21724 fi 21725 ac_sed_frag=`expr $ac_sed_frag + 1` 21726 ac_beg=$ac_end 21727 ac_end=`expr $ac_end + $ac_max_sed_lines` 21728 fi 21729 done 21730 if test -z "$ac_sed_cmds"; then 21731 ac_sed_cmds=cat 21732 fi 21733fi # test -n "$CONFIG_FILES" 21734 21735_ACEOF 21736cat >>$CONFIG_STATUS <<\_ACEOF 21737for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 21738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21739 case $ac_file in 21740 - | *:- | *:-:* ) # input from stdin 21741 cat >$tmp/stdin 21742 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21743 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21744 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21745 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21746 * ) ac_file_in=$ac_file.in ;; 21747 esac 21748 21749 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 21750 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21751$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21752 X"$ac_file" : 'X\(//\)[^/]' \| \ 21753 X"$ac_file" : 'X\(//\)$' \| \ 21754 X"$ac_file" : 'X\(/\)' \| \ 21755 . : '\(.\)' 2>/dev/null || 21756echo X"$ac_file" | 21757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21758 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21759 /^X\(\/\/\)$/{ s//\1/; q; } 21760 /^X\(\/\).*/{ s//\1/; q; } 21761 s/.*/./; q'` 21762 { if $as_mkdir_p; then 21763 mkdir -p "$ac_dir" 21764 else 21765 as_dir="$ac_dir" 21766 as_dirs= 21767 while test ! -d "$as_dir"; do 21768 as_dirs="$as_dir $as_dirs" 21769 as_dir=`(dirname "$as_dir") 2>/dev/null || 21770$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21771 X"$as_dir" : 'X\(//\)[^/]' \| \ 21772 X"$as_dir" : 'X\(//\)$' \| \ 21773 X"$as_dir" : 'X\(/\)' \| \ 21774 . : '\(.\)' 2>/dev/null || 21775echo X"$as_dir" | 21776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21777 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21778 /^X\(\/\/\)$/{ s//\1/; q; } 21779 /^X\(\/\).*/{ s//\1/; q; } 21780 s/.*/./; q'` 21781 done 21782 test ! -n "$as_dirs" || mkdir $as_dirs 21783 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21784echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21785 { (exit 1); exit 1; }; }; } 21786 21787 ac_builddir=. 21788 21789if test "$ac_dir" != .; then 21790 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21791 # A "../" for each directory in $ac_dir_suffix. 21792 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21793else 21794 ac_dir_suffix= ac_top_builddir= 21795fi 21796 21797case $srcdir in 21798 .) # No --srcdir option. We are building in place. 21799 ac_srcdir=. 21800 if test -z "$ac_top_builddir"; then 21801 ac_top_srcdir=. 21802 else 21803 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21804 fi ;; 21805 [\\/]* | ?:[\\/]* ) # Absolute path. 21806 ac_srcdir=$srcdir$ac_dir_suffix; 21807 ac_top_srcdir=$srcdir ;; 21808 *) # Relative path. 21809 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21810 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21811esac 21812 21813# Do not use `cd foo && pwd` to compute absolute paths, because 21814# the directories may not exist. 21815case `pwd` in 21816.) ac_abs_builddir="$ac_dir";; 21817*) 21818 case "$ac_dir" in 21819 .) ac_abs_builddir=`pwd`;; 21820 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21821 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21822 esac;; 21823esac 21824case $ac_abs_builddir in 21825.) ac_abs_top_builddir=${ac_top_builddir}.;; 21826*) 21827 case ${ac_top_builddir}. in 21828 .) ac_abs_top_builddir=$ac_abs_builddir;; 21829 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21830 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21831 esac;; 21832esac 21833case $ac_abs_builddir in 21834.) ac_abs_srcdir=$ac_srcdir;; 21835*) 21836 case $ac_srcdir in 21837 .) ac_abs_srcdir=$ac_abs_builddir;; 21838 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21839 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21840 esac;; 21841esac 21842case $ac_abs_builddir in 21843.) ac_abs_top_srcdir=$ac_top_srcdir;; 21844*) 21845 case $ac_top_srcdir in 21846 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21847 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21848 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21849 esac;; 21850esac 21851 21852 21853 case $INSTALL in 21854 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21855 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 21856 esac 21857 21858 if test x"$ac_file" != x-; then 21859 { echo "$as_me:$LINENO: creating $ac_file" >&5 21860echo "$as_me: creating $ac_file" >&6;} 21861 rm -f "$ac_file" 21862 fi 21863 # Let's still pretend it is `configure' which instantiates (i.e., don't 21864 # use $as_me), people would be surprised to read: 21865 # /* config.h. Generated by config.status. */ 21866 if test x"$ac_file" = x-; then 21867 configure_input= 21868 else 21869 configure_input="$ac_file. " 21870 fi 21871 configure_input=$configure_input"Generated from `echo $ac_file_in | 21872 sed 's,.*/,,'` by configure." 21873 21874 # First look for the input files in the build tree, otherwise in the 21875 # src tree. 21876 ac_file_inputs=`IFS=: 21877 for f in $ac_file_in; do 21878 case $f in 21879 -) echo $tmp/stdin ;; 21880 [\\/$]*) 21881 # Absolute (can't be DOS-style, as IFS=:) 21882 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21883echo "$as_me: error: cannot find input file: $f" >&2;} 21884 { (exit 1); exit 1; }; } 21885 echo "$f";; 21886 *) # Relative 21887 if test -f "$f"; then 21888 # Build tree 21889 echo "$f" 21890 elif test -f "$srcdir/$f"; then 21891 # Source tree 21892 echo "$srcdir/$f" 21893 else 21894 # /dev/null tree 21895 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21896echo "$as_me: error: cannot find input file: $f" >&2;} 21897 { (exit 1); exit 1; }; } 21898 fi;; 21899 esac 21900 done` || { (exit 1); exit 1; } 21901_ACEOF 21902cat >>$CONFIG_STATUS <<_ACEOF 21903 sed "$ac_vpsub 21904$extrasub 21905_ACEOF 21906cat >>$CONFIG_STATUS <<\_ACEOF 21907:t 21908/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21909s,@configure_input@,$configure_input,;t t 21910s,@srcdir@,$ac_srcdir,;t t 21911s,@abs_srcdir@,$ac_abs_srcdir,;t t 21912s,@top_srcdir@,$ac_top_srcdir,;t t 21913s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 21914s,@builddir@,$ac_builddir,;t t 21915s,@abs_builddir@,$ac_abs_builddir,;t t 21916s,@top_builddir@,$ac_top_builddir,;t t 21917s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 21918s,@INSTALL@,$ac_INSTALL,;t t 21919" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21920 rm -f $tmp/stdin 21921 if test x"$ac_file" != x-; then 21922 mv $tmp/out $ac_file 21923 else 21924 cat $tmp/out 21925 rm -f $tmp/out 21926 fi 21927 21928done 21929_ACEOF 21930cat >>$CONFIG_STATUS <<\_ACEOF 21931 21932# 21933# CONFIG_HEADER section. 21934# 21935 21936# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 21937# NAME is the cpp macro being defined and VALUE is the value it is being given. 21938# 21939# ac_d sets the value in "#define NAME VALUE" lines. 21940ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 21941ac_dB='[ ].*$,\1#\2' 21942ac_dC=' ' 21943ac_dD=',;t' 21944# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 21945ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 21946ac_uB='$,\1#\2define\3' 21947ac_uC=' ' 21948ac_uD=',;t' 21949 21950for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 21951 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21952 case $ac_file in 21953 - | *:- | *:-:* ) # input from stdin 21954 cat >$tmp/stdin 21955 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21956 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21957 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21958 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21959 * ) ac_file_in=$ac_file.in ;; 21960 esac 21961 21962 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 21963echo "$as_me: creating $ac_file" >&6;} 21964 21965 # First look for the input files in the build tree, otherwise in the 21966 # src tree. 21967 ac_file_inputs=`IFS=: 21968 for f in $ac_file_in; do 21969 case $f in 21970 -) echo $tmp/stdin ;; 21971 [\\/$]*) 21972 # Absolute (can't be DOS-style, as IFS=:) 21973 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21974echo "$as_me: error: cannot find input file: $f" >&2;} 21975 { (exit 1); exit 1; }; } 21976 # Do quote $f, to prevent DOS paths from being IFS'd. 21977 echo "$f";; 21978 *) # Relative 21979 if test -f "$f"; then 21980 # Build tree 21981 echo "$f" 21982 elif test -f "$srcdir/$f"; then 21983 # Source tree 21984 echo "$srcdir/$f" 21985 else 21986 # /dev/null tree 21987 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21988echo "$as_me: error: cannot find input file: $f" >&2;} 21989 { (exit 1); exit 1; }; } 21990 fi;; 21991 esac 21992 done` || { (exit 1); exit 1; } 21993 # Remove the trailing spaces. 21994 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 21995 21996_ACEOF 21997 21998# Transform confdefs.h into two sed scripts, `conftest.defines' and 21999# `conftest.undefs', that substitutes the proper values into 22000# config.h.in to produce config.h. The first handles `#define' 22001# templates, and the second `#undef' templates. 22002# And first: Protect against being on the right side of a sed subst in 22003# config.status. Protect against being in an unquoted here document 22004# in config.status. 22005rm -f conftest.defines conftest.undefs 22006# Using a here document instead of a string reduces the quoting nightmare. 22007# Putting comments in sed scripts is not portable. 22008# 22009# `end' is used to avoid that the second main sed command (meant for 22010# 0-ary CPP macros) applies to n-ary macro definitions. 22011# See the Autoconf documentation for `clear'. 22012cat >confdef2sed.sed <<\_ACEOF 22013s/[\\&,]/\\&/g 22014s,[\\$`],\\&,g 22015t clear 22016: clear 22017s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 22018t end 22019s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 22020: end 22021_ACEOF 22022# If some macros were called several times there might be several times 22023# the same #defines, which is useless. Nevertheless, we may not want to 22024# sort them, since we want the *last* AC-DEFINE to be honored. 22025uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 22026sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 22027rm -f confdef2sed.sed 22028 22029# This sed command replaces #undef with comments. This is necessary, for 22030# example, in the case of _POSIX_SOURCE, which is predefined and required 22031# on some systems where configure will not decide to define it. 22032cat >>conftest.undefs <<\_ACEOF 22033s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 22034_ACEOF 22035 22036# Break up conftest.defines because some shells have a limit on the size 22037# of here documents, and old seds have small limits too (100 cmds). 22038echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 22039echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 22040echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 22041echo ' :' >>$CONFIG_STATUS 22042rm -f conftest.tail 22043while grep . conftest.defines >/dev/null 22044do 22045 # Write a limited-size here document to $tmp/defines.sed. 22046 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 22047 # Speed up: don't consider the non `#define' lines. 22048 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 22049 # Work around the forget-to-reset-the-flag bug. 22050 echo 't clr' >>$CONFIG_STATUS 22051 echo ': clr' >>$CONFIG_STATUS 22052 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 22053 echo 'CEOF 22054 sed -f $tmp/defines.sed $tmp/in >$tmp/out 22055 rm -f $tmp/in 22056 mv $tmp/out $tmp/in 22057' >>$CONFIG_STATUS 22058 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 22059 rm -f conftest.defines 22060 mv conftest.tail conftest.defines 22061done 22062rm -f conftest.defines 22063echo ' fi # grep' >>$CONFIG_STATUS 22064echo >>$CONFIG_STATUS 22065 22066# Break up conftest.undefs because some shells have a limit on the size 22067# of here documents, and old seds have small limits too (100 cmds). 22068echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 22069rm -f conftest.tail 22070while grep . conftest.undefs >/dev/null 22071do 22072 # Write a limited-size here document to $tmp/undefs.sed. 22073 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 22074 # Speed up: don't consider the non `#undef' 22075 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 22076 # Work around the forget-to-reset-the-flag bug. 22077 echo 't clr' >>$CONFIG_STATUS 22078 echo ': clr' >>$CONFIG_STATUS 22079 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 22080 echo 'CEOF 22081 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 22082 rm -f $tmp/in 22083 mv $tmp/out $tmp/in 22084' >>$CONFIG_STATUS 22085 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 22086 rm -f conftest.undefs 22087 mv conftest.tail conftest.undefs 22088done 22089rm -f conftest.undefs 22090 22091cat >>$CONFIG_STATUS <<\_ACEOF 22092 # Let's still pretend it is `configure' which instantiates (i.e., don't 22093 # use $as_me), people would be surprised to read: 22094 # /* config.h. Generated by config.status. */ 22095 if test x"$ac_file" = x-; then 22096 echo "/* Generated by configure. */" >$tmp/config.h 22097 else 22098 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 22099 fi 22100 cat $tmp/in >>$tmp/config.h 22101 rm -f $tmp/in 22102 if test x"$ac_file" != x-; then 22103 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 22104 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22105echo "$as_me: $ac_file is unchanged" >&6;} 22106 else 22107 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22108$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22109 X"$ac_file" : 'X\(//\)[^/]' \| \ 22110 X"$ac_file" : 'X\(//\)$' \| \ 22111 X"$ac_file" : 'X\(/\)' \| \ 22112 . : '\(.\)' 2>/dev/null || 22113echo X"$ac_file" | 22114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22115 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22116 /^X\(\/\/\)$/{ s//\1/; q; } 22117 /^X\(\/\).*/{ s//\1/; q; } 22118 s/.*/./; q'` 22119 { if $as_mkdir_p; then 22120 mkdir -p "$ac_dir" 22121 else 22122 as_dir="$ac_dir" 22123 as_dirs= 22124 while test ! -d "$as_dir"; do 22125 as_dirs="$as_dir $as_dirs" 22126 as_dir=`(dirname "$as_dir") 2>/dev/null || 22127$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22128 X"$as_dir" : 'X\(//\)[^/]' \| \ 22129 X"$as_dir" : 'X\(//\)$' \| \ 22130 X"$as_dir" : 'X\(/\)' \| \ 22131 . : '\(.\)' 2>/dev/null || 22132echo X"$as_dir" | 22133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22134 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22135 /^X\(\/\/\)$/{ s//\1/; q; } 22136 /^X\(\/\).*/{ s//\1/; q; } 22137 s/.*/./; q'` 22138 done 22139 test ! -n "$as_dirs" || mkdir $as_dirs 22140 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22141echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22142 { (exit 1); exit 1; }; }; } 22143 22144 rm -f $ac_file 22145 mv $tmp/config.h $ac_file 22146 fi 22147 else 22148 cat $tmp/config.h 22149 rm -f $tmp/config.h 22150 fi 22151done 22152_ACEOF 22153 22154cat >>$CONFIG_STATUS <<\_ACEOF 22155 22156{ (exit 0); exit 0; } 22157_ACEOF 22158chmod +x $CONFIG_STATUS 22159ac_clean_files=$ac_clean_files_save 22160 22161 22162# configure is writing to config.log, and then calls config.status. 22163# config.status does its own redirection, appending to config.log. 22164# Unfortunately, on DOS this fails, as config.log is still kept open 22165# by configure, so config.status won't be able to write to it; its 22166# output is simply discarded. So we exec the FD to /dev/null, 22167# effectively closing config.log, so it can be properly (re)opened and 22168# appended to by config.status. When coming back to configure, we 22169# need to make the FD available again. 22170if test "$no_create" != yes; then 22171 ac_cs_success=: 22172 ac_config_status_args= 22173 test "$silent" = yes && 22174 ac_config_status_args="$ac_config_status_args --quiet" 22175 exec 5>/dev/null 22176 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22177 exec 5>>config.log 22178 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22179 # would make configure fail if this is the last instruction. 22180 $ac_cs_success || { (exit 1); exit 1; } 22181fi 22182 22183