1 #! /bin/sh 2 # From configure.ac Revision . 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated by GNU Autoconf 2.59 for libconfig 0.9.9. 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 14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22 fi 23 DUALCASE=1; export DUALCASE # for MKS sh 24 25 # Support unset when possible. 26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 27 as_unset=unset 28 else 29 as_unset=false 30 fi 31 32 33 # Work around bugs in pre-3.0 UWIN ksh. 34 $as_unset ENV MAIL MAILPATH 35 PS1='$ ' 36 PS2='> ' 37 PS4='+ ' 38 39 # NLS nuisances. 40 for 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 44 do 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 50 done 51 52 # Required to use basename. 53 if expr a : '\(a\)' >/dev/null 2>&1; then 54 as_expr=expr 55 else 56 as_expr=false 57 fi 58 59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 60 as_basename=basename 61 else 62 as_basename=false 63 fi 64 65 66 # Name of the executable. 67 as_me=`$as_basename "$0" || 68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69 X"$0" : 'X\(//\)$' \| \ 70 X"$0" : 'X\(/\)$' \| \ 71 . : '\(.\)' 2>/dev/null || 72 echo 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. 81 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 84 as_cr_digits='0123456789' 85 as_cr_alnum=$as_cr_Letters$as_cr_digits 86 87 # The user is always right. 88 if 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 98 fi 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 111 for as_dir in $PATH 112 do 113 IFS=$as_save_IFS 114 test -z "$as_dir" && as_dir=. 115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 116 done 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 132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 133 do 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 153 done 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 188 case `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= ;; 193 esac 194 195 if expr a : '\(a\)' >/dev/null 2>&1; then 196 as_expr=expr 197 else 198 as_expr=false 199 fi 200 201 rm -f conf$$ conf$$.exe conf$$.file 202 echo >conf$$.file 203 if 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 212 elif ln conf$$.file conf$$ 2>/dev/null; then 213 as_ln_s=ln 214 else 215 as_ln_s='cp -p' 216 fi 217 rm -f conf$$ conf$$.exe conf$$.file 218 219 if mkdir -p . 2>/dev/null; then 220 as_mkdir_p=: 221 else 222 test -d ./-p && rmdir ./-p 223 as_mkdir_p=false 224 fi 225 226 as_executable_p="test -f" 227 228 # Sed expression to map a string onto a valid CPP name. 229 as_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. 232 as_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. 237 as_nl=' 238 ' 239 IFS=" $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. 248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 249 250 exec 6>&1 251 252 # 253 # Initializations. 254 # 255 ac_default_prefix=/usr/local 256 ac_config_libobj_dir=. 257 cross_compiling=no 258 subdirs= 259 MFLAGS= 260 MAKEFLAGS= 261 SHELL=${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. 269 PACKAGE_NAME='libconfig' 270 PACKAGE_TARNAME='libconfig' 271 PACKAGE_VERSION='0.9.9' 272 PACKAGE_STRING='libconfig 0.9.9' 273 PACKAGE_BUGREPORT='' 274 275 # Factoring default headers for most tests. 276 ac_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 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB AR ac_ct_AR CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHOBJEXT AREXT SHOBJFLAGS SHOBJLDFLAGS SHLIBOBJS LIBOBJS LDRUNPATH LTLIBOBJS' 313 ac_subst_files='' 314 315 # Initialize some variables set by options. 316 ac_init_help= 317 ac_init_version=false 318 # The variables have the same names as the options, with 319 # dashes changed to underlines. 320 cache_file=/dev/null 321 exec_prefix=NONE 322 no_create= 323 no_recursion= 324 prefix=NONE 325 program_prefix=NONE 326 program_suffix=NONE 327 program_transform_name=s,x,x, 328 silent= 329 site= 330 srcdir= 331 verbose= 332 x_includes=NONE 333 x_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. 340 bindir='${exec_prefix}/bin' 341 sbindir='${exec_prefix}/sbin' 342 libexecdir='${exec_prefix}/libexec' 343 datadir='${prefix}/share' 344 sysconfdir='${prefix}/etc' 345 sharedstatedir='${prefix}/com' 346 localstatedir='${prefix}/var' 347 libdir='${exec_prefix}/lib' 348 includedir='${prefix}/include' 349 oldincludedir='/usr/include' 350 infodir='${prefix}/info' 351 mandir='${prefix}/man' 352 353 ac_prev= 354 for ac_option 355 do 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 627 Try \`$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 650 done 651 652 if 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; }; } 656 fi 657 658 # Be sure to have absolute paths. 659 for ac_var in exec_prefix prefix 660 do 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 667 done 668 669 # Be sure to have absolute paths. 670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672 do 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 679 done 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. 684 build=$build_alias 685 host=$host_alias 686 target=$target_alias 687 688 # FIXME: To remove some day. 689 if 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 697 fi 698 699 ac_tool_prefix= 700 test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702 test "$silent" = yes && exec 6>/dev/null 703 704 705 # Find the source files, if location was not specified. 706 if 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 || 715 echo 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 725 else 726 ac_srcdir_defaulted=no 727 fi 728 if 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 736 fi 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; }; } 740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741 ac_env_build_alias_set=${build_alias+set} 742 ac_env_build_alias_value=$build_alias 743 ac_cv_env_build_alias_set=${build_alias+set} 744 ac_cv_env_build_alias_value=$build_alias 745 ac_env_host_alias_set=${host_alias+set} 746 ac_env_host_alias_value=$host_alias 747 ac_cv_env_host_alias_set=${host_alias+set} 748 ac_cv_env_host_alias_value=$host_alias 749 ac_env_target_alias_set=${target_alias+set} 750 ac_env_target_alias_value=$target_alias 751 ac_cv_env_target_alias_set=${target_alias+set} 752 ac_cv_env_target_alias_value=$target_alias 753 ac_env_CC_set=${CC+set} 754 ac_env_CC_value=$CC 755 ac_cv_env_CC_set=${CC+set} 756 ac_cv_env_CC_value=$CC 757 ac_env_CFLAGS_set=${CFLAGS+set} 758 ac_env_CFLAGS_value=$CFLAGS 759 ac_cv_env_CFLAGS_set=${CFLAGS+set} 760 ac_cv_env_CFLAGS_value=$CFLAGS 761 ac_env_LDFLAGS_set=${LDFLAGS+set} 762 ac_env_LDFLAGS_value=$LDFLAGS 763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764 ac_cv_env_LDFLAGS_value=$LDFLAGS 765 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766 ac_env_CPPFLAGS_value=$CPPFLAGS 767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769 ac_env_CPP_set=${CPP+set} 770 ac_env_CPP_value=$CPP 771 ac_cv_env_CPP_set=${CPP+set} 772 ac_cv_env_CPP_value=$CPP 773 774 # 775 # Report the --help message. 776 # 777 if 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 libconfig 0.9.9 to adapt to many kinds of systems. 782 783 Usage: $0 [OPTION]... [VAR=VALUE]... 784 785 To assign environment variables (e.g., CC, CFLAGS...), specify them as 786 VAR=VALUE. See below for descriptions of some of the useful variables. 787 788 Defaults for the options are specified in brackets. 789 790 Configuration: 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 804 Installation 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 810 By default, \`make install' will install all the files in 811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813 for instance \`--prefix=\$HOME'. 814 815 For better control, use the options below. 816 817 Fine 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 834 System 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 838 fi 839 840 if test -n "$ac_init_help"; then 841 case $ac_init_help in 842 short | recursive ) echo "Configuration of libconfig 0.9.9:";; 843 esac 844 cat <<\_ACEOF 845 846 Optional Features: 847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 849 --disable-largefile omit support for large files 850 851 Some influential environment variables: 852 CC C compiler command 853 CFLAGS C compiler flags 854 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 855 nonstandard directory <lib dir> 856 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 857 headers in a nonstandard directory <include dir> 858 CPP C preprocessor 859 860 Use these variables to override the choices made by `configure' or to help 861 it to find libraries and programs with nonstandard names/locations. 862 863 _ACEOF 864 fi 865 866 if test "$ac_init_help" = "recursive"; then 867 # If there are subdirs, report their specific --help. 868 ac_popdir=`pwd` 869 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 870 test -d $ac_dir || continue 871 ac_builddir=. 872 873 if test "$ac_dir" != .; then 874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 875 # A "../" for each directory in $ac_dir_suffix. 876 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 877 else 878 ac_dir_suffix= ac_top_builddir= 879 fi 880 881 case $srcdir in 882 .) # No --srcdir option. We are building in place. 883 ac_srcdir=. 884 if test -z "$ac_top_builddir"; then 885 ac_top_srcdir=. 886 else 887 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 888 fi ;; 889 [\\/]* | ?:[\\/]* ) # Absolute path. 890 ac_srcdir=$srcdir$ac_dir_suffix; 891 ac_top_srcdir=$srcdir ;; 892 *) # Relative path. 893 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 894 ac_top_srcdir=$ac_top_builddir$srcdir ;; 895 esac 896 897 # Do not use `cd foo && pwd` to compute absolute paths, because 898 # the directories may not exist. 899 case `pwd` in 900 .) ac_abs_builddir="$ac_dir";; 901 *) 902 case "$ac_dir" in 903 .) ac_abs_builddir=`pwd`;; 904 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 905 *) ac_abs_builddir=`pwd`/"$ac_dir";; 906 esac;; 907 esac 908 case $ac_abs_builddir in 909 .) ac_abs_top_builddir=${ac_top_builddir}.;; 910 *) 911 case ${ac_top_builddir}. in 912 .) ac_abs_top_builddir=$ac_abs_builddir;; 913 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 914 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 915 esac;; 916 esac 917 case $ac_abs_builddir in 918 .) ac_abs_srcdir=$ac_srcdir;; 919 *) 920 case $ac_srcdir in 921 .) ac_abs_srcdir=$ac_abs_builddir;; 922 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 923 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 924 esac;; 925 esac 926 case $ac_abs_builddir in 927 .) ac_abs_top_srcdir=$ac_top_srcdir;; 928 *) 929 case $ac_top_srcdir in 930 .) ac_abs_top_srcdir=$ac_abs_builddir;; 931 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 932 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 933 esac;; 934 esac 935 936 cd $ac_dir 937 # Check for guested configure; otherwise get Cygnus style configure. 938 if test -f $ac_srcdir/configure.gnu; then 939 echo 940 $SHELL $ac_srcdir/configure.gnu --help=recursive 941 elif test -f $ac_srcdir/configure; then 942 echo 943 $SHELL $ac_srcdir/configure --help=recursive 944 elif test -f $ac_srcdir/configure.ac || 945 test -f $ac_srcdir/configure.in; then 946 echo 947 $ac_configure --help 948 else 949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 950 fi 951 cd $ac_popdir 952 done 953 fi 954 955 test -n "$ac_init_help" && exit 0 956 if $ac_init_version; then 957 cat <<\_ACEOF 958 libconfig configure 0.9.9 959 generated by GNU Autoconf 2.59 960 961 Copyright (C) 2003 Free Software Foundation, Inc. 962 This configure script is free software; the Free Software Foundation 963 gives unlimited permission to copy, distribute and modify it. 964 _ACEOF 965 exit 0 966 fi 967 exec 5>config.log 968 cat >&5 <<_ACEOF 969 This file contains any messages produced by compilers while 970 running configure, to aid debugging if configure makes a mistake. 971 972 It was created by libconfig $as_me 0.9.9, which was 973 generated by GNU Autoconf 2.59. Invocation command line was 974 975 $ $0 $@ 976 977 _ACEOF 978 { 979 cat <<_ASUNAME 980 ## --------- ## 981 ## Platform. ## 982 ## --------- ## 983 984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 985 uname -m = `(uname -m) 2>/dev/null || echo unknown` 986 uname -r = `(uname -r) 2>/dev/null || echo unknown` 987 uname -s = `(uname -s) 2>/dev/null || echo unknown` 988 uname -v = `(uname -v) 2>/dev/null || echo unknown` 989 990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 992 993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 996 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1000 1001 _ASUNAME 1002 1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1004 for as_dir in $PATH 1005 do 1006 IFS=$as_save_IFS 1007 test -z "$as_dir" && as_dir=. 1008 echo "PATH: $as_dir" 1009 done 1010 1011 } >&5 1012 1013 cat >&5 <<_ACEOF 1014 1015 1016 ## ----------- ## 1017 ## Core tests. ## 1018 ## ----------- ## 1019 1020 _ACEOF 1021 1022 1023 # Keep a trace of the command line. 1024 # Strip out --no-create and --no-recursion so they do not pile up. 1025 # Strip out --silent because we don't want to record it for future runs. 1026 # Also quote any args containing shell meta-characters. 1027 # Make two passes to allow for proper duplicate-argument suppression. 1028 ac_configure_args= 1029 ac_configure_args0= 1030 ac_configure_args1= 1031 ac_sep= 1032 ac_must_keep_next=false 1033 for ac_pass in 1 2 1034 do 1035 for ac_arg 1036 do 1037 case $ac_arg in 1038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1040 | -silent | --silent | --silen | --sile | --sil) 1041 continue ;; 1042 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1043 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1044 esac 1045 case $ac_pass in 1046 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1047 2) 1048 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1049 if test $ac_must_keep_next = true; then 1050 ac_must_keep_next=false # Got value, back to normal. 1051 else 1052 case $ac_arg in 1053 *=* | --config-cache | -C | -disable-* | --disable-* \ 1054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1056 | -with-* | --with-* | -without-* | --without-* | --x) 1057 case "$ac_configure_args0 " in 1058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1059 esac 1060 ;; 1061 -* ) ac_must_keep_next=true ;; 1062 esac 1063 fi 1064 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1065 # Get rid of the leading space. 1066 ac_sep=" " 1067 ;; 1068 esac 1069 done 1070 done 1071 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1072 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1073 1074 # When interrupted or exit'd, cleanup temporary files, and complete 1075 # config.log. We remove comments because anyway the quotes in there 1076 # would cause problems or look ugly. 1077 # WARNING: Be sure not to use single quotes in there, as some shells, 1078 # such as our DU 5.0 friend, will then `close' the trap. 1079 trap 'exit_status=$? 1080 # Save into config.log some information that might help in debugging. 1081 { 1082 echo 1083 1084 cat <<\_ASBOX 1085 ## ---------------- ## 1086 ## Cache variables. ## 1087 ## ---------------- ## 1088 _ASBOX 1089 echo 1090 # The following way of writing the cache mishandles newlines in values, 1091 { 1092 (set) 2>&1 | 1093 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1094 *ac_space=\ *) 1095 sed -n \ 1096 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1098 ;; 1099 *) 1100 sed -n \ 1101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1102 ;; 1103 esac; 1104 } 1105 echo 1106 1107 cat <<\_ASBOX 1108 ## ----------------- ## 1109 ## Output variables. ## 1110 ## ----------------- ## 1111 _ASBOX 1112 echo 1113 for ac_var in $ac_subst_vars 1114 do 1115 eval ac_val=$`echo $ac_var` 1116 echo "$ac_var='"'"'$ac_val'"'"'" 1117 done | sort 1118 echo 1119 1120 if test -n "$ac_subst_files"; then 1121 cat <<\_ASBOX 1122 ## ------------- ## 1123 ## Output files. ## 1124 ## ------------- ## 1125 _ASBOX 1126 echo 1127 for ac_var in $ac_subst_files 1128 do 1129 eval ac_val=$`echo $ac_var` 1130 echo "$ac_var='"'"'$ac_val'"'"'" 1131 done | sort 1132 echo 1133 fi 1134 1135 if test -s confdefs.h; then 1136 cat <<\_ASBOX 1137 ## ----------- ## 1138 ## confdefs.h. ## 1139 ## ----------- ## 1140 _ASBOX 1141 echo 1142 sed "/^$/d" confdefs.h | sort 1143 echo 1144 fi 1145 test "$ac_signal" != 0 && 1146 echo "$as_me: caught signal $ac_signal" 1147 echo "$as_me: exit $exit_status" 1148 } >&5 1149 rm -f core *.core && 1150 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1151 exit $exit_status 1152 ' 0 1153 for ac_signal in 1 2 13 15; do 1154 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1155 done 1156 ac_signal=0 1157 1158 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1159 rm -rf conftest* confdefs.h 1160 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1161 echo >confdefs.h 1162 1163 # Predefined preprocessor variables. 1164 1165 cat >>confdefs.h <<_ACEOF 1166 #define PACKAGE_NAME "$PACKAGE_NAME" 1167 _ACEOF 1168 1169 1170 cat >>confdefs.h <<_ACEOF 1171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1172 _ACEOF 1173 1174 1175 cat >>confdefs.h <<_ACEOF 1176 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1177 _ACEOF 1178 1179 1180 cat >>confdefs.h <<_ACEOF 1181 #define PACKAGE_STRING "$PACKAGE_STRING" 1182 _ACEOF 1183 1184 1185 cat >>confdefs.h <<_ACEOF 1186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1187 _ACEOF 1188 1189 1190 # Let the site file select an alternate cache file if it wants to. 1191 # Prefer explicitly selected file to automatically selected ones. 1192 if test -z "$CONFIG_SITE"; then 1193 if test "x$prefix" != xNONE; then 1194 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1195 else 1196 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1197 fi 1198 fi 1199 for ac_site_file in $CONFIG_SITE; do 1200 if test -r "$ac_site_file"; then 1201 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1202 echo "$as_me: loading site script $ac_site_file" >&6;} 1203 sed 's/^/| /' "$ac_site_file" >&5 1204 . "$ac_site_file" 1205 fi 1206 done 1207 1208 if test -r "$cache_file"; then 1209 # Some versions of bash will fail to source /dev/null (special 1210 # files actually), so we avoid doing that. 1211 if test -f "$cache_file"; then 1212 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1213 echo "$as_me: loading cache $cache_file" >&6;} 1214 case $cache_file in 1215 [\\/]* | ?:[\\/]* ) . $cache_file;; 1216 *) . ./$cache_file;; 1217 esac 1218 fi 1219 else 1220 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1221 echo "$as_me: creating cache $cache_file" >&6;} 1222 >$cache_file 1223 fi 1224 1225 # Check that the precious variables saved in the cache have kept the same 1226 # value. 1227 ac_cache_corrupted=false 1228 for ac_var in `(set) 2>&1 | 1229 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1230 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1231 eval ac_new_set=\$ac_env_${ac_var}_set 1232 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1233 eval ac_new_val="\$ac_env_${ac_var}_value" 1234 case $ac_old_set,$ac_new_set in 1235 set,) 1236 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1237 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1238 ac_cache_corrupted=: ;; 1239 ,set) 1240 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1241 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1242 ac_cache_corrupted=: ;; 1243 ,);; 1244 *) 1245 if test "x$ac_old_val" != "x$ac_new_val"; then 1246 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1247 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1248 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1249 echo "$as_me: former value: $ac_old_val" >&2;} 1250 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1251 echo "$as_me: current value: $ac_new_val" >&2;} 1252 ac_cache_corrupted=: 1253 fi;; 1254 esac 1255 # Pass precious variables to config.status. 1256 if test "$ac_new_set" = set; then 1257 case $ac_new_val in 1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1259 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1260 *) ac_arg=$ac_var=$ac_new_val ;; 1261 esac 1262 case " $ac_configure_args " in 1263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1264 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1265 esac 1266 fi 1267 done 1268 if $ac_cache_corrupted; then 1269 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1270 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1271 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1272 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1273 { (exit 1); exit 1; }; } 1274 fi 1275 1276 ac_ext=c 1277 ac_cpp='$CPP $CPPFLAGS' 1278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1280 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 ac_config_headers="$ac_config_headers config.h" 1309 1310 1311 ac_ext=c 1312 ac_cpp='$CPP $CPPFLAGS' 1313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1315 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1316 if test -n "$ac_tool_prefix"; then 1317 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1318 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1319 echo "$as_me:$LINENO: checking for $ac_word" >&5 1320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1321 if test "${ac_cv_prog_CC+set}" = set; then 1322 echo $ECHO_N "(cached) $ECHO_C" >&6 1323 else 1324 if test -n "$CC"; then 1325 ac_cv_prog_CC="$CC" # Let the user override the test. 1326 else 1327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1328 for as_dir in $PATH 1329 do 1330 IFS=$as_save_IFS 1331 test -z "$as_dir" && as_dir=. 1332 for ac_exec_ext in '' $ac_executable_extensions; do 1333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1334 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1336 break 2 1337 fi 1338 done 1339 done 1340 1341 fi 1342 fi 1343 CC=$ac_cv_prog_CC 1344 if test -n "$CC"; then 1345 echo "$as_me:$LINENO: result: $CC" >&5 1346 echo "${ECHO_T}$CC" >&6 1347 else 1348 echo "$as_me:$LINENO: result: no" >&5 1349 echo "${ECHO_T}no" >&6 1350 fi 1351 1352 fi 1353 if test -z "$ac_cv_prog_CC"; then 1354 ac_ct_CC=$CC 1355 # Extract the first word of "gcc", so it can be a program name with args. 1356 set dummy gcc; ac_word=$2 1357 echo "$as_me:$LINENO: checking for $ac_word" >&5 1358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1360 echo $ECHO_N "(cached) $ECHO_C" >&6 1361 else 1362 if test -n "$ac_ct_CC"; then 1363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1364 else 1365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1366 for as_dir in $PATH 1367 do 1368 IFS=$as_save_IFS 1369 test -z "$as_dir" && as_dir=. 1370 for ac_exec_ext in '' $ac_executable_extensions; do 1371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1372 ac_cv_prog_ac_ct_CC="gcc" 1373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1374 break 2 1375 fi 1376 done 1377 done 1378 1379 fi 1380 fi 1381 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1382 if test -n "$ac_ct_CC"; then 1383 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1384 echo "${ECHO_T}$ac_ct_CC" >&6 1385 else 1386 echo "$as_me:$LINENO: result: no" >&5 1387 echo "${ECHO_T}no" >&6 1388 fi 1389 1390 CC=$ac_ct_CC 1391 else 1392 CC="$ac_cv_prog_CC" 1393 fi 1394 1395 if test -z "$CC"; then 1396 if test -n "$ac_tool_prefix"; then 1397 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1398 set dummy ${ac_tool_prefix}cc; ac_word=$2 1399 echo "$as_me:$LINENO: checking for $ac_word" >&5 1400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1401 if test "${ac_cv_prog_CC+set}" = set; then 1402 echo $ECHO_N "(cached) $ECHO_C" >&6 1403 else 1404 if test -n "$CC"; then 1405 ac_cv_prog_CC="$CC" # Let the user override the test. 1406 else 1407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1408 for as_dir in $PATH 1409 do 1410 IFS=$as_save_IFS 1411 test -z "$as_dir" && as_dir=. 1412 for ac_exec_ext in '' $ac_executable_extensions; do 1413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1414 ac_cv_prog_CC="${ac_tool_prefix}cc" 1415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1416 break 2 1417 fi 1418 done 1419 done 1420 1421 fi 1422 fi 1423 CC=$ac_cv_prog_CC 1424 if test -n "$CC"; then 1425 echo "$as_me:$LINENO: result: $CC" >&5 1426 echo "${ECHO_T}$CC" >&6 1427 else 1428 echo "$as_me:$LINENO: result: no" >&5 1429 echo "${ECHO_T}no" >&6 1430 fi 1431 1432 fi 1433 if test -z "$ac_cv_prog_CC"; then 1434 ac_ct_CC=$CC 1435 # Extract the first word of "cc", so it can be a program name with args. 1436 set dummy cc; ac_word=$2 1437 echo "$as_me:$LINENO: checking for $ac_word" >&5 1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1440 echo $ECHO_N "(cached) $ECHO_C" >&6 1441 else 1442 if test -n "$ac_ct_CC"; then 1443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1444 else 1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1446 for as_dir in $PATH 1447 do 1448 IFS=$as_save_IFS 1449 test -z "$as_dir" && as_dir=. 1450 for ac_exec_ext in '' $ac_executable_extensions; do 1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1452 ac_cv_prog_ac_ct_CC="cc" 1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1454 break 2 1455 fi 1456 done 1457 done 1458 1459 fi 1460 fi 1461 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1462 if test -n "$ac_ct_CC"; then 1463 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1464 echo "${ECHO_T}$ac_ct_CC" >&6 1465 else 1466 echo "$as_me:$LINENO: result: no" >&5 1467 echo "${ECHO_T}no" >&6 1468 fi 1469 1470 CC=$ac_ct_CC 1471 else 1472 CC="$ac_cv_prog_CC" 1473 fi 1474 1475 fi 1476 if test -z "$CC"; then 1477 # Extract the first word of "cc", so it can be a program name with args. 1478 set dummy cc; ac_word=$2 1479 echo "$as_me:$LINENO: checking for $ac_word" >&5 1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1481 if test "${ac_cv_prog_CC+set}" = set; then 1482 echo $ECHO_N "(cached) $ECHO_C" >&6 1483 else 1484 if test -n "$CC"; then 1485 ac_cv_prog_CC="$CC" # Let the user override the test. 1486 else 1487 ac_prog_rejected=no 1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1489 for as_dir in $PATH 1490 do 1491 IFS=$as_save_IFS 1492 test -z "$as_dir" && as_dir=. 1493 for ac_exec_ext in '' $ac_executable_extensions; do 1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1496 ac_prog_rejected=yes 1497 continue 1498 fi 1499 ac_cv_prog_CC="cc" 1500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1501 break 2 1502 fi 1503 done 1504 done 1505 1506 if test $ac_prog_rejected = yes; then 1507 # We found a bogon in the path, so make sure we never use it. 1508 set dummy $ac_cv_prog_CC 1509 shift 1510 if test $# != 0; then 1511 # We chose a different compiler from the bogus one. 1512 # However, it has the same basename, so the bogon will be chosen 1513 # first if we set CC to just the basename; use the full file name. 1514 shift 1515 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1516 fi 1517 fi 1518 fi 1519 fi 1520 CC=$ac_cv_prog_CC 1521 if test -n "$CC"; then 1522 echo "$as_me:$LINENO: result: $CC" >&5 1523 echo "${ECHO_T}$CC" >&6 1524 else 1525 echo "$as_me:$LINENO: result: no" >&5 1526 echo "${ECHO_T}no" >&6 1527 fi 1528 1529 fi 1530 if test -z "$CC"; then 1531 if test -n "$ac_tool_prefix"; then 1532 for ac_prog in cl 1533 do 1534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1536 echo "$as_me:$LINENO: checking for $ac_word" >&5 1537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1538 if test "${ac_cv_prog_CC+set}" = set; then 1539 echo $ECHO_N "(cached) $ECHO_C" >&6 1540 else 1541 if test -n "$CC"; then 1542 ac_cv_prog_CC="$CC" # Let the user override the test. 1543 else 1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1545 for as_dir in $PATH 1546 do 1547 IFS=$as_save_IFS 1548 test -z "$as_dir" && as_dir=. 1549 for ac_exec_ext in '' $ac_executable_extensions; do 1550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1551 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1553 break 2 1554 fi 1555 done 1556 done 1557 1558 fi 1559 fi 1560 CC=$ac_cv_prog_CC 1561 if test -n "$CC"; then 1562 echo "$as_me:$LINENO: result: $CC" >&5 1563 echo "${ECHO_T}$CC" >&6 1564 else 1565 echo "$as_me:$LINENO: result: no" >&5 1566 echo "${ECHO_T}no" >&6 1567 fi 1568 1569 test -n "$CC" && break 1570 done 1571 fi 1572 if test -z "$CC"; then 1573 ac_ct_CC=$CC 1574 for ac_prog in cl 1575 do 1576 # Extract the first word of "$ac_prog", so it can be a program name with args. 1577 set dummy $ac_prog; ac_word=$2 1578 echo "$as_me:$LINENO: checking for $ac_word" >&5 1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1580 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1581 echo $ECHO_N "(cached) $ECHO_C" >&6 1582 else 1583 if test -n "$ac_ct_CC"; then 1584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1585 else 1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1587 for as_dir in $PATH 1588 do 1589 IFS=$as_save_IFS 1590 test -z "$as_dir" && as_dir=. 1591 for ac_exec_ext in '' $ac_executable_extensions; do 1592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1593 ac_cv_prog_ac_ct_CC="$ac_prog" 1594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1595 break 2 1596 fi 1597 done 1598 done 1599 1600 fi 1601 fi 1602 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1603 if test -n "$ac_ct_CC"; then 1604 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1605 echo "${ECHO_T}$ac_ct_CC" >&6 1606 else 1607 echo "$as_me:$LINENO: result: no" >&5 1608 echo "${ECHO_T}no" >&6 1609 fi 1610 1611 test -n "$ac_ct_CC" && break 1612 done 1613 1614 CC=$ac_ct_CC 1615 fi 1616 1617 fi 1618 1619 1620 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1621 See \`config.log' for more details." >&5 1622 echo "$as_me: error: no acceptable C compiler found in \$PATH 1623 See \`config.log' for more details." >&2;} 1624 { (exit 1); exit 1; }; } 1625 1626 # Provide some information about the compiler. 1627 echo "$as_me:$LINENO:" \ 1628 "checking for C compiler version" >&5 1629 ac_compiler=`set X $ac_compile; echo $2` 1630 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1631 (eval $ac_compiler --version </dev/null >&5) 2>&5 1632 ac_status=$? 1633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1634 (exit $ac_status); } 1635 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1636 (eval $ac_compiler -v </dev/null >&5) 2>&5 1637 ac_status=$? 1638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1639 (exit $ac_status); } 1640 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1641 (eval $ac_compiler -V </dev/null >&5) 2>&5 1642 ac_status=$? 1643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1644 (exit $ac_status); } 1645 1646 cat >conftest.$ac_ext <<_ACEOF 1647 /* confdefs.h. */ 1648 _ACEOF 1649 cat confdefs.h >>conftest.$ac_ext 1650 cat >>conftest.$ac_ext <<_ACEOF 1651 /* end confdefs.h. */ 1652 1653 int 1654 main () 1655 { 1656 1657 ; 1658 return 0; 1659 } 1660 _ACEOF 1661 ac_clean_files_save=$ac_clean_files 1662 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1663 # Try to create an executable without -o first, disregard a.out. 1664 # It will help us diagnose broken compilers, and finding out an intuition 1665 # of exeext. 1666 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1667 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1668 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1669 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1670 (eval $ac_link_default) 2>&5 1671 ac_status=$? 1672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1673 (exit $ac_status); }; then 1674 # Find the output, starting from the most likely. This scheme is 1675 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1676 # resort. 1677 1678 # Be careful to initialize this variable, since it used to be cached. 1679 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1680 ac_cv_exeext= 1681 # b.out is created by i960 compilers. 1682 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1683 do 1684 test -f "$ac_file" || continue 1685 case $ac_file in 1686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1687 ;; 1688 conftest.$ac_ext ) 1689 # This is the source file. 1690 ;; 1691 [ab].out ) 1692 # We found the default executable, but exeext='' is most 1693 # certainly right. 1694 break;; 1695 *.* ) 1696 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1697 # FIXME: I believe we export ac_cv_exeext for Libtool, 1698 # but it would be cool to find out if it's true. Does anybody 1699 # maintain Libtool? --akim. 1700 export ac_cv_exeext 1701 break;; 1702 * ) 1703 break;; 1704 esac 1705 done 1706 else 1707 echo "$as_me: failed program was:" >&5 1708 sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1711 See \`config.log' for more details." >&5 1712 echo "$as_me: error: C compiler cannot create executables 1713 See \`config.log' for more details." >&2;} 1714 { (exit 77); exit 77; }; } 1715 fi 1716 1717 ac_exeext=$ac_cv_exeext 1718 echo "$as_me:$LINENO: result: $ac_file" >&5 1719 echo "${ECHO_T}$ac_file" >&6 1720 1721 # Check the compiler produces executables we can run. If not, either 1722 # the compiler is broken, or we cross compile. 1723 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1724 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1725 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1726 # If not cross compiling, check that we can run a simple program. 1727 if test "$cross_compiling" != yes; then 1728 if { ac_try='./$ac_file' 1729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1730 (eval $ac_try) 2>&5 1731 ac_status=$? 1732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1733 (exit $ac_status); }; }; then 1734 cross_compiling=no 1735 else 1736 if test "$cross_compiling" = maybe; then 1737 cross_compiling=yes 1738 else 1739 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1740 If you meant to cross compile, use \`--host'. 1741 See \`config.log' for more details." >&5 1742 echo "$as_me: error: cannot run C compiled programs. 1743 If you meant to cross compile, use \`--host'. 1744 See \`config.log' for more details." >&2;} 1745 { (exit 1); exit 1; }; } 1746 fi 1747 fi 1748 fi 1749 echo "$as_me:$LINENO: result: yes" >&5 1750 echo "${ECHO_T}yes" >&6 1751 1752 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1753 ac_clean_files=$ac_clean_files_save 1754 # Check the compiler produces executables we can run. If not, either 1755 # the compiler is broken, or we cross compile. 1756 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1757 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1758 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1759 echo "${ECHO_T}$cross_compiling" >&6 1760 1761 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1762 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1764 (eval $ac_link) 2>&5 1765 ac_status=$? 1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1767 (exit $ac_status); }; then 1768 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1769 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1770 # work properly (i.e., refer to `conftest.exe'), while it won't with 1771 # `rm'. 1772 for ac_file in conftest.exe conftest conftest.*; do 1773 test -f "$ac_file" || continue 1774 case $ac_file in 1775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1776 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1777 export ac_cv_exeext 1778 break;; 1779 * ) break;; 1780 esac 1781 done 1782 else 1783 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1784 See \`config.log' for more details." >&5 1785 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1786 See \`config.log' for more details." >&2;} 1787 { (exit 1); exit 1; }; } 1788 fi 1789 1790 rm -f conftest$ac_cv_exeext 1791 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1792 echo "${ECHO_T}$ac_cv_exeext" >&6 1793 1794 rm -f conftest.$ac_ext 1795 EXEEXT=$ac_cv_exeext 1796 ac_exeext=$EXEEXT 1797 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1798 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1799 if test "${ac_cv_objext+set}" = set; then 1800 echo $ECHO_N "(cached) $ECHO_C" >&6 1801 else 1802 cat >conftest.$ac_ext <<_ACEOF 1803 /* confdefs.h. */ 1804 _ACEOF 1805 cat confdefs.h >>conftest.$ac_ext 1806 cat >>conftest.$ac_ext <<_ACEOF 1807 /* end confdefs.h. */ 1808 1809 int 1810 main () 1811 { 1812 1813 ; 1814 return 0; 1815 } 1816 _ACEOF 1817 rm -f conftest.o conftest.obj 1818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1819 (eval $ac_compile) 2>&5 1820 ac_status=$? 1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1822 (exit $ac_status); }; then 1823 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1824 case $ac_file in 1825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1826 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1827 break;; 1828 esac 1829 done 1830 else 1831 echo "$as_me: failed program was:" >&5 1832 sed 's/^/| /' conftest.$ac_ext >&5 1833 1834 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1835 See \`config.log' for more details." >&5 1836 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1837 See \`config.log' for more details." >&2;} 1838 { (exit 1); exit 1; }; } 1839 fi 1840 1841 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1842 fi 1843 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1844 echo "${ECHO_T}$ac_cv_objext" >&6 1845 OBJEXT=$ac_cv_objext 1846 ac_objext=$OBJEXT 1847 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1848 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1849 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1850 echo $ECHO_N "(cached) $ECHO_C" >&6 1851 else 1852 cat >conftest.$ac_ext <<_ACEOF 1853 /* confdefs.h. */ 1854 _ACEOF 1855 cat confdefs.h >>conftest.$ac_ext 1856 cat >>conftest.$ac_ext <<_ACEOF 1857 /* end confdefs.h. */ 1858 1859 int 1860 main () 1861 { 1862 #ifndef __GNUC__ 1863 choke me 1864 #endif 1865 1866 ; 1867 return 0; 1868 } 1869 _ACEOF 1870 rm -f conftest.$ac_objext 1871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1872 (eval $ac_compile) 2>conftest.er1 1873 ac_status=$? 1874 grep -v '^ *+' conftest.er1 >conftest.err 1875 rm -f conftest.er1 1876 cat conftest.err >&5 1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1878 (exit $ac_status); } && 1879 { ac_try='test -z "$ac_c_werror_flag" 1880 || test ! -s conftest.err' 1881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1882 (eval $ac_try) 2>&5 1883 ac_status=$? 1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1885 (exit $ac_status); }; } && 1886 { ac_try='test -s conftest.$ac_objext' 1887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1888 (eval $ac_try) 2>&5 1889 ac_status=$? 1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1891 (exit $ac_status); }; }; then 1892 ac_compiler_gnu=yes 1893 else 1894 echo "$as_me: failed program was:" >&5 1895 sed 's/^/| /' conftest.$ac_ext >&5 1896 1897 ac_compiler_gnu=no 1898 fi 1899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1900 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1901 1902 fi 1903 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1904 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1905 GCC=`test $ac_compiler_gnu = yes && echo yes` 1906 ac_test_CFLAGS=${CFLAGS+set} 1907 ac_save_CFLAGS=$CFLAGS 1908 CFLAGS="-g" 1909 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1910 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1911 if test "${ac_cv_prog_cc_g+set}" = set; then 1912 echo $ECHO_N "(cached) $ECHO_C" >&6 1913 else 1914 cat >conftest.$ac_ext <<_ACEOF 1915 /* confdefs.h. */ 1916 _ACEOF 1917 cat confdefs.h >>conftest.$ac_ext 1918 cat >>conftest.$ac_ext <<_ACEOF 1919 /* end confdefs.h. */ 1920 1921 int 1922 main () 1923 { 1924 1925 ; 1926 return 0; 1927 } 1928 _ACEOF 1929 rm -f conftest.$ac_objext 1930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1931 (eval $ac_compile) 2>conftest.er1 1932 ac_status=$? 1933 grep -v '^ *+' conftest.er1 >conftest.err 1934 rm -f conftest.er1 1935 cat conftest.err >&5 1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1937 (exit $ac_status); } && 1938 { ac_try='test -z "$ac_c_werror_flag" 1939 || test ! -s conftest.err' 1940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1941 (eval $ac_try) 2>&5 1942 ac_status=$? 1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1944 (exit $ac_status); }; } && 1945 { ac_try='test -s conftest.$ac_objext' 1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1947 (eval $ac_try) 2>&5 1948 ac_status=$? 1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1950 (exit $ac_status); }; }; then 1951 ac_cv_prog_cc_g=yes 1952 else 1953 echo "$as_me: failed program was:" >&5 1954 sed 's/^/| /' conftest.$ac_ext >&5 1955 1956 ac_cv_prog_cc_g=no 1957 fi 1958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1959 fi 1960 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1961 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1962 if test "$ac_test_CFLAGS" = set; then 1963 CFLAGS=$ac_save_CFLAGS 1964 elif test $ac_cv_prog_cc_g = yes; then 1965 if test "$GCC" = yes; then 1966 CFLAGS="-g -O2" 1967 else 1968 CFLAGS="-g" 1969 fi 1970 else 1971 if test "$GCC" = yes; then 1972 CFLAGS="-O2" 1973 else 1974 CFLAGS= 1975 fi 1976 fi 1977 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 1978 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1979 if test "${ac_cv_prog_cc_stdc+set}" = set; then 1980 echo $ECHO_N "(cached) $ECHO_C" >&6 1981 else 1982 ac_cv_prog_cc_stdc=no 1983 ac_save_CC=$CC 1984 cat >conftest.$ac_ext <<_ACEOF 1985 /* confdefs.h. */ 1986 _ACEOF 1987 cat confdefs.h >>conftest.$ac_ext 1988 cat >>conftest.$ac_ext <<_ACEOF 1989 /* end confdefs.h. */ 1990 #include <stdarg.h> 1991 #include <stdio.h> 1992 #include <sys/types.h> 1993 #include <sys/stat.h> 1994 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1995 struct buf { int x; }; 1996 FILE * (*rcsopen) (struct buf *, struct stat *, int); 1997 static char *e (p, i) 1998 char **p; 1999 int i; 2000 { 2001 return p[i]; 2002 } 2003 static char *f (char * (*g) (char **, int), char **p, ...) 2004 { 2005 char *s; 2006 va_list v; 2007 va_start (v,p); 2008 s = g (p, va_arg (v,int)); 2009 va_end (v); 2010 return s; 2011 } 2012 2013 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2014 function prototypes and stuff, but not '\xHH' hex character constants. 2015 These don't provoke an error unfortunately, instead are silently treated 2016 as 'x'. The following induces an error, until -std1 is added to get 2017 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2018 array size at least. It's necessary to write '\x00'==0 to get something 2019 that's true only with -std1. */ 2020 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2021 2022 int test (int i, double x); 2023 struct s1 {int (*f) (int a);}; 2024 struct s2 {int (*f) (double a);}; 2025 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2026 int argc; 2027 char **argv; 2028 int 2029 main () 2030 { 2031 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2032 ; 2033 return 0; 2034 } 2035 _ACEOF 2036 # Don't try gcc -ansi; that turns off useful extensions and 2037 # breaks some systems' header files. 2038 # AIX -qlanglvl=ansi 2039 # Ultrix and OSF/1 -std1 2040 # HP-UX 10.20 and later -Ae 2041 # HP-UX older versions -Aa -D_HPUX_SOURCE 2042 # SVR4 -Xc -D__EXTENSIONS__ 2043 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2044 do 2045 CC="$ac_save_CC $ac_arg" 2046 rm -f conftest.$ac_objext 2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2048 (eval $ac_compile) 2>conftest.er1 2049 ac_status=$? 2050 grep -v '^ *+' conftest.er1 >conftest.err 2051 rm -f conftest.er1 2052 cat conftest.err >&5 2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2054 (exit $ac_status); } && 2055 { ac_try='test -z "$ac_c_werror_flag" 2056 || test ! -s conftest.err' 2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2058 (eval $ac_try) 2>&5 2059 ac_status=$? 2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2061 (exit $ac_status); }; } && 2062 { ac_try='test -s conftest.$ac_objext' 2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2064 (eval $ac_try) 2>&5 2065 ac_status=$? 2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2067 (exit $ac_status); }; }; then 2068 ac_cv_prog_cc_stdc=$ac_arg 2069 break 2070 else 2071 echo "$as_me: failed program was:" >&5 2072 sed 's/^/| /' conftest.$ac_ext >&5 2073 2074 fi 2075 rm -f conftest.err conftest.$ac_objext 2076 done 2077 rm -f conftest.$ac_ext conftest.$ac_objext 2078 CC=$ac_save_CC 2079 2080 fi 2081 2082 case "x$ac_cv_prog_cc_stdc" in 2083 x|xno) 2084 echo "$as_me:$LINENO: result: none needed" >&5 2085 echo "${ECHO_T}none needed" >&6 ;; 2086 *) 2087 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2088 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2089 CC="$CC $ac_cv_prog_cc_stdc" ;; 2090 esac 2091 2092 # Some people use a C++ compiler to compile C. Since we use `exit', 2093 # in C++ we need to declare it. In case someone uses the same compiler 2094 # for both compiling C and C++ we need to have the C++ compiler decide 2095 # the declaration of exit, since it's the most demanding environment. 2096 cat >conftest.$ac_ext <<_ACEOF 2097 #ifndef __cplusplus 2098 choke me 2099 #endif 2100 _ACEOF 2101 rm -f conftest.$ac_objext 2102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2103 (eval $ac_compile) 2>conftest.er1 2104 ac_status=$? 2105 grep -v '^ *+' conftest.er1 >conftest.err 2106 rm -f conftest.er1 2107 cat conftest.err >&5 2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2109 (exit $ac_status); } && 2110 { ac_try='test -z "$ac_c_werror_flag" 2111 || test ! -s conftest.err' 2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2113 (eval $ac_try) 2>&5 2114 ac_status=$? 2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2116 (exit $ac_status); }; } && 2117 { ac_try='test -s conftest.$ac_objext' 2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2119 (eval $ac_try) 2>&5 2120 ac_status=$? 2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2122 (exit $ac_status); }; }; then 2123 for ac_declaration in \ 2124 '' \ 2125 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2126 'extern "C" void std::exit (int); using std::exit;' \ 2127 'extern "C" void exit (int) throw ();' \ 2128 'extern "C" void exit (int);' \ 2129 'void exit (int);' 2130 do 2131 cat >conftest.$ac_ext <<_ACEOF 2132 /* confdefs.h. */ 2133 _ACEOF 2134 cat confdefs.h >>conftest.$ac_ext 2135 cat >>conftest.$ac_ext <<_ACEOF 2136 /* end confdefs.h. */ 2137 $ac_declaration 2138 #include <stdlib.h> 2139 int 2140 main () 2141 { 2142 exit (42); 2143 ; 2144 return 0; 2145 } 2146 _ACEOF 2147 rm -f conftest.$ac_objext 2148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2149 (eval $ac_compile) 2>conftest.er1 2150 ac_status=$? 2151 grep -v '^ *+' conftest.er1 >conftest.err 2152 rm -f conftest.er1 2153 cat conftest.err >&5 2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2155 (exit $ac_status); } && 2156 { ac_try='test -z "$ac_c_werror_flag" 2157 || test ! -s conftest.err' 2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2159 (eval $ac_try) 2>&5 2160 ac_status=$? 2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2162 (exit $ac_status); }; } && 2163 { ac_try='test -s conftest.$ac_objext' 2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2165 (eval $ac_try) 2>&5 2166 ac_status=$? 2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2168 (exit $ac_status); }; }; then 2169 : 2170 else 2171 echo "$as_me: failed program was:" >&5 2172 sed 's/^/| /' conftest.$ac_ext >&5 2173 2174 continue 2175 fi 2176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2177 cat >conftest.$ac_ext <<_ACEOF 2178 /* confdefs.h. */ 2179 _ACEOF 2180 cat confdefs.h >>conftest.$ac_ext 2181 cat >>conftest.$ac_ext <<_ACEOF 2182 /* end confdefs.h. */ 2183 $ac_declaration 2184 int 2185 main () 2186 { 2187 exit (42); 2188 ; 2189 return 0; 2190 } 2191 _ACEOF 2192 rm -f conftest.$ac_objext 2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2194 (eval $ac_compile) 2>conftest.er1 2195 ac_status=$? 2196 grep -v '^ *+' conftest.er1 >conftest.err 2197 rm -f conftest.er1 2198 cat conftest.err >&5 2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2200 (exit $ac_status); } && 2201 { ac_try='test -z "$ac_c_werror_flag" 2202 || test ! -s conftest.err' 2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2204 (eval $ac_try) 2>&5 2205 ac_status=$? 2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2207 (exit $ac_status); }; } && 2208 { ac_try='test -s conftest.$ac_objext' 2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2210 (eval $ac_try) 2>&5 2211 ac_status=$? 2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2213 (exit $ac_status); }; }; then 2214 break 2215 else 2216 echo "$as_me: failed program was:" >&5 2217 sed 's/^/| /' conftest.$ac_ext >&5 2218 2219 fi 2220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2221 done 2222 rm -f conftest* 2223 if test -n "$ac_declaration"; then 2224 echo '#ifdef __cplusplus' >>confdefs.h 2225 echo $ac_declaration >>confdefs.h 2226 echo '#endif' >>confdefs.h 2227 fi 2228 2229 else 2230 echo "$as_me: failed program was:" >&5 2231 sed 's/^/| /' conftest.$ac_ext >&5 2232 2233 fi 2234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2235 ac_ext=c 2236 ac_cpp='$CPP $CPPFLAGS' 2237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2239 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2240 2241 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2242 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2243 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2244 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2245 echo $ECHO_N "(cached) $ECHO_C" >&6 2246 else 2247 cat >conftest.make <<\_ACEOF 2248 all: 2249 @echo 'ac_maketemp="$(MAKE)"' 2250 _ACEOF 2251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2252 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2253 if test -n "$ac_maketemp"; then 2254 eval ac_cv_prog_make_${ac_make}_set=yes 2255 else 2256 eval ac_cv_prog_make_${ac_make}_set=no 2257 fi 2258 rm -f conftest.make 2259 fi 2260 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2261 echo "$as_me:$LINENO: result: yes" >&5 2262 echo "${ECHO_T}yes" >&6 2263 SET_MAKE= 2264 else 2265 echo "$as_me:$LINENO: result: no" >&5 2266 echo "${ECHO_T}no" >&6 2267 SET_MAKE="MAKE=${MAKE-make}" 2268 fi 2269 2270 ac_aux_dir= 2271 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2272 if test -f $ac_dir/install-sh; then 2273 ac_aux_dir=$ac_dir 2274 ac_install_sh="$ac_aux_dir/install-sh -c" 2275 break 2276 elif test -f $ac_dir/install.sh; then 2277 ac_aux_dir=$ac_dir 2278 ac_install_sh="$ac_aux_dir/install.sh -c" 2279 break 2280 elif test -f $ac_dir/shtool; then 2281 ac_aux_dir=$ac_dir 2282 ac_install_sh="$ac_aux_dir/shtool install -c" 2283 break 2284 fi 2285 done 2286 if test -z "$ac_aux_dir"; then 2287 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2288 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2289 { (exit 1); exit 1; }; } 2290 fi 2291 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2292 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2293 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2294 2295 # Find a good install program. We prefer a C program (faster), 2296 # so one script is as good as another. But avoid the broken or 2297 # incompatible versions: 2298 # SysV /etc/install, /usr/sbin/install 2299 # SunOS /usr/etc/install 2300 # IRIX /sbin/install 2301 # AIX /bin/install 2302 # AmigaOS /C/install, which installs bootblocks on floppy discs 2303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2306 # OS/2's system install, which has a completely different semantic 2307 # ./install, which can be erroneously created by make from ./install.sh. 2308 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2309 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2310 if test -z "$INSTALL"; then 2311 if test "${ac_cv_path_install+set}" = set; then 2312 echo $ECHO_N "(cached) $ECHO_C" >&6 2313 else 2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2315 for as_dir in $PATH 2316 do 2317 IFS=$as_save_IFS 2318 test -z "$as_dir" && as_dir=. 2319 # Account for people who put trailing slashes in PATH elements. 2320 case $as_dir/ in 2321 ./ | .// | /cC/* | \ 2322 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2323 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2324 /usr/ucb/* ) ;; 2325 *) 2326 # OSF1 and SCO ODT 3.0 have their own names for install. 2327 # Don't use installbsd from OSF since it installs stuff as root 2328 # by default. 2329 for ac_prog in ginstall scoinst install; do 2330 for ac_exec_ext in '' $ac_executable_extensions; do 2331 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2332 if test $ac_prog = install && 2333 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2334 # AIX install. It has an incompatible calling convention. 2335 : 2336 elif test $ac_prog = install && 2337 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2338 # program-specific install script used by HP pwplus--don't use. 2339 : 2340 else 2341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2342 break 3 2343 fi 2344 fi 2345 done 2346 done 2347 ;; 2348 esac 2349 done 2350 2351 2352 fi 2353 if test "${ac_cv_path_install+set}" = set; then 2354 INSTALL=$ac_cv_path_install 2355 else 2356 # As a last resort, use the slow shell script. We don't cache a 2357 # path for INSTALL within a source directory, because that will 2358 # break other packages using the cache if that directory is 2359 # removed, or if the path is relative. 2360 INSTALL=$ac_install_sh 2361 fi 2362 fi 2363 echo "$as_me:$LINENO: result: $INSTALL" >&5 2364 echo "${ECHO_T}$INSTALL" >&6 2365 2366 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2367 # It thinks the first close brace ends the variable substitution. 2368 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2369 2370 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2371 2372 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2373 2374 echo "$as_me:$LINENO: checking whether ln -s works" >&5 2375 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2376 LN_S=$as_ln_s 2377 if test "$LN_S" = "ln -s"; then 2378 echo "$as_me:$LINENO: result: yes" >&5 2379 echo "${ECHO_T}yes" >&6 2380 else 2381 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2382 echo "${ECHO_T}no, using $LN_S" >&6 2383 fi 2384 2385 if test -n "$ac_tool_prefix"; then 2386 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2387 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2388 echo "$as_me:$LINENO: checking for $ac_word" >&5 2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2390 if test "${ac_cv_prog_RANLIB+set}" = set; then 2391 echo $ECHO_N "(cached) $ECHO_C" >&6 2392 else 2393 if test -n "$RANLIB"; then 2394 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2395 else 2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2397 for as_dir in $PATH 2398 do 2399 IFS=$as_save_IFS 2400 test -z "$as_dir" && as_dir=. 2401 for ac_exec_ext in '' $ac_executable_extensions; do 2402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2403 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2405 break 2 2406 fi 2407 done 2408 done 2409 2410 fi 2411 fi 2412 RANLIB=$ac_cv_prog_RANLIB 2413 if test -n "$RANLIB"; then 2414 echo "$as_me:$LINENO: result: $RANLIB" >&5 2415 echo "${ECHO_T}$RANLIB" >&6 2416 else 2417 echo "$as_me:$LINENO: result: no" >&5 2418 echo "${ECHO_T}no" >&6 2419 fi 2420 2421 fi 2422 if test -z "$ac_cv_prog_RANLIB"; then 2423 ac_ct_RANLIB=$RANLIB 2424 # Extract the first word of "ranlib", so it can be a program name with args. 2425 set dummy ranlib; ac_word=$2 2426 echo "$as_me:$LINENO: checking for $ac_word" >&5 2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2428 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2429 echo $ECHO_N "(cached) $ECHO_C" >&6 2430 else 2431 if test -n "$ac_ct_RANLIB"; then 2432 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2433 else 2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2435 for as_dir in $PATH 2436 do 2437 IFS=$as_save_IFS 2438 test -z "$as_dir" && as_dir=. 2439 for ac_exec_ext in '' $ac_executable_extensions; do 2440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2441 ac_cv_prog_ac_ct_RANLIB="ranlib" 2442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2443 break 2 2444 fi 2445 done 2446 done 2447 2448 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2449 fi 2450 fi 2451 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2452 if test -n "$ac_ct_RANLIB"; then 2453 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2454 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2455 else 2456 echo "$as_me:$LINENO: result: no" >&5 2457 echo "${ECHO_T}no" >&6 2458 fi 2459 2460 RANLIB=$ac_ct_RANLIB 2461 else 2462 RANLIB="$ac_cv_prog_RANLIB" 2463 fi 2464 2465 if test -n "$ac_tool_prefix"; then 2466 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2467 set dummy ${ac_tool_prefix}ar; ac_word=$2 2468 echo "$as_me:$LINENO: checking for $ac_word" >&5 2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2470 if test "${ac_cv_prog_AR+set}" = set; then 2471 echo $ECHO_N "(cached) $ECHO_C" >&6 2472 else 2473 if test -n "$AR"; then 2474 ac_cv_prog_AR="$AR" # Let the user override the test. 2475 else 2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2477 for as_dir in $PATH 2478 do 2479 IFS=$as_save_IFS 2480 test -z "$as_dir" && as_dir=. 2481 for ac_exec_ext in '' $ac_executable_extensions; do 2482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2483 ac_cv_prog_AR="${ac_tool_prefix}ar" 2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2485 break 2 2486 fi 2487 done 2488 done 2489 2490 fi 2491 fi 2492 AR=$ac_cv_prog_AR 2493 if test -n "$AR"; then 2494 echo "$as_me:$LINENO: result: $AR" >&5 2495 echo "${ECHO_T}$AR" >&6 2496 else 2497 echo "$as_me:$LINENO: result: no" >&5 2498 echo "${ECHO_T}no" >&6 2499 fi 2500 2501 fi 2502 if test -z "$ac_cv_prog_AR"; then 2503 ac_ct_AR=$AR 2504 # Extract the first word of "ar", so it can be a program name with args. 2505 set dummy ar; ac_word=$2 2506 echo "$as_me:$LINENO: checking for $ac_word" >&5 2507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2508 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 2509 echo $ECHO_N "(cached) $ECHO_C" >&6 2510 else 2511 if test -n "$ac_ct_AR"; then 2512 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 2513 else 2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2515 for as_dir in $PATH 2516 do 2517 IFS=$as_save_IFS 2518 test -z "$as_dir" && as_dir=. 2519 for ac_exec_ext in '' $ac_executable_extensions; do 2520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2521 ac_cv_prog_ac_ct_AR="ar" 2522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2523 break 2 2524 fi 2525 done 2526 done 2527 2528 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="true" 2529 fi 2530 fi 2531 ac_ct_AR=$ac_cv_prog_ac_ct_AR 2532 if test -n "$ac_ct_AR"; then 2533 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 2534 echo "${ECHO_T}$ac_ct_AR" >&6 2535 else 2536 echo "$as_me:$LINENO: result: no" >&5 2537 echo "${ECHO_T}no" >&6 2538 fi 2539 2540 AR=$ac_ct_AR 2541 else 2542 AR="$ac_cv_prog_AR" 2543 fi 2544 2545 2546 ac_ext=c 2547 ac_cpp='$CPP $CPPFLAGS' 2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2551 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2552 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2553 # On Suns, sometimes $CPP names a directory. 2554 if test -n "$CPP" && test -d "$CPP"; then 2555 CPP= 2556 fi 2557 if test -z "$CPP"; then 2558 if test "${ac_cv_prog_CPP+set}" = set; then 2559 echo $ECHO_N "(cached) $ECHO_C" >&6 2560 else 2561 # Double quotes because CPP needs to be expanded 2562 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2563 do 2564 ac_preproc_ok=false 2565 for ac_c_preproc_warn_flag in '' yes 2566 do 2567 # Use a header file that comes with gcc, so configuring glibc 2568 # with a fresh cross-compiler works. 2569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2570 # <limits.h> exists even on freestanding compilers. 2571 # On the NeXT, cc -E runs the code through the compiler's parser, 2572 # not just through cpp. "Syntax error" is here to catch this case. 2573 cat >conftest.$ac_ext <<_ACEOF 2574 /* confdefs.h. */ 2575 _ACEOF 2576 cat confdefs.h >>conftest.$ac_ext 2577 cat >>conftest.$ac_ext <<_ACEOF 2578 /* end confdefs.h. */ 2579 #ifdef __STDC__ 2580 # include <limits.h> 2581 #else 2582 # include <assert.h> 2583 #endif 2584 Syntax error 2585 _ACEOF 2586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2588 ac_status=$? 2589 grep -v '^ *+' conftest.er1 >conftest.err 2590 rm -f conftest.er1 2591 cat conftest.err >&5 2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2593 (exit $ac_status); } >/dev/null; then 2594 if test -s conftest.err; then 2595 ac_cpp_err=$ac_c_preproc_warn_flag 2596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2597 else 2598 ac_cpp_err= 2599 fi 2600 else 2601 ac_cpp_err=yes 2602 fi 2603 if test -z "$ac_cpp_err"; then 2604 : 2605 else 2606 echo "$as_me: failed program was:" >&5 2607 sed 's/^/| /' conftest.$ac_ext >&5 2608 2609 # Broken: fails on valid input. 2610 continue 2611 fi 2612 rm -f conftest.err conftest.$ac_ext 2613 2614 # OK, works on sane cases. Now check whether non-existent headers 2615 # can be detected and how. 2616 cat >conftest.$ac_ext <<_ACEOF 2617 /* confdefs.h. */ 2618 _ACEOF 2619 cat confdefs.h >>conftest.$ac_ext 2620 cat >>conftest.$ac_ext <<_ACEOF 2621 /* end confdefs.h. */ 2622 #include <ac_nonexistent.h> 2623 _ACEOF 2624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2626 ac_status=$? 2627 grep -v '^ *+' conftest.er1 >conftest.err 2628 rm -f conftest.er1 2629 cat conftest.err >&5 2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2631 (exit $ac_status); } >/dev/null; then 2632 if test -s conftest.err; then 2633 ac_cpp_err=$ac_c_preproc_warn_flag 2634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2635 else 2636 ac_cpp_err= 2637 fi 2638 else 2639 ac_cpp_err=yes 2640 fi 2641 if test -z "$ac_cpp_err"; then 2642 # Broken: success on invalid input. 2643 continue 2644 else 2645 echo "$as_me: failed program was:" >&5 2646 sed 's/^/| /' conftest.$ac_ext >&5 2647 2648 # Passes both tests. 2649 ac_preproc_ok=: 2650 break 2651 fi 2652 rm -f conftest.err conftest.$ac_ext 2653 2654 done 2655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2656 rm -f conftest.err conftest.$ac_ext 2657 if $ac_preproc_ok; then 2658 break 2659 fi 2660 2661 done 2662 ac_cv_prog_CPP=$CPP 2663 2664 fi 2665 CPP=$ac_cv_prog_CPP 2666 else 2667 ac_cv_prog_CPP=$CPP 2668 fi 2669 echo "$as_me:$LINENO: result: $CPP" >&5 2670 echo "${ECHO_T}$CPP" >&6 2671 ac_preproc_ok=false 2672 for ac_c_preproc_warn_flag in '' yes 2673 do 2674 # Use a header file that comes with gcc, so configuring glibc 2675 # with a fresh cross-compiler works. 2676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2677 # <limits.h> exists even on freestanding compilers. 2678 # On the NeXT, cc -E runs the code through the compiler's parser, 2679 # not just through cpp. "Syntax error" is here to catch this case. 2680 cat >conftest.$ac_ext <<_ACEOF 2681 /* confdefs.h. */ 2682 _ACEOF 2683 cat confdefs.h >>conftest.$ac_ext 2684 cat >>conftest.$ac_ext <<_ACEOF 2685 /* end confdefs.h. */ 2686 #ifdef __STDC__ 2687 # include <limits.h> 2688 #else 2689 # include <assert.h> 2690 #endif 2691 Syntax error 2692 _ACEOF 2693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2695 ac_status=$? 2696 grep -v '^ *+' conftest.er1 >conftest.err 2697 rm -f conftest.er1 2698 cat conftest.err >&5 2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2700 (exit $ac_status); } >/dev/null; then 2701 if test -s conftest.err; then 2702 ac_cpp_err=$ac_c_preproc_warn_flag 2703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2704 else 2705 ac_cpp_err= 2706 fi 2707 else 2708 ac_cpp_err=yes 2709 fi 2710 if test -z "$ac_cpp_err"; then 2711 : 2712 else 2713 echo "$as_me: failed program was:" >&5 2714 sed 's/^/| /' conftest.$ac_ext >&5 2715 2716 # Broken: fails on valid input. 2717 continue 2718 fi 2719 rm -f conftest.err conftest.$ac_ext 2720 2721 # OK, works on sane cases. Now check whether non-existent headers 2722 # can be detected and how. 2723 cat >conftest.$ac_ext <<_ACEOF 2724 /* confdefs.h. */ 2725 _ACEOF 2726 cat confdefs.h >>conftest.$ac_ext 2727 cat >>conftest.$ac_ext <<_ACEOF 2728 /* end confdefs.h. */ 2729 #include <ac_nonexistent.h> 2730 _ACEOF 2731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2733 ac_status=$? 2734 grep -v '^ *+' conftest.er1 >conftest.err 2735 rm -f conftest.er1 2736 cat conftest.err >&5 2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2738 (exit $ac_status); } >/dev/null; then 2739 if test -s conftest.err; then 2740 ac_cpp_err=$ac_c_preproc_warn_flag 2741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2742 else 2743 ac_cpp_err= 2744 fi 2745 else 2746 ac_cpp_err=yes 2747 fi 2748 if test -z "$ac_cpp_err"; then 2749 # Broken: success on invalid input. 2750 continue 2751 else 2752 echo "$as_me: failed program was:" >&5 2753 sed 's/^/| /' conftest.$ac_ext >&5 2754 2755 # Passes both tests. 2756 ac_preproc_ok=: 2757 break 2758 fi 2759 rm -f conftest.err conftest.$ac_ext 2760 2761 done 2762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2763 rm -f conftest.err conftest.$ac_ext 2764 if $ac_preproc_ok; then 2765 : 2766 else 2767 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2768 See \`config.log' for more details." >&5 2769 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2770 See \`config.log' for more details." >&2;} 2771 { (exit 1); exit 1; }; } 2772 fi 2773 2774 ac_ext=c 2775 ac_cpp='$CPP $CPPFLAGS' 2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2779 2780 2781 echo "$as_me:$LINENO: checking for egrep" >&5 2782 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2783 if test "${ac_cv_prog_egrep+set}" = set; then 2784 echo $ECHO_N "(cached) $ECHO_C" >&6 2785 else 2786 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2787 then ac_cv_prog_egrep='grep -E' 2788 else ac_cv_prog_egrep='egrep' 2789 fi 2790 fi 2791 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2792 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2793 EGREP=$ac_cv_prog_egrep 2794 2795 2796 2797 echo "$as_me:$LINENO: checking for AIX" >&5 2798 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 2799 cat >conftest.$ac_ext <<_ACEOF 2800 /* confdefs.h. */ 2801 _ACEOF 2802 cat confdefs.h >>conftest.$ac_ext 2803 cat >>conftest.$ac_ext <<_ACEOF 2804 /* end confdefs.h. */ 2805 #ifdef _AIX 2806 yes 2807 #endif 2808 2809 _ACEOF 2810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2811 $EGREP "yes" >/dev/null 2>&1; then 2812 echo "$as_me:$LINENO: result: yes" >&5 2813 echo "${ECHO_T}yes" >&6 2814 cat >>confdefs.h <<\_ACEOF 2815 #define _ALL_SOURCE 1 2816 _ACEOF 2817 2818 else 2819 echo "$as_me:$LINENO: result: no" >&5 2820 echo "${ECHO_T}no" >&6 2821 fi 2822 rm -f conftest* 2823 2824 2825 2826 # Make sure we can run config.sub. 2827 $ac_config_sub sun4 >/dev/null 2>&1 || 2828 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2829 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2830 { (exit 1); exit 1; }; } 2831 2832 echo "$as_me:$LINENO: checking build system type" >&5 2833 echo $ECHO_N "checking build system type... $ECHO_C" >&6 2834 if test "${ac_cv_build+set}" = set; then 2835 echo $ECHO_N "(cached) $ECHO_C" >&6 2836 else 2837 ac_cv_build_alias=$build_alias 2838 test -z "$ac_cv_build_alias" && 2839 ac_cv_build_alias=`$ac_config_guess` 2840 test -z "$ac_cv_build_alias" && 2841 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2842 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2843 { (exit 1); exit 1; }; } 2844 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2845 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2846 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2847 { (exit 1); exit 1; }; } 2848 2849 fi 2850 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2851 echo "${ECHO_T}$ac_cv_build" >&6 2852 build=$ac_cv_build 2853 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2854 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2855 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2856 2857 2858 2859 echo "$as_me:$LINENO: checking host system type" >&5 2860 echo $ECHO_N "checking host system type... $ECHO_C" >&6 2861 if test "${ac_cv_host+set}" = set; then 2862 echo $ECHO_N "(cached) $ECHO_C" >&6 2863 else 2864 ac_cv_host_alias=$host_alias 2865 test -z "$ac_cv_host_alias" && 2866 ac_cv_host_alias=$ac_cv_build_alias 2867 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2868 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2869 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2870 { (exit 1); exit 1; }; } 2871 2872 fi 2873 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2874 echo "${ECHO_T}$ac_cv_host" >&6 2875 host=$ac_cv_host 2876 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2877 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2878 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2879 2880 2881 2882 2883 2884 2885 2886 echo "$as_me:$LINENO: checking host operating system" >&5 2887 echo $ECHO_N "checking host operating system... $ECHO_C" >&6 2888 echo "$as_me:$LINENO: result: $host_os" >&5 2889 echo "${ECHO_T}$host_os" >&6 2890 2891 SHOBJEXT="so" 2892 AREXT="a" 2893 2894 case $host_os in 2895 darwin*) 2896 SHOBJEXT="dylib" 2897 ;; 2898 hpux*) 2899 SHOBJEXT="sl" 2900 ;; 2901 mingw32msvc*) 2902 SHOBJEXT="dll" 2903 SHOBJFLAGS="-mno-cygwin -mms-bitfields -DPIC" 2904 SHOBJLDFLAGS='-shared -Wl,--dll -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a' 2905 ;; 2906 esac 2907 2908 2909 2910 2911 2912 2913 echo "$as_me:$LINENO: checking how to create shared objects" >&5 2914 echo $ECHO_N "checking how to create shared objects... $ECHO_C" >&6 2915 2916 if test -z "$SHOBJFLAGS" -a -z "$SHOBJLDFLAGS"; then 2917 2918 2919 2920 2921 OLD_LDFLAGS="$LDFLAGS" 2922 SHOBJFLAGS="" 2923 2924 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -rdynamic" 2925 2926 cat >conftest.$ac_ext <<_ACEOF 2927 /* confdefs.h. */ 2928 _ACEOF 2929 cat confdefs.h >>conftest.$ac_ext 2930 cat >>conftest.$ac_ext <<_ACEOF 2931 /* end confdefs.h. */ 2932 #include <stdio.h> 2933 int unrestst(void); 2934 int 2935 main () 2936 { 2937 printf("okay\n"); unrestst(); return(0); 2938 ; 2939 return 0; 2940 } 2941 _ACEOF 2942 rm -f conftest.$ac_objext conftest$ac_exeext 2943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2944 (eval $ac_link) 2>conftest.er1 2945 ac_status=$? 2946 grep -v '^ *+' conftest.er1 >conftest.err 2947 rm -f conftest.er1 2948 cat conftest.err >&5 2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2950 (exit $ac_status); } && 2951 { ac_try='test -z "$ac_c_werror_flag" 2952 || test ! -s conftest.err' 2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2954 (eval $ac_try) 2>&5 2955 ac_status=$? 2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2957 (exit $ac_status); }; } && 2958 { ac_try='test -s conftest$ac_exeext' 2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2960 (eval $ac_try) 2>&5 2961 ac_status=$? 2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2963 (exit $ac_status); }; }; then 2964 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -rdynamic" 2965 else 2966 echo "$as_me: failed program was:" >&5 2967 sed 's/^/| /' conftest.$ac_ext >&5 2968 2969 2970 LDFLAGS="$OLD_LDFLAGS" 2971 2972 2973 2974 2975 2976 OLD_LDFLAGS="$LDFLAGS" 2977 SHOBJFLAGS="" 2978 2979 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared" 2980 2981 cat >conftest.$ac_ext <<_ACEOF 2982 /* confdefs.h. */ 2983 _ACEOF 2984 cat confdefs.h >>conftest.$ac_ext 2985 cat >>conftest.$ac_ext <<_ACEOF 2986 /* end confdefs.h. */ 2987 #include <stdio.h> 2988 int unrestst(void); 2989 int 2990 main () 2991 { 2992 printf("okay\n"); unrestst(); return(0); 2993 ; 2994 return 0; 2995 } 2996 _ACEOF 2997 rm -f conftest.$ac_objext conftest$ac_exeext 2998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2999 (eval $ac_link) 2>conftest.er1 3000 ac_status=$? 3001 grep -v '^ *+' conftest.er1 >conftest.err 3002 rm -f conftest.er1 3003 cat conftest.err >&5 3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3005 (exit $ac_status); } && 3006 { ac_try='test -z "$ac_c_werror_flag" 3007 || test ! -s conftest.err' 3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3009 (eval $ac_try) 2>&5 3010 ac_status=$? 3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3012 (exit $ac_status); }; } && 3013 { ac_try='test -s conftest$ac_exeext' 3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3015 (eval $ac_try) 2>&5 3016 ac_status=$? 3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); }; }; then 3019 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared" 3020 else 3021 echo "$as_me: failed program was:" >&5 3022 sed 's/^/| /' conftest.$ac_ext >&5 3023 3024 3025 LDFLAGS="$OLD_LDFLAGS" 3026 3027 3028 3029 3030 3031 OLD_LDFLAGS="$LDFLAGS" 3032 SHOBJFLAGS="" 3033 3034 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -rdynamic -mimpure-text" 3035 3036 cat >conftest.$ac_ext <<_ACEOF 3037 /* confdefs.h. */ 3038 _ACEOF 3039 cat confdefs.h >>conftest.$ac_ext 3040 cat >>conftest.$ac_ext <<_ACEOF 3041 /* end confdefs.h. */ 3042 #include <stdio.h> 3043 int unrestst(void); 3044 int 3045 main () 3046 { 3047 printf("okay\n"); unrestst(); return(0); 3048 ; 3049 return 0; 3050 } 3051 _ACEOF 3052 rm -f conftest.$ac_objext conftest$ac_exeext 3053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3054 (eval $ac_link) 2>conftest.er1 3055 ac_status=$? 3056 grep -v '^ *+' conftest.er1 >conftest.err 3057 rm -f conftest.er1 3058 cat conftest.err >&5 3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3060 (exit $ac_status); } && 3061 { ac_try='test -z "$ac_c_werror_flag" 3062 || test ! -s conftest.err' 3063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3064 (eval $ac_try) 2>&5 3065 ac_status=$? 3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3067 (exit $ac_status); }; } && 3068 { ac_try='test -s conftest$ac_exeext' 3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3070 (eval $ac_try) 2>&5 3071 ac_status=$? 3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3073 (exit $ac_status); }; }; then 3074 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -rdynamic -mimpure-text" 3075 else 3076 echo "$as_me: failed program was:" >&5 3077 sed 's/^/| /' conftest.$ac_ext >&5 3078 3079 3080 LDFLAGS="$OLD_LDFLAGS" 3081 3082 3083 3084 3085 3086 OLD_LDFLAGS="$LDFLAGS" 3087 SHOBJFLAGS="" 3088 3089 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -mimpure-text" 3090 3091 cat >conftest.$ac_ext <<_ACEOF 3092 /* confdefs.h. */ 3093 _ACEOF 3094 cat confdefs.h >>conftest.$ac_ext 3095 cat >>conftest.$ac_ext <<_ACEOF 3096 /* end confdefs.h. */ 3097 #include <stdio.h> 3098 int unrestst(void); 3099 int 3100 main () 3101 { 3102 printf("okay\n"); unrestst(); return(0); 3103 ; 3104 return 0; 3105 } 3106 _ACEOF 3107 rm -f conftest.$ac_objext conftest$ac_exeext 3108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3109 (eval $ac_link) 2>conftest.er1 3110 ac_status=$? 3111 grep -v '^ *+' conftest.er1 >conftest.err 3112 rm -f conftest.er1 3113 cat conftest.err >&5 3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3115 (exit $ac_status); } && 3116 { ac_try='test -z "$ac_c_werror_flag" 3117 || test ! -s conftest.err' 3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3119 (eval $ac_try) 2>&5 3120 ac_status=$? 3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3122 (exit $ac_status); }; } && 3123 { ac_try='test -s conftest$ac_exeext' 3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3125 (eval $ac_try) 2>&5 3126 ac_status=$? 3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3128 (exit $ac_status); }; }; then 3129 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -mimpure-text" 3130 else 3131 echo "$as_me: failed program was:" >&5 3132 sed 's/^/| /' conftest.$ac_ext >&5 3133 3134 3135 LDFLAGS="$OLD_LDFLAGS" 3136 3137 3138 3139 3140 3141 OLD_LDFLAGS="$LDFLAGS" 3142 SHOBJFLAGS="" 3143 3144 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -rdynamic -Wl,-G,-z,textoff" 3145 3146 cat >conftest.$ac_ext <<_ACEOF 3147 /* confdefs.h. */ 3148 _ACEOF 3149 cat confdefs.h >>conftest.$ac_ext 3150 cat >>conftest.$ac_ext <<_ACEOF 3151 /* end confdefs.h. */ 3152 #include <stdio.h> 3153 int unrestst(void); 3154 int 3155 main () 3156 { 3157 printf("okay\n"); unrestst(); return(0); 3158 ; 3159 return 0; 3160 } 3161 _ACEOF 3162 rm -f conftest.$ac_objext conftest$ac_exeext 3163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3164 (eval $ac_link) 2>conftest.er1 3165 ac_status=$? 3166 grep -v '^ *+' conftest.er1 >conftest.err 3167 rm -f conftest.er1 3168 cat conftest.err >&5 3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3170 (exit $ac_status); } && 3171 { ac_try='test -z "$ac_c_werror_flag" 3172 || test ! -s conftest.err' 3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3174 (eval $ac_try) 2>&5 3175 ac_status=$? 3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3177 (exit $ac_status); }; } && 3178 { ac_try='test -s conftest$ac_exeext' 3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3180 (eval $ac_try) 2>&5 3181 ac_status=$? 3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3183 (exit $ac_status); }; }; then 3184 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -rdynamic -Wl,-G,-z,textoff" 3185 else 3186 echo "$as_me: failed program was:" >&5 3187 sed 's/^/| /' conftest.$ac_ext >&5 3188 3189 3190 LDFLAGS="$OLD_LDFLAGS" 3191 3192 3193 3194 3195 3196 OLD_LDFLAGS="$LDFLAGS" 3197 SHOBJFLAGS="" 3198 3199 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -Wl,-G,-z,textoff" 3200 3201 cat >conftest.$ac_ext <<_ACEOF 3202 /* confdefs.h. */ 3203 _ACEOF 3204 cat confdefs.h >>conftest.$ac_ext 3205 cat >>conftest.$ac_ext <<_ACEOF 3206 /* end confdefs.h. */ 3207 #include <stdio.h> 3208 int unrestst(void); 3209 int 3210 main () 3211 { 3212 printf("okay\n"); unrestst(); return(0); 3213 ; 3214 return 0; 3215 } 3216 _ACEOF 3217 rm -f conftest.$ac_objext conftest$ac_exeext 3218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3219 (eval $ac_link) 2>conftest.er1 3220 ac_status=$? 3221 grep -v '^ *+' conftest.er1 >conftest.err 3222 rm -f conftest.er1 3223 cat conftest.err >&5 3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3225 (exit $ac_status); } && 3226 { ac_try='test -z "$ac_c_werror_flag" 3227 || test ! -s conftest.err' 3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3229 (eval $ac_try) 2>&5 3230 ac_status=$? 3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3232 (exit $ac_status); }; } && 3233 { ac_try='test -s conftest$ac_exeext' 3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3235 (eval $ac_try) 2>&5 3236 ac_status=$? 3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3238 (exit $ac_status); }; }; then 3239 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -Wl,-G,-z,textoff" 3240 else 3241 echo "$as_me: failed program was:" >&5 3242 sed 's/^/| /' conftest.$ac_ext >&5 3243 3244 3245 LDFLAGS="$OLD_LDFLAGS" 3246 3247 3248 3249 3250 3251 OLD_LDFLAGS="$LDFLAGS" 3252 SHOBJFLAGS="" 3253 3254 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -dynamiclib -flat_namespace -undefined suppress -bind_at_load" 3255 3256 cat >conftest.$ac_ext <<_ACEOF 3257 /* confdefs.h. */ 3258 _ACEOF 3259 cat confdefs.h >>conftest.$ac_ext 3260 cat >>conftest.$ac_ext <<_ACEOF 3261 /* end confdefs.h. */ 3262 #include <stdio.h> 3263 int unrestst(void); 3264 int 3265 main () 3266 { 3267 printf("okay\n"); unrestst(); return(0); 3268 ; 3269 return 0; 3270 } 3271 _ACEOF 3272 rm -f conftest.$ac_objext conftest$ac_exeext 3273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3274 (eval $ac_link) 2>conftest.er1 3275 ac_status=$? 3276 grep -v '^ *+' conftest.er1 >conftest.err 3277 rm -f conftest.er1 3278 cat conftest.err >&5 3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3280 (exit $ac_status); } && 3281 { ac_try='test -z "$ac_c_werror_flag" 3282 || test ! -s conftest.err' 3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3284 (eval $ac_try) 2>&5 3285 ac_status=$? 3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3287 (exit $ac_status); }; } && 3288 { ac_try='test -s conftest$ac_exeext' 3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3290 (eval $ac_try) 2>&5 3291 ac_status=$? 3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3293 (exit $ac_status); }; }; then 3294 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -dynamiclib -flat_namespace -undefined suppress -bind_at_load" 3295 else 3296 echo "$as_me: failed program was:" >&5 3297 sed 's/^/| /' conftest.$ac_ext >&5 3298 3299 3300 LDFLAGS="$OLD_LDFLAGS" 3301 3302 3303 3304 3305 3306 OLD_LDFLAGS="$LDFLAGS" 3307 SHOBJFLAGS="" 3308 3309 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -dynamiclib -flat_namespace -undefined suppress -bind_at_load" 3310 3311 cat >conftest.$ac_ext <<_ACEOF 3312 /* confdefs.h. */ 3313 _ACEOF 3314 cat confdefs.h >>conftest.$ac_ext 3315 cat >>conftest.$ac_ext <<_ACEOF 3316 /* end confdefs.h. */ 3317 #include <stdio.h> 3318 int unrestst(void); 3319 int 3320 main () 3321 { 3322 printf("okay\n"); unrestst(); return(0); 3323 ; 3324 return 0; 3325 } 3326 _ACEOF 3327 rm -f conftest.$ac_objext conftest$ac_exeext 3328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3329 (eval $ac_link) 2>conftest.er1 3330 ac_status=$? 3331 grep -v '^ *+' conftest.er1 >conftest.err 3332 rm -f conftest.er1 3333 cat conftest.err >&5 3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3335 (exit $ac_status); } && 3336 { ac_try='test -z "$ac_c_werror_flag" 3337 || test ! -s conftest.err' 3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3339 (eval $ac_try) 2>&5 3340 ac_status=$? 3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3342 (exit $ac_status); }; } && 3343 { ac_try='test -s conftest$ac_exeext' 3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3345 (eval $ac_try) 2>&5 3346 ac_status=$? 3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3348 (exit $ac_status); }; }; then 3349 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-dynamiclib -flat_namespace -undefined suppress -bind_at_load" 3350 else 3351 echo "$as_me: failed program was:" >&5 3352 sed 's/^/| /' conftest.$ac_ext >&5 3353 3354 3355 LDFLAGS="$OLD_LDFLAGS" 3356 3357 3358 3359 3360 3361 OLD_LDFLAGS="$LDFLAGS" 3362 SHOBJFLAGS="" 3363 3364 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -Wl,-dynamiclib -Wl,-flat_namespace -Wl,-undefined,suppress -Wl,-bind_at_load" 3365 3366 cat >conftest.$ac_ext <<_ACEOF 3367 /* confdefs.h. */ 3368 _ACEOF 3369 cat confdefs.h >>conftest.$ac_ext 3370 cat >>conftest.$ac_ext <<_ACEOF 3371 /* end confdefs.h. */ 3372 #include <stdio.h> 3373 int unrestst(void); 3374 int 3375 main () 3376 { 3377 printf("okay\n"); unrestst(); return(0); 3378 ; 3379 return 0; 3380 } 3381 _ACEOF 3382 rm -f conftest.$ac_objext conftest$ac_exeext 3383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3384 (eval $ac_link) 2>conftest.er1 3385 ac_status=$? 3386 grep -v '^ *+' conftest.er1 >conftest.err 3387 rm -f conftest.er1 3388 cat conftest.err >&5 3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3390 (exit $ac_status); } && 3391 { ac_try='test -z "$ac_c_werror_flag" 3392 || test ! -s conftest.err' 3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3394 (eval $ac_try) 2>&5 3395 ac_status=$? 3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3397 (exit $ac_status); }; } && 3398 { ac_try='test -s conftest$ac_exeext' 3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3400 (eval $ac_try) 2>&5 3401 ac_status=$? 3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3403 (exit $ac_status); }; }; then 3404 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-Wl,-dynamiclib -Wl,-flat_namespace -Wl,-undefined,suppress -Wl,-bind_at_load" 3405 else 3406 echo "$as_me: failed program was:" >&5 3407 sed 's/^/| /' conftest.$ac_ext >&5 3408 3409 3410 LDFLAGS="$OLD_LDFLAGS" 3411 3412 3413 3414 3415 3416 OLD_LDFLAGS="$LDFLAGS" 3417 SHOBJFLAGS="" 3418 3419 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -dynamiclib -flat_namespace -undefined suppress" 3420 3421 cat >conftest.$ac_ext <<_ACEOF 3422 /* confdefs.h. */ 3423 _ACEOF 3424 cat confdefs.h >>conftest.$ac_ext 3425 cat >>conftest.$ac_ext <<_ACEOF 3426 /* end confdefs.h. */ 3427 #include <stdio.h> 3428 int unrestst(void); 3429 int 3430 main () 3431 { 3432 printf("okay\n"); unrestst(); return(0); 3433 ; 3434 return 0; 3435 } 3436 _ACEOF 3437 rm -f conftest.$ac_objext conftest$ac_exeext 3438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3439 (eval $ac_link) 2>conftest.er1 3440 ac_status=$? 3441 grep -v '^ *+' conftest.er1 >conftest.err 3442 rm -f conftest.er1 3443 cat conftest.err >&5 3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3445 (exit $ac_status); } && 3446 { ac_try='test -z "$ac_c_werror_flag" 3447 || test ! -s conftest.err' 3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3449 (eval $ac_try) 2>&5 3450 ac_status=$? 3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3452 (exit $ac_status); }; } && 3453 { ac_try='test -s conftest$ac_exeext' 3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3455 (eval $ac_try) 2>&5 3456 ac_status=$? 3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3458 (exit $ac_status); }; }; then 3459 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-dynamiclib -flat_namespace -undefined suppress" 3460 else 3461 echo "$as_me: failed program was:" >&5 3462 sed 's/^/| /' conftest.$ac_ext >&5 3463 3464 3465 LDFLAGS="$OLD_LDFLAGS" 3466 3467 3468 3469 3470 3471 OLD_LDFLAGS="$LDFLAGS" 3472 SHOBJFLAGS="" 3473 3474 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -dynamiclib" 3475 3476 cat >conftest.$ac_ext <<_ACEOF 3477 /* confdefs.h. */ 3478 _ACEOF 3479 cat confdefs.h >>conftest.$ac_ext 3480 cat >>conftest.$ac_ext <<_ACEOF 3481 /* end confdefs.h. */ 3482 #include <stdio.h> 3483 int unrestst(void); 3484 int 3485 main () 3486 { 3487 printf("okay\n"); unrestst(); return(0); 3488 ; 3489 return 0; 3490 } 3491 _ACEOF 3492 rm -f conftest.$ac_objext conftest$ac_exeext 3493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3494 (eval $ac_link) 2>conftest.er1 3495 ac_status=$? 3496 grep -v '^ *+' conftest.er1 >conftest.err 3497 rm -f conftest.er1 3498 cat conftest.err >&5 3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3500 (exit $ac_status); } && 3501 { ac_try='test -z "$ac_c_werror_flag" 3502 || test ! -s conftest.err' 3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3504 (eval $ac_try) 2>&5 3505 ac_status=$? 3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3507 (exit $ac_status); }; } && 3508 { ac_try='test -s conftest$ac_exeext' 3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3510 (eval $ac_try) 2>&5 3511 ac_status=$? 3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3513 (exit $ac_status); }; }; then 3514 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-dynamiclib" 3515 else 3516 echo "$as_me: failed program was:" >&5 3517 sed 's/^/| /' conftest.$ac_ext >&5 3518 3519 3520 LDFLAGS="$OLD_LDFLAGS" 3521 3522 echo "$as_me:$LINENO: result: cant" >&5 3523 echo "${ECHO_T}cant" >&6 3524 { { echo "$as_me:$LINENO: error: We are unable to make shared objects." >&5 3525 echo "$as_me: error: We are unable to make shared objects." >&2;} 3526 { (exit 1); exit 1; }; } 3527 3528 3529 fi 3530 rm -f conftest.err conftest.$ac_objext \ 3531 conftest$ac_exeext conftest.$ac_ext 3532 3533 LDFLAGS="$OLD_LDFLAGS" 3534 3535 3536 3537 fi 3538 rm -f conftest.err conftest.$ac_objext \ 3539 conftest$ac_exeext conftest.$ac_ext 3540 3541 LDFLAGS="$OLD_LDFLAGS" 3542 3543 3544 3545 fi 3546 rm -f conftest.err conftest.$ac_objext \ 3547 conftest$ac_exeext conftest.$ac_ext 3548 3549 LDFLAGS="$OLD_LDFLAGS" 3550 3551 3552 3553 fi 3554 rm -f conftest.err conftest.$ac_objext \ 3555 conftest$ac_exeext conftest.$ac_ext 3556 3557 LDFLAGS="$OLD_LDFLAGS" 3558 3559 3560 3561 fi 3562 rm -f conftest.err conftest.$ac_objext \ 3563 conftest$ac_exeext conftest.$ac_ext 3564 3565 LDFLAGS="$OLD_LDFLAGS" 3566 3567 3568 3569 fi 3570 rm -f conftest.err conftest.$ac_objext \ 3571 conftest$ac_exeext conftest.$ac_ext 3572 3573 LDFLAGS="$OLD_LDFLAGS" 3574 3575 3576 3577 fi 3578 rm -f conftest.err conftest.$ac_objext \ 3579 conftest$ac_exeext conftest.$ac_ext 3580 3581 LDFLAGS="$OLD_LDFLAGS" 3582 3583 3584 3585 fi 3586 rm -f conftest.err conftest.$ac_objext \ 3587 conftest$ac_exeext conftest.$ac_ext 3588 3589 LDFLAGS="$OLD_LDFLAGS" 3590 3591 3592 3593 fi 3594 rm -f conftest.err conftest.$ac_objext \ 3595 conftest$ac_exeext conftest.$ac_ext 3596 3597 LDFLAGS="$OLD_LDFLAGS" 3598 3599 3600 3601 fi 3602 rm -f conftest.err conftest.$ac_objext \ 3603 conftest$ac_exeext conftest.$ac_ext 3604 3605 LDFLAGS="$OLD_LDFLAGS" 3606 3607 3608 3609 fi 3610 rm -f conftest.err conftest.$ac_objext \ 3611 conftest$ac_exeext conftest.$ac_ext 3612 3613 LDFLAGS="$OLD_LDFLAGS" 3614 3615 fi 3616 3617 echo "$as_me:$LINENO: result: $SHOBJLDFLAGS $SHOBJFLAGS" >&5 3618 echo "${ECHO_T}$SHOBJLDFLAGS $SHOBJFLAGS" >&6 3619 3620 3621 3622 SHLIBOBJS="" 3623 for obj in $LIBOBJS; do 3624 SHLIBOBJS="$SHLIBOBJS `echo $obj | sed 's/\.o$/_shr.o/g'`" 3625 done 3626 3627 3628 3629 3630 3631 3632 3633 3634 ac_header_dirent=no 3635 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 3636 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 3637 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 3638 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 3639 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3640 echo $ECHO_N "(cached) $ECHO_C" >&6 3641 else 3642 cat >conftest.$ac_ext <<_ACEOF 3643 /* confdefs.h. */ 3644 _ACEOF 3645 cat confdefs.h >>conftest.$ac_ext 3646 cat >>conftest.$ac_ext <<_ACEOF 3647 /* end confdefs.h. */ 3648 #include <sys/types.h> 3649 #include <$ac_hdr> 3650 3651 int 3652 main () 3653 { 3654 if ((DIR *) 0) 3655 return 0; 3656 ; 3657 return 0; 3658 } 3659 _ACEOF 3660 rm -f conftest.$ac_objext 3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3662 (eval $ac_compile) 2>conftest.er1 3663 ac_status=$? 3664 grep -v '^ *+' conftest.er1 >conftest.err 3665 rm -f conftest.er1 3666 cat conftest.err >&5 3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3668 (exit $ac_status); } && 3669 { ac_try='test -z "$ac_c_werror_flag" 3670 || test ! -s conftest.err' 3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3672 (eval $ac_try) 2>&5 3673 ac_status=$? 3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3675 (exit $ac_status); }; } && 3676 { ac_try='test -s conftest.$ac_objext' 3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3678 (eval $ac_try) 2>&5 3679 ac_status=$? 3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3681 (exit $ac_status); }; }; then 3682 eval "$as_ac_Header=yes" 3683 else 3684 echo "$as_me: failed program was:" >&5 3685 sed 's/^/| /' conftest.$ac_ext >&5 3686 3687 eval "$as_ac_Header=no" 3688 fi 3689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3690 fi 3691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3693 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3694 cat >>confdefs.h <<_ACEOF 3695 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 3696 _ACEOF 3697 3698 ac_header_dirent=$ac_hdr; break 3699 fi 3700 3701 done 3702 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 3703 if test $ac_header_dirent = dirent.h; then 3704 echo "$as_me:$LINENO: checking for library containing opendir" >&5 3705 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 3706 if test "${ac_cv_search_opendir+set}" = set; then 3707 echo $ECHO_N "(cached) $ECHO_C" >&6 3708 else 3709 ac_func_search_save_LIBS=$LIBS 3710 ac_cv_search_opendir=no 3711 cat >conftest.$ac_ext <<_ACEOF 3712 /* confdefs.h. */ 3713 _ACEOF 3714 cat confdefs.h >>conftest.$ac_ext 3715 cat >>conftest.$ac_ext <<_ACEOF 3716 /* end confdefs.h. */ 3717 3718 /* Override any gcc2 internal prototype to avoid an error. */ 3719 #ifdef __cplusplus 3720 extern "C" 3721 #endif 3722 /* We use char because int might match the return type of a gcc2 3723 builtin and then its argument prototype would still apply. */ 3724 char opendir (); 3725 int 3726 main () 3727 { 3728 opendir (); 3729 ; 3730 return 0; 3731 } 3732 _ACEOF 3733 rm -f conftest.$ac_objext conftest$ac_exeext 3734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3735 (eval $ac_link) 2>conftest.er1 3736 ac_status=$? 3737 grep -v '^ *+' conftest.er1 >conftest.err 3738 rm -f conftest.er1 3739 cat conftest.err >&5 3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3741 (exit $ac_status); } && 3742 { ac_try='test -z "$ac_c_werror_flag" 3743 || test ! -s conftest.err' 3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3745 (eval $ac_try) 2>&5 3746 ac_status=$? 3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3748 (exit $ac_status); }; } && 3749 { ac_try='test -s conftest$ac_exeext' 3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3751 (eval $ac_try) 2>&5 3752 ac_status=$? 3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3754 (exit $ac_status); }; }; then 3755 ac_cv_search_opendir="none required" 3756 else 3757 echo "$as_me: failed program was:" >&5 3758 sed 's/^/| /' conftest.$ac_ext >&5 3759 3760 fi 3761 rm -f conftest.err conftest.$ac_objext \ 3762 conftest$ac_exeext conftest.$ac_ext 3763 if test "$ac_cv_search_opendir" = no; then 3764 for ac_lib in dir; do 3765 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3766 cat >conftest.$ac_ext <<_ACEOF 3767 /* confdefs.h. */ 3768 _ACEOF 3769 cat confdefs.h >>conftest.$ac_ext 3770 cat >>conftest.$ac_ext <<_ACEOF 3771 /* end confdefs.h. */ 3772 3773 /* Override any gcc2 internal prototype to avoid an error. */ 3774 #ifdef __cplusplus 3775 extern "C" 3776 #endif 3777 /* We use char because int might match the return type of a gcc2 3778 builtin and then its argument prototype would still apply. */ 3779 char opendir (); 3780 int 3781 main () 3782 { 3783 opendir (); 3784 ; 3785 return 0; 3786 } 3787 _ACEOF 3788 rm -f conftest.$ac_objext conftest$ac_exeext 3789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3790 (eval $ac_link) 2>conftest.er1 3791 ac_status=$? 3792 grep -v '^ *+' conftest.er1 >conftest.err 3793 rm -f conftest.er1 3794 cat conftest.err >&5 3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3796 (exit $ac_status); } && 3797 { ac_try='test -z "$ac_c_werror_flag" 3798 || test ! -s conftest.err' 3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3800 (eval $ac_try) 2>&5 3801 ac_status=$? 3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3803 (exit $ac_status); }; } && 3804 { ac_try='test -s conftest$ac_exeext' 3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3806 (eval $ac_try) 2>&5 3807 ac_status=$? 3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3809 (exit $ac_status); }; }; then 3810 ac_cv_search_opendir="-l$ac_lib" 3811 break 3812 else 3813 echo "$as_me: failed program was:" >&5 3814 sed 's/^/| /' conftest.$ac_ext >&5 3815 3816 fi 3817 rm -f conftest.err conftest.$ac_objext \ 3818 conftest$ac_exeext conftest.$ac_ext 3819 done 3820 fi 3821 LIBS=$ac_func_search_save_LIBS 3822 fi 3823 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 3824 echo "${ECHO_T}$ac_cv_search_opendir" >&6 3825 if test "$ac_cv_search_opendir" != no; then 3826 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 3827 3828 fi 3829 3830 else 3831 echo "$as_me:$LINENO: checking for library containing opendir" >&5 3832 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 3833 if test "${ac_cv_search_opendir+set}" = set; then 3834 echo $ECHO_N "(cached) $ECHO_C" >&6 3835 else 3836 ac_func_search_save_LIBS=$LIBS 3837 ac_cv_search_opendir=no 3838 cat >conftest.$ac_ext <<_ACEOF 3839 /* confdefs.h. */ 3840 _ACEOF 3841 cat confdefs.h >>conftest.$ac_ext 3842 cat >>conftest.$ac_ext <<_ACEOF 3843 /* end confdefs.h. */ 3844 3845 /* Override any gcc2 internal prototype to avoid an error. */ 3846 #ifdef __cplusplus 3847 extern "C" 3848 #endif 3849 /* We use char because int might match the return type of a gcc2 3850 builtin and then its argument prototype would still apply. */ 3851 char opendir (); 3852 int 3853 main () 3854 { 3855 opendir (); 3856 ; 3857 return 0; 3858 } 3859 _ACEOF 3860 rm -f conftest.$ac_objext conftest$ac_exeext 3861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3862 (eval $ac_link) 2>conftest.er1 3863 ac_status=$? 3864 grep -v '^ *+' conftest.er1 >conftest.err 3865 rm -f conftest.er1 3866 cat conftest.err >&5 3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3868 (exit $ac_status); } && 3869 { ac_try='test -z "$ac_c_werror_flag" 3870 || test ! -s conftest.err' 3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3872 (eval $ac_try) 2>&5 3873 ac_status=$? 3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3875 (exit $ac_status); }; } && 3876 { ac_try='test -s conftest$ac_exeext' 3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3878 (eval $ac_try) 2>&5 3879 ac_status=$? 3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3881 (exit $ac_status); }; }; then 3882 ac_cv_search_opendir="none required" 3883 else 3884 echo "$as_me: failed program was:" >&5 3885 sed 's/^/| /' conftest.$ac_ext >&5 3886 3887 fi 3888 rm -f conftest.err conftest.$ac_objext \ 3889 conftest$ac_exeext conftest.$ac_ext 3890 if test "$ac_cv_search_opendir" = no; then 3891 for ac_lib in x; do 3892 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3893 cat >conftest.$ac_ext <<_ACEOF 3894 /* confdefs.h. */ 3895 _ACEOF 3896 cat confdefs.h >>conftest.$ac_ext 3897 cat >>conftest.$ac_ext <<_ACEOF 3898 /* end confdefs.h. */ 3899 3900 /* Override any gcc2 internal prototype to avoid an error. */ 3901 #ifdef __cplusplus 3902 extern "C" 3903 #endif 3904 /* We use char because int might match the return type of a gcc2 3905 builtin and then its argument prototype would still apply. */ 3906 char opendir (); 3907 int 3908 main () 3909 { 3910 opendir (); 3911 ; 3912 return 0; 3913 } 3914 _ACEOF 3915 rm -f conftest.$ac_objext conftest$ac_exeext 3916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3917 (eval $ac_link) 2>conftest.er1 3918 ac_status=$? 3919 grep -v '^ *+' conftest.er1 >conftest.err 3920 rm -f conftest.er1 3921 cat conftest.err >&5 3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3923 (exit $ac_status); } && 3924 { ac_try='test -z "$ac_c_werror_flag" 3925 || test ! -s conftest.err' 3926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3927 (eval $ac_try) 2>&5 3928 ac_status=$? 3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3930 (exit $ac_status); }; } && 3931 { ac_try='test -s conftest$ac_exeext' 3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3933 (eval $ac_try) 2>&5 3934 ac_status=$? 3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3936 (exit $ac_status); }; }; then 3937 ac_cv_search_opendir="-l$ac_lib" 3938 break 3939 else 3940 echo "$as_me: failed program was:" >&5 3941 sed 's/^/| /' conftest.$ac_ext >&5 3942 3943 fi 3944 rm -f conftest.err conftest.$ac_objext \ 3945 conftest$ac_exeext conftest.$ac_ext 3946 done 3947 fi 3948 LIBS=$ac_func_search_save_LIBS 3949 fi 3950 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 3951 echo "${ECHO_T}$ac_cv_search_opendir" >&6 3952 if test "$ac_cv_search_opendir" != no; then 3953 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 3954 3955 fi 3956 3957 fi 3958 3959 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3960 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3961 if test "${ac_cv_header_stdc+set}" = set; then 3962 echo $ECHO_N "(cached) $ECHO_C" >&6 3963 else 3964 cat >conftest.$ac_ext <<_ACEOF 3965 /* confdefs.h. */ 3966 _ACEOF 3967 cat confdefs.h >>conftest.$ac_ext 3968 cat >>conftest.$ac_ext <<_ACEOF 3969 /* end confdefs.h. */ 3970 #include <stdlib.h> 3971 #include <stdarg.h> 3972 #include <string.h> 3973 #include <float.h> 3974 3975 int 3976 main () 3977 { 3978 3979 ; 3980 return 0; 3981 } 3982 _ACEOF 3983 rm -f conftest.$ac_objext 3984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3985 (eval $ac_compile) 2>conftest.er1 3986 ac_status=$? 3987 grep -v '^ *+' conftest.er1 >conftest.err 3988 rm -f conftest.er1 3989 cat conftest.err >&5 3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3991 (exit $ac_status); } && 3992 { ac_try='test -z "$ac_c_werror_flag" 3993 || test ! -s conftest.err' 3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3995 (eval $ac_try) 2>&5 3996 ac_status=$? 3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3998 (exit $ac_status); }; } && 3999 { ac_try='test -s conftest.$ac_objext' 4000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4001 (eval $ac_try) 2>&5 4002 ac_status=$? 4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4004 (exit $ac_status); }; }; then 4005 ac_cv_header_stdc=yes 4006 else 4007 echo "$as_me: failed program was:" >&5 4008 sed 's/^/| /' conftest.$ac_ext >&5 4009 4010 ac_cv_header_stdc=no 4011 fi 4012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4013 4014 if test $ac_cv_header_stdc = yes; then 4015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4016 cat >conftest.$ac_ext <<_ACEOF 4017 /* confdefs.h. */ 4018 _ACEOF 4019 cat confdefs.h >>conftest.$ac_ext 4020 cat >>conftest.$ac_ext <<_ACEOF 4021 /* end confdefs.h. */ 4022 #include <string.h> 4023 4024 _ACEOF 4025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4026 $EGREP "memchr" >/dev/null 2>&1; then 4027 : 4028 else 4029 ac_cv_header_stdc=no 4030 fi 4031 rm -f conftest* 4032 4033 fi 4034 4035 if test $ac_cv_header_stdc = yes; then 4036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4037 cat >conftest.$ac_ext <<_ACEOF 4038 /* confdefs.h. */ 4039 _ACEOF 4040 cat confdefs.h >>conftest.$ac_ext 4041 cat >>conftest.$ac_ext <<_ACEOF 4042 /* end confdefs.h. */ 4043 #include <stdlib.h> 4044 4045 _ACEOF 4046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4047 $EGREP "free" >/dev/null 2>&1; then 4048 : 4049 else 4050 ac_cv_header_stdc=no 4051 fi 4052 rm -f conftest* 4053 4054 fi 4055 4056 if test $ac_cv_header_stdc = yes; then 4057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4058 if test "$cross_compiling" = yes; then 4059 : 4060 else 4061 cat >conftest.$ac_ext <<_ACEOF 4062 /* confdefs.h. */ 4063 _ACEOF 4064 cat confdefs.h >>conftest.$ac_ext 4065 cat >>conftest.$ac_ext <<_ACEOF 4066 /* end confdefs.h. */ 4067 #include <ctype.h> 4068 #if ((' ' & 0x0FF) == 0x020) 4069 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4070 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4071 #else 4072 # define ISLOWER(c) \ 4073 (('a' <= (c) && (c) <= 'i') \ 4074 || ('j' <= (c) && (c) <= 'r') \ 4075 || ('s' <= (c) && (c) <= 'z')) 4076 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4077 #endif 4078 4079 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4080 int 4081 main () 4082 { 4083 int i; 4084 for (i = 0; i < 256; i++) 4085 if (XOR (islower (i), ISLOWER (i)) 4086 || toupper (i) != TOUPPER (i)) 4087 exit(2); 4088 exit (0); 4089 } 4090 _ACEOF 4091 rm -f conftest$ac_exeext 4092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4093 (eval $ac_link) 2>&5 4094 ac_status=$? 4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4098 (eval $ac_try) 2>&5 4099 ac_status=$? 4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4101 (exit $ac_status); }; }; then 4102 : 4103 else 4104 echo "$as_me: program exited with status $ac_status" >&5 4105 echo "$as_me: failed program was:" >&5 4106 sed 's/^/| /' conftest.$ac_ext >&5 4107 4108 ( exit $ac_status ) 4109 ac_cv_header_stdc=no 4110 fi 4111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4112 fi 4113 fi 4114 fi 4115 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4116 echo "${ECHO_T}$ac_cv_header_stdc" >&6 4117 if test $ac_cv_header_stdc = yes; then 4118 4119 cat >>confdefs.h <<\_ACEOF 4120 #define STDC_HEADERS 1 4121 _ACEOF 4122 4123 fi 4124 4125 4126 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4137 inttypes.h stdint.h unistd.h 4138 do 4139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4140 echo "$as_me:$LINENO: checking for $ac_header" >&5 4141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4142 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4143 echo $ECHO_N "(cached) $ECHO_C" >&6 4144 else 4145 cat >conftest.$ac_ext <<_ACEOF 4146 /* confdefs.h. */ 4147 _ACEOF 4148 cat confdefs.h >>conftest.$ac_ext 4149 cat >>conftest.$ac_ext <<_ACEOF 4150 /* end confdefs.h. */ 4151 $ac_includes_default 4152 4153 #include <$ac_header> 4154 _ACEOF 4155 rm -f conftest.$ac_objext 4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4157 (eval $ac_compile) 2>conftest.er1 4158 ac_status=$? 4159 grep -v '^ *+' conftest.er1 >conftest.err 4160 rm -f conftest.er1 4161 cat conftest.err >&5 4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4163 (exit $ac_status); } && 4164 { ac_try='test -z "$ac_c_werror_flag" 4165 || test ! -s conftest.err' 4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4167 (eval $ac_try) 2>&5 4168 ac_status=$? 4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4170 (exit $ac_status); }; } && 4171 { ac_try='test -s conftest.$ac_objext' 4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4173 (eval $ac_try) 2>&5 4174 ac_status=$? 4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4176 (exit $ac_status); }; }; then 4177 eval "$as_ac_Header=yes" 4178 else 4179 echo "$as_me: failed program was:" >&5 4180 sed 's/^/| /' conftest.$ac_ext >&5 4181 4182 eval "$as_ac_Header=no" 4183 fi 4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4185 fi 4186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4188 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4189 cat >>confdefs.h <<_ACEOF 4190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4191 _ACEOF 4192 4193 fi 4194 4195 done 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 for ac_header in arpa/inet.h errno.h fcntl.h inttypes.h netdb.h netinet/in.h stdarg.h stdint.h stdio.h stdlib.h string.h sys/socket.h sys/stat.h sys/types.h unistd.h 4214 do 4215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4216 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4217 echo "$as_me:$LINENO: checking for $ac_header" >&5 4218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4219 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4220 echo $ECHO_N "(cached) $ECHO_C" >&6 4221 fi 4222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4224 else 4225 # Is the header compilable? 4226 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4228 cat >conftest.$ac_ext <<_ACEOF 4229 /* confdefs.h. */ 4230 _ACEOF 4231 cat confdefs.h >>conftest.$ac_ext 4232 cat >>conftest.$ac_ext <<_ACEOF 4233 /* end confdefs.h. */ 4234 $ac_includes_default 4235 #include <$ac_header> 4236 _ACEOF 4237 rm -f conftest.$ac_objext 4238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4239 (eval $ac_compile) 2>conftest.er1 4240 ac_status=$? 4241 grep -v '^ *+' conftest.er1 >conftest.err 4242 rm -f conftest.er1 4243 cat conftest.err >&5 4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4245 (exit $ac_status); } && 4246 { ac_try='test -z "$ac_c_werror_flag" 4247 || test ! -s conftest.err' 4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4249 (eval $ac_try) 2>&5 4250 ac_status=$? 4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4252 (exit $ac_status); }; } && 4253 { ac_try='test -s conftest.$ac_objext' 4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4255 (eval $ac_try) 2>&5 4256 ac_status=$? 4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4258 (exit $ac_status); }; }; then 4259 ac_header_compiler=yes 4260 else 4261 echo "$as_me: failed program was:" >&5 4262 sed 's/^/| /' conftest.$ac_ext >&5 4263 4264 ac_header_compiler=no 4265 fi 4266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4268 echo "${ECHO_T}$ac_header_compiler" >&6 4269 4270 # Is the header present? 4271 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4272 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4273 cat >conftest.$ac_ext <<_ACEOF 4274 /* confdefs.h. */ 4275 _ACEOF 4276 cat confdefs.h >>conftest.$ac_ext 4277 cat >>conftest.$ac_ext <<_ACEOF 4278 /* end confdefs.h. */ 4279 #include <$ac_header> 4280 _ACEOF 4281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4283 ac_status=$? 4284 grep -v '^ *+' conftest.er1 >conftest.err 4285 rm -f conftest.er1 4286 cat conftest.err >&5 4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4288 (exit $ac_status); } >/dev/null; then 4289 if test -s conftest.err; then 4290 ac_cpp_err=$ac_c_preproc_warn_flag 4291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4292 else 4293 ac_cpp_err= 4294 fi 4295 else 4296 ac_cpp_err=yes 4297 fi 4298 if test -z "$ac_cpp_err"; then 4299 ac_header_preproc=yes 4300 else 4301 echo "$as_me: failed program was:" >&5 4302 sed 's/^/| /' conftest.$ac_ext >&5 4303 4304 ac_header_preproc=no 4305 fi 4306 rm -f conftest.err conftest.$ac_ext 4307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4308 echo "${ECHO_T}$ac_header_preproc" >&6 4309 4310 # So? What about this header? 4311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4312 yes:no: ) 4313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4317 ac_header_preproc=yes 4318 ;; 4319 no:yes:* ) 4320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4327 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4332 ( 4333 cat <<\_ASBOX 4334 ## ------------------------------------ ## 4335 ## Report this to the libconfig lists. ## 4336 ## ------------------------------------ ## 4337 _ASBOX 4338 ) | 4339 sed "s/^/$as_me: WARNING: /" >&2 4340 ;; 4341 esac 4342 echo "$as_me:$LINENO: checking for $ac_header" >&5 4343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4344 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4345 echo $ECHO_N "(cached) $ECHO_C" >&6 4346 else 4347 eval "$as_ac_Header=\$ac_header_preproc" 4348 fi 4349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4351 4352 fi 4353 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4354 cat >>confdefs.h <<_ACEOF 4355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4356 _ACEOF 4357 4358 fi 4359 4360 done 4361 4362 4363 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4364 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4365 if test "${ac_cv_c_const+set}" = set; then 4366 echo $ECHO_N "(cached) $ECHO_C" >&6 4367 else 4368 cat >conftest.$ac_ext <<_ACEOF 4369 /* confdefs.h. */ 4370 _ACEOF 4371 cat confdefs.h >>conftest.$ac_ext 4372 cat >>conftest.$ac_ext <<_ACEOF 4373 /* end confdefs.h. */ 4374 4375 int 4376 main () 4377 { 4378 /* FIXME: Include the comments suggested by Paul. */ 4379 #ifndef __cplusplus 4380 /* Ultrix mips cc rejects this. */ 4381 typedef int charset[2]; 4382 const charset x; 4383 /* SunOS 4.1.1 cc rejects this. */ 4384 char const *const *ccp; 4385 char **p; 4386 /* NEC SVR4.0.2 mips cc rejects this. */ 4387 struct point {int x, y;}; 4388 static struct point const zero = {0,0}; 4389 /* AIX XL C 1.02.0.0 rejects this. 4390 It does not let you subtract one const X* pointer from another in 4391 an arm of an if-expression whose if-part is not a constant 4392 expression */ 4393 const char *g = "string"; 4394 ccp = &g + (g ? g-g : 0); 4395 /* HPUX 7.0 cc rejects these. */ 4396 ++ccp; 4397 p = (char**) ccp; 4398 ccp = (char const *const *) p; 4399 { /* SCO 3.2v4 cc rejects this. */ 4400 char *t; 4401 char const *s = 0 ? (char *) 0 : (char const *) 0; 4402 4403 *t++ = 0; 4404 } 4405 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4406 int x[] = {25, 17}; 4407 const int *foo = &x[0]; 4408 ++foo; 4409 } 4410 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4411 typedef const int *iptr; 4412 iptr p = 0; 4413 ++p; 4414 } 4415 { /* AIX XL C 1.02.0.0 rejects this saying 4416 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4417 struct s { int j; const int *ap[3]; }; 4418 struct s *b; b->j = 5; 4419 } 4420 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4421 const int foo = 10; 4422 } 4423 #endif 4424 4425 ; 4426 return 0; 4427 } 4428 _ACEOF 4429 rm -f conftest.$ac_objext 4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4431 (eval $ac_compile) 2>conftest.er1 4432 ac_status=$? 4433 grep -v '^ *+' conftest.er1 >conftest.err 4434 rm -f conftest.er1 4435 cat conftest.err >&5 4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4437 (exit $ac_status); } && 4438 { ac_try='test -z "$ac_c_werror_flag" 4439 || test ! -s conftest.err' 4440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4441 (eval $ac_try) 2>&5 4442 ac_status=$? 4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4444 (exit $ac_status); }; } && 4445 { ac_try='test -s conftest.$ac_objext' 4446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4447 (eval $ac_try) 2>&5 4448 ac_status=$? 4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4450 (exit $ac_status); }; }; then 4451 ac_cv_c_const=yes 4452 else 4453 echo "$as_me: failed program was:" >&5 4454 sed 's/^/| /' conftest.$ac_ext >&5 4455 4456 ac_cv_c_const=no 4457 fi 4458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4459 fi 4460 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4461 echo "${ECHO_T}$ac_cv_c_const" >&6 4462 if test $ac_cv_c_const = no; then 4463 4464 cat >>confdefs.h <<\_ACEOF 4465 #define const 4466 _ACEOF 4467 4468 fi 4469 4470 echo "$as_me:$LINENO: checking for mode_t" >&5 4471 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 4472 if test "${ac_cv_type_mode_t+set}" = set; then 4473 echo $ECHO_N "(cached) $ECHO_C" >&6 4474 else 4475 cat >conftest.$ac_ext <<_ACEOF 4476 /* confdefs.h. */ 4477 _ACEOF 4478 cat confdefs.h >>conftest.$ac_ext 4479 cat >>conftest.$ac_ext <<_ACEOF 4480 /* end confdefs.h. */ 4481 $ac_includes_default 4482 int 4483 main () 4484 { 4485 if ((mode_t *) 0) 4486 return 0; 4487 if (sizeof (mode_t)) 4488 return 0; 4489 ; 4490 return 0; 4491 } 4492 _ACEOF 4493 rm -f conftest.$ac_objext 4494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4495 (eval $ac_compile) 2>conftest.er1 4496 ac_status=$? 4497 grep -v '^ *+' conftest.er1 >conftest.err 4498 rm -f conftest.er1 4499 cat conftest.err >&5 4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4501 (exit $ac_status); } && 4502 { ac_try='test -z "$ac_c_werror_flag" 4503 || test ! -s conftest.err' 4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4505 (eval $ac_try) 2>&5 4506 ac_status=$? 4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4508 (exit $ac_status); }; } && 4509 { ac_try='test -s conftest.$ac_objext' 4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4511 (eval $ac_try) 2>&5 4512 ac_status=$? 4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4514 (exit $ac_status); }; }; then 4515 ac_cv_type_mode_t=yes 4516 else 4517 echo "$as_me: failed program was:" >&5 4518 sed 's/^/| /' conftest.$ac_ext >&5 4519 4520 ac_cv_type_mode_t=no 4521 fi 4522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4523 fi 4524 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 4525 echo "${ECHO_T}$ac_cv_type_mode_t" >&6 4526 if test $ac_cv_type_mode_t = yes; then 4527 : 4528 else 4529 4530 cat >>confdefs.h <<_ACEOF 4531 #define mode_t int 4532 _ACEOF 4533 4534 fi 4535 4536 echo "$as_me:$LINENO: checking for off_t" >&5 4537 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4538 if test "${ac_cv_type_off_t+set}" = set; then 4539 echo $ECHO_N "(cached) $ECHO_C" >&6 4540 else 4541 cat >conftest.$ac_ext <<_ACEOF 4542 /* confdefs.h. */ 4543 _ACEOF 4544 cat confdefs.h >>conftest.$ac_ext 4545 cat >>conftest.$ac_ext <<_ACEOF 4546 /* end confdefs.h. */ 4547 $ac_includes_default 4548 int 4549 main () 4550 { 4551 if ((off_t *) 0) 4552 return 0; 4553 if (sizeof (off_t)) 4554 return 0; 4555 ; 4556 return 0; 4557 } 4558 _ACEOF 4559 rm -f conftest.$ac_objext 4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4561 (eval $ac_compile) 2>conftest.er1 4562 ac_status=$? 4563 grep -v '^ *+' conftest.er1 >conftest.err 4564 rm -f conftest.er1 4565 cat conftest.err >&5 4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4567 (exit $ac_status); } && 4568 { ac_try='test -z "$ac_c_werror_flag" 4569 || test ! -s conftest.err' 4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4571 (eval $ac_try) 2>&5 4572 ac_status=$? 4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4574 (exit $ac_status); }; } && 4575 { ac_try='test -s conftest.$ac_objext' 4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4577 (eval $ac_try) 2>&5 4578 ac_status=$? 4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4580 (exit $ac_status); }; }; then 4581 ac_cv_type_off_t=yes 4582 else 4583 echo "$as_me: failed program was:" >&5 4584 sed 's/^/| /' conftest.$ac_ext >&5 4585 4586 ac_cv_type_off_t=no 4587 fi 4588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4589 fi 4590 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4591 echo "${ECHO_T}$ac_cv_type_off_t" >&6 4592 if test $ac_cv_type_off_t = yes; then 4593 : 4594 else 4595 4596 cat >>confdefs.h <<_ACEOF 4597 #define off_t long 4598 _ACEOF 4599 4600 fi 4601 4602 echo "$as_me:$LINENO: checking for size_t" >&5 4603 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4604 if test "${ac_cv_type_size_t+set}" = set; then 4605 echo $ECHO_N "(cached) $ECHO_C" >&6 4606 else 4607 cat >conftest.$ac_ext <<_ACEOF 4608 /* confdefs.h. */ 4609 _ACEOF 4610 cat confdefs.h >>conftest.$ac_ext 4611 cat >>conftest.$ac_ext <<_ACEOF 4612 /* end confdefs.h. */ 4613 $ac_includes_default 4614 int 4615 main () 4616 { 4617 if ((size_t *) 0) 4618 return 0; 4619 if (sizeof (size_t)) 4620 return 0; 4621 ; 4622 return 0; 4623 } 4624 _ACEOF 4625 rm -f conftest.$ac_objext 4626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4627 (eval $ac_compile) 2>conftest.er1 4628 ac_status=$? 4629 grep -v '^ *+' conftest.er1 >conftest.err 4630 rm -f conftest.er1 4631 cat conftest.err >&5 4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4633 (exit $ac_status); } && 4634 { ac_try='test -z "$ac_c_werror_flag" 4635 || test ! -s conftest.err' 4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4637 (eval $ac_try) 2>&5 4638 ac_status=$? 4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4640 (exit $ac_status); }; } && 4641 { ac_try='test -s conftest.$ac_objext' 4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4643 (eval $ac_try) 2>&5 4644 ac_status=$? 4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4646 (exit $ac_status); }; }; then 4647 ac_cv_type_size_t=yes 4648 else 4649 echo "$as_me: failed program was:" >&5 4650 sed 's/^/| /' conftest.$ac_ext >&5 4651 4652 ac_cv_type_size_t=no 4653 fi 4654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4655 fi 4656 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 4657 echo "${ECHO_T}$ac_cv_type_size_t" >&6 4658 if test $ac_cv_type_size_t = yes; then 4659 : 4660 else 4661 4662 cat >>confdefs.h <<_ACEOF 4663 #define size_t unsigned 4664 _ACEOF 4665 4666 fi 4667 4668 echo "$as_me:$LINENO: checking for off_t" >&5 4669 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4670 if test "${ac_cv_type_off_t+set}" = set; then 4671 echo $ECHO_N "(cached) $ECHO_C" >&6 4672 else 4673 cat >conftest.$ac_ext <<_ACEOF 4674 /* confdefs.h. */ 4675 _ACEOF 4676 cat confdefs.h >>conftest.$ac_ext 4677 cat >>conftest.$ac_ext <<_ACEOF 4678 /* end confdefs.h. */ 4679 $ac_includes_default 4680 int 4681 main () 4682 { 4683 if ((off_t *) 0) 4684 return 0; 4685 if (sizeof (off_t)) 4686 return 0; 4687 ; 4688 return 0; 4689 } 4690 _ACEOF 4691 rm -f conftest.$ac_objext 4692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4693 (eval $ac_compile) 2>conftest.er1 4694 ac_status=$? 4695 grep -v '^ *+' conftest.er1 >conftest.err 4696 rm -f conftest.er1 4697 cat conftest.err >&5 4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4699 (exit $ac_status); } && 4700 { ac_try='test -z "$ac_c_werror_flag" 4701 || test ! -s conftest.err' 4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4703 (eval $ac_try) 2>&5 4704 ac_status=$? 4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4706 (exit $ac_status); }; } && 4707 { ac_try='test -s conftest.$ac_objext' 4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4709 (eval $ac_try) 2>&5 4710 ac_status=$? 4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4712 (exit $ac_status); }; }; then 4713 ac_cv_type_off_t=yes 4714 else 4715 echo "$as_me: failed program was:" >&5 4716 sed 's/^/| /' conftest.$ac_ext >&5 4717 4718 ac_cv_type_off_t=no 4719 fi 4720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4721 fi 4722 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4723 echo "${ECHO_T}$ac_cv_type_off_t" >&6 4724 if test $ac_cv_type_off_t = yes; then 4725 : 4726 else 4727 4728 cat >>confdefs.h <<_ACEOF 4729 #define off_t long 4730 _ACEOF 4731 4732 fi 4733 4734 # Check whether --enable-largefile or --disable-largefile was given. 4735 if test "${enable_largefile+set}" = set; then 4736 enableval="$enable_largefile" 4737 4738 fi; 4739 if test "$enable_largefile" != no; then 4740 4741 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 4742 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 4743 if test "${ac_cv_sys_largefile_CC+set}" = set; then 4744 echo $ECHO_N "(cached) $ECHO_C" >&6 4745 else 4746 ac_cv_sys_largefile_CC=no 4747 if test "$GCC" != yes; then 4748 ac_save_CC=$CC 4749 while :; do 4750 # IRIX 6.2 and later do not support large files by default, 4751 # so use the C compiler's -n32 option if that helps. 4752 cat >conftest.$ac_ext <<_ACEOF 4753 /* confdefs.h. */ 4754 _ACEOF 4755 cat confdefs.h >>conftest.$ac_ext 4756 cat >>conftest.$ac_ext <<_ACEOF 4757 /* end confdefs.h. */ 4758 #include <sys/types.h> 4759 /* Check that off_t can represent 2**63 - 1 correctly. 4760 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4761 since some C++ compilers masquerading as C compilers 4762 incorrectly reject 9223372036854775807. */ 4763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4765 && LARGE_OFF_T % 2147483647 == 1) 4766 ? 1 : -1]; 4767 int 4768 main () 4769 { 4770 4771 ; 4772 return 0; 4773 } 4774 _ACEOF 4775 rm -f conftest.$ac_objext 4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4777 (eval $ac_compile) 2>conftest.er1 4778 ac_status=$? 4779 grep -v '^ *+' conftest.er1 >conftest.err 4780 rm -f conftest.er1 4781 cat conftest.err >&5 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); } && 4784 { ac_try='test -z "$ac_c_werror_flag" 4785 || test ! -s conftest.err' 4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4787 (eval $ac_try) 2>&5 4788 ac_status=$? 4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4790 (exit $ac_status); }; } && 4791 { ac_try='test -s conftest.$ac_objext' 4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4793 (eval $ac_try) 2>&5 4794 ac_status=$? 4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4796 (exit $ac_status); }; }; then 4797 break 4798 else 4799 echo "$as_me: failed program was:" >&5 4800 sed 's/^/| /' conftest.$ac_ext >&5 4801 4802 fi 4803 rm -f conftest.err conftest.$ac_objext 4804 CC="$CC -n32" 4805 rm -f conftest.$ac_objext 4806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4807 (eval $ac_compile) 2>conftest.er1 4808 ac_status=$? 4809 grep -v '^ *+' conftest.er1 >conftest.err 4810 rm -f conftest.er1 4811 cat conftest.err >&5 4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4813 (exit $ac_status); } && 4814 { ac_try='test -z "$ac_c_werror_flag" 4815 || test ! -s conftest.err' 4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4817 (eval $ac_try) 2>&5 4818 ac_status=$? 4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4820 (exit $ac_status); }; } && 4821 { ac_try='test -s conftest.$ac_objext' 4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4823 (eval $ac_try) 2>&5 4824 ac_status=$? 4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4826 (exit $ac_status); }; }; then 4827 ac_cv_sys_largefile_CC=' -n32'; break 4828 else 4829 echo "$as_me: failed program was:" >&5 4830 sed 's/^/| /' conftest.$ac_ext >&5 4831 4832 fi 4833 rm -f conftest.err conftest.$ac_objext 4834 break 4835 done 4836 CC=$ac_save_CC 4837 rm -f conftest.$ac_ext 4838 fi 4839 fi 4840 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 4841 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 4842 if test "$ac_cv_sys_largefile_CC" != no; then 4843 CC=$CC$ac_cv_sys_largefile_CC 4844 fi 4845 4846 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4847 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 4848 if test "${ac_cv_sys_file_offset_bits+set}" = set; then 4849 echo $ECHO_N "(cached) $ECHO_C" >&6 4850 else 4851 while :; do 4852 ac_cv_sys_file_offset_bits=no 4853 cat >conftest.$ac_ext <<_ACEOF 4854 /* confdefs.h. */ 4855 _ACEOF 4856 cat confdefs.h >>conftest.$ac_ext 4857 cat >>conftest.$ac_ext <<_ACEOF 4858 /* end confdefs.h. */ 4859 #include <sys/types.h> 4860 /* Check that off_t can represent 2**63 - 1 correctly. 4861 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4862 since some C++ compilers masquerading as C compilers 4863 incorrectly reject 9223372036854775807. */ 4864 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4866 && LARGE_OFF_T % 2147483647 == 1) 4867 ? 1 : -1]; 4868 int 4869 main () 4870 { 4871 4872 ; 4873 return 0; 4874 } 4875 _ACEOF 4876 rm -f conftest.$ac_objext 4877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4878 (eval $ac_compile) 2>conftest.er1 4879 ac_status=$? 4880 grep -v '^ *+' conftest.er1 >conftest.err 4881 rm -f conftest.er1 4882 cat conftest.err >&5 4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4884 (exit $ac_status); } && 4885 { ac_try='test -z "$ac_c_werror_flag" 4886 || test ! -s conftest.err' 4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4888 (eval $ac_try) 2>&5 4889 ac_status=$? 4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4891 (exit $ac_status); }; } && 4892 { ac_try='test -s conftest.$ac_objext' 4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4894 (eval $ac_try) 2>&5 4895 ac_status=$? 4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4897 (exit $ac_status); }; }; then 4898 break 4899 else 4900 echo "$as_me: failed program was:" >&5 4901 sed 's/^/| /' conftest.$ac_ext >&5 4902 4903 fi 4904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4905 cat >conftest.$ac_ext <<_ACEOF 4906 /* confdefs.h. */ 4907 _ACEOF 4908 cat confdefs.h >>conftest.$ac_ext 4909 cat >>conftest.$ac_ext <<_ACEOF 4910 /* end confdefs.h. */ 4911 #define _FILE_OFFSET_BITS 64 4912 #include <sys/types.h> 4913 /* Check that off_t can represent 2**63 - 1 correctly. 4914 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4915 since some C++ compilers masquerading as C compilers 4916 incorrectly reject 9223372036854775807. */ 4917 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4918 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4919 && LARGE_OFF_T % 2147483647 == 1) 4920 ? 1 : -1]; 4921 int 4922 main () 4923 { 4924 4925 ; 4926 return 0; 4927 } 4928 _ACEOF 4929 rm -f conftest.$ac_objext 4930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4931 (eval $ac_compile) 2>conftest.er1 4932 ac_status=$? 4933 grep -v '^ *+' conftest.er1 >conftest.err 4934 rm -f conftest.er1 4935 cat conftest.err >&5 4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4937 (exit $ac_status); } && 4938 { ac_try='test -z "$ac_c_werror_flag" 4939 || test ! -s conftest.err' 4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4941 (eval $ac_try) 2>&5 4942 ac_status=$? 4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4944 (exit $ac_status); }; } && 4945 { ac_try='test -s conftest.$ac_objext' 4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4947 (eval $ac_try) 2>&5 4948 ac_status=$? 4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4950 (exit $ac_status); }; }; then 4951 ac_cv_sys_file_offset_bits=64; break 4952 else 4953 echo "$as_me: failed program was:" >&5 4954 sed 's/^/| /' conftest.$ac_ext >&5 4955 4956 fi 4957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4958 break 4959 done 4960 fi 4961 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 4962 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 4963 if test "$ac_cv_sys_file_offset_bits" != no; then 4964 4965 cat >>confdefs.h <<_ACEOF 4966 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4967 _ACEOF 4968 4969 fi 4970 rm -f conftest* 4971 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 4972 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 4973 if test "${ac_cv_sys_large_files+set}" = set; then 4974 echo $ECHO_N "(cached) $ECHO_C" >&6 4975 else 4976 while :; do 4977 ac_cv_sys_large_files=no 4978 cat >conftest.$ac_ext <<_ACEOF 4979 /* confdefs.h. */ 4980 _ACEOF 4981 cat confdefs.h >>conftest.$ac_ext 4982 cat >>conftest.$ac_ext <<_ACEOF 4983 /* end confdefs.h. */ 4984 #include <sys/types.h> 4985 /* Check that off_t can represent 2**63 - 1 correctly. 4986 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4987 since some C++ compilers masquerading as C compilers 4988 incorrectly reject 9223372036854775807. */ 4989 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4990 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4991 && LARGE_OFF_T % 2147483647 == 1) 4992 ? 1 : -1]; 4993 int 4994 main () 4995 { 4996 4997 ; 4998 return 0; 4999 } 5000 _ACEOF 5001 rm -f conftest.$ac_objext 5002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5003 (eval $ac_compile) 2>conftest.er1 5004 ac_status=$? 5005 grep -v '^ *+' conftest.er1 >conftest.err 5006 rm -f conftest.er1 5007 cat conftest.err >&5 5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5009 (exit $ac_status); } && 5010 { ac_try='test -z "$ac_c_werror_flag" 5011 || test ! -s conftest.err' 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); }; } && 5017 { ac_try='test -s conftest.$ac_objext' 5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5019 (eval $ac_try) 2>&5 5020 ac_status=$? 5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5022 (exit $ac_status); }; }; then 5023 break 5024 else 5025 echo "$as_me: failed program was:" >&5 5026 sed 's/^/| /' conftest.$ac_ext >&5 5027 5028 fi 5029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5030 cat >conftest.$ac_ext <<_ACEOF 5031 /* confdefs.h. */ 5032 _ACEOF 5033 cat confdefs.h >>conftest.$ac_ext 5034 cat >>conftest.$ac_ext <<_ACEOF 5035 /* end confdefs.h. */ 5036 #define _LARGE_FILES 1 5037 #include <sys/types.h> 5038 /* Check that off_t can represent 2**63 - 1 correctly. 5039 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5040 since some C++ compilers masquerading as C compilers 5041 incorrectly reject 9223372036854775807. */ 5042 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5044 && LARGE_OFF_T % 2147483647 == 1) 5045 ? 1 : -1]; 5046 int 5047 main () 5048 { 5049 5050 ; 5051 return 0; 5052 } 5053 _ACEOF 5054 rm -f conftest.$ac_objext 5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5056 (eval $ac_compile) 2>conftest.er1 5057 ac_status=$? 5058 grep -v '^ *+' conftest.er1 >conftest.err 5059 rm -f conftest.er1 5060 cat conftest.err >&5 5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5062 (exit $ac_status); } && 5063 { ac_try='test -z "$ac_c_werror_flag" 5064 || test ! -s conftest.err' 5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5066 (eval $ac_try) 2>&5 5067 ac_status=$? 5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5069 (exit $ac_status); }; } && 5070 { ac_try='test -s conftest.$ac_objext' 5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5072 (eval $ac_try) 2>&5 5073 ac_status=$? 5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5075 (exit $ac_status); }; }; then 5076 ac_cv_sys_large_files=1; break 5077 else 5078 echo "$as_me: failed program was:" >&5 5079 sed 's/^/| /' conftest.$ac_ext >&5 5080 5081 fi 5082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5083 break 5084 done 5085 fi 5086 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 5087 echo "${ECHO_T}$ac_cv_sys_large_files" >&6 5088 if test "$ac_cv_sys_large_files" != no; then 5089 5090 cat >>confdefs.h <<_ACEOF 5091 #define _LARGE_FILES $ac_cv_sys_large_files 5092 _ACEOF 5093 5094 fi 5095 rm -f conftest* 5096 fi 5097 5098 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 5099 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 5100 if test "${ac_cv_sys_largefile_source+set}" = set; then 5101 echo $ECHO_N "(cached) $ECHO_C" >&6 5102 else 5103 while :; do 5104 ac_cv_sys_largefile_source=no 5105 cat >conftest.$ac_ext <<_ACEOF 5106 /* confdefs.h. */ 5107 _ACEOF 5108 cat confdefs.h >>conftest.$ac_ext 5109 cat >>conftest.$ac_ext <<_ACEOF 5110 /* end confdefs.h. */ 5111 #include <stdio.h> 5112 int 5113 main () 5114 { 5115 return !fseeko; 5116 ; 5117 return 0; 5118 } 5119 _ACEOF 5120 rm -f conftest.$ac_objext 5121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5122 (eval $ac_compile) 2>conftest.er1 5123 ac_status=$? 5124 grep -v '^ *+' conftest.er1 >conftest.err 5125 rm -f conftest.er1 5126 cat conftest.err >&5 5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5128 (exit $ac_status); } && 5129 { ac_try='test -z "$ac_c_werror_flag" 5130 || test ! -s conftest.err' 5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5132 (eval $ac_try) 2>&5 5133 ac_status=$? 5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5135 (exit $ac_status); }; } && 5136 { ac_try='test -s conftest.$ac_objext' 5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5138 (eval $ac_try) 2>&5 5139 ac_status=$? 5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5141 (exit $ac_status); }; }; then 5142 break 5143 else 5144 echo "$as_me: failed program was:" >&5 5145 sed 's/^/| /' conftest.$ac_ext >&5 5146 5147 fi 5148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5149 cat >conftest.$ac_ext <<_ACEOF 5150 /* confdefs.h. */ 5151 _ACEOF 5152 cat confdefs.h >>conftest.$ac_ext 5153 cat >>conftest.$ac_ext <<_ACEOF 5154 /* end confdefs.h. */ 5155 #define _LARGEFILE_SOURCE 1 5156 #include <stdio.h> 5157 int 5158 main () 5159 { 5160 return !fseeko; 5161 ; 5162 return 0; 5163 } 5164 _ACEOF 5165 rm -f conftest.$ac_objext 5166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5167 (eval $ac_compile) 2>conftest.er1 5168 ac_status=$? 5169 grep -v '^ *+' conftest.er1 >conftest.err 5170 rm -f conftest.er1 5171 cat conftest.err >&5 5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5173 (exit $ac_status); } && 5174 { ac_try='test -z "$ac_c_werror_flag" 5175 || test ! -s conftest.err' 5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5177 (eval $ac_try) 2>&5 5178 ac_status=$? 5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5180 (exit $ac_status); }; } && 5181 { ac_try='test -s conftest.$ac_objext' 5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5183 (eval $ac_try) 2>&5 5184 ac_status=$? 5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5186 (exit $ac_status); }; }; then 5187 ac_cv_sys_largefile_source=1; break 5188 else 5189 echo "$as_me: failed program was:" >&5 5190 sed 's/^/| /' conftest.$ac_ext >&5 5191 5192 fi 5193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5194 break 5195 done 5196 fi 5197 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 5198 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 5199 if test "$ac_cv_sys_largefile_source" != no; then 5200 5201 cat >>confdefs.h <<_ACEOF 5202 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 5203 _ACEOF 5204 5205 fi 5206 rm -f conftest* 5207 5208 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 5209 # in glibc 2.1.3, but that breaks too many other things. 5210 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 5211 echo "$as_me:$LINENO: checking for fseeko" >&5 5212 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 5213 if test "${ac_cv_func_fseeko+set}" = set; then 5214 echo $ECHO_N "(cached) $ECHO_C" >&6 5215 else 5216 cat >conftest.$ac_ext <<_ACEOF 5217 /* confdefs.h. */ 5218 _ACEOF 5219 cat confdefs.h >>conftest.$ac_ext 5220 cat >>conftest.$ac_ext <<_ACEOF 5221 /* end confdefs.h. */ 5222 #include <stdio.h> 5223 int 5224 main () 5225 { 5226 return fseeko && fseeko (stdin, 0, 0); 5227 ; 5228 return 0; 5229 } 5230 _ACEOF 5231 rm -f conftest.$ac_objext conftest$ac_exeext 5232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5233 (eval $ac_link) 2>conftest.er1 5234 ac_status=$? 5235 grep -v '^ *+' conftest.er1 >conftest.err 5236 rm -f conftest.er1 5237 cat conftest.err >&5 5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5239 (exit $ac_status); } && 5240 { ac_try='test -z "$ac_c_werror_flag" 5241 || test ! -s conftest.err' 5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5243 (eval $ac_try) 2>&5 5244 ac_status=$? 5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5246 (exit $ac_status); }; } && 5247 { ac_try='test -s conftest$ac_exeext' 5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5249 (eval $ac_try) 2>&5 5250 ac_status=$? 5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5252 (exit $ac_status); }; }; then 5253 ac_cv_func_fseeko=yes 5254 else 5255 echo "$as_me: failed program was:" >&5 5256 sed 's/^/| /' conftest.$ac_ext >&5 5257 5258 ac_cv_func_fseeko=no 5259 fi 5260 rm -f conftest.err conftest.$ac_objext \ 5261 conftest$ac_exeext conftest.$ac_ext 5262 fi 5263 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 5264 echo "${ECHO_T}$ac_cv_func_fseeko" >&6 5265 if test $ac_cv_func_fseeko = yes; then 5266 5267 cat >>confdefs.h <<\_ACEOF 5268 #define HAVE_FSEEKO 1 5269 _ACEOF 5270 5271 fi 5272 5273 5274 5275 5276 5277 5278 5279 for ac_func in socket strcspn strdup strstr getpeername 5280 do 5281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5282 echo "$as_me:$LINENO: checking for $ac_func" >&5 5283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5284 if eval "test \"\${$as_ac_var+set}\" = set"; then 5285 echo $ECHO_N "(cached) $ECHO_C" >&6 5286 else 5287 cat >conftest.$ac_ext <<_ACEOF 5288 /* confdefs.h. */ 5289 _ACEOF 5290 cat confdefs.h >>conftest.$ac_ext 5291 cat >>conftest.$ac_ext <<_ACEOF 5292 /* end confdefs.h. */ 5293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5294 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5295 #define $ac_func innocuous_$ac_func 5296 5297 /* System header to define __stub macros and hopefully few prototypes, 5298 which can conflict with char $ac_func (); below. 5299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5300 <limits.h> exists even on freestanding compilers. */ 5301 5302 #ifdef __STDC__ 5303 # include <limits.h> 5304 #else 5305 # include <assert.h> 5306 #endif 5307 5308 #undef $ac_func 5309 5310 /* Override any gcc2 internal prototype to avoid an error. */ 5311 #ifdef __cplusplus 5312 extern "C" 5313 { 5314 #endif 5315 /* We use char because int might match the return type of a gcc2 5316 builtin and then its argument prototype would still apply. */ 5317 char $ac_func (); 5318 /* The GNU C library defines this for functions which it implements 5319 to always fail with ENOSYS. Some functions are actually named 5320 something starting with __ and the normal name is an alias. */ 5321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5322 choke me 5323 #else 5324 char (*f) () = $ac_func; 5325 #endif 5326 #ifdef __cplusplus 5327 } 5328 #endif 5329 5330 int 5331 main () 5332 { 5333 return f != $ac_func; 5334 ; 5335 return 0; 5336 } 5337 _ACEOF 5338 rm -f conftest.$ac_objext conftest$ac_exeext 5339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5340 (eval $ac_link) 2>conftest.er1 5341 ac_status=$? 5342 grep -v '^ *+' conftest.er1 >conftest.err 5343 rm -f conftest.er1 5344 cat conftest.err >&5 5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5346 (exit $ac_status); } && 5347 { ac_try='test -z "$ac_c_werror_flag" 5348 || test ! -s conftest.err' 5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5350 (eval $ac_try) 2>&5 5351 ac_status=$? 5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5353 (exit $ac_status); }; } && 5354 { ac_try='test -s conftest$ac_exeext' 5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5356 (eval $ac_try) 2>&5 5357 ac_status=$? 5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5359 (exit $ac_status); }; }; then 5360 eval "$as_ac_var=yes" 5361 else 5362 echo "$as_me: failed program was:" >&5 5363 sed 's/^/| /' conftest.$ac_ext >&5 5364 5365 eval "$as_ac_var=no" 5366 fi 5367 rm -f conftest.err conftest.$ac_objext \ 5368 conftest$ac_exeext conftest.$ac_ext 5369 fi 5370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5372 if test `eval echo '${'$as_ac_var'}'` = yes; then 5373 cat >>confdefs.h <<_ACEOF 5374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5375 _ACEOF 5376 5377 fi 5378 done 5379 5380 5381 for ac_func in uname 5382 do 5383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5384 echo "$as_me:$LINENO: checking for $ac_func" >&5 5385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5386 if eval "test \"\${$as_ac_var+set}\" = set"; then 5387 echo $ECHO_N "(cached) $ECHO_C" >&6 5388 else 5389 cat >conftest.$ac_ext <<_ACEOF 5390 /* confdefs.h. */ 5391 _ACEOF 5392 cat confdefs.h >>conftest.$ac_ext 5393 cat >>conftest.$ac_ext <<_ACEOF 5394 /* end confdefs.h. */ 5395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5396 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5397 #define $ac_func innocuous_$ac_func 5398 5399 /* System header to define __stub macros and hopefully few prototypes, 5400 which can conflict with char $ac_func (); below. 5401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5402 <limits.h> exists even on freestanding compilers. */ 5403 5404 #ifdef __STDC__ 5405 # include <limits.h> 5406 #else 5407 # include <assert.h> 5408 #endif 5409 5410 #undef $ac_func 5411 5412 /* Override any gcc2 internal prototype to avoid an error. */ 5413 #ifdef __cplusplus 5414 extern "C" 5415 { 5416 #endif 5417 /* We use char because int might match the return type of a gcc2 5418 builtin and then its argument prototype would still apply. */ 5419 char $ac_func (); 5420 /* The GNU C library defines this for functions which it implements 5421 to always fail with ENOSYS. Some functions are actually named 5422 something starting with __ and the normal name is an alias. */ 5423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5424 choke me 5425 #else 5426 char (*f) () = $ac_func; 5427 #endif 5428 #ifdef __cplusplus 5429 } 5430 #endif 5431 5432 int 5433 main () 5434 { 5435 return f != $ac_func; 5436 ; 5437 return 0; 5438 } 5439 _ACEOF 5440 rm -f conftest.$ac_objext conftest$ac_exeext 5441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5442 (eval $ac_link) 2>conftest.er1 5443 ac_status=$? 5444 grep -v '^ *+' conftest.er1 >conftest.err 5445 rm -f conftest.er1 5446 cat conftest.err >&5 5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5448 (exit $ac_status); } && 5449 { ac_try='test -z "$ac_c_werror_flag" 5450 || test ! -s conftest.err' 5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5452 (eval $ac_try) 2>&5 5453 ac_status=$? 5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5455 (exit $ac_status); }; } && 5456 { ac_try='test -s conftest$ac_exeext' 5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5458 (eval $ac_try) 2>&5 5459 ac_status=$? 5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5461 (exit $ac_status); }; }; then 5462 eval "$as_ac_var=yes" 5463 else 5464 echo "$as_me: failed program was:" >&5 5465 sed 's/^/| /' conftest.$ac_ext >&5 5466 5467 eval "$as_ac_var=no" 5468 fi 5469 rm -f conftest.err conftest.$ac_objext \ 5470 conftest$ac_exeext conftest.$ac_ext 5471 fi 5472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5474 if test `eval echo '${'$as_ac_var'}'` = yes; then 5475 cat >>confdefs.h <<_ACEOF 5476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5477 _ACEOF 5478 5479 else 5480 case $LIBOBJS in 5481 "$ac_func.$ac_objext" | \ 5482 *" $ac_func.$ac_objext" | \ 5483 "$ac_func.$ac_objext "* | \ 5484 *" $ac_func.$ac_objext "* ) ;; 5485 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 5486 esac 5487 5488 fi 5489 done 5490 5491 5492 5493 5494 if test -z "$ac_cv_sizeof_long"; then 5495 echo "$as_me:$LINENO: checking for inline" >&5 5496 echo $ECHO_N "checking for inline... $ECHO_C" >&6 5497 if test "${ac_cv_c_inline+set}" = set; then 5498 echo $ECHO_N "(cached) $ECHO_C" >&6 5499 else 5500 ac_cv_c_inline=no 5501 for ac_kw in inline __inline__ __inline; do 5502 cat >conftest.$ac_ext <<_ACEOF 5503 /* confdefs.h. */ 5504 _ACEOF 5505 cat confdefs.h >>conftest.$ac_ext 5506 cat >>conftest.$ac_ext <<_ACEOF 5507 /* end confdefs.h. */ 5508 #ifndef __cplusplus 5509 typedef int foo_t; 5510 static $ac_kw foo_t static_foo () {return 0; } 5511 $ac_kw foo_t foo () {return 0; } 5512 #endif 5513 5514 _ACEOF 5515 rm -f conftest.$ac_objext 5516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5517 (eval $ac_compile) 2>conftest.er1 5518 ac_status=$? 5519 grep -v '^ *+' conftest.er1 >conftest.err 5520 rm -f conftest.er1 5521 cat conftest.err >&5 5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5523 (exit $ac_status); } && 5524 { ac_try='test -z "$ac_c_werror_flag" 5525 || test ! -s conftest.err' 5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5527 (eval $ac_try) 2>&5 5528 ac_status=$? 5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5530 (exit $ac_status); }; } && 5531 { ac_try='test -s conftest.$ac_objext' 5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5533 (eval $ac_try) 2>&5 5534 ac_status=$? 5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5536 (exit $ac_status); }; }; then 5537 ac_cv_c_inline=$ac_kw; break 5538 else 5539 echo "$as_me: failed program was:" >&5 5540 sed 's/^/| /' conftest.$ac_ext >&5 5541 5542 fi 5543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5544 done 5545 5546 fi 5547 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 5548 echo "${ECHO_T}$ac_cv_c_inline" >&6 5549 5550 5551 case $ac_cv_c_inline in 5552 inline | yes) ;; 5553 *) 5554 case $ac_cv_c_inline in 5555 no) ac_val=;; 5556 *) ac_val=$ac_cv_c_inline;; 5557 esac 5558 cat >>confdefs.h <<_ACEOF 5559 #ifndef __cplusplus 5560 #define inline $ac_val 5561 #endif 5562 _ACEOF 5563 ;; 5564 esac 5565 5566 echo "$as_me:$LINENO: checking for long long" >&5 5567 echo $ECHO_N "checking for long long... $ECHO_C" >&6 5568 if test "${ac_cv_type_long_long+set}" = set; then 5569 echo $ECHO_N "(cached) $ECHO_C" >&6 5570 else 5571 cat >conftest.$ac_ext <<_ACEOF 5572 /* confdefs.h. */ 5573 _ACEOF 5574 cat confdefs.h >>conftest.$ac_ext 5575 cat >>conftest.$ac_ext <<_ACEOF 5576 /* end confdefs.h. */ 5577 $ac_includes_default 5578 int 5579 main () 5580 { 5581 if ((long long *) 0) 5582 return 0; 5583 if (sizeof (long long)) 5584 return 0; 5585 ; 5586 return 0; 5587 } 5588 _ACEOF 5589 rm -f conftest.$ac_objext 5590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5591 (eval $ac_compile) 2>conftest.er1 5592 ac_status=$? 5593 grep -v '^ *+' conftest.er1 >conftest.err 5594 rm -f conftest.er1 5595 cat conftest.err >&5 5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5597 (exit $ac_status); } && 5598 { ac_try='test -z "$ac_c_werror_flag" 5599 || test ! -s conftest.err' 5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5601 (eval $ac_try) 2>&5 5602 ac_status=$? 5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5604 (exit $ac_status); }; } && 5605 { ac_try='test -s conftest.$ac_objext' 5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5607 (eval $ac_try) 2>&5 5608 ac_status=$? 5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5610 (exit $ac_status); }; }; then 5611 ac_cv_type_long_long=yes 5612 else 5613 echo "$as_me: failed program was:" >&5 5614 sed 's/^/| /' conftest.$ac_ext >&5 5615 5616 ac_cv_type_long_long=no 5617 fi 5618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5619 fi 5620 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 5621 echo "${ECHO_T}$ac_cv_type_long_long" >&6 5622 5623 echo "$as_me:$LINENO: checking size of long long" >&5 5624 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 5625 if test "${ac_cv_sizeof_long_long+set}" = set; then 5626 echo $ECHO_N "(cached) $ECHO_C" >&6 5627 else 5628 if test "$ac_cv_type_long_long" = yes; then 5629 # The cast to unsigned long works around a bug in the HP C Compiler 5630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5632 # This bug is HP SR number 8606223364. 5633 if test "$cross_compiling" = yes; then 5634 # Depending upon the size, compute the lo and hi bounds. 5635 cat >conftest.$ac_ext <<_ACEOF 5636 /* confdefs.h. */ 5637 _ACEOF 5638 cat confdefs.h >>conftest.$ac_ext 5639 cat >>conftest.$ac_ext <<_ACEOF 5640 /* end confdefs.h. */ 5641 $ac_includes_default 5642 int 5643 main () 5644 { 5645 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 5646 test_array [0] = 0 5647 5648 ; 5649 return 0; 5650 } 5651 _ACEOF 5652 rm -f conftest.$ac_objext 5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5654 (eval $ac_compile) 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_objext' 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_lo=0 ac_mid=0 5675 while :; do 5676 cat >conftest.$ac_ext <<_ACEOF 5677 /* confdefs.h. */ 5678 _ACEOF 5679 cat confdefs.h >>conftest.$ac_ext 5680 cat >>conftest.$ac_ext <<_ACEOF 5681 /* end confdefs.h. */ 5682 $ac_includes_default 5683 int 5684 main () 5685 { 5686 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 5687 test_array [0] = 0 5688 5689 ; 5690 return 0; 5691 } 5692 _ACEOF 5693 rm -f conftest.$ac_objext 5694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5695 (eval $ac_compile) 2>conftest.er1 5696 ac_status=$? 5697 grep -v '^ *+' conftest.er1 >conftest.err 5698 rm -f conftest.er1 5699 cat conftest.err >&5 5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5701 (exit $ac_status); } && 5702 { ac_try='test -z "$ac_c_werror_flag" 5703 || test ! -s conftest.err' 5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5705 (eval $ac_try) 2>&5 5706 ac_status=$? 5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5708 (exit $ac_status); }; } && 5709 { ac_try='test -s conftest.$ac_objext' 5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5711 (eval $ac_try) 2>&5 5712 ac_status=$? 5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5714 (exit $ac_status); }; }; then 5715 ac_hi=$ac_mid; break 5716 else 5717 echo "$as_me: failed program was:" >&5 5718 sed 's/^/| /' conftest.$ac_ext >&5 5719 5720 ac_lo=`expr $ac_mid + 1` 5721 if test $ac_lo -le $ac_mid; then 5722 ac_lo= ac_hi= 5723 break 5724 fi 5725 ac_mid=`expr 2 '*' $ac_mid + 1` 5726 fi 5727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5728 done 5729 else 5730 echo "$as_me: failed program was:" >&5 5731 sed 's/^/| /' conftest.$ac_ext >&5 5732 5733 cat >conftest.$ac_ext <<_ACEOF 5734 /* confdefs.h. */ 5735 _ACEOF 5736 cat confdefs.h >>conftest.$ac_ext 5737 cat >>conftest.$ac_ext <<_ACEOF 5738 /* end confdefs.h. */ 5739 $ac_includes_default 5740 int 5741 main () 5742 { 5743 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 5744 test_array [0] = 0 5745 5746 ; 5747 return 0; 5748 } 5749 _ACEOF 5750 rm -f conftest.$ac_objext 5751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5752 (eval $ac_compile) 2>conftest.er1 5753 ac_status=$? 5754 grep -v '^ *+' conftest.er1 >conftest.err 5755 rm -f conftest.er1 5756 cat conftest.err >&5 5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5758 (exit $ac_status); } && 5759 { ac_try='test -z "$ac_c_werror_flag" 5760 || test ! -s conftest.err' 5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5762 (eval $ac_try) 2>&5 5763 ac_status=$? 5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5765 (exit $ac_status); }; } && 5766 { ac_try='test -s conftest.$ac_objext' 5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5768 (eval $ac_try) 2>&5 5769 ac_status=$? 5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5771 (exit $ac_status); }; }; then 5772 ac_hi=-1 ac_mid=-1 5773 while :; do 5774 cat >conftest.$ac_ext <<_ACEOF 5775 /* confdefs.h. */ 5776 _ACEOF 5777 cat confdefs.h >>conftest.$ac_ext 5778 cat >>conftest.$ac_ext <<_ACEOF 5779 /* end confdefs.h. */ 5780 $ac_includes_default 5781 int 5782 main () 5783 { 5784 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 5785 test_array [0] = 0 5786 5787 ; 5788 return 0; 5789 } 5790 _ACEOF 5791 rm -f conftest.$ac_objext 5792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5793 (eval $ac_compile) 2>conftest.er1 5794 ac_status=$? 5795 grep -v '^ *+' conftest.er1 >conftest.err 5796 rm -f conftest.er1 5797 cat conftest.err >&5 5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5799 (exit $ac_status); } && 5800 { ac_try='test -z "$ac_c_werror_flag" 5801 || test ! -s conftest.err' 5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5803 (eval $ac_try) 2>&5 5804 ac_status=$? 5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5806 (exit $ac_status); }; } && 5807 { ac_try='test -s conftest.$ac_objext' 5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5809 (eval $ac_try) 2>&5 5810 ac_status=$? 5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5812 (exit $ac_status); }; }; then 5813 ac_lo=$ac_mid; break 5814 else 5815 echo "$as_me: failed program was:" >&5 5816 sed 's/^/| /' conftest.$ac_ext >&5 5817 5818 ac_hi=`expr '(' $ac_mid ')' - 1` 5819 if test $ac_mid -le $ac_hi; then 5820 ac_lo= ac_hi= 5821 break 5822 fi 5823 ac_mid=`expr 2 '*' $ac_mid` 5824 fi 5825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5826 done 5827 else 5828 echo "$as_me: failed program was:" >&5 5829 sed 's/^/| /' conftest.$ac_ext >&5 5830 5831 ac_lo= ac_hi= 5832 fi 5833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5834 fi 5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5836 # Binary search between lo and hi bounds. 5837 while test "x$ac_lo" != "x$ac_hi"; do 5838 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5839 cat >conftest.$ac_ext <<_ACEOF 5840 /* confdefs.h. */ 5841 _ACEOF 5842 cat confdefs.h >>conftest.$ac_ext 5843 cat >>conftest.$ac_ext <<_ACEOF 5844 /* end confdefs.h. */ 5845 $ac_includes_default 5846 int 5847 main () 5848 { 5849 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 5850 test_array [0] = 0 5851 5852 ; 5853 return 0; 5854 } 5855 _ACEOF 5856 rm -f conftest.$ac_objext 5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5858 (eval $ac_compile) 2>conftest.er1 5859 ac_status=$? 5860 grep -v '^ *+' conftest.er1 >conftest.err 5861 rm -f conftest.er1 5862 cat conftest.err >&5 5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5864 (exit $ac_status); } && 5865 { ac_try='test -z "$ac_c_werror_flag" 5866 || test ! -s conftest.err' 5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5868 (eval $ac_try) 2>&5 5869 ac_status=$? 5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5871 (exit $ac_status); }; } && 5872 { ac_try='test -s conftest.$ac_objext' 5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5874 (eval $ac_try) 2>&5 5875 ac_status=$? 5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5877 (exit $ac_status); }; }; then 5878 ac_hi=$ac_mid 5879 else 5880 echo "$as_me: failed program was:" >&5 5881 sed 's/^/| /' conftest.$ac_ext >&5 5882 5883 ac_lo=`expr '(' $ac_mid ')' + 1` 5884 fi 5885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5886 done 5887 case $ac_lo in 5888 ?*) ac_cv_sizeof_long_long=$ac_lo;; 5889 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 5890 See \`config.log' for more details." >&5 5891 echo "$as_me: error: cannot compute sizeof (long long), 77 5892 See \`config.log' for more details." >&2;} 5893 { (exit 1); exit 1; }; } ;; 5894 esac 5895 else 5896 if test "$cross_compiling" = yes; then 5897 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5898 See \`config.log' for more details." >&5 5899 echo "$as_me: error: cannot run test program while cross compiling 5900 See \`config.log' for more details." >&2;} 5901 { (exit 1); exit 1; }; } 5902 else 5903 cat >conftest.$ac_ext <<_ACEOF 5904 /* confdefs.h. */ 5905 _ACEOF 5906 cat confdefs.h >>conftest.$ac_ext 5907 cat >>conftest.$ac_ext <<_ACEOF 5908 /* end confdefs.h. */ 5909 $ac_includes_default 5910 long longval () { return (long) (sizeof (long long)); } 5911 unsigned long ulongval () { return (long) (sizeof (long long)); } 5912 #include <stdio.h> 5913 #include <stdlib.h> 5914 int 5915 main () 5916 { 5917 5918 FILE *f = fopen ("conftest.val", "w"); 5919 if (! f) 5920 exit (1); 5921 if (((long) (sizeof (long long))) < 0) 5922 { 5923 long i = longval (); 5924 if (i != ((long) (sizeof (long long)))) 5925 exit (1); 5926 fprintf (f, "%ld\n", i); 5927 } 5928 else 5929 { 5930 unsigned long i = ulongval (); 5931 if (i != ((long) (sizeof (long long)))) 5932 exit (1); 5933 fprintf (f, "%lu\n", i); 5934 } 5935 exit (ferror (f) || fclose (f) != 0); 5936 5937 ; 5938 return 0; 5939 } 5940 _ACEOF 5941 rm -f conftest$ac_exeext 5942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5943 (eval $ac_link) 2>&5 5944 ac_status=$? 5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5948 (eval $ac_try) 2>&5 5949 ac_status=$? 5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5951 (exit $ac_status); }; }; then 5952 ac_cv_sizeof_long_long=`cat conftest.val` 5953 else 5954 echo "$as_me: program exited with status $ac_status" >&5 5955 echo "$as_me: failed program was:" >&5 5956 sed 's/^/| /' conftest.$ac_ext >&5 5957 5958 ( exit $ac_status ) 5959 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 5960 See \`config.log' for more details." >&5 5961 echo "$as_me: error: cannot compute sizeof (long long), 77 5962 See \`config.log' for more details." >&2;} 5963 { (exit 1); exit 1; }; } 5964 fi 5965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5966 fi 5967 fi 5968 rm -f conftest.val 5969 else 5970 ac_cv_sizeof_long_long=0 5971 fi 5972 fi 5973 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 5974 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 5975 cat >>confdefs.h <<_ACEOF 5976 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 5977 _ACEOF 5978 5979 5980 echo "$as_me:$LINENO: checking for long" >&5 5981 echo $ECHO_N "checking for long... $ECHO_C" >&6 5982 if test "${ac_cv_type_long+set}" = set; then 5983 echo $ECHO_N "(cached) $ECHO_C" >&6 5984 else 5985 cat >conftest.$ac_ext <<_ACEOF 5986 /* confdefs.h. */ 5987 _ACEOF 5988 cat confdefs.h >>conftest.$ac_ext 5989 cat >>conftest.$ac_ext <<_ACEOF 5990 /* end confdefs.h. */ 5991 $ac_includes_default 5992 int 5993 main () 5994 { 5995 if ((long *) 0) 5996 return 0; 5997 if (sizeof (long)) 5998 return 0; 5999 ; 6000 return 0; 6001 } 6002 _ACEOF 6003 rm -f conftest.$ac_objext 6004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6005 (eval $ac_compile) 2>conftest.er1 6006 ac_status=$? 6007 grep -v '^ *+' conftest.er1 >conftest.err 6008 rm -f conftest.er1 6009 cat conftest.err >&5 6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6011 (exit $ac_status); } && 6012 { ac_try='test -z "$ac_c_werror_flag" 6013 || test ! -s conftest.err' 6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6015 (eval $ac_try) 2>&5 6016 ac_status=$? 6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6018 (exit $ac_status); }; } && 6019 { ac_try='test -s conftest.$ac_objext' 6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6021 (eval $ac_try) 2>&5 6022 ac_status=$? 6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6024 (exit $ac_status); }; }; then 6025 ac_cv_type_long=yes 6026 else 6027 echo "$as_me: failed program was:" >&5 6028 sed 's/^/| /' conftest.$ac_ext >&5 6029 6030 ac_cv_type_long=no 6031 fi 6032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6033 fi 6034 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 6035 echo "${ECHO_T}$ac_cv_type_long" >&6 6036 6037 echo "$as_me:$LINENO: checking size of long" >&5 6038 echo $ECHO_N "checking size of long... $ECHO_C" >&6 6039 if test "${ac_cv_sizeof_long+set}" = set; then 6040 echo $ECHO_N "(cached) $ECHO_C" >&6 6041 else 6042 if test "$ac_cv_type_long" = yes; then 6043 # The cast to unsigned long works around a bug in the HP C Compiler 6044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6045 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6046 # This bug is HP SR number 8606223364. 6047 if test "$cross_compiling" = yes; then 6048 # Depending upon the size, compute the lo and hi bounds. 6049 cat >conftest.$ac_ext <<_ACEOF 6050 /* confdefs.h. */ 6051 _ACEOF 6052 cat confdefs.h >>conftest.$ac_ext 6053 cat >>conftest.$ac_ext <<_ACEOF 6054 /* end confdefs.h. */ 6055 $ac_includes_default 6056 int 6057 main () 6058 { 6059 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 6060 test_array [0] = 0 6061 6062 ; 6063 return 0; 6064 } 6065 _ACEOF 6066 rm -f conftest.$ac_objext 6067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6068 (eval $ac_compile) 2>conftest.er1 6069 ac_status=$? 6070 grep -v '^ *+' conftest.er1 >conftest.err 6071 rm -f conftest.er1 6072 cat conftest.err >&5 6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6074 (exit $ac_status); } && 6075 { ac_try='test -z "$ac_c_werror_flag" 6076 || test ! -s conftest.err' 6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6078 (eval $ac_try) 2>&5 6079 ac_status=$? 6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6081 (exit $ac_status); }; } && 6082 { ac_try='test -s conftest.$ac_objext' 6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6084 (eval $ac_try) 2>&5 6085 ac_status=$? 6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6087 (exit $ac_status); }; }; then 6088 ac_lo=0 ac_mid=0 6089 while :; do 6090 cat >conftest.$ac_ext <<_ACEOF 6091 /* confdefs.h. */ 6092 _ACEOF 6093 cat confdefs.h >>conftest.$ac_ext 6094 cat >>conftest.$ac_ext <<_ACEOF 6095 /* end confdefs.h. */ 6096 $ac_includes_default 6097 int 6098 main () 6099 { 6100 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 6101 test_array [0] = 0 6102 6103 ; 6104 return 0; 6105 } 6106 _ACEOF 6107 rm -f conftest.$ac_objext 6108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6109 (eval $ac_compile) 2>conftest.er1 6110 ac_status=$? 6111 grep -v '^ *+' conftest.er1 >conftest.err 6112 rm -f conftest.er1 6113 cat conftest.err >&5 6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6115 (exit $ac_status); } && 6116 { ac_try='test -z "$ac_c_werror_flag" 6117 || test ! -s conftest.err' 6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6119 (eval $ac_try) 2>&5 6120 ac_status=$? 6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6122 (exit $ac_status); }; } && 6123 { ac_try='test -s conftest.$ac_objext' 6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6125 (eval $ac_try) 2>&5 6126 ac_status=$? 6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6128 (exit $ac_status); }; }; then 6129 ac_hi=$ac_mid; break 6130 else 6131 echo "$as_me: failed program was:" >&5 6132 sed 's/^/| /' conftest.$ac_ext >&5 6133 6134 ac_lo=`expr $ac_mid + 1` 6135 if test $ac_lo -le $ac_mid; then 6136 ac_lo= ac_hi= 6137 break 6138 fi 6139 ac_mid=`expr 2 '*' $ac_mid + 1` 6140 fi 6141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6142 done 6143 else 6144 echo "$as_me: failed program was:" >&5 6145 sed 's/^/| /' conftest.$ac_ext >&5 6146 6147 cat >conftest.$ac_ext <<_ACEOF 6148 /* confdefs.h. */ 6149 _ACEOF 6150 cat confdefs.h >>conftest.$ac_ext 6151 cat >>conftest.$ac_ext <<_ACEOF 6152 /* end confdefs.h. */ 6153 $ac_includes_default 6154 int 6155 main () 6156 { 6157 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 6158 test_array [0] = 0 6159 6160 ; 6161 return 0; 6162 } 6163 _ACEOF 6164 rm -f conftest.$ac_objext 6165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6166 (eval $ac_compile) 2>conftest.er1 6167 ac_status=$? 6168 grep -v '^ *+' conftest.er1 >conftest.err 6169 rm -f conftest.er1 6170 cat conftest.err >&5 6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6172 (exit $ac_status); } && 6173 { ac_try='test -z "$ac_c_werror_flag" 6174 || test ! -s conftest.err' 6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6176 (eval $ac_try) 2>&5 6177 ac_status=$? 6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6179 (exit $ac_status); }; } && 6180 { ac_try='test -s conftest.$ac_objext' 6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6182 (eval $ac_try) 2>&5 6183 ac_status=$? 6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6185 (exit $ac_status); }; }; then 6186 ac_hi=-1 ac_mid=-1 6187 while :; do 6188 cat >conftest.$ac_ext <<_ACEOF 6189 /* confdefs.h. */ 6190 _ACEOF 6191 cat confdefs.h >>conftest.$ac_ext 6192 cat >>conftest.$ac_ext <<_ACEOF 6193 /* end confdefs.h. */ 6194 $ac_includes_default 6195 int 6196 main () 6197 { 6198 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 6199 test_array [0] = 0 6200 6201 ; 6202 return 0; 6203 } 6204 _ACEOF 6205 rm -f conftest.$ac_objext 6206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6207 (eval $ac_compile) 2>conftest.er1 6208 ac_status=$? 6209 grep -v '^ *+' conftest.er1 >conftest.err 6210 rm -f conftest.er1 6211 cat conftest.err >&5 6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6213 (exit $ac_status); } && 6214 { ac_try='test -z "$ac_c_werror_flag" 6215 || test ! -s conftest.err' 6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6217 (eval $ac_try) 2>&5 6218 ac_status=$? 6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6220 (exit $ac_status); }; } && 6221 { ac_try='test -s conftest.$ac_objext' 6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6223 (eval $ac_try) 2>&5 6224 ac_status=$? 6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6226 (exit $ac_status); }; }; then 6227 ac_lo=$ac_mid; break 6228 else 6229 echo "$as_me: failed program was:" >&5 6230 sed 's/^/| /' conftest.$ac_ext >&5 6231 6232 ac_hi=`expr '(' $ac_mid ')' - 1` 6233 if test $ac_mid -le $ac_hi; then 6234 ac_lo= ac_hi= 6235 break 6236 fi 6237 ac_mid=`expr 2 '*' $ac_mid` 6238 fi 6239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6240 done 6241 else 6242 echo "$as_me: failed program was:" >&5 6243 sed 's/^/| /' conftest.$ac_ext >&5 6244 6245 ac_lo= ac_hi= 6246 fi 6247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6248 fi 6249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6250 # Binary search between lo and hi bounds. 6251 while test "x$ac_lo" != "x$ac_hi"; do 6252 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6253 cat >conftest.$ac_ext <<_ACEOF 6254 /* confdefs.h. */ 6255 _ACEOF 6256 cat confdefs.h >>conftest.$ac_ext 6257 cat >>conftest.$ac_ext <<_ACEOF 6258 /* end confdefs.h. */ 6259 $ac_includes_default 6260 int 6261 main () 6262 { 6263 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 6264 test_array [0] = 0 6265 6266 ; 6267 return 0; 6268 } 6269 _ACEOF 6270 rm -f conftest.$ac_objext 6271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6272 (eval $ac_compile) 2>conftest.er1 6273 ac_status=$? 6274 grep -v '^ *+' conftest.er1 >conftest.err 6275 rm -f conftest.er1 6276 cat conftest.err >&5 6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6278 (exit $ac_status); } && 6279 { ac_try='test -z "$ac_c_werror_flag" 6280 || test ! -s conftest.err' 6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6282 (eval $ac_try) 2>&5 6283 ac_status=$? 6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6285 (exit $ac_status); }; } && 6286 { ac_try='test -s conftest.$ac_objext' 6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6288 (eval $ac_try) 2>&5 6289 ac_status=$? 6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6291 (exit $ac_status); }; }; then 6292 ac_hi=$ac_mid 6293 else 6294 echo "$as_me: failed program was:" >&5 6295 sed 's/^/| /' conftest.$ac_ext >&5 6296 6297 ac_lo=`expr '(' $ac_mid ')' + 1` 6298 fi 6299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6300 done 6301 case $ac_lo in 6302 ?*) ac_cv_sizeof_long=$ac_lo;; 6303 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 6304 See \`config.log' for more details." >&5 6305 echo "$as_me: error: cannot compute sizeof (long), 77 6306 See \`config.log' for more details." >&2;} 6307 { (exit 1); exit 1; }; } ;; 6308 esac 6309 else 6310 if test "$cross_compiling" = yes; then 6311 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6312 See \`config.log' for more details." >&5 6313 echo "$as_me: error: cannot run test program while cross compiling 6314 See \`config.log' for more details." >&2;} 6315 { (exit 1); exit 1; }; } 6316 else 6317 cat >conftest.$ac_ext <<_ACEOF 6318 /* confdefs.h. */ 6319 _ACEOF 6320 cat confdefs.h >>conftest.$ac_ext 6321 cat >>conftest.$ac_ext <<_ACEOF 6322 /* end confdefs.h. */ 6323 $ac_includes_default 6324 long longval () { return (long) (sizeof (long)); } 6325 unsigned long ulongval () { return (long) (sizeof (long)); } 6326 #include <stdio.h> 6327 #include <stdlib.h> 6328 int 6329 main () 6330 { 6331 6332 FILE *f = fopen ("conftest.val", "w"); 6333 if (! f) 6334 exit (1); 6335 if (((long) (sizeof (long))) < 0) 6336 { 6337 long i = longval (); 6338 if (i != ((long) (sizeof (long)))) 6339 exit (1); 6340 fprintf (f, "%ld\n", i); 6341 } 6342 else 6343 { 6344 unsigned long i = ulongval (); 6345 if (i != ((long) (sizeof (long)))) 6346 exit (1); 6347 fprintf (f, "%lu\n", i); 6348 } 6349 exit (ferror (f) || fclose (f) != 0); 6350 6351 ; 6352 return 0; 6353 } 6354 _ACEOF 6355 rm -f conftest$ac_exeext 6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6357 (eval $ac_link) 2>&5 6358 ac_status=$? 6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6362 (eval $ac_try) 2>&5 6363 ac_status=$? 6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6365 (exit $ac_status); }; }; then 6366 ac_cv_sizeof_long=`cat conftest.val` 6367 else 6368 echo "$as_me: program exited with status $ac_status" >&5 6369 echo "$as_me: failed program was:" >&5 6370 sed 's/^/| /' conftest.$ac_ext >&5 6371 6372 ( exit $ac_status ) 6373 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 6374 See \`config.log' for more details." >&5 6375 echo "$as_me: error: cannot compute sizeof (long), 77 6376 See \`config.log' for more details." >&2;} 6377 { (exit 1); exit 1; }; } 6378 fi 6379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6380 fi 6381 fi 6382 rm -f conftest.val 6383 else 6384 ac_cv_sizeof_long=0 6385 fi 6386 fi 6387 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 6388 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 6389 cat >>confdefs.h <<_ACEOF 6390 #define SIZEOF_LONG $ac_cv_sizeof_long 6391 _ACEOF 6392 6393 6394 echo "$as_me:$LINENO: checking for int" >&5 6395 echo $ECHO_N "checking for int... $ECHO_C" >&6 6396 if test "${ac_cv_type_int+set}" = set; then 6397 echo $ECHO_N "(cached) $ECHO_C" >&6 6398 else 6399 cat >conftest.$ac_ext <<_ACEOF 6400 /* confdefs.h. */ 6401 _ACEOF 6402 cat confdefs.h >>conftest.$ac_ext 6403 cat >>conftest.$ac_ext <<_ACEOF 6404 /* end confdefs.h. */ 6405 $ac_includes_default 6406 int 6407 main () 6408 { 6409 if ((int *) 0) 6410 return 0; 6411 if (sizeof (int)) 6412 return 0; 6413 ; 6414 return 0; 6415 } 6416 _ACEOF 6417 rm -f conftest.$ac_objext 6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6419 (eval $ac_compile) 2>conftest.er1 6420 ac_status=$? 6421 grep -v '^ *+' conftest.er1 >conftest.err 6422 rm -f conftest.er1 6423 cat conftest.err >&5 6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6425 (exit $ac_status); } && 6426 { ac_try='test -z "$ac_c_werror_flag" 6427 || test ! -s conftest.err' 6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6429 (eval $ac_try) 2>&5 6430 ac_status=$? 6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6432 (exit $ac_status); }; } && 6433 { ac_try='test -s conftest.$ac_objext' 6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6435 (eval $ac_try) 2>&5 6436 ac_status=$? 6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6438 (exit $ac_status); }; }; then 6439 ac_cv_type_int=yes 6440 else 6441 echo "$as_me: failed program was:" >&5 6442 sed 's/^/| /' conftest.$ac_ext >&5 6443 6444 ac_cv_type_int=no 6445 fi 6446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6447 fi 6448 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 6449 echo "${ECHO_T}$ac_cv_type_int" >&6 6450 6451 echo "$as_me:$LINENO: checking size of int" >&5 6452 echo $ECHO_N "checking size of int... $ECHO_C" >&6 6453 if test "${ac_cv_sizeof_int+set}" = set; then 6454 echo $ECHO_N "(cached) $ECHO_C" >&6 6455 else 6456 if test "$ac_cv_type_int" = yes; then 6457 # The cast to unsigned long works around a bug in the HP C Compiler 6458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6460 # This bug is HP SR number 8606223364. 6461 if test "$cross_compiling" = yes; then 6462 # Depending upon the size, compute the lo and hi bounds. 6463 cat >conftest.$ac_ext <<_ACEOF 6464 /* confdefs.h. */ 6465 _ACEOF 6466 cat confdefs.h >>conftest.$ac_ext 6467 cat >>conftest.$ac_ext <<_ACEOF 6468 /* end confdefs.h. */ 6469 $ac_includes_default 6470 int 6471 main () 6472 { 6473 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 6474 test_array [0] = 0 6475 6476 ; 6477 return 0; 6478 } 6479 _ACEOF 6480 rm -f conftest.$ac_objext 6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6482 (eval $ac_compile) 2>conftest.er1 6483 ac_status=$? 6484 grep -v '^ *+' conftest.er1 >conftest.err 6485 rm -f conftest.er1 6486 cat conftest.err >&5 6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6488 (exit $ac_status); } && 6489 { ac_try='test -z "$ac_c_werror_flag" 6490 || test ! -s conftest.err' 6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6492 (eval $ac_try) 2>&5 6493 ac_status=$? 6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6495 (exit $ac_status); }; } && 6496 { ac_try='test -s conftest.$ac_objext' 6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6498 (eval $ac_try) 2>&5 6499 ac_status=$? 6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6501 (exit $ac_status); }; }; then 6502 ac_lo=0 ac_mid=0 6503 while :; do 6504 cat >conftest.$ac_ext <<_ACEOF 6505 /* confdefs.h. */ 6506 _ACEOF 6507 cat confdefs.h >>conftest.$ac_ext 6508 cat >>conftest.$ac_ext <<_ACEOF 6509 /* end confdefs.h. */ 6510 $ac_includes_default 6511 int 6512 main () 6513 { 6514 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 6515 test_array [0] = 0 6516 6517 ; 6518 return 0; 6519 } 6520 _ACEOF 6521 rm -f conftest.$ac_objext 6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6523 (eval $ac_compile) 2>conftest.er1 6524 ac_status=$? 6525 grep -v '^ *+' conftest.er1 >conftest.err 6526 rm -f conftest.er1 6527 cat conftest.err >&5 6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6529 (exit $ac_status); } && 6530 { ac_try='test -z "$ac_c_werror_flag" 6531 || test ! -s conftest.err' 6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6533 (eval $ac_try) 2>&5 6534 ac_status=$? 6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6536 (exit $ac_status); }; } && 6537 { ac_try='test -s conftest.$ac_objext' 6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6539 (eval $ac_try) 2>&5 6540 ac_status=$? 6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6542 (exit $ac_status); }; }; then 6543 ac_hi=$ac_mid; break 6544 else 6545 echo "$as_me: failed program was:" >&5 6546 sed 's/^/| /' conftest.$ac_ext >&5 6547 6548 ac_lo=`expr $ac_mid + 1` 6549 if test $ac_lo -le $ac_mid; then 6550 ac_lo= ac_hi= 6551 break 6552 fi 6553 ac_mid=`expr 2 '*' $ac_mid + 1` 6554 fi 6555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6556 done 6557 else 6558 echo "$as_me: failed program was:" >&5 6559 sed 's/^/| /' conftest.$ac_ext >&5 6560 6561 cat >conftest.$ac_ext <<_ACEOF 6562 /* confdefs.h. */ 6563 _ACEOF 6564 cat confdefs.h >>conftest.$ac_ext 6565 cat >>conftest.$ac_ext <<_ACEOF 6566 /* end confdefs.h. */ 6567 $ac_includes_default 6568 int 6569 main () 6570 { 6571 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 6572 test_array [0] = 0 6573 6574 ; 6575 return 0; 6576 } 6577 _ACEOF 6578 rm -f conftest.$ac_objext 6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6580 (eval $ac_compile) 2>conftest.er1 6581 ac_status=$? 6582 grep -v '^ *+' conftest.er1 >conftest.err 6583 rm -f conftest.er1 6584 cat conftest.err >&5 6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6586 (exit $ac_status); } && 6587 { ac_try='test -z "$ac_c_werror_flag" 6588 || test ! -s conftest.err' 6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6590 (eval $ac_try) 2>&5 6591 ac_status=$? 6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6593 (exit $ac_status); }; } && 6594 { ac_try='test -s conftest.$ac_objext' 6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6596 (eval $ac_try) 2>&5 6597 ac_status=$? 6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6599 (exit $ac_status); }; }; then 6600 ac_hi=-1 ac_mid=-1 6601 while :; do 6602 cat >conftest.$ac_ext <<_ACEOF 6603 /* confdefs.h. */ 6604 _ACEOF 6605 cat confdefs.h >>conftest.$ac_ext 6606 cat >>conftest.$ac_ext <<_ACEOF 6607 /* end confdefs.h. */ 6608 $ac_includes_default 6609 int 6610 main () 6611 { 6612 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 6613 test_array [0] = 0 6614 6615 ; 6616 return 0; 6617 } 6618 _ACEOF 6619 rm -f conftest.$ac_objext 6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6621 (eval $ac_compile) 2>conftest.er1 6622 ac_status=$? 6623 grep -v '^ *+' conftest.er1 >conftest.err 6624 rm -f conftest.er1 6625 cat conftest.err >&5 6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6627 (exit $ac_status); } && 6628 { ac_try='test -z "$ac_c_werror_flag" 6629 || test ! -s conftest.err' 6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6631 (eval $ac_try) 2>&5 6632 ac_status=$? 6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6634 (exit $ac_status); }; } && 6635 { ac_try='test -s conftest.$ac_objext' 6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6637 (eval $ac_try) 2>&5 6638 ac_status=$? 6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6640 (exit $ac_status); }; }; then 6641 ac_lo=$ac_mid; break 6642 else 6643 echo "$as_me: failed program was:" >&5 6644 sed 's/^/| /' conftest.$ac_ext >&5 6645 6646 ac_hi=`expr '(' $ac_mid ')' - 1` 6647 if test $ac_mid -le $ac_hi; then 6648 ac_lo= ac_hi= 6649 break 6650 fi 6651 ac_mid=`expr 2 '*' $ac_mid` 6652 fi 6653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6654 done 6655 else 6656 echo "$as_me: failed program was:" >&5 6657 sed 's/^/| /' conftest.$ac_ext >&5 6658 6659 ac_lo= ac_hi= 6660 fi 6661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6662 fi 6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6664 # Binary search between lo and hi bounds. 6665 while test "x$ac_lo" != "x$ac_hi"; do 6666 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6667 cat >conftest.$ac_ext <<_ACEOF 6668 /* confdefs.h. */ 6669 _ACEOF 6670 cat confdefs.h >>conftest.$ac_ext 6671 cat >>conftest.$ac_ext <<_ACEOF 6672 /* end confdefs.h. */ 6673 $ac_includes_default 6674 int 6675 main () 6676 { 6677 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 6678 test_array [0] = 0 6679 6680 ; 6681 return 0; 6682 } 6683 _ACEOF 6684 rm -f conftest.$ac_objext 6685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6686 (eval $ac_compile) 2>conftest.er1 6687 ac_status=$? 6688 grep -v '^ *+' conftest.er1 >conftest.err 6689 rm -f conftest.er1 6690 cat conftest.err >&5 6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6692 (exit $ac_status); } && 6693 { ac_try='test -z "$ac_c_werror_flag" 6694 || test ! -s conftest.err' 6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6696 (eval $ac_try) 2>&5 6697 ac_status=$? 6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6699 (exit $ac_status); }; } && 6700 { ac_try='test -s conftest.$ac_objext' 6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6702 (eval $ac_try) 2>&5 6703 ac_status=$? 6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6705 (exit $ac_status); }; }; then 6706 ac_hi=$ac_mid 6707 else 6708 echo "$as_me: failed program was:" >&5 6709 sed 's/^/| /' conftest.$ac_ext >&5 6710 6711 ac_lo=`expr '(' $ac_mid ')' + 1` 6712 fi 6713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6714 done 6715 case $ac_lo in 6716 ?*) ac_cv_sizeof_int=$ac_lo;; 6717 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 6718 See \`config.log' for more details." >&5 6719 echo "$as_me: error: cannot compute sizeof (int), 77 6720 See \`config.log' for more details." >&2;} 6721 { (exit 1); exit 1; }; } ;; 6722 esac 6723 else 6724 if test "$cross_compiling" = yes; then 6725 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6726 See \`config.log' for more details." >&5 6727 echo "$as_me: error: cannot run test program while cross compiling 6728 See \`config.log' for more details." >&2;} 6729 { (exit 1); exit 1; }; } 6730 else 6731 cat >conftest.$ac_ext <<_ACEOF 6732 /* confdefs.h. */ 6733 _ACEOF 6734 cat confdefs.h >>conftest.$ac_ext 6735 cat >>conftest.$ac_ext <<_ACEOF 6736 /* end confdefs.h. */ 6737 $ac_includes_default 6738 long longval () { return (long) (sizeof (int)); } 6739 unsigned long ulongval () { return (long) (sizeof (int)); } 6740 #include <stdio.h> 6741 #include <stdlib.h> 6742 int 6743 main () 6744 { 6745 6746 FILE *f = fopen ("conftest.val", "w"); 6747 if (! f) 6748 exit (1); 6749 if (((long) (sizeof (int))) < 0) 6750 { 6751 long i = longval (); 6752 if (i != ((long) (sizeof (int)))) 6753 exit (1); 6754 fprintf (f, "%ld\n", i); 6755 } 6756 else 6757 { 6758 unsigned long i = ulongval (); 6759 if (i != ((long) (sizeof (int)))) 6760 exit (1); 6761 fprintf (f, "%lu\n", i); 6762 } 6763 exit (ferror (f) || fclose (f) != 0); 6764 6765 ; 6766 return 0; 6767 } 6768 _ACEOF 6769 rm -f conftest$ac_exeext 6770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6771 (eval $ac_link) 2>&5 6772 ac_status=$? 6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6776 (eval $ac_try) 2>&5 6777 ac_status=$? 6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6779 (exit $ac_status); }; }; then 6780 ac_cv_sizeof_int=`cat conftest.val` 6781 else 6782 echo "$as_me: program exited with status $ac_status" >&5 6783 echo "$as_me: failed program was:" >&5 6784 sed 's/^/| /' conftest.$ac_ext >&5 6785 6786 ( exit $ac_status ) 6787 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 6788 See \`config.log' for more details." >&5 6789 echo "$as_me: error: cannot compute sizeof (int), 77 6790 See \`config.log' for more details." >&2;} 6791 { (exit 1); exit 1; }; } 6792 fi 6793 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6794 fi 6795 fi 6796 rm -f conftest.val 6797 else 6798 ac_cv_sizeof_int=0 6799 fi 6800 fi 6801 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 6802 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 6803 cat >>confdefs.h <<_ACEOF 6804 #define SIZEOF_INT $ac_cv_sizeof_int 6805 _ACEOF 6806 6807 6808 echo "$as_me:$LINENO: checking for short" >&5 6809 echo $ECHO_N "checking for short... $ECHO_C" >&6 6810 if test "${ac_cv_type_short+set}" = set; then 6811 echo $ECHO_N "(cached) $ECHO_C" >&6 6812 else 6813 cat >conftest.$ac_ext <<_ACEOF 6814 /* confdefs.h. */ 6815 _ACEOF 6816 cat confdefs.h >>conftest.$ac_ext 6817 cat >>conftest.$ac_ext <<_ACEOF 6818 /* end confdefs.h. */ 6819 $ac_includes_default 6820 int 6821 main () 6822 { 6823 if ((short *) 0) 6824 return 0; 6825 if (sizeof (short)) 6826 return 0; 6827 ; 6828 return 0; 6829 } 6830 _ACEOF 6831 rm -f conftest.$ac_objext 6832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6833 (eval $ac_compile) 2>conftest.er1 6834 ac_status=$? 6835 grep -v '^ *+' conftest.er1 >conftest.err 6836 rm -f conftest.er1 6837 cat conftest.err >&5 6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6839 (exit $ac_status); } && 6840 { ac_try='test -z "$ac_c_werror_flag" 6841 || test ! -s conftest.err' 6842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6843 (eval $ac_try) 2>&5 6844 ac_status=$? 6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6846 (exit $ac_status); }; } && 6847 { ac_try='test -s conftest.$ac_objext' 6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6849 (eval $ac_try) 2>&5 6850 ac_status=$? 6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6852 (exit $ac_status); }; }; then 6853 ac_cv_type_short=yes 6854 else 6855 echo "$as_me: failed program was:" >&5 6856 sed 's/^/| /' conftest.$ac_ext >&5 6857 6858 ac_cv_type_short=no 6859 fi 6860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6861 fi 6862 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 6863 echo "${ECHO_T}$ac_cv_type_short" >&6 6864 6865 echo "$as_me:$LINENO: checking size of short" >&5 6866 echo $ECHO_N "checking size of short... $ECHO_C" >&6 6867 if test "${ac_cv_sizeof_short+set}" = set; then 6868 echo $ECHO_N "(cached) $ECHO_C" >&6 6869 else 6870 if test "$ac_cv_type_short" = yes; then 6871 # The cast to unsigned long works around a bug in the HP C Compiler 6872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6874 # This bug is HP SR number 8606223364. 6875 if test "$cross_compiling" = yes; then 6876 # Depending upon the size, compute the lo and hi bounds. 6877 cat >conftest.$ac_ext <<_ACEOF 6878 /* confdefs.h. */ 6879 _ACEOF 6880 cat confdefs.h >>conftest.$ac_ext 6881 cat >>conftest.$ac_ext <<_ACEOF 6882 /* end confdefs.h. */ 6883 $ac_includes_default 6884 int 6885 main () 6886 { 6887 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 6888 test_array [0] = 0 6889 6890 ; 6891 return 0; 6892 } 6893 _ACEOF 6894 rm -f conftest.$ac_objext 6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6896 (eval $ac_compile) 2>conftest.er1 6897 ac_status=$? 6898 grep -v '^ *+' conftest.er1 >conftest.err 6899 rm -f conftest.er1 6900 cat conftest.err >&5 6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6902 (exit $ac_status); } && 6903 { ac_try='test -z "$ac_c_werror_flag" 6904 || test ! -s conftest.err' 6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6906 (eval $ac_try) 2>&5 6907 ac_status=$? 6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6909 (exit $ac_status); }; } && 6910 { ac_try='test -s conftest.$ac_objext' 6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6912 (eval $ac_try) 2>&5 6913 ac_status=$? 6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6915 (exit $ac_status); }; }; then 6916 ac_lo=0 ac_mid=0 6917 while :; do 6918 cat >conftest.$ac_ext <<_ACEOF 6919 /* confdefs.h. */ 6920 _ACEOF 6921 cat confdefs.h >>conftest.$ac_ext 6922 cat >>conftest.$ac_ext <<_ACEOF 6923 /* end confdefs.h. */ 6924 $ac_includes_default 6925 int 6926 main () 6927 { 6928 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 6929 test_array [0] = 0 6930 6931 ; 6932 return 0; 6933 } 6934 _ACEOF 6935 rm -f conftest.$ac_objext 6936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6937 (eval $ac_compile) 2>conftest.er1 6938 ac_status=$? 6939 grep -v '^ *+' conftest.er1 >conftest.err 6940 rm -f conftest.er1 6941 cat conftest.err >&5 6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6943 (exit $ac_status); } && 6944 { ac_try='test -z "$ac_c_werror_flag" 6945 || test ! -s conftest.err' 6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6947 (eval $ac_try) 2>&5 6948 ac_status=$? 6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6950 (exit $ac_status); }; } && 6951 { ac_try='test -s conftest.$ac_objext' 6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6953 (eval $ac_try) 2>&5 6954 ac_status=$? 6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6956 (exit $ac_status); }; }; then 6957 ac_hi=$ac_mid; break 6958 else 6959 echo "$as_me: failed program was:" >&5 6960 sed 's/^/| /' conftest.$ac_ext >&5 6961 6962 ac_lo=`expr $ac_mid + 1` 6963 if test $ac_lo -le $ac_mid; then 6964 ac_lo= ac_hi= 6965 break 6966 fi 6967 ac_mid=`expr 2 '*' $ac_mid + 1` 6968 fi 6969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6970 done 6971 else 6972 echo "$as_me: failed program was:" >&5 6973 sed 's/^/| /' conftest.$ac_ext >&5 6974 6975 cat >conftest.$ac_ext <<_ACEOF 6976 /* confdefs.h. */ 6977 _ACEOF 6978 cat confdefs.h >>conftest.$ac_ext 6979 cat >>conftest.$ac_ext <<_ACEOF 6980 /* end confdefs.h. */ 6981 $ac_includes_default 6982 int 6983 main () 6984 { 6985 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 6986 test_array [0] = 0 6987 6988 ; 6989 return 0; 6990 } 6991 _ACEOF 6992 rm -f conftest.$ac_objext 6993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6994 (eval $ac_compile) 2>conftest.er1 6995 ac_status=$? 6996 grep -v '^ *+' conftest.er1 >conftest.err 6997 rm -f conftest.er1 6998 cat conftest.err >&5 6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7000 (exit $ac_status); } && 7001 { ac_try='test -z "$ac_c_werror_flag" 7002 || test ! -s conftest.err' 7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7004 (eval $ac_try) 2>&5 7005 ac_status=$? 7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7007 (exit $ac_status); }; } && 7008 { ac_try='test -s conftest.$ac_objext' 7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7010 (eval $ac_try) 2>&5 7011 ac_status=$? 7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7013 (exit $ac_status); }; }; then 7014 ac_hi=-1 ac_mid=-1 7015 while :; do 7016 cat >conftest.$ac_ext <<_ACEOF 7017 /* confdefs.h. */ 7018 _ACEOF 7019 cat confdefs.h >>conftest.$ac_ext 7020 cat >>conftest.$ac_ext <<_ACEOF 7021 /* end confdefs.h. */ 7022 $ac_includes_default 7023 int 7024 main () 7025 { 7026 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 7027 test_array [0] = 0 7028 7029 ; 7030 return 0; 7031 } 7032 _ACEOF 7033 rm -f conftest.$ac_objext 7034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7035 (eval $ac_compile) 2>conftest.er1 7036 ac_status=$? 7037 grep -v '^ *+' conftest.er1 >conftest.err 7038 rm -f conftest.er1 7039 cat conftest.err >&5 7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7041 (exit $ac_status); } && 7042 { ac_try='test -z "$ac_c_werror_flag" 7043 || test ! -s conftest.err' 7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7045 (eval $ac_try) 2>&5 7046 ac_status=$? 7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7048 (exit $ac_status); }; } && 7049 { ac_try='test -s conftest.$ac_objext' 7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7051 (eval $ac_try) 2>&5 7052 ac_status=$? 7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7054 (exit $ac_status); }; }; then 7055 ac_lo=$ac_mid; break 7056 else 7057 echo "$as_me: failed program was:" >&5 7058 sed 's/^/| /' conftest.$ac_ext >&5 7059 7060 ac_hi=`expr '(' $ac_mid ')' - 1` 7061 if test $ac_mid -le $ac_hi; then 7062 ac_lo= ac_hi= 7063 break 7064 fi 7065 ac_mid=`expr 2 '*' $ac_mid` 7066 fi 7067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7068 done 7069 else 7070 echo "$as_me: failed program was:" >&5 7071 sed 's/^/| /' conftest.$ac_ext >&5 7072 7073 ac_lo= ac_hi= 7074 fi 7075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7076 fi 7077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7078 # Binary search between lo and hi bounds. 7079 while test "x$ac_lo" != "x$ac_hi"; do 7080 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7081 cat >conftest.$ac_ext <<_ACEOF 7082 /* confdefs.h. */ 7083 _ACEOF 7084 cat confdefs.h >>conftest.$ac_ext 7085 cat >>conftest.$ac_ext <<_ACEOF 7086 /* end confdefs.h. */ 7087 $ac_includes_default 7088 int 7089 main () 7090 { 7091 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 7092 test_array [0] = 0 7093 7094 ; 7095 return 0; 7096 } 7097 _ACEOF 7098 rm -f conftest.$ac_objext 7099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7100 (eval $ac_compile) 2>conftest.er1 7101 ac_status=$? 7102 grep -v '^ *+' conftest.er1 >conftest.err 7103 rm -f conftest.er1 7104 cat conftest.err >&5 7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7106 (exit $ac_status); } && 7107 { ac_try='test -z "$ac_c_werror_flag" 7108 || test ! -s conftest.err' 7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7110 (eval $ac_try) 2>&5 7111 ac_status=$? 7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7113 (exit $ac_status); }; } && 7114 { ac_try='test -s conftest.$ac_objext' 7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7116 (eval $ac_try) 2>&5 7117 ac_status=$? 7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7119 (exit $ac_status); }; }; then 7120 ac_hi=$ac_mid 7121 else 7122 echo "$as_me: failed program was:" >&5 7123 sed 's/^/| /' conftest.$ac_ext >&5 7124 7125 ac_lo=`expr '(' $ac_mid ')' + 1` 7126 fi 7127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7128 done 7129 case $ac_lo in 7130 ?*) ac_cv_sizeof_short=$ac_lo;; 7131 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 7132 See \`config.log' for more details." >&5 7133 echo "$as_me: error: cannot compute sizeof (short), 77 7134 See \`config.log' for more details." >&2;} 7135 { (exit 1); exit 1; }; } ;; 7136 esac 7137 else 7138 if test "$cross_compiling" = yes; then 7139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7140 See \`config.log' for more details." >&5 7141 echo "$as_me: error: cannot run test program while cross compiling 7142 See \`config.log' for more details." >&2;} 7143 { (exit 1); exit 1; }; } 7144 else 7145 cat >conftest.$ac_ext <<_ACEOF 7146 /* confdefs.h. */ 7147 _ACEOF 7148 cat confdefs.h >>conftest.$ac_ext 7149 cat >>conftest.$ac_ext <<_ACEOF 7150 /* end confdefs.h. */ 7151 $ac_includes_default 7152 long longval () { return (long) (sizeof (short)); } 7153 unsigned long ulongval () { return (long) (sizeof (short)); } 7154 #include <stdio.h> 7155 #include <stdlib.h> 7156 int 7157 main () 7158 { 7159 7160 FILE *f = fopen ("conftest.val", "w"); 7161 if (! f) 7162 exit (1); 7163 if (((long) (sizeof (short))) < 0) 7164 { 7165 long i = longval (); 7166 if (i != ((long) (sizeof (short)))) 7167 exit (1); 7168 fprintf (f, "%ld\n", i); 7169 } 7170 else 7171 { 7172 unsigned long i = ulongval (); 7173 if (i != ((long) (sizeof (short)))) 7174 exit (1); 7175 fprintf (f, "%lu\n", i); 7176 } 7177 exit (ferror (f) || fclose (f) != 0); 7178 7179 ; 7180 return 0; 7181 } 7182 _ACEOF 7183 rm -f conftest$ac_exeext 7184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7185 (eval $ac_link) 2>&5 7186 ac_status=$? 7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7190 (eval $ac_try) 2>&5 7191 ac_status=$? 7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7193 (exit $ac_status); }; }; then 7194 ac_cv_sizeof_short=`cat conftest.val` 7195 else 7196 echo "$as_me: program exited with status $ac_status" >&5 7197 echo "$as_me: failed program was:" >&5 7198 sed 's/^/| /' conftest.$ac_ext >&5 7199 7200 ( exit $ac_status ) 7201 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 7202 See \`config.log' for more details." >&5 7203 echo "$as_me: error: cannot compute sizeof (short), 77 7204 See \`config.log' for more details." >&2;} 7205 { (exit 1); exit 1; }; } 7206 fi 7207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7208 fi 7209 fi 7210 rm -f conftest.val 7211 else 7212 ac_cv_sizeof_short=0 7213 fi 7214 fi 7215 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 7216 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 7217 cat >>confdefs.h <<_ACEOF 7218 #define SIZEOF_SHORT $ac_cv_sizeof_short 7219 _ACEOF 7220 7221 7222 fi 7223 FOUND=0 7224 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 7225 dc_cv_size=`eval echo $dc_cv_loop` 7226 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 7227 if test "$dc_cv_size" = "8"; then 7228 if test "$dc_cv_name" = "int"; then 7229 echo "$as_me:$LINENO: checking for uint64_t" >&5 7230 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 7231 if test "${ac_cv_type_uint64_t+set}" = set; then 7232 echo $ECHO_N "(cached) $ECHO_C" >&6 7233 else 7234 cat >conftest.$ac_ext <<_ACEOF 7235 /* confdefs.h. */ 7236 _ACEOF 7237 cat confdefs.h >>conftest.$ac_ext 7238 cat >>conftest.$ac_ext <<_ACEOF 7239 /* end confdefs.h. */ 7240 $ac_includes_default 7241 int 7242 main () 7243 { 7244 if ((uint64_t *) 0) 7245 return 0; 7246 if (sizeof (uint64_t)) 7247 return 0; 7248 ; 7249 return 0; 7250 } 7251 _ACEOF 7252 rm -f conftest.$ac_objext 7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7254 (eval $ac_compile) 2>conftest.er1 7255 ac_status=$? 7256 grep -v '^ *+' conftest.er1 >conftest.err 7257 rm -f conftest.er1 7258 cat conftest.err >&5 7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7260 (exit $ac_status); } && 7261 { ac_try='test -z "$ac_c_werror_flag" 7262 || test ! -s conftest.err' 7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7264 (eval $ac_try) 2>&5 7265 ac_status=$? 7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7267 (exit $ac_status); }; } && 7268 { ac_try='test -s conftest.$ac_objext' 7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7270 (eval $ac_try) 2>&5 7271 ac_status=$? 7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7273 (exit $ac_status); }; }; then 7274 ac_cv_type_uint64_t=yes 7275 else 7276 echo "$as_me: failed program was:" >&5 7277 sed 's/^/| /' conftest.$ac_ext >&5 7278 7279 ac_cv_type_uint64_t=no 7280 fi 7281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7282 fi 7283 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 7284 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 7285 if test $ac_cv_type_uint64_t = yes; then 7286 : 7287 else 7288 7289 cat >>confdefs.h <<_ACEOF 7290 #define uint64_t unsigned int 7291 _ACEOF 7292 7293 fi 7294 7295 fi 7296 if test "$dc_cv_name" = "long"; then 7297 echo "$as_me:$LINENO: checking for uint64_t" >&5 7298 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 7299 if test "${ac_cv_type_uint64_t+set}" = set; then 7300 echo $ECHO_N "(cached) $ECHO_C" >&6 7301 else 7302 cat >conftest.$ac_ext <<_ACEOF 7303 /* confdefs.h. */ 7304 _ACEOF 7305 cat confdefs.h >>conftest.$ac_ext 7306 cat >>conftest.$ac_ext <<_ACEOF 7307 /* end confdefs.h. */ 7308 $ac_includes_default 7309 int 7310 main () 7311 { 7312 if ((uint64_t *) 0) 7313 return 0; 7314 if (sizeof (uint64_t)) 7315 return 0; 7316 ; 7317 return 0; 7318 } 7319 _ACEOF 7320 rm -f conftest.$ac_objext 7321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7322 (eval $ac_compile) 2>conftest.er1 7323 ac_status=$? 7324 grep -v '^ *+' conftest.er1 >conftest.err 7325 rm -f conftest.er1 7326 cat conftest.err >&5 7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7328 (exit $ac_status); } && 7329 { ac_try='test -z "$ac_c_werror_flag" 7330 || test ! -s conftest.err' 7331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7332 (eval $ac_try) 2>&5 7333 ac_status=$? 7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7335 (exit $ac_status); }; } && 7336 { ac_try='test -s conftest.$ac_objext' 7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7338 (eval $ac_try) 2>&5 7339 ac_status=$? 7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7341 (exit $ac_status); }; }; then 7342 ac_cv_type_uint64_t=yes 7343 else 7344 echo "$as_me: failed program was:" >&5 7345 sed 's/^/| /' conftest.$ac_ext >&5 7346 7347 ac_cv_type_uint64_t=no 7348 fi 7349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7350 fi 7351 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 7352 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 7353 if test $ac_cv_type_uint64_t = yes; then 7354 : 7355 else 7356 7357 cat >>confdefs.h <<_ACEOF 7358 #define uint64_t unsigned long 7359 _ACEOF 7360 7361 fi 7362 7363 fi 7364 if test "$dc_cv_name" = "long_long"; then 7365 echo "$as_me:$LINENO: checking for uint64_t" >&5 7366 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 7367 if test "${ac_cv_type_uint64_t+set}" = set; then 7368 echo $ECHO_N "(cached) $ECHO_C" >&6 7369 else 7370 cat >conftest.$ac_ext <<_ACEOF 7371 /* confdefs.h. */ 7372 _ACEOF 7373 cat confdefs.h >>conftest.$ac_ext 7374 cat >>conftest.$ac_ext <<_ACEOF 7375 /* end confdefs.h. */ 7376 $ac_includes_default 7377 int 7378 main () 7379 { 7380 if ((uint64_t *) 0) 7381 return 0; 7382 if (sizeof (uint64_t)) 7383 return 0; 7384 ; 7385 return 0; 7386 } 7387 _ACEOF 7388 rm -f conftest.$ac_objext 7389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7390 (eval $ac_compile) 2>conftest.er1 7391 ac_status=$? 7392 grep -v '^ *+' conftest.er1 >conftest.err 7393 rm -f conftest.er1 7394 cat conftest.err >&5 7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7396 (exit $ac_status); } && 7397 { ac_try='test -z "$ac_c_werror_flag" 7398 || test ! -s conftest.err' 7399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7400 (eval $ac_try) 2>&5 7401 ac_status=$? 7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7403 (exit $ac_status); }; } && 7404 { ac_try='test -s conftest.$ac_objext' 7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7406 (eval $ac_try) 2>&5 7407 ac_status=$? 7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7409 (exit $ac_status); }; }; then 7410 ac_cv_type_uint64_t=yes 7411 else 7412 echo "$as_me: failed program was:" >&5 7413 sed 's/^/| /' conftest.$ac_ext >&5 7414 7415 ac_cv_type_uint64_t=no 7416 fi 7417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7418 fi 7419 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 7420 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 7421 if test $ac_cv_type_uint64_t = yes; then 7422 : 7423 else 7424 7425 cat >>confdefs.h <<_ACEOF 7426 #define uint64_t unsigned long long 7427 _ACEOF 7428 7429 fi 7430 7431 fi 7432 if test "$dc_cv_name" = "short"; then 7433 echo "$as_me:$LINENO: checking for uint64_t" >&5 7434 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 7435 if test "${ac_cv_type_uint64_t+set}" = set; then 7436 echo $ECHO_N "(cached) $ECHO_C" >&6 7437 else 7438 cat >conftest.$ac_ext <<_ACEOF 7439 /* confdefs.h. */ 7440 _ACEOF 7441 cat confdefs.h >>conftest.$ac_ext 7442 cat >>conftest.$ac_ext <<_ACEOF 7443 /* end confdefs.h. */ 7444 $ac_includes_default 7445 int 7446 main () 7447 { 7448 if ((uint64_t *) 0) 7449 return 0; 7450 if (sizeof (uint64_t)) 7451 return 0; 7452 ; 7453 return 0; 7454 } 7455 _ACEOF 7456 rm -f conftest.$ac_objext 7457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7458 (eval $ac_compile) 2>conftest.er1 7459 ac_status=$? 7460 grep -v '^ *+' conftest.er1 >conftest.err 7461 rm -f conftest.er1 7462 cat conftest.err >&5 7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7464 (exit $ac_status); } && 7465 { ac_try='test -z "$ac_c_werror_flag" 7466 || test ! -s conftest.err' 7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7468 (eval $ac_try) 2>&5 7469 ac_status=$? 7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7471 (exit $ac_status); }; } && 7472 { ac_try='test -s conftest.$ac_objext' 7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7474 (eval $ac_try) 2>&5 7475 ac_status=$? 7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7477 (exit $ac_status); }; }; then 7478 ac_cv_type_uint64_t=yes 7479 else 7480 echo "$as_me: failed program was:" >&5 7481 sed 's/^/| /' conftest.$ac_ext >&5 7482 7483 ac_cv_type_uint64_t=no 7484 fi 7485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7486 fi 7487 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 7488 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 7489 if test $ac_cv_type_uint64_t = yes; then 7490 : 7491 else 7492 7493 cat >>confdefs.h <<_ACEOF 7494 #define uint64_t unsigned short 7495 _ACEOF 7496 7497 fi 7498 7499 fi 7500 FOUND=1 7501 break 7502 fi 7503 done 7504 7505 7506 if test -z "$ac_cv_sizeof_long"; then 7507 echo "$as_me:$LINENO: checking for inline" >&5 7508 echo $ECHO_N "checking for inline... $ECHO_C" >&6 7509 if test "${ac_cv_c_inline+set}" = set; then 7510 echo $ECHO_N "(cached) $ECHO_C" >&6 7511 else 7512 ac_cv_c_inline=no 7513 for ac_kw in inline __inline__ __inline; do 7514 cat >conftest.$ac_ext <<_ACEOF 7515 /* confdefs.h. */ 7516 _ACEOF 7517 cat confdefs.h >>conftest.$ac_ext 7518 cat >>conftest.$ac_ext <<_ACEOF 7519 /* end confdefs.h. */ 7520 #ifndef __cplusplus 7521 typedef int foo_t; 7522 static $ac_kw foo_t static_foo () {return 0; } 7523 $ac_kw foo_t foo () {return 0; } 7524 #endif 7525 7526 _ACEOF 7527 rm -f conftest.$ac_objext 7528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7529 (eval $ac_compile) 2>conftest.er1 7530 ac_status=$? 7531 grep -v '^ *+' conftest.er1 >conftest.err 7532 rm -f conftest.er1 7533 cat conftest.err >&5 7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7535 (exit $ac_status); } && 7536 { ac_try='test -z "$ac_c_werror_flag" 7537 || test ! -s conftest.err' 7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7539 (eval $ac_try) 2>&5 7540 ac_status=$? 7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7542 (exit $ac_status); }; } && 7543 { ac_try='test -s conftest.$ac_objext' 7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7545 (eval $ac_try) 2>&5 7546 ac_status=$? 7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7548 (exit $ac_status); }; }; then 7549 ac_cv_c_inline=$ac_kw; break 7550 else 7551 echo "$as_me: failed program was:" >&5 7552 sed 's/^/| /' conftest.$ac_ext >&5 7553 7554 fi 7555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7556 done 7557 7558 fi 7559 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 7560 echo "${ECHO_T}$ac_cv_c_inline" >&6 7561 7562 7563 case $ac_cv_c_inline in 7564 inline | yes) ;; 7565 *) 7566 case $ac_cv_c_inline in 7567 no) ac_val=;; 7568 *) ac_val=$ac_cv_c_inline;; 7569 esac 7570 cat >>confdefs.h <<_ACEOF 7571 #ifndef __cplusplus 7572 #define inline $ac_val 7573 #endif 7574 _ACEOF 7575 ;; 7576 esac 7577 7578 echo "$as_me:$LINENO: checking for long long" >&5 7579 echo $ECHO_N "checking for long long... $ECHO_C" >&6 7580 if test "${ac_cv_type_long_long+set}" = set; then 7581 echo $ECHO_N "(cached) $ECHO_C" >&6 7582 else 7583 cat >conftest.$ac_ext <<_ACEOF 7584 /* confdefs.h. */ 7585 _ACEOF 7586 cat confdefs.h >>conftest.$ac_ext 7587 cat >>conftest.$ac_ext <<_ACEOF 7588 /* end confdefs.h. */ 7589 $ac_includes_default 7590 int 7591 main () 7592 { 7593 if ((long long *) 0) 7594 return 0; 7595 if (sizeof (long long)) 7596 return 0; 7597 ; 7598 return 0; 7599 } 7600 _ACEOF 7601 rm -f conftest.$ac_objext 7602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7603 (eval $ac_compile) 2>conftest.er1 7604 ac_status=$? 7605 grep -v '^ *+' conftest.er1 >conftest.err 7606 rm -f conftest.er1 7607 cat conftest.err >&5 7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7609 (exit $ac_status); } && 7610 { ac_try='test -z "$ac_c_werror_flag" 7611 || test ! -s conftest.err' 7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7613 (eval $ac_try) 2>&5 7614 ac_status=$? 7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7616 (exit $ac_status); }; } && 7617 { ac_try='test -s conftest.$ac_objext' 7618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7619 (eval $ac_try) 2>&5 7620 ac_status=$? 7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7622 (exit $ac_status); }; }; then 7623 ac_cv_type_long_long=yes 7624 else 7625 echo "$as_me: failed program was:" >&5 7626 sed 's/^/| /' conftest.$ac_ext >&5 7627 7628 ac_cv_type_long_long=no 7629 fi 7630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7631 fi 7632 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 7633 echo "${ECHO_T}$ac_cv_type_long_long" >&6 7634 7635 echo "$as_me:$LINENO: checking size of long long" >&5 7636 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 7637 if test "${ac_cv_sizeof_long_long+set}" = set; then 7638 echo $ECHO_N "(cached) $ECHO_C" >&6 7639 else 7640 if test "$ac_cv_type_long_long" = yes; then 7641 # The cast to unsigned long works around a bug in the HP C Compiler 7642 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7643 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7644 # This bug is HP SR number 8606223364. 7645 if test "$cross_compiling" = yes; then 7646 # Depending upon the size, compute the lo and hi bounds. 7647 cat >conftest.$ac_ext <<_ACEOF 7648 /* confdefs.h. */ 7649 _ACEOF 7650 cat confdefs.h >>conftest.$ac_ext 7651 cat >>conftest.$ac_ext <<_ACEOF 7652 /* end confdefs.h. */ 7653 $ac_includes_default 7654 int 7655 main () 7656 { 7657 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 7658 test_array [0] = 0 7659 7660 ; 7661 return 0; 7662 } 7663 _ACEOF 7664 rm -f conftest.$ac_objext 7665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7666 (eval $ac_compile) 2>conftest.er1 7667 ac_status=$? 7668 grep -v '^ *+' conftest.er1 >conftest.err 7669 rm -f conftest.er1 7670 cat conftest.err >&5 7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7672 (exit $ac_status); } && 7673 { ac_try='test -z "$ac_c_werror_flag" 7674 || test ! -s conftest.err' 7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7676 (eval $ac_try) 2>&5 7677 ac_status=$? 7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7679 (exit $ac_status); }; } && 7680 { ac_try='test -s conftest.$ac_objext' 7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7682 (eval $ac_try) 2>&5 7683 ac_status=$? 7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7685 (exit $ac_status); }; }; then 7686 ac_lo=0 ac_mid=0 7687 while :; do 7688 cat >conftest.$ac_ext <<_ACEOF 7689 /* confdefs.h. */ 7690 _ACEOF 7691 cat confdefs.h >>conftest.$ac_ext 7692 cat >>conftest.$ac_ext <<_ACEOF 7693 /* end confdefs.h. */ 7694 $ac_includes_default 7695 int 7696 main () 7697 { 7698 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 7699 test_array [0] = 0 7700 7701 ; 7702 return 0; 7703 } 7704 _ACEOF 7705 rm -f conftest.$ac_objext 7706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7707 (eval $ac_compile) 2>conftest.er1 7708 ac_status=$? 7709 grep -v '^ *+' conftest.er1 >conftest.err 7710 rm -f conftest.er1 7711 cat conftest.err >&5 7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7713 (exit $ac_status); } && 7714 { ac_try='test -z "$ac_c_werror_flag" 7715 || test ! -s conftest.err' 7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7717 (eval $ac_try) 2>&5 7718 ac_status=$? 7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7720 (exit $ac_status); }; } && 7721 { ac_try='test -s conftest.$ac_objext' 7722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7723 (eval $ac_try) 2>&5 7724 ac_status=$? 7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7726 (exit $ac_status); }; }; then 7727 ac_hi=$ac_mid; break 7728 else 7729 echo "$as_me: failed program was:" >&5 7730 sed 's/^/| /' conftest.$ac_ext >&5 7731 7732 ac_lo=`expr $ac_mid + 1` 7733 if test $ac_lo -le $ac_mid; then 7734 ac_lo= ac_hi= 7735 break 7736 fi 7737 ac_mid=`expr 2 '*' $ac_mid + 1` 7738 fi 7739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7740 done 7741 else 7742 echo "$as_me: failed program was:" >&5 7743 sed 's/^/| /' conftest.$ac_ext >&5 7744 7745 cat >conftest.$ac_ext <<_ACEOF 7746 /* confdefs.h. */ 7747 _ACEOF 7748 cat confdefs.h >>conftest.$ac_ext 7749 cat >>conftest.$ac_ext <<_ACEOF 7750 /* end confdefs.h. */ 7751 $ac_includes_default 7752 int 7753 main () 7754 { 7755 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 7756 test_array [0] = 0 7757 7758 ; 7759 return 0; 7760 } 7761 _ACEOF 7762 rm -f conftest.$ac_objext 7763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7764 (eval $ac_compile) 2>conftest.er1 7765 ac_status=$? 7766 grep -v '^ *+' conftest.er1 >conftest.err 7767 rm -f conftest.er1 7768 cat conftest.err >&5 7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7770 (exit $ac_status); } && 7771 { ac_try='test -z "$ac_c_werror_flag" 7772 || test ! -s conftest.err' 7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7774 (eval $ac_try) 2>&5 7775 ac_status=$? 7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7777 (exit $ac_status); }; } && 7778 { ac_try='test -s conftest.$ac_objext' 7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7780 (eval $ac_try) 2>&5 7781 ac_status=$? 7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7783 (exit $ac_status); }; }; then 7784 ac_hi=-1 ac_mid=-1 7785 while :; do 7786 cat >conftest.$ac_ext <<_ACEOF 7787 /* confdefs.h. */ 7788 _ACEOF 7789 cat confdefs.h >>conftest.$ac_ext 7790 cat >>conftest.$ac_ext <<_ACEOF 7791 /* end confdefs.h. */ 7792 $ac_includes_default 7793 int 7794 main () 7795 { 7796 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 7797 test_array [0] = 0 7798 7799 ; 7800 return 0; 7801 } 7802 _ACEOF 7803 rm -f conftest.$ac_objext 7804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7805 (eval $ac_compile) 2>conftest.er1 7806 ac_status=$? 7807 grep -v '^ *+' conftest.er1 >conftest.err 7808 rm -f conftest.er1 7809 cat conftest.err >&5 7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7811 (exit $ac_status); } && 7812 { ac_try='test -z "$ac_c_werror_flag" 7813 || test ! -s conftest.err' 7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7815 (eval $ac_try) 2>&5 7816 ac_status=$? 7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7818 (exit $ac_status); }; } && 7819 { ac_try='test -s conftest.$ac_objext' 7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7821 (eval $ac_try) 2>&5 7822 ac_status=$? 7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7824 (exit $ac_status); }; }; then 7825 ac_lo=$ac_mid; break 7826 else 7827 echo "$as_me: failed program was:" >&5 7828 sed 's/^/| /' conftest.$ac_ext >&5 7829 7830 ac_hi=`expr '(' $ac_mid ')' - 1` 7831 if test $ac_mid -le $ac_hi; then 7832 ac_lo= ac_hi= 7833 break 7834 fi 7835 ac_mid=`expr 2 '*' $ac_mid` 7836 fi 7837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7838 done 7839 else 7840 echo "$as_me: failed program was:" >&5 7841 sed 's/^/| /' conftest.$ac_ext >&5 7842 7843 ac_lo= ac_hi= 7844 fi 7845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7846 fi 7847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7848 # Binary search between lo and hi bounds. 7849 while test "x$ac_lo" != "x$ac_hi"; do 7850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7851 cat >conftest.$ac_ext <<_ACEOF 7852 /* confdefs.h. */ 7853 _ACEOF 7854 cat confdefs.h >>conftest.$ac_ext 7855 cat >>conftest.$ac_ext <<_ACEOF 7856 /* end confdefs.h. */ 7857 $ac_includes_default 7858 int 7859 main () 7860 { 7861 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 7862 test_array [0] = 0 7863 7864 ; 7865 return 0; 7866 } 7867 _ACEOF 7868 rm -f conftest.$ac_objext 7869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7870 (eval $ac_compile) 2>conftest.er1 7871 ac_status=$? 7872 grep -v '^ *+' conftest.er1 >conftest.err 7873 rm -f conftest.er1 7874 cat conftest.err >&5 7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7876 (exit $ac_status); } && 7877 { ac_try='test -z "$ac_c_werror_flag" 7878 || test ! -s conftest.err' 7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7880 (eval $ac_try) 2>&5 7881 ac_status=$? 7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7883 (exit $ac_status); }; } && 7884 { ac_try='test -s conftest.$ac_objext' 7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7886 (eval $ac_try) 2>&5 7887 ac_status=$? 7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7889 (exit $ac_status); }; }; then 7890 ac_hi=$ac_mid 7891 else 7892 echo "$as_me: failed program was:" >&5 7893 sed 's/^/| /' conftest.$ac_ext >&5 7894 7895 ac_lo=`expr '(' $ac_mid ')' + 1` 7896 fi 7897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7898 done 7899 case $ac_lo in 7900 ?*) ac_cv_sizeof_long_long=$ac_lo;; 7901 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 7902 See \`config.log' for more details." >&5 7903 echo "$as_me: error: cannot compute sizeof (long long), 77 7904 See \`config.log' for more details." >&2;} 7905 { (exit 1); exit 1; }; } ;; 7906 esac 7907 else 7908 if test "$cross_compiling" = yes; then 7909 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7910 See \`config.log' for more details." >&5 7911 echo "$as_me: error: cannot run test program while cross compiling 7912 See \`config.log' for more details." >&2;} 7913 { (exit 1); exit 1; }; } 7914 else 7915 cat >conftest.$ac_ext <<_ACEOF 7916 /* confdefs.h. */ 7917 _ACEOF 7918 cat confdefs.h >>conftest.$ac_ext 7919 cat >>conftest.$ac_ext <<_ACEOF 7920 /* end confdefs.h. */ 7921 $ac_includes_default 7922 long longval () { return (long) (sizeof (long long)); } 7923 unsigned long ulongval () { return (long) (sizeof (long long)); } 7924 #include <stdio.h> 7925 #include <stdlib.h> 7926 int 7927 main () 7928 { 7929 7930 FILE *f = fopen ("conftest.val", "w"); 7931 if (! f) 7932 exit (1); 7933 if (((long) (sizeof (long long))) < 0) 7934 { 7935 long i = longval (); 7936 if (i != ((long) (sizeof (long long)))) 7937 exit (1); 7938 fprintf (f, "%ld\n", i); 7939 } 7940 else 7941 { 7942 unsigned long i = ulongval (); 7943 if (i != ((long) (sizeof (long long)))) 7944 exit (1); 7945 fprintf (f, "%lu\n", i); 7946 } 7947 exit (ferror (f) || fclose (f) != 0); 7948 7949 ; 7950 return 0; 7951 } 7952 _ACEOF 7953 rm -f conftest$ac_exeext 7954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7955 (eval $ac_link) 2>&5 7956 ac_status=$? 7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7960 (eval $ac_try) 2>&5 7961 ac_status=$? 7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7963 (exit $ac_status); }; }; then 7964 ac_cv_sizeof_long_long=`cat conftest.val` 7965 else 7966 echo "$as_me: program exited with status $ac_status" >&5 7967 echo "$as_me: failed program was:" >&5 7968 sed 's/^/| /' conftest.$ac_ext >&5 7969 7970 ( exit $ac_status ) 7971 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 7972 See \`config.log' for more details." >&5 7973 echo "$as_me: error: cannot compute sizeof (long long), 77 7974 See \`config.log' for more details." >&2;} 7975 { (exit 1); exit 1; }; } 7976 fi 7977 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7978 fi 7979 fi 7980 rm -f conftest.val 7981 else 7982 ac_cv_sizeof_long_long=0 7983 fi 7984 fi 7985 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 7986 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 7987 cat >>confdefs.h <<_ACEOF 7988 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 7989 _ACEOF 7990 7991 7992 echo "$as_me:$LINENO: checking for long" >&5 7993 echo $ECHO_N "checking for long... $ECHO_C" >&6 7994 if test "${ac_cv_type_long+set}" = set; then 7995 echo $ECHO_N "(cached) $ECHO_C" >&6 7996 else 7997 cat >conftest.$ac_ext <<_ACEOF 7998 /* confdefs.h. */ 7999 _ACEOF 8000 cat confdefs.h >>conftest.$ac_ext 8001 cat >>conftest.$ac_ext <<_ACEOF 8002 /* end confdefs.h. */ 8003 $ac_includes_default 8004 int 8005 main () 8006 { 8007 if ((long *) 0) 8008 return 0; 8009 if (sizeof (long)) 8010 return 0; 8011 ; 8012 return 0; 8013 } 8014 _ACEOF 8015 rm -f conftest.$ac_objext 8016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8017 (eval $ac_compile) 2>conftest.er1 8018 ac_status=$? 8019 grep -v '^ *+' conftest.er1 >conftest.err 8020 rm -f conftest.er1 8021 cat conftest.err >&5 8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8023 (exit $ac_status); } && 8024 { ac_try='test -z "$ac_c_werror_flag" 8025 || test ! -s conftest.err' 8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8027 (eval $ac_try) 2>&5 8028 ac_status=$? 8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8030 (exit $ac_status); }; } && 8031 { ac_try='test -s conftest.$ac_objext' 8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8033 (eval $ac_try) 2>&5 8034 ac_status=$? 8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8036 (exit $ac_status); }; }; then 8037 ac_cv_type_long=yes 8038 else 8039 echo "$as_me: failed program was:" >&5 8040 sed 's/^/| /' conftest.$ac_ext >&5 8041 8042 ac_cv_type_long=no 8043 fi 8044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8045 fi 8046 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 8047 echo "${ECHO_T}$ac_cv_type_long" >&6 8048 8049 echo "$as_me:$LINENO: checking size of long" >&5 8050 echo $ECHO_N "checking size of long... $ECHO_C" >&6 8051 if test "${ac_cv_sizeof_long+set}" = set; then 8052 echo $ECHO_N "(cached) $ECHO_C" >&6 8053 else 8054 if test "$ac_cv_type_long" = yes; then 8055 # The cast to unsigned long works around a bug in the HP C Compiler 8056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8058 # This bug is HP SR number 8606223364. 8059 if test "$cross_compiling" = yes; then 8060 # Depending upon the size, compute the lo and hi bounds. 8061 cat >conftest.$ac_ext <<_ACEOF 8062 /* confdefs.h. */ 8063 _ACEOF 8064 cat confdefs.h >>conftest.$ac_ext 8065 cat >>conftest.$ac_ext <<_ACEOF 8066 /* end confdefs.h. */ 8067 $ac_includes_default 8068 int 8069 main () 8070 { 8071 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 8072 test_array [0] = 0 8073 8074 ; 8075 return 0; 8076 } 8077 _ACEOF 8078 rm -f conftest.$ac_objext 8079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8080 (eval $ac_compile) 2>conftest.er1 8081 ac_status=$? 8082 grep -v '^ *+' conftest.er1 >conftest.err 8083 rm -f conftest.er1 8084 cat conftest.err >&5 8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8086 (exit $ac_status); } && 8087 { ac_try='test -z "$ac_c_werror_flag" 8088 || test ! -s conftest.err' 8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8090 (eval $ac_try) 2>&5 8091 ac_status=$? 8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8093 (exit $ac_status); }; } && 8094 { ac_try='test -s conftest.$ac_objext' 8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8096 (eval $ac_try) 2>&5 8097 ac_status=$? 8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8099 (exit $ac_status); }; }; then 8100 ac_lo=0 ac_mid=0 8101 while :; do 8102 cat >conftest.$ac_ext <<_ACEOF 8103 /* confdefs.h. */ 8104 _ACEOF 8105 cat confdefs.h >>conftest.$ac_ext 8106 cat >>conftest.$ac_ext <<_ACEOF 8107 /* end confdefs.h. */ 8108 $ac_includes_default 8109 int 8110 main () 8111 { 8112 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 8113 test_array [0] = 0 8114 8115 ; 8116 return 0; 8117 } 8118 _ACEOF 8119 rm -f conftest.$ac_objext 8120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8121 (eval $ac_compile) 2>conftest.er1 8122 ac_status=$? 8123 grep -v '^ *+' conftest.er1 >conftest.err 8124 rm -f conftest.er1 8125 cat conftest.err >&5 8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8127 (exit $ac_status); } && 8128 { ac_try='test -z "$ac_c_werror_flag" 8129 || test ! -s conftest.err' 8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8131 (eval $ac_try) 2>&5 8132 ac_status=$? 8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8134 (exit $ac_status); }; } && 8135 { ac_try='test -s conftest.$ac_objext' 8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8137 (eval $ac_try) 2>&5 8138 ac_status=$? 8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8140 (exit $ac_status); }; }; then 8141 ac_hi=$ac_mid; break 8142 else 8143 echo "$as_me: failed program was:" >&5 8144 sed 's/^/| /' conftest.$ac_ext >&5 8145 8146 ac_lo=`expr $ac_mid + 1` 8147 if test $ac_lo -le $ac_mid; then 8148 ac_lo= ac_hi= 8149 break 8150 fi 8151 ac_mid=`expr 2 '*' $ac_mid + 1` 8152 fi 8153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8154 done 8155 else 8156 echo "$as_me: failed program was:" >&5 8157 sed 's/^/| /' conftest.$ac_ext >&5 8158 8159 cat >conftest.$ac_ext <<_ACEOF 8160 /* confdefs.h. */ 8161 _ACEOF 8162 cat confdefs.h >>conftest.$ac_ext 8163 cat >>conftest.$ac_ext <<_ACEOF 8164 /* end confdefs.h. */ 8165 $ac_includes_default 8166 int 8167 main () 8168 { 8169 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 8170 test_array [0] = 0 8171 8172 ; 8173 return 0; 8174 } 8175 _ACEOF 8176 rm -f conftest.$ac_objext 8177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8178 (eval $ac_compile) 2>conftest.er1 8179 ac_status=$? 8180 grep -v '^ *+' conftest.er1 >conftest.err 8181 rm -f conftest.er1 8182 cat conftest.err >&5 8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8184 (exit $ac_status); } && 8185 { ac_try='test -z "$ac_c_werror_flag" 8186 || test ! -s conftest.err' 8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8188 (eval $ac_try) 2>&5 8189 ac_status=$? 8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8191 (exit $ac_status); }; } && 8192 { ac_try='test -s conftest.$ac_objext' 8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8194 (eval $ac_try) 2>&5 8195 ac_status=$? 8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8197 (exit $ac_status); }; }; then 8198 ac_hi=-1 ac_mid=-1 8199 while :; do 8200 cat >conftest.$ac_ext <<_ACEOF 8201 /* confdefs.h. */ 8202 _ACEOF 8203 cat confdefs.h >>conftest.$ac_ext 8204 cat >>conftest.$ac_ext <<_ACEOF 8205 /* end confdefs.h. */ 8206 $ac_includes_default 8207 int 8208 main () 8209 { 8210 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 8211 test_array [0] = 0 8212 8213 ; 8214 return 0; 8215 } 8216 _ACEOF 8217 rm -f conftest.$ac_objext 8218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8219 (eval $ac_compile) 2>conftest.er1 8220 ac_status=$? 8221 grep -v '^ *+' conftest.er1 >conftest.err 8222 rm -f conftest.er1 8223 cat conftest.err >&5 8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8225 (exit $ac_status); } && 8226 { ac_try='test -z "$ac_c_werror_flag" 8227 || test ! -s conftest.err' 8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8229 (eval $ac_try) 2>&5 8230 ac_status=$? 8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8232 (exit $ac_status); }; } && 8233 { ac_try='test -s conftest.$ac_objext' 8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8235 (eval $ac_try) 2>&5 8236 ac_status=$? 8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8238 (exit $ac_status); }; }; then 8239 ac_lo=$ac_mid; break 8240 else 8241 echo "$as_me: failed program was:" >&5 8242 sed 's/^/| /' conftest.$ac_ext >&5 8243 8244 ac_hi=`expr '(' $ac_mid ')' - 1` 8245 if test $ac_mid -le $ac_hi; then 8246 ac_lo= ac_hi= 8247 break 8248 fi 8249 ac_mid=`expr 2 '*' $ac_mid` 8250 fi 8251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8252 done 8253 else 8254 echo "$as_me: failed program was:" >&5 8255 sed 's/^/| /' conftest.$ac_ext >&5 8256 8257 ac_lo= ac_hi= 8258 fi 8259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8260 fi 8261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8262 # Binary search between lo and hi bounds. 8263 while test "x$ac_lo" != "x$ac_hi"; do 8264 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8265 cat >conftest.$ac_ext <<_ACEOF 8266 /* confdefs.h. */ 8267 _ACEOF 8268 cat confdefs.h >>conftest.$ac_ext 8269 cat >>conftest.$ac_ext <<_ACEOF 8270 /* end confdefs.h. */ 8271 $ac_includes_default 8272 int 8273 main () 8274 { 8275 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 8276 test_array [0] = 0 8277 8278 ; 8279 return 0; 8280 } 8281 _ACEOF 8282 rm -f conftest.$ac_objext 8283 if { (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_hi=$ac_mid 8305 else 8306 echo "$as_me: failed program was:" >&5 8307 sed 's/^/| /' conftest.$ac_ext >&5 8308 8309 ac_lo=`expr '(' $ac_mid ')' + 1` 8310 fi 8311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8312 done 8313 case $ac_lo in 8314 ?*) ac_cv_sizeof_long=$ac_lo;; 8315 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 8316 See \`config.log' for more details." >&5 8317 echo "$as_me: error: cannot compute sizeof (long), 77 8318 See \`config.log' for more details." >&2;} 8319 { (exit 1); exit 1; }; } ;; 8320 esac 8321 else 8322 if test "$cross_compiling" = yes; then 8323 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8324 See \`config.log' for more details." >&5 8325 echo "$as_me: error: cannot run test program while cross compiling 8326 See \`config.log' for more details." >&2;} 8327 { (exit 1); exit 1; }; } 8328 else 8329 cat >conftest.$ac_ext <<_ACEOF 8330 /* confdefs.h. */ 8331 _ACEOF 8332 cat confdefs.h >>conftest.$ac_ext 8333 cat >>conftest.$ac_ext <<_ACEOF 8334 /* end confdefs.h. */ 8335 $ac_includes_default 8336 long longval () { return (long) (sizeof (long)); } 8337 unsigned long ulongval () { return (long) (sizeof (long)); } 8338 #include <stdio.h> 8339 #include <stdlib.h> 8340 int 8341 main () 8342 { 8343 8344 FILE *f = fopen ("conftest.val", "w"); 8345 if (! f) 8346 exit (1); 8347 if (((long) (sizeof (long))) < 0) 8348 { 8349 long i = longval (); 8350 if (i != ((long) (sizeof (long)))) 8351 exit (1); 8352 fprintf (f, "%ld\n", i); 8353 } 8354 else 8355 { 8356 unsigned long i = ulongval (); 8357 if (i != ((long) (sizeof (long)))) 8358 exit (1); 8359 fprintf (f, "%lu\n", i); 8360 } 8361 exit (ferror (f) || fclose (f) != 0); 8362 8363 ; 8364 return 0; 8365 } 8366 _ACEOF 8367 rm -f conftest$ac_exeext 8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8369 (eval $ac_link) 2>&5 8370 ac_status=$? 8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8374 (eval $ac_try) 2>&5 8375 ac_status=$? 8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8377 (exit $ac_status); }; }; then 8378 ac_cv_sizeof_long=`cat conftest.val` 8379 else 8380 echo "$as_me: program exited with status $ac_status" >&5 8381 echo "$as_me: failed program was:" >&5 8382 sed 's/^/| /' conftest.$ac_ext >&5 8383 8384 ( exit $ac_status ) 8385 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 8386 See \`config.log' for more details." >&5 8387 echo "$as_me: error: cannot compute sizeof (long), 77 8388 See \`config.log' for more details." >&2;} 8389 { (exit 1); exit 1; }; } 8390 fi 8391 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8392 fi 8393 fi 8394 rm -f conftest.val 8395 else 8396 ac_cv_sizeof_long=0 8397 fi 8398 fi 8399 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 8400 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 8401 cat >>confdefs.h <<_ACEOF 8402 #define SIZEOF_LONG $ac_cv_sizeof_long 8403 _ACEOF 8404 8405 8406 echo "$as_me:$LINENO: checking for int" >&5 8407 echo $ECHO_N "checking for int... $ECHO_C" >&6 8408 if test "${ac_cv_type_int+set}" = set; then 8409 echo $ECHO_N "(cached) $ECHO_C" >&6 8410 else 8411 cat >conftest.$ac_ext <<_ACEOF 8412 /* confdefs.h. */ 8413 _ACEOF 8414 cat confdefs.h >>conftest.$ac_ext 8415 cat >>conftest.$ac_ext <<_ACEOF 8416 /* end confdefs.h. */ 8417 $ac_includes_default 8418 int 8419 main () 8420 { 8421 if ((int *) 0) 8422 return 0; 8423 if (sizeof (int)) 8424 return 0; 8425 ; 8426 return 0; 8427 } 8428 _ACEOF 8429 rm -f conftest.$ac_objext 8430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8431 (eval $ac_compile) 2>conftest.er1 8432 ac_status=$? 8433 grep -v '^ *+' conftest.er1 >conftest.err 8434 rm -f conftest.er1 8435 cat conftest.err >&5 8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8437 (exit $ac_status); } && 8438 { ac_try='test -z "$ac_c_werror_flag" 8439 || test ! -s conftest.err' 8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8441 (eval $ac_try) 2>&5 8442 ac_status=$? 8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8444 (exit $ac_status); }; } && 8445 { ac_try='test -s conftest.$ac_objext' 8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8447 (eval $ac_try) 2>&5 8448 ac_status=$? 8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8450 (exit $ac_status); }; }; then 8451 ac_cv_type_int=yes 8452 else 8453 echo "$as_me: failed program was:" >&5 8454 sed 's/^/| /' conftest.$ac_ext >&5 8455 8456 ac_cv_type_int=no 8457 fi 8458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8459 fi 8460 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 8461 echo "${ECHO_T}$ac_cv_type_int" >&6 8462 8463 echo "$as_me:$LINENO: checking size of int" >&5 8464 echo $ECHO_N "checking size of int... $ECHO_C" >&6 8465 if test "${ac_cv_sizeof_int+set}" = set; then 8466 echo $ECHO_N "(cached) $ECHO_C" >&6 8467 else 8468 if test "$ac_cv_type_int" = yes; then 8469 # The cast to unsigned long works around a bug in the HP C Compiler 8470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8472 # This bug is HP SR number 8606223364. 8473 if test "$cross_compiling" = yes; then 8474 # Depending upon the size, compute the lo and hi bounds. 8475 cat >conftest.$ac_ext <<_ACEOF 8476 /* confdefs.h. */ 8477 _ACEOF 8478 cat confdefs.h >>conftest.$ac_ext 8479 cat >>conftest.$ac_ext <<_ACEOF 8480 /* end confdefs.h. */ 8481 $ac_includes_default 8482 int 8483 main () 8484 { 8485 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 8486 test_array [0] = 0 8487 8488 ; 8489 return 0; 8490 } 8491 _ACEOF 8492 rm -f conftest.$ac_objext 8493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8494 (eval $ac_compile) 2>conftest.er1 8495 ac_status=$? 8496 grep -v '^ *+' conftest.er1 >conftest.err 8497 rm -f conftest.er1 8498 cat conftest.err >&5 8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8500 (exit $ac_status); } && 8501 { ac_try='test -z "$ac_c_werror_flag" 8502 || test ! -s conftest.err' 8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8504 (eval $ac_try) 2>&5 8505 ac_status=$? 8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8507 (exit $ac_status); }; } && 8508 { ac_try='test -s conftest.$ac_objext' 8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8510 (eval $ac_try) 2>&5 8511 ac_status=$? 8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8513 (exit $ac_status); }; }; then 8514 ac_lo=0 ac_mid=0 8515 while :; do 8516 cat >conftest.$ac_ext <<_ACEOF 8517 /* confdefs.h. */ 8518 _ACEOF 8519 cat confdefs.h >>conftest.$ac_ext 8520 cat >>conftest.$ac_ext <<_ACEOF 8521 /* end confdefs.h. */ 8522 $ac_includes_default 8523 int 8524 main () 8525 { 8526 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 8527 test_array [0] = 0 8528 8529 ; 8530 return 0; 8531 } 8532 _ACEOF 8533 rm -f conftest.$ac_objext 8534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8535 (eval $ac_compile) 2>conftest.er1 8536 ac_status=$? 8537 grep -v '^ *+' conftest.er1 >conftest.err 8538 rm -f conftest.er1 8539 cat conftest.err >&5 8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8541 (exit $ac_status); } && 8542 { ac_try='test -z "$ac_c_werror_flag" 8543 || test ! -s conftest.err' 8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8545 (eval $ac_try) 2>&5 8546 ac_status=$? 8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8548 (exit $ac_status); }; } && 8549 { ac_try='test -s conftest.$ac_objext' 8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8551 (eval $ac_try) 2>&5 8552 ac_status=$? 8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8554 (exit $ac_status); }; }; then 8555 ac_hi=$ac_mid; break 8556 else 8557 echo "$as_me: failed program was:" >&5 8558 sed 's/^/| /' conftest.$ac_ext >&5 8559 8560 ac_lo=`expr $ac_mid + 1` 8561 if test $ac_lo -le $ac_mid; then 8562 ac_lo= ac_hi= 8563 break 8564 fi 8565 ac_mid=`expr 2 '*' $ac_mid + 1` 8566 fi 8567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8568 done 8569 else 8570 echo "$as_me: failed program was:" >&5 8571 sed 's/^/| /' conftest.$ac_ext >&5 8572 8573 cat >conftest.$ac_ext <<_ACEOF 8574 /* confdefs.h. */ 8575 _ACEOF 8576 cat confdefs.h >>conftest.$ac_ext 8577 cat >>conftest.$ac_ext <<_ACEOF 8578 /* end confdefs.h. */ 8579 $ac_includes_default 8580 int 8581 main () 8582 { 8583 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 8584 test_array [0] = 0 8585 8586 ; 8587 return 0; 8588 } 8589 _ACEOF 8590 rm -f conftest.$ac_objext 8591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8592 (eval $ac_compile) 2>conftest.er1 8593 ac_status=$? 8594 grep -v '^ *+' conftest.er1 >conftest.err 8595 rm -f conftest.er1 8596 cat conftest.err >&5 8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8598 (exit $ac_status); } && 8599 { ac_try='test -z "$ac_c_werror_flag" 8600 || test ! -s conftest.err' 8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8602 (eval $ac_try) 2>&5 8603 ac_status=$? 8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8605 (exit $ac_status); }; } && 8606 { ac_try='test -s conftest.$ac_objext' 8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8608 (eval $ac_try) 2>&5 8609 ac_status=$? 8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8611 (exit $ac_status); }; }; then 8612 ac_hi=-1 ac_mid=-1 8613 while :; do 8614 cat >conftest.$ac_ext <<_ACEOF 8615 /* confdefs.h. */ 8616 _ACEOF 8617 cat confdefs.h >>conftest.$ac_ext 8618 cat >>conftest.$ac_ext <<_ACEOF 8619 /* end confdefs.h. */ 8620 $ac_includes_default 8621 int 8622 main () 8623 { 8624 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 8625 test_array [0] = 0 8626 8627 ; 8628 return 0; 8629 } 8630 _ACEOF 8631 rm -f conftest.$ac_objext 8632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8633 (eval $ac_compile) 2>conftest.er1 8634 ac_status=$? 8635 grep -v '^ *+' conftest.er1 >conftest.err 8636 rm -f conftest.er1 8637 cat conftest.err >&5 8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8639 (exit $ac_status); } && 8640 { ac_try='test -z "$ac_c_werror_flag" 8641 || test ! -s conftest.err' 8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8643 (eval $ac_try) 2>&5 8644 ac_status=$? 8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8646 (exit $ac_status); }; } && 8647 { ac_try='test -s conftest.$ac_objext' 8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8649 (eval $ac_try) 2>&5 8650 ac_status=$? 8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8652 (exit $ac_status); }; }; then 8653 ac_lo=$ac_mid; break 8654 else 8655 echo "$as_me: failed program was:" >&5 8656 sed 's/^/| /' conftest.$ac_ext >&5 8657 8658 ac_hi=`expr '(' $ac_mid ')' - 1` 8659 if test $ac_mid -le $ac_hi; then 8660 ac_lo= ac_hi= 8661 break 8662 fi 8663 ac_mid=`expr 2 '*' $ac_mid` 8664 fi 8665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8666 done 8667 else 8668 echo "$as_me: failed program was:" >&5 8669 sed 's/^/| /' conftest.$ac_ext >&5 8670 8671 ac_lo= ac_hi= 8672 fi 8673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8674 fi 8675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8676 # Binary search between lo and hi bounds. 8677 while test "x$ac_lo" != "x$ac_hi"; do 8678 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8679 cat >conftest.$ac_ext <<_ACEOF 8680 /* confdefs.h. */ 8681 _ACEOF 8682 cat confdefs.h >>conftest.$ac_ext 8683 cat >>conftest.$ac_ext <<_ACEOF 8684 /* end confdefs.h. */ 8685 $ac_includes_default 8686 int 8687 main () 8688 { 8689 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 8690 test_array [0] = 0 8691 8692 ; 8693 return 0; 8694 } 8695 _ACEOF 8696 rm -f conftest.$ac_objext 8697 if { (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_hi=$ac_mid 8719 else 8720 echo "$as_me: failed program was:" >&5 8721 sed 's/^/| /' conftest.$ac_ext >&5 8722 8723 ac_lo=`expr '(' $ac_mid ')' + 1` 8724 fi 8725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8726 done 8727 case $ac_lo in 8728 ?*) ac_cv_sizeof_int=$ac_lo;; 8729 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 8730 See \`config.log' for more details." >&5 8731 echo "$as_me: error: cannot compute sizeof (int), 77 8732 See \`config.log' for more details." >&2;} 8733 { (exit 1); exit 1; }; } ;; 8734 esac 8735 else 8736 if test "$cross_compiling" = yes; then 8737 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8738 See \`config.log' for more details." >&5 8739 echo "$as_me: error: cannot run test program while cross compiling 8740 See \`config.log' for more details." >&2;} 8741 { (exit 1); exit 1; }; } 8742 else 8743 cat >conftest.$ac_ext <<_ACEOF 8744 /* confdefs.h. */ 8745 _ACEOF 8746 cat confdefs.h >>conftest.$ac_ext 8747 cat >>conftest.$ac_ext <<_ACEOF 8748 /* end confdefs.h. */ 8749 $ac_includes_default 8750 long longval () { return (long) (sizeof (int)); } 8751 unsigned long ulongval () { return (long) (sizeof (int)); } 8752 #include <stdio.h> 8753 #include <stdlib.h> 8754 int 8755 main () 8756 { 8757 8758 FILE *f = fopen ("conftest.val", "w"); 8759 if (! f) 8760 exit (1); 8761 if (((long) (sizeof (int))) < 0) 8762 { 8763 long i = longval (); 8764 if (i != ((long) (sizeof (int)))) 8765 exit (1); 8766 fprintf (f, "%ld\n", i); 8767 } 8768 else 8769 { 8770 unsigned long i = ulongval (); 8771 if (i != ((long) (sizeof (int)))) 8772 exit (1); 8773 fprintf (f, "%lu\n", i); 8774 } 8775 exit (ferror (f) || fclose (f) != 0); 8776 8777 ; 8778 return 0; 8779 } 8780 _ACEOF 8781 rm -f conftest$ac_exeext 8782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8783 (eval $ac_link) 2>&5 8784 ac_status=$? 8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8788 (eval $ac_try) 2>&5 8789 ac_status=$? 8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8791 (exit $ac_status); }; }; then 8792 ac_cv_sizeof_int=`cat conftest.val` 8793 else 8794 echo "$as_me: program exited with status $ac_status" >&5 8795 echo "$as_me: failed program was:" >&5 8796 sed 's/^/| /' conftest.$ac_ext >&5 8797 8798 ( exit $ac_status ) 8799 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 8800 See \`config.log' for more details." >&5 8801 echo "$as_me: error: cannot compute sizeof (int), 77 8802 See \`config.log' for more details." >&2;} 8803 { (exit 1); exit 1; }; } 8804 fi 8805 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8806 fi 8807 fi 8808 rm -f conftest.val 8809 else 8810 ac_cv_sizeof_int=0 8811 fi 8812 fi 8813 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 8814 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 8815 cat >>confdefs.h <<_ACEOF 8816 #define SIZEOF_INT $ac_cv_sizeof_int 8817 _ACEOF 8818 8819 8820 echo "$as_me:$LINENO: checking for short" >&5 8821 echo $ECHO_N "checking for short... $ECHO_C" >&6 8822 if test "${ac_cv_type_short+set}" = set; then 8823 echo $ECHO_N "(cached) $ECHO_C" >&6 8824 else 8825 cat >conftest.$ac_ext <<_ACEOF 8826 /* confdefs.h. */ 8827 _ACEOF 8828 cat confdefs.h >>conftest.$ac_ext 8829 cat >>conftest.$ac_ext <<_ACEOF 8830 /* end confdefs.h. */ 8831 $ac_includes_default 8832 int 8833 main () 8834 { 8835 if ((short *) 0) 8836 return 0; 8837 if (sizeof (short)) 8838 return 0; 8839 ; 8840 return 0; 8841 } 8842 _ACEOF 8843 rm -f conftest.$ac_objext 8844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8845 (eval $ac_compile) 2>conftest.er1 8846 ac_status=$? 8847 grep -v '^ *+' conftest.er1 >conftest.err 8848 rm -f conftest.er1 8849 cat conftest.err >&5 8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8851 (exit $ac_status); } && 8852 { ac_try='test -z "$ac_c_werror_flag" 8853 || test ! -s conftest.err' 8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8855 (eval $ac_try) 2>&5 8856 ac_status=$? 8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8858 (exit $ac_status); }; } && 8859 { ac_try='test -s conftest.$ac_objext' 8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8861 (eval $ac_try) 2>&5 8862 ac_status=$? 8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8864 (exit $ac_status); }; }; then 8865 ac_cv_type_short=yes 8866 else 8867 echo "$as_me: failed program was:" >&5 8868 sed 's/^/| /' conftest.$ac_ext >&5 8869 8870 ac_cv_type_short=no 8871 fi 8872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8873 fi 8874 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 8875 echo "${ECHO_T}$ac_cv_type_short" >&6 8876 8877 echo "$as_me:$LINENO: checking size of short" >&5 8878 echo $ECHO_N "checking size of short... $ECHO_C" >&6 8879 if test "${ac_cv_sizeof_short+set}" = set; then 8880 echo $ECHO_N "(cached) $ECHO_C" >&6 8881 else 8882 if test "$ac_cv_type_short" = yes; then 8883 # The cast to unsigned long works around a bug in the HP C Compiler 8884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8886 # This bug is HP SR number 8606223364. 8887 if test "$cross_compiling" = yes; then 8888 # Depending upon the size, compute the lo and hi bounds. 8889 cat >conftest.$ac_ext <<_ACEOF 8890 /* confdefs.h. */ 8891 _ACEOF 8892 cat confdefs.h >>conftest.$ac_ext 8893 cat >>conftest.$ac_ext <<_ACEOF 8894 /* end confdefs.h. */ 8895 $ac_includes_default 8896 int 8897 main () 8898 { 8899 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 8900 test_array [0] = 0 8901 8902 ; 8903 return 0; 8904 } 8905 _ACEOF 8906 rm -f conftest.$ac_objext 8907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8908 (eval $ac_compile) 2>conftest.er1 8909 ac_status=$? 8910 grep -v '^ *+' conftest.er1 >conftest.err 8911 rm -f conftest.er1 8912 cat conftest.err >&5 8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8914 (exit $ac_status); } && 8915 { ac_try='test -z "$ac_c_werror_flag" 8916 || test ! -s conftest.err' 8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8918 (eval $ac_try) 2>&5 8919 ac_status=$? 8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8921 (exit $ac_status); }; } && 8922 { ac_try='test -s conftest.$ac_objext' 8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8924 (eval $ac_try) 2>&5 8925 ac_status=$? 8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8927 (exit $ac_status); }; }; then 8928 ac_lo=0 ac_mid=0 8929 while :; do 8930 cat >conftest.$ac_ext <<_ACEOF 8931 /* confdefs.h. */ 8932 _ACEOF 8933 cat confdefs.h >>conftest.$ac_ext 8934 cat >>conftest.$ac_ext <<_ACEOF 8935 /* end confdefs.h. */ 8936 $ac_includes_default 8937 int 8938 main () 8939 { 8940 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 8941 test_array [0] = 0 8942 8943 ; 8944 return 0; 8945 } 8946 _ACEOF 8947 rm -f conftest.$ac_objext 8948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8949 (eval $ac_compile) 2>conftest.er1 8950 ac_status=$? 8951 grep -v '^ *+' conftest.er1 >conftest.err 8952 rm -f conftest.er1 8953 cat conftest.err >&5 8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8955 (exit $ac_status); } && 8956 { ac_try='test -z "$ac_c_werror_flag" 8957 || test ! -s conftest.err' 8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8959 (eval $ac_try) 2>&5 8960 ac_status=$? 8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8962 (exit $ac_status); }; } && 8963 { ac_try='test -s conftest.$ac_objext' 8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8965 (eval $ac_try) 2>&5 8966 ac_status=$? 8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8968 (exit $ac_status); }; }; then 8969 ac_hi=$ac_mid; break 8970 else 8971 echo "$as_me: failed program was:" >&5 8972 sed 's/^/| /' conftest.$ac_ext >&5 8973 8974 ac_lo=`expr $ac_mid + 1` 8975 if test $ac_lo -le $ac_mid; then 8976 ac_lo= ac_hi= 8977 break 8978 fi 8979 ac_mid=`expr 2 '*' $ac_mid + 1` 8980 fi 8981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8982 done 8983 else 8984 echo "$as_me: failed program was:" >&5 8985 sed 's/^/| /' conftest.$ac_ext >&5 8986 8987 cat >conftest.$ac_ext <<_ACEOF 8988 /* confdefs.h. */ 8989 _ACEOF 8990 cat confdefs.h >>conftest.$ac_ext 8991 cat >>conftest.$ac_ext <<_ACEOF 8992 /* end confdefs.h. */ 8993 $ac_includes_default 8994 int 8995 main () 8996 { 8997 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 8998 test_array [0] = 0 8999 9000 ; 9001 return 0; 9002 } 9003 _ACEOF 9004 rm -f conftest.$ac_objext 9005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9006 (eval $ac_compile) 2>conftest.er1 9007 ac_status=$? 9008 grep -v '^ *+' conftest.er1 >conftest.err 9009 rm -f conftest.er1 9010 cat conftest.err >&5 9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9012 (exit $ac_status); } && 9013 { ac_try='test -z "$ac_c_werror_flag" 9014 || test ! -s conftest.err' 9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9016 (eval $ac_try) 2>&5 9017 ac_status=$? 9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9019 (exit $ac_status); }; } && 9020 { ac_try='test -s conftest.$ac_objext' 9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9022 (eval $ac_try) 2>&5 9023 ac_status=$? 9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9025 (exit $ac_status); }; }; then 9026 ac_hi=-1 ac_mid=-1 9027 while :; do 9028 cat >conftest.$ac_ext <<_ACEOF 9029 /* confdefs.h. */ 9030 _ACEOF 9031 cat confdefs.h >>conftest.$ac_ext 9032 cat >>conftest.$ac_ext <<_ACEOF 9033 /* end confdefs.h. */ 9034 $ac_includes_default 9035 int 9036 main () 9037 { 9038 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 9039 test_array [0] = 0 9040 9041 ; 9042 return 0; 9043 } 9044 _ACEOF 9045 rm -f conftest.$ac_objext 9046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9047 (eval $ac_compile) 2>conftest.er1 9048 ac_status=$? 9049 grep -v '^ *+' conftest.er1 >conftest.err 9050 rm -f conftest.er1 9051 cat conftest.err >&5 9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9053 (exit $ac_status); } && 9054 { ac_try='test -z "$ac_c_werror_flag" 9055 || test ! -s conftest.err' 9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9057 (eval $ac_try) 2>&5 9058 ac_status=$? 9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9060 (exit $ac_status); }; } && 9061 { ac_try='test -s conftest.$ac_objext' 9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9063 (eval $ac_try) 2>&5 9064 ac_status=$? 9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9066 (exit $ac_status); }; }; then 9067 ac_lo=$ac_mid; break 9068 else 9069 echo "$as_me: failed program was:" >&5 9070 sed 's/^/| /' conftest.$ac_ext >&5 9071 9072 ac_hi=`expr '(' $ac_mid ')' - 1` 9073 if test $ac_mid -le $ac_hi; then 9074 ac_lo= ac_hi= 9075 break 9076 fi 9077 ac_mid=`expr 2 '*' $ac_mid` 9078 fi 9079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9080 done 9081 else 9082 echo "$as_me: failed program was:" >&5 9083 sed 's/^/| /' conftest.$ac_ext >&5 9084 9085 ac_lo= ac_hi= 9086 fi 9087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9088 fi 9089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9090 # Binary search between lo and hi bounds. 9091 while test "x$ac_lo" != "x$ac_hi"; do 9092 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9093 cat >conftest.$ac_ext <<_ACEOF 9094 /* confdefs.h. */ 9095 _ACEOF 9096 cat confdefs.h >>conftest.$ac_ext 9097 cat >>conftest.$ac_ext <<_ACEOF 9098 /* end confdefs.h. */ 9099 $ac_includes_default 9100 int 9101 main () 9102 { 9103 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 9104 test_array [0] = 0 9105 9106 ; 9107 return 0; 9108 } 9109 _ACEOF 9110 rm -f conftest.$ac_objext 9111 if { (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_hi=$ac_mid 9133 else 9134 echo "$as_me: failed program was:" >&5 9135 sed 's/^/| /' conftest.$ac_ext >&5 9136 9137 ac_lo=`expr '(' $ac_mid ')' + 1` 9138 fi 9139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9140 done 9141 case $ac_lo in 9142 ?*) ac_cv_sizeof_short=$ac_lo;; 9143 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 9144 See \`config.log' for more details." >&5 9145 echo "$as_me: error: cannot compute sizeof (short), 77 9146 See \`config.log' for more details." >&2;} 9147 { (exit 1); exit 1; }; } ;; 9148 esac 9149 else 9150 if test "$cross_compiling" = yes; then 9151 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9152 See \`config.log' for more details." >&5 9153 echo "$as_me: error: cannot run test program while cross compiling 9154 See \`config.log' for more details." >&2;} 9155 { (exit 1); exit 1; }; } 9156 else 9157 cat >conftest.$ac_ext <<_ACEOF 9158 /* confdefs.h. */ 9159 _ACEOF 9160 cat confdefs.h >>conftest.$ac_ext 9161 cat >>conftest.$ac_ext <<_ACEOF 9162 /* end confdefs.h. */ 9163 $ac_includes_default 9164 long longval () { return (long) (sizeof (short)); } 9165 unsigned long ulongval () { return (long) (sizeof (short)); } 9166 #include <stdio.h> 9167 #include <stdlib.h> 9168 int 9169 main () 9170 { 9171 9172 FILE *f = fopen ("conftest.val", "w"); 9173 if (! f) 9174 exit (1); 9175 if (((long) (sizeof (short))) < 0) 9176 { 9177 long i = longval (); 9178 if (i != ((long) (sizeof (short)))) 9179 exit (1); 9180 fprintf (f, "%ld\n", i); 9181 } 9182 else 9183 { 9184 unsigned long i = ulongval (); 9185 if (i != ((long) (sizeof (short)))) 9186 exit (1); 9187 fprintf (f, "%lu\n", i); 9188 } 9189 exit (ferror (f) || fclose (f) != 0); 9190 9191 ; 9192 return 0; 9193 } 9194 _ACEOF 9195 rm -f conftest$ac_exeext 9196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9197 (eval $ac_link) 2>&5 9198 ac_status=$? 9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9202 (eval $ac_try) 2>&5 9203 ac_status=$? 9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9205 (exit $ac_status); }; }; then 9206 ac_cv_sizeof_short=`cat conftest.val` 9207 else 9208 echo "$as_me: program exited with status $ac_status" >&5 9209 echo "$as_me: failed program was:" >&5 9210 sed 's/^/| /' conftest.$ac_ext >&5 9211 9212 ( exit $ac_status ) 9213 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 9214 See \`config.log' for more details." >&5 9215 echo "$as_me: error: cannot compute sizeof (short), 77 9216 See \`config.log' for more details." >&2;} 9217 { (exit 1); exit 1; }; } 9218 fi 9219 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9220 fi 9221 fi 9222 rm -f conftest.val 9223 else 9224 ac_cv_sizeof_short=0 9225 fi 9226 fi 9227 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 9228 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 9229 cat >>confdefs.h <<_ACEOF 9230 #define SIZEOF_SHORT $ac_cv_sizeof_short 9231 _ACEOF 9232 9233 9234 fi 9235 FOUND=0 9236 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 9237 dc_cv_size=`eval echo $dc_cv_loop` 9238 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 9239 if test "$dc_cv_size" = "8"; then 9240 if test "$dc_cv_name" = "int"; then 9241 echo "$as_me:$LINENO: checking for int64_t" >&5 9242 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 9243 if test "${ac_cv_type_int64_t+set}" = set; then 9244 echo $ECHO_N "(cached) $ECHO_C" >&6 9245 else 9246 cat >conftest.$ac_ext <<_ACEOF 9247 /* confdefs.h. */ 9248 _ACEOF 9249 cat confdefs.h >>conftest.$ac_ext 9250 cat >>conftest.$ac_ext <<_ACEOF 9251 /* end confdefs.h. */ 9252 $ac_includes_default 9253 int 9254 main () 9255 { 9256 if ((int64_t *) 0) 9257 return 0; 9258 if (sizeof (int64_t)) 9259 return 0; 9260 ; 9261 return 0; 9262 } 9263 _ACEOF 9264 rm -f conftest.$ac_objext 9265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9266 (eval $ac_compile) 2>conftest.er1 9267 ac_status=$? 9268 grep -v '^ *+' conftest.er1 >conftest.err 9269 rm -f conftest.er1 9270 cat conftest.err >&5 9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9272 (exit $ac_status); } && 9273 { ac_try='test -z "$ac_c_werror_flag" 9274 || test ! -s conftest.err' 9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9276 (eval $ac_try) 2>&5 9277 ac_status=$? 9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9279 (exit $ac_status); }; } && 9280 { ac_try='test -s conftest.$ac_objext' 9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9282 (eval $ac_try) 2>&5 9283 ac_status=$? 9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9285 (exit $ac_status); }; }; then 9286 ac_cv_type_int64_t=yes 9287 else 9288 echo "$as_me: failed program was:" >&5 9289 sed 's/^/| /' conftest.$ac_ext >&5 9290 9291 ac_cv_type_int64_t=no 9292 fi 9293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9294 fi 9295 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 9296 echo "${ECHO_T}$ac_cv_type_int64_t" >&6 9297 if test $ac_cv_type_int64_t = yes; then 9298 : 9299 else 9300 9301 cat >>confdefs.h <<_ACEOF 9302 #define int64_t signed int 9303 _ACEOF 9304 9305 fi 9306 9307 fi 9308 if test "$dc_cv_name" = "long"; then 9309 echo "$as_me:$LINENO: checking for int64_t" >&5 9310 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 9311 if test "${ac_cv_type_int64_t+set}" = set; then 9312 echo $ECHO_N "(cached) $ECHO_C" >&6 9313 else 9314 cat >conftest.$ac_ext <<_ACEOF 9315 /* confdefs.h. */ 9316 _ACEOF 9317 cat confdefs.h >>conftest.$ac_ext 9318 cat >>conftest.$ac_ext <<_ACEOF 9319 /* end confdefs.h. */ 9320 $ac_includes_default 9321 int 9322 main () 9323 { 9324 if ((int64_t *) 0) 9325 return 0; 9326 if (sizeof (int64_t)) 9327 return 0; 9328 ; 9329 return 0; 9330 } 9331 _ACEOF 9332 rm -f conftest.$ac_objext 9333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9334 (eval $ac_compile) 2>conftest.er1 9335 ac_status=$? 9336 grep -v '^ *+' conftest.er1 >conftest.err 9337 rm -f conftest.er1 9338 cat conftest.err >&5 9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9340 (exit $ac_status); } && 9341 { ac_try='test -z "$ac_c_werror_flag" 9342 || test ! -s conftest.err' 9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9344 (eval $ac_try) 2>&5 9345 ac_status=$? 9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9347 (exit $ac_status); }; } && 9348 { ac_try='test -s conftest.$ac_objext' 9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9350 (eval $ac_try) 2>&5 9351 ac_status=$? 9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9353 (exit $ac_status); }; }; then 9354 ac_cv_type_int64_t=yes 9355 else 9356 echo "$as_me: failed program was:" >&5 9357 sed 's/^/| /' conftest.$ac_ext >&5 9358 9359 ac_cv_type_int64_t=no 9360 fi 9361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9362 fi 9363 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 9364 echo "${ECHO_T}$ac_cv_type_int64_t" >&6 9365 if test $ac_cv_type_int64_t = yes; then 9366 : 9367 else 9368 9369 cat >>confdefs.h <<_ACEOF 9370 #define int64_t signed long 9371 _ACEOF 9372 9373 fi 9374 9375 fi 9376 if test "$dc_cv_name" = "long_long"; then 9377 echo "$as_me:$LINENO: checking for int64_t" >&5 9378 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 9379 if test "${ac_cv_type_int64_t+set}" = set; then 9380 echo $ECHO_N "(cached) $ECHO_C" >&6 9381 else 9382 cat >conftest.$ac_ext <<_ACEOF 9383 /* confdefs.h. */ 9384 _ACEOF 9385 cat confdefs.h >>conftest.$ac_ext 9386 cat >>conftest.$ac_ext <<_ACEOF 9387 /* end confdefs.h. */ 9388 $ac_includes_default 9389 int 9390 main () 9391 { 9392 if ((int64_t *) 0) 9393 return 0; 9394 if (sizeof (int64_t)) 9395 return 0; 9396 ; 9397 return 0; 9398 } 9399 _ACEOF 9400 rm -f conftest.$ac_objext 9401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9402 (eval $ac_compile) 2>conftest.er1 9403 ac_status=$? 9404 grep -v '^ *+' conftest.er1 >conftest.err 9405 rm -f conftest.er1 9406 cat conftest.err >&5 9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9408 (exit $ac_status); } && 9409 { ac_try='test -z "$ac_c_werror_flag" 9410 || test ! -s conftest.err' 9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9412 (eval $ac_try) 2>&5 9413 ac_status=$? 9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9415 (exit $ac_status); }; } && 9416 { ac_try='test -s conftest.$ac_objext' 9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9418 (eval $ac_try) 2>&5 9419 ac_status=$? 9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9421 (exit $ac_status); }; }; then 9422 ac_cv_type_int64_t=yes 9423 else 9424 echo "$as_me: failed program was:" >&5 9425 sed 's/^/| /' conftest.$ac_ext >&5 9426 9427 ac_cv_type_int64_t=no 9428 fi 9429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9430 fi 9431 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 9432 echo "${ECHO_T}$ac_cv_type_int64_t" >&6 9433 if test $ac_cv_type_int64_t = yes; then 9434 : 9435 else 9436 9437 cat >>confdefs.h <<_ACEOF 9438 #define int64_t signed long long 9439 _ACEOF 9440 9441 fi 9442 9443 fi 9444 if test "$dc_cv_name" = "short"; then 9445 echo "$as_me:$LINENO: checking for int64_t" >&5 9446 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 9447 if test "${ac_cv_type_int64_t+set}" = set; then 9448 echo $ECHO_N "(cached) $ECHO_C" >&6 9449 else 9450 cat >conftest.$ac_ext <<_ACEOF 9451 /* confdefs.h. */ 9452 _ACEOF 9453 cat confdefs.h >>conftest.$ac_ext 9454 cat >>conftest.$ac_ext <<_ACEOF 9455 /* end confdefs.h. */ 9456 $ac_includes_default 9457 int 9458 main () 9459 { 9460 if ((int64_t *) 0) 9461 return 0; 9462 if (sizeof (int64_t)) 9463 return 0; 9464 ; 9465 return 0; 9466 } 9467 _ACEOF 9468 rm -f conftest.$ac_objext 9469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9470 (eval $ac_compile) 2>conftest.er1 9471 ac_status=$? 9472 grep -v '^ *+' conftest.er1 >conftest.err 9473 rm -f conftest.er1 9474 cat conftest.err >&5 9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9476 (exit $ac_status); } && 9477 { ac_try='test -z "$ac_c_werror_flag" 9478 || test ! -s conftest.err' 9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9480 (eval $ac_try) 2>&5 9481 ac_status=$? 9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9483 (exit $ac_status); }; } && 9484 { ac_try='test -s conftest.$ac_objext' 9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9486 (eval $ac_try) 2>&5 9487 ac_status=$? 9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9489 (exit $ac_status); }; }; then 9490 ac_cv_type_int64_t=yes 9491 else 9492 echo "$as_me: failed program was:" >&5 9493 sed 's/^/| /' conftest.$ac_ext >&5 9494 9495 ac_cv_type_int64_t=no 9496 fi 9497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9498 fi 9499 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 9500 echo "${ECHO_T}$ac_cv_type_int64_t" >&6 9501 if test $ac_cv_type_int64_t = yes; then 9502 : 9503 else 9504 9505 cat >>confdefs.h <<_ACEOF 9506 #define int64_t signed short 9507 _ACEOF 9508 9509 fi 9510 9511 fi 9512 FOUND=1 9513 break 9514 fi 9515 done 9516 9517 9518 if test -z "$ac_cv_sizeof_long"; then 9519 echo "$as_me:$LINENO: checking for inline" >&5 9520 echo $ECHO_N "checking for inline... $ECHO_C" >&6 9521 if test "${ac_cv_c_inline+set}" = set; then 9522 echo $ECHO_N "(cached) $ECHO_C" >&6 9523 else 9524 ac_cv_c_inline=no 9525 for ac_kw in inline __inline__ __inline; do 9526 cat >conftest.$ac_ext <<_ACEOF 9527 /* confdefs.h. */ 9528 _ACEOF 9529 cat confdefs.h >>conftest.$ac_ext 9530 cat >>conftest.$ac_ext <<_ACEOF 9531 /* end confdefs.h. */ 9532 #ifndef __cplusplus 9533 typedef int foo_t; 9534 static $ac_kw foo_t static_foo () {return 0; } 9535 $ac_kw foo_t foo () {return 0; } 9536 #endif 9537 9538 _ACEOF 9539 rm -f conftest.$ac_objext 9540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9541 (eval $ac_compile) 2>conftest.er1 9542 ac_status=$? 9543 grep -v '^ *+' conftest.er1 >conftest.err 9544 rm -f conftest.er1 9545 cat conftest.err >&5 9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9547 (exit $ac_status); } && 9548 { ac_try='test -z "$ac_c_werror_flag" 9549 || test ! -s conftest.err' 9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9551 (eval $ac_try) 2>&5 9552 ac_status=$? 9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9554 (exit $ac_status); }; } && 9555 { ac_try='test -s conftest.$ac_objext' 9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9557 (eval $ac_try) 2>&5 9558 ac_status=$? 9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9560 (exit $ac_status); }; }; then 9561 ac_cv_c_inline=$ac_kw; break 9562 else 9563 echo "$as_me: failed program was:" >&5 9564 sed 's/^/| /' conftest.$ac_ext >&5 9565 9566 fi 9567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9568 done 9569 9570 fi 9571 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 9572 echo "${ECHO_T}$ac_cv_c_inline" >&6 9573 9574 9575 case $ac_cv_c_inline in 9576 inline | yes) ;; 9577 *) 9578 case $ac_cv_c_inline in 9579 no) ac_val=;; 9580 *) ac_val=$ac_cv_c_inline;; 9581 esac 9582 cat >>confdefs.h <<_ACEOF 9583 #ifndef __cplusplus 9584 #define inline $ac_val 9585 #endif 9586 _ACEOF 9587 ;; 9588 esac 9589 9590 echo "$as_me:$LINENO: checking for long long" >&5 9591 echo $ECHO_N "checking for long long... $ECHO_C" >&6 9592 if test "${ac_cv_type_long_long+set}" = set; then 9593 echo $ECHO_N "(cached) $ECHO_C" >&6 9594 else 9595 cat >conftest.$ac_ext <<_ACEOF 9596 /* confdefs.h. */ 9597 _ACEOF 9598 cat confdefs.h >>conftest.$ac_ext 9599 cat >>conftest.$ac_ext <<_ACEOF 9600 /* end confdefs.h. */ 9601 $ac_includes_default 9602 int 9603 main () 9604 { 9605 if ((long long *) 0) 9606 return 0; 9607 if (sizeof (long long)) 9608 return 0; 9609 ; 9610 return 0; 9611 } 9612 _ACEOF 9613 rm -f conftest.$ac_objext 9614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9615 (eval $ac_compile) 2>conftest.er1 9616 ac_status=$? 9617 grep -v '^ *+' conftest.er1 >conftest.err 9618 rm -f conftest.er1 9619 cat conftest.err >&5 9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9621 (exit $ac_status); } && 9622 { ac_try='test -z "$ac_c_werror_flag" 9623 || test ! -s conftest.err' 9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9625 (eval $ac_try) 2>&5 9626 ac_status=$? 9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9628 (exit $ac_status); }; } && 9629 { ac_try='test -s conftest.$ac_objext' 9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9631 (eval $ac_try) 2>&5 9632 ac_status=$? 9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9634 (exit $ac_status); }; }; then 9635 ac_cv_type_long_long=yes 9636 else 9637 echo "$as_me: failed program was:" >&5 9638 sed 's/^/| /' conftest.$ac_ext >&5 9639 9640 ac_cv_type_long_long=no 9641 fi 9642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9643 fi 9644 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 9645 echo "${ECHO_T}$ac_cv_type_long_long" >&6 9646 9647 echo "$as_me:$LINENO: checking size of long long" >&5 9648 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 9649 if test "${ac_cv_sizeof_long_long+set}" = set; then 9650 echo $ECHO_N "(cached) $ECHO_C" >&6 9651 else 9652 if test "$ac_cv_type_long_long" = yes; then 9653 # The cast to unsigned long works around a bug in the HP C Compiler 9654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9656 # This bug is HP SR number 8606223364. 9657 if test "$cross_compiling" = yes; then 9658 # Depending upon the size, compute the lo and hi bounds. 9659 cat >conftest.$ac_ext <<_ACEOF 9660 /* confdefs.h. */ 9661 _ACEOF 9662 cat confdefs.h >>conftest.$ac_ext 9663 cat >>conftest.$ac_ext <<_ACEOF 9664 /* end confdefs.h. */ 9665 $ac_includes_default 9666 int 9667 main () 9668 { 9669 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 9670 test_array [0] = 0 9671 9672 ; 9673 return 0; 9674 } 9675 _ACEOF 9676 rm -f conftest.$ac_objext 9677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9678 (eval $ac_compile) 2>conftest.er1 9679 ac_status=$? 9680 grep -v '^ *+' conftest.er1 >conftest.err 9681 rm -f conftest.er1 9682 cat conftest.err >&5 9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9684 (exit $ac_status); } && 9685 { ac_try='test -z "$ac_c_werror_flag" 9686 || test ! -s conftest.err' 9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9688 (eval $ac_try) 2>&5 9689 ac_status=$? 9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9691 (exit $ac_status); }; } && 9692 { ac_try='test -s conftest.$ac_objext' 9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9694 (eval $ac_try) 2>&5 9695 ac_status=$? 9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9697 (exit $ac_status); }; }; then 9698 ac_lo=0 ac_mid=0 9699 while :; do 9700 cat >conftest.$ac_ext <<_ACEOF 9701 /* confdefs.h. */ 9702 _ACEOF 9703 cat confdefs.h >>conftest.$ac_ext 9704 cat >>conftest.$ac_ext <<_ACEOF 9705 /* end confdefs.h. */ 9706 $ac_includes_default 9707 int 9708 main () 9709 { 9710 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 9711 test_array [0] = 0 9712 9713 ; 9714 return 0; 9715 } 9716 _ACEOF 9717 rm -f conftest.$ac_objext 9718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9719 (eval $ac_compile) 2>conftest.er1 9720 ac_status=$? 9721 grep -v '^ *+' conftest.er1 >conftest.err 9722 rm -f conftest.er1 9723 cat conftest.err >&5 9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9725 (exit $ac_status); } && 9726 { ac_try='test -z "$ac_c_werror_flag" 9727 || test ! -s conftest.err' 9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9729 (eval $ac_try) 2>&5 9730 ac_status=$? 9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9732 (exit $ac_status); }; } && 9733 { ac_try='test -s conftest.$ac_objext' 9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9735 (eval $ac_try) 2>&5 9736 ac_status=$? 9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9738 (exit $ac_status); }; }; then 9739 ac_hi=$ac_mid; break 9740 else 9741 echo "$as_me: failed program was:" >&5 9742 sed 's/^/| /' conftest.$ac_ext >&5 9743 9744 ac_lo=`expr $ac_mid + 1` 9745 if test $ac_lo -le $ac_mid; then 9746 ac_lo= ac_hi= 9747 break 9748 fi 9749 ac_mid=`expr 2 '*' $ac_mid + 1` 9750 fi 9751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9752 done 9753 else 9754 echo "$as_me: failed program was:" >&5 9755 sed 's/^/| /' conftest.$ac_ext >&5 9756 9757 cat >conftest.$ac_ext <<_ACEOF 9758 /* confdefs.h. */ 9759 _ACEOF 9760 cat confdefs.h >>conftest.$ac_ext 9761 cat >>conftest.$ac_ext <<_ACEOF 9762 /* end confdefs.h. */ 9763 $ac_includes_default 9764 int 9765 main () 9766 { 9767 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 9768 test_array [0] = 0 9769 9770 ; 9771 return 0; 9772 } 9773 _ACEOF 9774 rm -f conftest.$ac_objext 9775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9776 (eval $ac_compile) 2>conftest.er1 9777 ac_status=$? 9778 grep -v '^ *+' conftest.er1 >conftest.err 9779 rm -f conftest.er1 9780 cat conftest.err >&5 9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9782 (exit $ac_status); } && 9783 { ac_try='test -z "$ac_c_werror_flag" 9784 || test ! -s conftest.err' 9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9786 (eval $ac_try) 2>&5 9787 ac_status=$? 9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9789 (exit $ac_status); }; } && 9790 { ac_try='test -s conftest.$ac_objext' 9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9792 (eval $ac_try) 2>&5 9793 ac_status=$? 9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9795 (exit $ac_status); }; }; then 9796 ac_hi=-1 ac_mid=-1 9797 while :; do 9798 cat >conftest.$ac_ext <<_ACEOF 9799 /* confdefs.h. */ 9800 _ACEOF 9801 cat confdefs.h >>conftest.$ac_ext 9802 cat >>conftest.$ac_ext <<_ACEOF 9803 /* end confdefs.h. */ 9804 $ac_includes_default 9805 int 9806 main () 9807 { 9808 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 9809 test_array [0] = 0 9810 9811 ; 9812 return 0; 9813 } 9814 _ACEOF 9815 rm -f conftest.$ac_objext 9816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9817 (eval $ac_compile) 2>conftest.er1 9818 ac_status=$? 9819 grep -v '^ *+' conftest.er1 >conftest.err 9820 rm -f conftest.er1 9821 cat conftest.err >&5 9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9823 (exit $ac_status); } && 9824 { ac_try='test -z "$ac_c_werror_flag" 9825 || test ! -s conftest.err' 9826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9827 (eval $ac_try) 2>&5 9828 ac_status=$? 9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9830 (exit $ac_status); }; } && 9831 { ac_try='test -s conftest.$ac_objext' 9832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9833 (eval $ac_try) 2>&5 9834 ac_status=$? 9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9836 (exit $ac_status); }; }; then 9837 ac_lo=$ac_mid; break 9838 else 9839 echo "$as_me: failed program was:" >&5 9840 sed 's/^/| /' conftest.$ac_ext >&5 9841 9842 ac_hi=`expr '(' $ac_mid ')' - 1` 9843 if test $ac_mid -le $ac_hi; then 9844 ac_lo= ac_hi= 9845 break 9846 fi 9847 ac_mid=`expr 2 '*' $ac_mid` 9848 fi 9849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9850 done 9851 else 9852 echo "$as_me: failed program was:" >&5 9853 sed 's/^/| /' conftest.$ac_ext >&5 9854 9855 ac_lo= ac_hi= 9856 fi 9857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9858 fi 9859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9860 # Binary search between lo and hi bounds. 9861 while test "x$ac_lo" != "x$ac_hi"; do 9862 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9863 cat >conftest.$ac_ext <<_ACEOF 9864 /* confdefs.h. */ 9865 _ACEOF 9866 cat confdefs.h >>conftest.$ac_ext 9867 cat >>conftest.$ac_ext <<_ACEOF 9868 /* end confdefs.h. */ 9869 $ac_includes_default 9870 int 9871 main () 9872 { 9873 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 9874 test_array [0] = 0 9875 9876 ; 9877 return 0; 9878 } 9879 _ACEOF 9880 rm -f conftest.$ac_objext 9881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9882 (eval $ac_compile) 2>conftest.er1 9883 ac_status=$? 9884 grep -v '^ *+' conftest.er1 >conftest.err 9885 rm -f conftest.er1 9886 cat conftest.err >&5 9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9888 (exit $ac_status); } && 9889 { ac_try='test -z "$ac_c_werror_flag" 9890 || test ! -s conftest.err' 9891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9892 (eval $ac_try) 2>&5 9893 ac_status=$? 9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9895 (exit $ac_status); }; } && 9896 { ac_try='test -s conftest.$ac_objext' 9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9898 (eval $ac_try) 2>&5 9899 ac_status=$? 9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9901 (exit $ac_status); }; }; then 9902 ac_hi=$ac_mid 9903 else 9904 echo "$as_me: failed program was:" >&5 9905 sed 's/^/| /' conftest.$ac_ext >&5 9906 9907 ac_lo=`expr '(' $ac_mid ')' + 1` 9908 fi 9909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9910 done 9911 case $ac_lo in 9912 ?*) ac_cv_sizeof_long_long=$ac_lo;; 9913 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 9914 See \`config.log' for more details." >&5 9915 echo "$as_me: error: cannot compute sizeof (long long), 77 9916 See \`config.log' for more details." >&2;} 9917 { (exit 1); exit 1; }; } ;; 9918 esac 9919 else 9920 if test "$cross_compiling" = yes; then 9921 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9922 See \`config.log' for more details." >&5 9923 echo "$as_me: error: cannot run test program while cross compiling 9924 See \`config.log' for more details." >&2;} 9925 { (exit 1); exit 1; }; } 9926 else 9927 cat >conftest.$ac_ext <<_ACEOF 9928 /* confdefs.h. */ 9929 _ACEOF 9930 cat confdefs.h >>conftest.$ac_ext 9931 cat >>conftest.$ac_ext <<_ACEOF 9932 /* end confdefs.h. */ 9933 $ac_includes_default 9934 long longval () { return (long) (sizeof (long long)); } 9935 unsigned long ulongval () { return (long) (sizeof (long long)); } 9936 #include <stdio.h> 9937 #include <stdlib.h> 9938 int 9939 main () 9940 { 9941 9942 FILE *f = fopen ("conftest.val", "w"); 9943 if (! f) 9944 exit (1); 9945 if (((long) (sizeof (long long))) < 0) 9946 { 9947 long i = longval (); 9948 if (i != ((long) (sizeof (long long)))) 9949 exit (1); 9950 fprintf (f, "%ld\n", i); 9951 } 9952 else 9953 { 9954 unsigned long i = ulongval (); 9955 if (i != ((long) (sizeof (long long)))) 9956 exit (1); 9957 fprintf (f, "%lu\n", i); 9958 } 9959 exit (ferror (f) || fclose (f) != 0); 9960 9961 ; 9962 return 0; 9963 } 9964 _ACEOF 9965 rm -f conftest$ac_exeext 9966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9967 (eval $ac_link) 2>&5 9968 ac_status=$? 9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9972 (eval $ac_try) 2>&5 9973 ac_status=$? 9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9975 (exit $ac_status); }; }; then 9976 ac_cv_sizeof_long_long=`cat conftest.val` 9977 else 9978 echo "$as_me: program exited with status $ac_status" >&5 9979 echo "$as_me: failed program was:" >&5 9980 sed 's/^/| /' conftest.$ac_ext >&5 9981 9982 ( exit $ac_status ) 9983 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 9984 See \`config.log' for more details." >&5 9985 echo "$as_me: error: cannot compute sizeof (long long), 77 9986 See \`config.log' for more details." >&2;} 9987 { (exit 1); exit 1; }; } 9988 fi 9989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9990 fi 9991 fi 9992 rm -f conftest.val 9993 else 9994 ac_cv_sizeof_long_long=0 9995 fi 9996 fi 9997 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 9998 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 9999 cat >>confdefs.h <<_ACEOF 10000 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 10001 _ACEOF 10002 10003 10004 echo "$as_me:$LINENO: checking for long" >&5 10005 echo $ECHO_N "checking for long... $ECHO_C" >&6 10006 if test "${ac_cv_type_long+set}" = set; then 10007 echo $ECHO_N "(cached) $ECHO_C" >&6 10008 else 10009 cat >conftest.$ac_ext <<_ACEOF 10010 /* confdefs.h. */ 10011 _ACEOF 10012 cat confdefs.h >>conftest.$ac_ext 10013 cat >>conftest.$ac_ext <<_ACEOF 10014 /* end confdefs.h. */ 10015 $ac_includes_default 10016 int 10017 main () 10018 { 10019 if ((long *) 0) 10020 return 0; 10021 if (sizeof (long)) 10022 return 0; 10023 ; 10024 return 0; 10025 } 10026 _ACEOF 10027 rm -f conftest.$ac_objext 10028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10029 (eval $ac_compile) 2>conftest.er1 10030 ac_status=$? 10031 grep -v '^ *+' conftest.er1 >conftest.err 10032 rm -f conftest.er1 10033 cat conftest.err >&5 10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10035 (exit $ac_status); } && 10036 { ac_try='test -z "$ac_c_werror_flag" 10037 || test ! -s conftest.err' 10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10039 (eval $ac_try) 2>&5 10040 ac_status=$? 10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10042 (exit $ac_status); }; } && 10043 { ac_try='test -s conftest.$ac_objext' 10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10045 (eval $ac_try) 2>&5 10046 ac_status=$? 10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10048 (exit $ac_status); }; }; then 10049 ac_cv_type_long=yes 10050 else 10051 echo "$as_me: failed program was:" >&5 10052 sed 's/^/| /' conftest.$ac_ext >&5 10053 10054 ac_cv_type_long=no 10055 fi 10056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10057 fi 10058 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 10059 echo "${ECHO_T}$ac_cv_type_long" >&6 10060 10061 echo "$as_me:$LINENO: checking size of long" >&5 10062 echo $ECHO_N "checking size of long... $ECHO_C" >&6 10063 if test "${ac_cv_sizeof_long+set}" = set; then 10064 echo $ECHO_N "(cached) $ECHO_C" >&6 10065 else 10066 if test "$ac_cv_type_long" = yes; then 10067 # The cast to unsigned long works around a bug in the HP C Compiler 10068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10070 # This bug is HP SR number 8606223364. 10071 if test "$cross_compiling" = yes; then 10072 # Depending upon the size, compute the lo and hi bounds. 10073 cat >conftest.$ac_ext <<_ACEOF 10074 /* confdefs.h. */ 10075 _ACEOF 10076 cat confdefs.h >>conftest.$ac_ext 10077 cat >>conftest.$ac_ext <<_ACEOF 10078 /* end confdefs.h. */ 10079 $ac_includes_default 10080 int 10081 main () 10082 { 10083 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 10084 test_array [0] = 0 10085 10086 ; 10087 return 0; 10088 } 10089 _ACEOF 10090 rm -f conftest.$ac_objext 10091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10092 (eval $ac_compile) 2>conftest.er1 10093 ac_status=$? 10094 grep -v '^ *+' conftest.er1 >conftest.err 10095 rm -f conftest.er1 10096 cat conftest.err >&5 10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10098 (exit $ac_status); } && 10099 { ac_try='test -z "$ac_c_werror_flag" 10100 || test ! -s conftest.err' 10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10102 (eval $ac_try) 2>&5 10103 ac_status=$? 10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10105 (exit $ac_status); }; } && 10106 { ac_try='test -s conftest.$ac_objext' 10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10108 (eval $ac_try) 2>&5 10109 ac_status=$? 10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10111 (exit $ac_status); }; }; then 10112 ac_lo=0 ac_mid=0 10113 while :; do 10114 cat >conftest.$ac_ext <<_ACEOF 10115 /* confdefs.h. */ 10116 _ACEOF 10117 cat confdefs.h >>conftest.$ac_ext 10118 cat >>conftest.$ac_ext <<_ACEOF 10119 /* end confdefs.h. */ 10120 $ac_includes_default 10121 int 10122 main () 10123 { 10124 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 10125 test_array [0] = 0 10126 10127 ; 10128 return 0; 10129 } 10130 _ACEOF 10131 rm -f conftest.$ac_objext 10132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10133 (eval $ac_compile) 2>conftest.er1 10134 ac_status=$? 10135 grep -v '^ *+' conftest.er1 >conftest.err 10136 rm -f conftest.er1 10137 cat conftest.err >&5 10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10139 (exit $ac_status); } && 10140 { ac_try='test -z "$ac_c_werror_flag" 10141 || test ! -s conftest.err' 10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10143 (eval $ac_try) 2>&5 10144 ac_status=$? 10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10146 (exit $ac_status); }; } && 10147 { ac_try='test -s conftest.$ac_objext' 10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10149 (eval $ac_try) 2>&5 10150 ac_status=$? 10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10152 (exit $ac_status); }; }; then 10153 ac_hi=$ac_mid; break 10154 else 10155 echo "$as_me: failed program was:" >&5 10156 sed 's/^/| /' conftest.$ac_ext >&5 10157 10158 ac_lo=`expr $ac_mid + 1` 10159 if test $ac_lo -le $ac_mid; then 10160 ac_lo= ac_hi= 10161 break 10162 fi 10163 ac_mid=`expr 2 '*' $ac_mid + 1` 10164 fi 10165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10166 done 10167 else 10168 echo "$as_me: failed program was:" >&5 10169 sed 's/^/| /' conftest.$ac_ext >&5 10170 10171 cat >conftest.$ac_ext <<_ACEOF 10172 /* confdefs.h. */ 10173 _ACEOF 10174 cat confdefs.h >>conftest.$ac_ext 10175 cat >>conftest.$ac_ext <<_ACEOF 10176 /* end confdefs.h. */ 10177 $ac_includes_default 10178 int 10179 main () 10180 { 10181 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 10182 test_array [0] = 0 10183 10184 ; 10185 return 0; 10186 } 10187 _ACEOF 10188 rm -f conftest.$ac_objext 10189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10190 (eval $ac_compile) 2>conftest.er1 10191 ac_status=$? 10192 grep -v '^ *+' conftest.er1 >conftest.err 10193 rm -f conftest.er1 10194 cat conftest.err >&5 10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10196 (exit $ac_status); } && 10197 { ac_try='test -z "$ac_c_werror_flag" 10198 || test ! -s conftest.err' 10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10200 (eval $ac_try) 2>&5 10201 ac_status=$? 10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10203 (exit $ac_status); }; } && 10204 { ac_try='test -s conftest.$ac_objext' 10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10206 (eval $ac_try) 2>&5 10207 ac_status=$? 10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10209 (exit $ac_status); }; }; then 10210 ac_hi=-1 ac_mid=-1 10211 while :; do 10212 cat >conftest.$ac_ext <<_ACEOF 10213 /* confdefs.h. */ 10214 _ACEOF 10215 cat confdefs.h >>conftest.$ac_ext 10216 cat >>conftest.$ac_ext <<_ACEOF 10217 /* end confdefs.h. */ 10218 $ac_includes_default 10219 int 10220 main () 10221 { 10222 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 10223 test_array [0] = 0 10224 10225 ; 10226 return 0; 10227 } 10228 _ACEOF 10229 rm -f conftest.$ac_objext 10230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10231 (eval $ac_compile) 2>conftest.er1 10232 ac_status=$? 10233 grep -v '^ *+' conftest.er1 >conftest.err 10234 rm -f conftest.er1 10235 cat conftest.err >&5 10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10237 (exit $ac_status); } && 10238 { ac_try='test -z "$ac_c_werror_flag" 10239 || test ! -s conftest.err' 10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10241 (eval $ac_try) 2>&5 10242 ac_status=$? 10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10244 (exit $ac_status); }; } && 10245 { ac_try='test -s conftest.$ac_objext' 10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10247 (eval $ac_try) 2>&5 10248 ac_status=$? 10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10250 (exit $ac_status); }; }; then 10251 ac_lo=$ac_mid; break 10252 else 10253 echo "$as_me: failed program was:" >&5 10254 sed 's/^/| /' conftest.$ac_ext >&5 10255 10256 ac_hi=`expr '(' $ac_mid ')' - 1` 10257 if test $ac_mid -le $ac_hi; then 10258 ac_lo= ac_hi= 10259 break 10260 fi 10261 ac_mid=`expr 2 '*' $ac_mid` 10262 fi 10263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10264 done 10265 else 10266 echo "$as_me: failed program was:" >&5 10267 sed 's/^/| /' conftest.$ac_ext >&5 10268 10269 ac_lo= ac_hi= 10270 fi 10271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10272 fi 10273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10274 # Binary search between lo and hi bounds. 10275 while test "x$ac_lo" != "x$ac_hi"; do 10276 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10277 cat >conftest.$ac_ext <<_ACEOF 10278 /* confdefs.h. */ 10279 _ACEOF 10280 cat confdefs.h >>conftest.$ac_ext 10281 cat >>conftest.$ac_ext <<_ACEOF 10282 /* end confdefs.h. */ 10283 $ac_includes_default 10284 int 10285 main () 10286 { 10287 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 10288 test_array [0] = 0 10289 10290 ; 10291 return 0; 10292 } 10293 _ACEOF 10294 rm -f conftest.$ac_objext 10295 if { (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_hi=$ac_mid 10317 else 10318 echo "$as_me: failed program was:" >&5 10319 sed 's/^/| /' conftest.$ac_ext >&5 10320 10321 ac_lo=`expr '(' $ac_mid ')' + 1` 10322 fi 10323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10324 done 10325 case $ac_lo in 10326 ?*) ac_cv_sizeof_long=$ac_lo;; 10327 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 10328 See \`config.log' for more details." >&5 10329 echo "$as_me: error: cannot compute sizeof (long), 77 10330 See \`config.log' for more details." >&2;} 10331 { (exit 1); exit 1; }; } ;; 10332 esac 10333 else 10334 if test "$cross_compiling" = yes; then 10335 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10336 See \`config.log' for more details." >&5 10337 echo "$as_me: error: cannot run test program while cross compiling 10338 See \`config.log' for more details." >&2;} 10339 { (exit 1); exit 1; }; } 10340 else 10341 cat >conftest.$ac_ext <<_ACEOF 10342 /* confdefs.h. */ 10343 _ACEOF 10344 cat confdefs.h >>conftest.$ac_ext 10345 cat >>conftest.$ac_ext <<_ACEOF 10346 /* end confdefs.h. */ 10347 $ac_includes_default 10348 long longval () { return (long) (sizeof (long)); } 10349 unsigned long ulongval () { return (long) (sizeof (long)); } 10350 #include <stdio.h> 10351 #include <stdlib.h> 10352 int 10353 main () 10354 { 10355 10356 FILE *f = fopen ("conftest.val", "w"); 10357 if (! f) 10358 exit (1); 10359 if (((long) (sizeof (long))) < 0) 10360 { 10361 long i = longval (); 10362 if (i != ((long) (sizeof (long)))) 10363 exit (1); 10364 fprintf (f, "%ld\n", i); 10365 } 10366 else 10367 { 10368 unsigned long i = ulongval (); 10369 if (i != ((long) (sizeof (long)))) 10370 exit (1); 10371 fprintf (f, "%lu\n", i); 10372 } 10373 exit (ferror (f) || fclose (f) != 0); 10374 10375 ; 10376 return 0; 10377 } 10378 _ACEOF 10379 rm -f conftest$ac_exeext 10380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10381 (eval $ac_link) 2>&5 10382 ac_status=$? 10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10386 (eval $ac_try) 2>&5 10387 ac_status=$? 10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10389 (exit $ac_status); }; }; then 10390 ac_cv_sizeof_long=`cat conftest.val` 10391 else 10392 echo "$as_me: program exited with status $ac_status" >&5 10393 echo "$as_me: failed program was:" >&5 10394 sed 's/^/| /' conftest.$ac_ext >&5 10395 10396 ( exit $ac_status ) 10397 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 10398 See \`config.log' for more details." >&5 10399 echo "$as_me: error: cannot compute sizeof (long), 77 10400 See \`config.log' for more details." >&2;} 10401 { (exit 1); exit 1; }; } 10402 fi 10403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10404 fi 10405 fi 10406 rm -f conftest.val 10407 else 10408 ac_cv_sizeof_long=0 10409 fi 10410 fi 10411 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 10412 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 10413 cat >>confdefs.h <<_ACEOF 10414 #define SIZEOF_LONG $ac_cv_sizeof_long 10415 _ACEOF 10416 10417 10418 echo "$as_me:$LINENO: checking for int" >&5 10419 echo $ECHO_N "checking for int... $ECHO_C" >&6 10420 if test "${ac_cv_type_int+set}" = set; then 10421 echo $ECHO_N "(cached) $ECHO_C" >&6 10422 else 10423 cat >conftest.$ac_ext <<_ACEOF 10424 /* confdefs.h. */ 10425 _ACEOF 10426 cat confdefs.h >>conftest.$ac_ext 10427 cat >>conftest.$ac_ext <<_ACEOF 10428 /* end confdefs.h. */ 10429 $ac_includes_default 10430 int 10431 main () 10432 { 10433 if ((int *) 0) 10434 return 0; 10435 if (sizeof (int)) 10436 return 0; 10437 ; 10438 return 0; 10439 } 10440 _ACEOF 10441 rm -f conftest.$ac_objext 10442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10443 (eval $ac_compile) 2>conftest.er1 10444 ac_status=$? 10445 grep -v '^ *+' conftest.er1 >conftest.err 10446 rm -f conftest.er1 10447 cat conftest.err >&5 10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10449 (exit $ac_status); } && 10450 { ac_try='test -z "$ac_c_werror_flag" 10451 || test ! -s conftest.err' 10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10453 (eval $ac_try) 2>&5 10454 ac_status=$? 10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10456 (exit $ac_status); }; } && 10457 { ac_try='test -s conftest.$ac_objext' 10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10459 (eval $ac_try) 2>&5 10460 ac_status=$? 10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10462 (exit $ac_status); }; }; then 10463 ac_cv_type_int=yes 10464 else 10465 echo "$as_me: failed program was:" >&5 10466 sed 's/^/| /' conftest.$ac_ext >&5 10467 10468 ac_cv_type_int=no 10469 fi 10470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10471 fi 10472 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 10473 echo "${ECHO_T}$ac_cv_type_int" >&6 10474 10475 echo "$as_me:$LINENO: checking size of int" >&5 10476 echo $ECHO_N "checking size of int... $ECHO_C" >&6 10477 if test "${ac_cv_sizeof_int+set}" = set; then 10478 echo $ECHO_N "(cached) $ECHO_C" >&6 10479 else 10480 if test "$ac_cv_type_int" = yes; then 10481 # The cast to unsigned long works around a bug in the HP C Compiler 10482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10484 # This bug is HP SR number 8606223364. 10485 if test "$cross_compiling" = yes; then 10486 # Depending upon the size, compute the lo and hi bounds. 10487 cat >conftest.$ac_ext <<_ACEOF 10488 /* confdefs.h. */ 10489 _ACEOF 10490 cat confdefs.h >>conftest.$ac_ext 10491 cat >>conftest.$ac_ext <<_ACEOF 10492 /* end confdefs.h. */ 10493 $ac_includes_default 10494 int 10495 main () 10496 { 10497 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 10498 test_array [0] = 0 10499 10500 ; 10501 return 0; 10502 } 10503 _ACEOF 10504 rm -f conftest.$ac_objext 10505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10506 (eval $ac_compile) 2>conftest.er1 10507 ac_status=$? 10508 grep -v '^ *+' conftest.er1 >conftest.err 10509 rm -f conftest.er1 10510 cat conftest.err >&5 10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10512 (exit $ac_status); } && 10513 { ac_try='test -z "$ac_c_werror_flag" 10514 || test ! -s conftest.err' 10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10516 (eval $ac_try) 2>&5 10517 ac_status=$? 10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10519 (exit $ac_status); }; } && 10520 { ac_try='test -s conftest.$ac_objext' 10521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10522 (eval $ac_try) 2>&5 10523 ac_status=$? 10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10525 (exit $ac_status); }; }; then 10526 ac_lo=0 ac_mid=0 10527 while :; do 10528 cat >conftest.$ac_ext <<_ACEOF 10529 /* confdefs.h. */ 10530 _ACEOF 10531 cat confdefs.h >>conftest.$ac_ext 10532 cat >>conftest.$ac_ext <<_ACEOF 10533 /* end confdefs.h. */ 10534 $ac_includes_default 10535 int 10536 main () 10537 { 10538 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 10539 test_array [0] = 0 10540 10541 ; 10542 return 0; 10543 } 10544 _ACEOF 10545 rm -f conftest.$ac_objext 10546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10547 (eval $ac_compile) 2>conftest.er1 10548 ac_status=$? 10549 grep -v '^ *+' conftest.er1 >conftest.err 10550 rm -f conftest.er1 10551 cat conftest.err >&5 10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10553 (exit $ac_status); } && 10554 { ac_try='test -z "$ac_c_werror_flag" 10555 || test ! -s conftest.err' 10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10557 (eval $ac_try) 2>&5 10558 ac_status=$? 10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10560 (exit $ac_status); }; } && 10561 { ac_try='test -s conftest.$ac_objext' 10562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10563 (eval $ac_try) 2>&5 10564 ac_status=$? 10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10566 (exit $ac_status); }; }; then 10567 ac_hi=$ac_mid; break 10568 else 10569 echo "$as_me: failed program was:" >&5 10570 sed 's/^/| /' conftest.$ac_ext >&5 10571 10572 ac_lo=`expr $ac_mid + 1` 10573 if test $ac_lo -le $ac_mid; then 10574 ac_lo= ac_hi= 10575 break 10576 fi 10577 ac_mid=`expr 2 '*' $ac_mid + 1` 10578 fi 10579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10580 done 10581 else 10582 echo "$as_me: failed program was:" >&5 10583 sed 's/^/| /' conftest.$ac_ext >&5 10584 10585 cat >conftest.$ac_ext <<_ACEOF 10586 /* confdefs.h. */ 10587 _ACEOF 10588 cat confdefs.h >>conftest.$ac_ext 10589 cat >>conftest.$ac_ext <<_ACEOF 10590 /* end confdefs.h. */ 10591 $ac_includes_default 10592 int 10593 main () 10594 { 10595 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 10596 test_array [0] = 0 10597 10598 ; 10599 return 0; 10600 } 10601 _ACEOF 10602 rm -f conftest.$ac_objext 10603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10604 (eval $ac_compile) 2>conftest.er1 10605 ac_status=$? 10606 grep -v '^ *+' conftest.er1 >conftest.err 10607 rm -f conftest.er1 10608 cat conftest.err >&5 10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10610 (exit $ac_status); } && 10611 { ac_try='test -z "$ac_c_werror_flag" 10612 || test ! -s conftest.err' 10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10614 (eval $ac_try) 2>&5 10615 ac_status=$? 10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10617 (exit $ac_status); }; } && 10618 { ac_try='test -s conftest.$ac_objext' 10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10620 (eval $ac_try) 2>&5 10621 ac_status=$? 10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10623 (exit $ac_status); }; }; then 10624 ac_hi=-1 ac_mid=-1 10625 while :; do 10626 cat >conftest.$ac_ext <<_ACEOF 10627 /* confdefs.h. */ 10628 _ACEOF 10629 cat confdefs.h >>conftest.$ac_ext 10630 cat >>conftest.$ac_ext <<_ACEOF 10631 /* end confdefs.h. */ 10632 $ac_includes_default 10633 int 10634 main () 10635 { 10636 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 10637 test_array [0] = 0 10638 10639 ; 10640 return 0; 10641 } 10642 _ACEOF 10643 rm -f conftest.$ac_objext 10644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10645 (eval $ac_compile) 2>conftest.er1 10646 ac_status=$? 10647 grep -v '^ *+' conftest.er1 >conftest.err 10648 rm -f conftest.er1 10649 cat conftest.err >&5 10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10651 (exit $ac_status); } && 10652 { ac_try='test -z "$ac_c_werror_flag" 10653 || test ! -s conftest.err' 10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10655 (eval $ac_try) 2>&5 10656 ac_status=$? 10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10658 (exit $ac_status); }; } && 10659 { ac_try='test -s conftest.$ac_objext' 10660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10661 (eval $ac_try) 2>&5 10662 ac_status=$? 10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10664 (exit $ac_status); }; }; then 10665 ac_lo=$ac_mid; break 10666 else 10667 echo "$as_me: failed program was:" >&5 10668 sed 's/^/| /' conftest.$ac_ext >&5 10669 10670 ac_hi=`expr '(' $ac_mid ')' - 1` 10671 if test $ac_mid -le $ac_hi; then 10672 ac_lo= ac_hi= 10673 break 10674 fi 10675 ac_mid=`expr 2 '*' $ac_mid` 10676 fi 10677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10678 done 10679 else 10680 echo "$as_me: failed program was:" >&5 10681 sed 's/^/| /' conftest.$ac_ext >&5 10682 10683 ac_lo= ac_hi= 10684 fi 10685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10686 fi 10687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10688 # Binary search between lo and hi bounds. 10689 while test "x$ac_lo" != "x$ac_hi"; do 10690 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10691 cat >conftest.$ac_ext <<_ACEOF 10692 /* confdefs.h. */ 10693 _ACEOF 10694 cat confdefs.h >>conftest.$ac_ext 10695 cat >>conftest.$ac_ext <<_ACEOF 10696 /* end confdefs.h. */ 10697 $ac_includes_default 10698 int 10699 main () 10700 { 10701 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 10702 test_array [0] = 0 10703 10704 ; 10705 return 0; 10706 } 10707 _ACEOF 10708 rm -f conftest.$ac_objext 10709 if { (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_hi=$ac_mid 10731 else 10732 echo "$as_me: failed program was:" >&5 10733 sed 's/^/| /' conftest.$ac_ext >&5 10734 10735 ac_lo=`expr '(' $ac_mid ')' + 1` 10736 fi 10737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10738 done 10739 case $ac_lo in 10740 ?*) ac_cv_sizeof_int=$ac_lo;; 10741 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 10742 See \`config.log' for more details." >&5 10743 echo "$as_me: error: cannot compute sizeof (int), 77 10744 See \`config.log' for more details." >&2;} 10745 { (exit 1); exit 1; }; } ;; 10746 esac 10747 else 10748 if test "$cross_compiling" = yes; then 10749 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10750 See \`config.log' for more details." >&5 10751 echo "$as_me: error: cannot run test program while cross compiling 10752 See \`config.log' for more details." >&2;} 10753 { (exit 1); exit 1; }; } 10754 else 10755 cat >conftest.$ac_ext <<_ACEOF 10756 /* confdefs.h. */ 10757 _ACEOF 10758 cat confdefs.h >>conftest.$ac_ext 10759 cat >>conftest.$ac_ext <<_ACEOF 10760 /* end confdefs.h. */ 10761 $ac_includes_default 10762 long longval () { return (long) (sizeof (int)); } 10763 unsigned long ulongval () { return (long) (sizeof (int)); } 10764 #include <stdio.h> 10765 #include <stdlib.h> 10766 int 10767 main () 10768 { 10769 10770 FILE *f = fopen ("conftest.val", "w"); 10771 if (! f) 10772 exit (1); 10773 if (((long) (sizeof (int))) < 0) 10774 { 10775 long i = longval (); 10776 if (i != ((long) (sizeof (int)))) 10777 exit (1); 10778 fprintf (f, "%ld\n", i); 10779 } 10780 else 10781 { 10782 unsigned long i = ulongval (); 10783 if (i != ((long) (sizeof (int)))) 10784 exit (1); 10785 fprintf (f, "%lu\n", i); 10786 } 10787 exit (ferror (f) || fclose (f) != 0); 10788 10789 ; 10790 return 0; 10791 } 10792 _ACEOF 10793 rm -f conftest$ac_exeext 10794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10795 (eval $ac_link) 2>&5 10796 ac_status=$? 10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10800 (eval $ac_try) 2>&5 10801 ac_status=$? 10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10803 (exit $ac_status); }; }; then 10804 ac_cv_sizeof_int=`cat conftest.val` 10805 else 10806 echo "$as_me: program exited with status $ac_status" >&5 10807 echo "$as_me: failed program was:" >&5 10808 sed 's/^/| /' conftest.$ac_ext >&5 10809 10810 ( exit $ac_status ) 10811 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 10812 See \`config.log' for more details." >&5 10813 echo "$as_me: error: cannot compute sizeof (int), 77 10814 See \`config.log' for more details." >&2;} 10815 { (exit 1); exit 1; }; } 10816 fi 10817 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10818 fi 10819 fi 10820 rm -f conftest.val 10821 else 10822 ac_cv_sizeof_int=0 10823 fi 10824 fi 10825 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 10826 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 10827 cat >>confdefs.h <<_ACEOF 10828 #define SIZEOF_INT $ac_cv_sizeof_int 10829 _ACEOF 10830 10831 10832 echo "$as_me:$LINENO: checking for short" >&5 10833 echo $ECHO_N "checking for short... $ECHO_C" >&6 10834 if test "${ac_cv_type_short+set}" = set; then 10835 echo $ECHO_N "(cached) $ECHO_C" >&6 10836 else 10837 cat >conftest.$ac_ext <<_ACEOF 10838 /* confdefs.h. */ 10839 _ACEOF 10840 cat confdefs.h >>conftest.$ac_ext 10841 cat >>conftest.$ac_ext <<_ACEOF 10842 /* end confdefs.h. */ 10843 $ac_includes_default 10844 int 10845 main () 10846 { 10847 if ((short *) 0) 10848 return 0; 10849 if (sizeof (short)) 10850 return 0; 10851 ; 10852 return 0; 10853 } 10854 _ACEOF 10855 rm -f conftest.$ac_objext 10856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10857 (eval $ac_compile) 2>conftest.er1 10858 ac_status=$? 10859 grep -v '^ *+' conftest.er1 >conftest.err 10860 rm -f conftest.er1 10861 cat conftest.err >&5 10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10863 (exit $ac_status); } && 10864 { ac_try='test -z "$ac_c_werror_flag" 10865 || test ! -s conftest.err' 10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10867 (eval $ac_try) 2>&5 10868 ac_status=$? 10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10870 (exit $ac_status); }; } && 10871 { ac_try='test -s conftest.$ac_objext' 10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10873 (eval $ac_try) 2>&5 10874 ac_status=$? 10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10876 (exit $ac_status); }; }; then 10877 ac_cv_type_short=yes 10878 else 10879 echo "$as_me: failed program was:" >&5 10880 sed 's/^/| /' conftest.$ac_ext >&5 10881 10882 ac_cv_type_short=no 10883 fi 10884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10885 fi 10886 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 10887 echo "${ECHO_T}$ac_cv_type_short" >&6 10888 10889 echo "$as_me:$LINENO: checking size of short" >&5 10890 echo $ECHO_N "checking size of short... $ECHO_C" >&6 10891 if test "${ac_cv_sizeof_short+set}" = set; then 10892 echo $ECHO_N "(cached) $ECHO_C" >&6 10893 else 10894 if test "$ac_cv_type_short" = yes; then 10895 # The cast to unsigned long works around a bug in the HP C Compiler 10896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10898 # This bug is HP SR number 8606223364. 10899 if test "$cross_compiling" = yes; then 10900 # Depending upon the size, compute the lo and hi bounds. 10901 cat >conftest.$ac_ext <<_ACEOF 10902 /* confdefs.h. */ 10903 _ACEOF 10904 cat confdefs.h >>conftest.$ac_ext 10905 cat >>conftest.$ac_ext <<_ACEOF 10906 /* end confdefs.h. */ 10907 $ac_includes_default 10908 int 10909 main () 10910 { 10911 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 10912 test_array [0] = 0 10913 10914 ; 10915 return 0; 10916 } 10917 _ACEOF 10918 rm -f conftest.$ac_objext 10919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10920 (eval $ac_compile) 2>conftest.er1 10921 ac_status=$? 10922 grep -v '^ *+' conftest.er1 >conftest.err 10923 rm -f conftest.er1 10924 cat conftest.err >&5 10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10926 (exit $ac_status); } && 10927 { ac_try='test -z "$ac_c_werror_flag" 10928 || test ! -s conftest.err' 10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10930 (eval $ac_try) 2>&5 10931 ac_status=$? 10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10933 (exit $ac_status); }; } && 10934 { ac_try='test -s conftest.$ac_objext' 10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10936 (eval $ac_try) 2>&5 10937 ac_status=$? 10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10939 (exit $ac_status); }; }; then 10940 ac_lo=0 ac_mid=0 10941 while :; do 10942 cat >conftest.$ac_ext <<_ACEOF 10943 /* confdefs.h. */ 10944 _ACEOF 10945 cat confdefs.h >>conftest.$ac_ext 10946 cat >>conftest.$ac_ext <<_ACEOF 10947 /* end confdefs.h. */ 10948 $ac_includes_default 10949 int 10950 main () 10951 { 10952 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 10953 test_array [0] = 0 10954 10955 ; 10956 return 0; 10957 } 10958 _ACEOF 10959 rm -f conftest.$ac_objext 10960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10961 (eval $ac_compile) 2>conftest.er1 10962 ac_status=$? 10963 grep -v '^ *+' conftest.er1 >conftest.err 10964 rm -f conftest.er1 10965 cat conftest.err >&5 10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10967 (exit $ac_status); } && 10968 { ac_try='test -z "$ac_c_werror_flag" 10969 || test ! -s conftest.err' 10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10971 (eval $ac_try) 2>&5 10972 ac_status=$? 10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10974 (exit $ac_status); }; } && 10975 { ac_try='test -s conftest.$ac_objext' 10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10977 (eval $ac_try) 2>&5 10978 ac_status=$? 10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10980 (exit $ac_status); }; }; then 10981 ac_hi=$ac_mid; break 10982 else 10983 echo "$as_me: failed program was:" >&5 10984 sed 's/^/| /' conftest.$ac_ext >&5 10985 10986 ac_lo=`expr $ac_mid + 1` 10987 if test $ac_lo -le $ac_mid; then 10988 ac_lo= ac_hi= 10989 break 10990 fi 10991 ac_mid=`expr 2 '*' $ac_mid + 1` 10992 fi 10993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10994 done 10995 else 10996 echo "$as_me: failed program was:" >&5 10997 sed 's/^/| /' conftest.$ac_ext >&5 10998 10999 cat >conftest.$ac_ext <<_ACEOF 11000 /* confdefs.h. */ 11001 _ACEOF 11002 cat confdefs.h >>conftest.$ac_ext 11003 cat >>conftest.$ac_ext <<_ACEOF 11004 /* end confdefs.h. */ 11005 $ac_includes_default 11006 int 11007 main () 11008 { 11009 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 11010 test_array [0] = 0 11011 11012 ; 11013 return 0; 11014 } 11015 _ACEOF 11016 rm -f conftest.$ac_objext 11017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11018 (eval $ac_compile) 2>conftest.er1 11019 ac_status=$? 11020 grep -v '^ *+' conftest.er1 >conftest.err 11021 rm -f conftest.er1 11022 cat conftest.err >&5 11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11024 (exit $ac_status); } && 11025 { ac_try='test -z "$ac_c_werror_flag" 11026 || test ! -s conftest.err' 11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11028 (eval $ac_try) 2>&5 11029 ac_status=$? 11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11031 (exit $ac_status); }; } && 11032 { ac_try='test -s conftest.$ac_objext' 11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11034 (eval $ac_try) 2>&5 11035 ac_status=$? 11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11037 (exit $ac_status); }; }; then 11038 ac_hi=-1 ac_mid=-1 11039 while :; do 11040 cat >conftest.$ac_ext <<_ACEOF 11041 /* confdefs.h. */ 11042 _ACEOF 11043 cat confdefs.h >>conftest.$ac_ext 11044 cat >>conftest.$ac_ext <<_ACEOF 11045 /* end confdefs.h. */ 11046 $ac_includes_default 11047 int 11048 main () 11049 { 11050 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 11051 test_array [0] = 0 11052 11053 ; 11054 return 0; 11055 } 11056 _ACEOF 11057 rm -f conftest.$ac_objext 11058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11059 (eval $ac_compile) 2>conftest.er1 11060 ac_status=$? 11061 grep -v '^ *+' conftest.er1 >conftest.err 11062 rm -f conftest.er1 11063 cat conftest.err >&5 11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11065 (exit $ac_status); } && 11066 { ac_try='test -z "$ac_c_werror_flag" 11067 || test ! -s conftest.err' 11068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11069 (eval $ac_try) 2>&5 11070 ac_status=$? 11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11072 (exit $ac_status); }; } && 11073 { ac_try='test -s conftest.$ac_objext' 11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11075 (eval $ac_try) 2>&5 11076 ac_status=$? 11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11078 (exit $ac_status); }; }; then 11079 ac_lo=$ac_mid; break 11080 else 11081 echo "$as_me: failed program was:" >&5 11082 sed 's/^/| /' conftest.$ac_ext >&5 11083 11084 ac_hi=`expr '(' $ac_mid ')' - 1` 11085 if test $ac_mid -le $ac_hi; then 11086 ac_lo= ac_hi= 11087 break 11088 fi 11089 ac_mid=`expr 2 '*' $ac_mid` 11090 fi 11091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11092 done 11093 else 11094 echo "$as_me: failed program was:" >&5 11095 sed 's/^/| /' conftest.$ac_ext >&5 11096 11097 ac_lo= ac_hi= 11098 fi 11099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11100 fi 11101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11102 # Binary search between lo and hi bounds. 11103 while test "x$ac_lo" != "x$ac_hi"; do 11104 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 11105 cat >conftest.$ac_ext <<_ACEOF 11106 /* confdefs.h. */ 11107 _ACEOF 11108 cat confdefs.h >>conftest.$ac_ext 11109 cat >>conftest.$ac_ext <<_ACEOF 11110 /* end confdefs.h. */ 11111 $ac_includes_default 11112 int 11113 main () 11114 { 11115 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 11116 test_array [0] = 0 11117 11118 ; 11119 return 0; 11120 } 11121 _ACEOF 11122 rm -f conftest.$ac_objext 11123 if { (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_hi=$ac_mid 11145 else 11146 echo "$as_me: failed program was:" >&5 11147 sed 's/^/| /' conftest.$ac_ext >&5 11148 11149 ac_lo=`expr '(' $ac_mid ')' + 1` 11150 fi 11151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11152 done 11153 case $ac_lo in 11154 ?*) ac_cv_sizeof_short=$ac_lo;; 11155 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 11156 See \`config.log' for more details." >&5 11157 echo "$as_me: error: cannot compute sizeof (short), 77 11158 See \`config.log' for more details." >&2;} 11159 { (exit 1); exit 1; }; } ;; 11160 esac 11161 else 11162 if test "$cross_compiling" = yes; then 11163 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 11164 See \`config.log' for more details." >&5 11165 echo "$as_me: error: cannot run test program while cross compiling 11166 See \`config.log' for more details." >&2;} 11167 { (exit 1); exit 1; }; } 11168 else 11169 cat >conftest.$ac_ext <<_ACEOF 11170 /* confdefs.h. */ 11171 _ACEOF 11172 cat confdefs.h >>conftest.$ac_ext 11173 cat >>conftest.$ac_ext <<_ACEOF 11174 /* end confdefs.h. */ 11175 $ac_includes_default 11176 long longval () { return (long) (sizeof (short)); } 11177 unsigned long ulongval () { return (long) (sizeof (short)); } 11178 #include <stdio.h> 11179 #include <stdlib.h> 11180 int 11181 main () 11182 { 11183 11184 FILE *f = fopen ("conftest.val", "w"); 11185 if (! f) 11186 exit (1); 11187 if (((long) (sizeof (short))) < 0) 11188 { 11189 long i = longval (); 11190 if (i != ((long) (sizeof (short)))) 11191 exit (1); 11192 fprintf (f, "%ld\n", i); 11193 } 11194 else 11195 { 11196 unsigned long i = ulongval (); 11197 if (i != ((long) (sizeof (short)))) 11198 exit (1); 11199 fprintf (f, "%lu\n", i); 11200 } 11201 exit (ferror (f) || fclose (f) != 0); 11202 11203 ; 11204 return 0; 11205 } 11206 _ACEOF 11207 rm -f conftest$ac_exeext 11208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11209 (eval $ac_link) 2>&5 11210 ac_status=$? 11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11214 (eval $ac_try) 2>&5 11215 ac_status=$? 11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11217 (exit $ac_status); }; }; then 11218 ac_cv_sizeof_short=`cat conftest.val` 11219 else 11220 echo "$as_me: program exited with status $ac_status" >&5 11221 echo "$as_me: failed program was:" >&5 11222 sed 's/^/| /' conftest.$ac_ext >&5 11223 11224 ( exit $ac_status ) 11225 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 11226 See \`config.log' for more details." >&5 11227 echo "$as_me: error: cannot compute sizeof (short), 77 11228 See \`config.log' for more details." >&2;} 11229 { (exit 1); exit 1; }; } 11230 fi 11231 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11232 fi 11233 fi 11234 rm -f conftest.val 11235 else 11236 ac_cv_sizeof_short=0 11237 fi 11238 fi 11239 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 11240 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 11241 cat >>confdefs.h <<_ACEOF 11242 #define SIZEOF_SHORT $ac_cv_sizeof_short 11243 _ACEOF 11244 11245 11246 fi 11247 FOUND=0 11248 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 11249 dc_cv_size=`eval echo $dc_cv_loop` 11250 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 11251 if test "$dc_cv_size" = "4"; then 11252 if test "$dc_cv_name" = "int"; then 11253 echo "$as_me:$LINENO: checking for uint32_t" >&5 11254 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 11255 if test "${ac_cv_type_uint32_t+set}" = set; then 11256 echo $ECHO_N "(cached) $ECHO_C" >&6 11257 else 11258 cat >conftest.$ac_ext <<_ACEOF 11259 /* confdefs.h. */ 11260 _ACEOF 11261 cat confdefs.h >>conftest.$ac_ext 11262 cat >>conftest.$ac_ext <<_ACEOF 11263 /* end confdefs.h. */ 11264 $ac_includes_default 11265 int 11266 main () 11267 { 11268 if ((uint32_t *) 0) 11269 return 0; 11270 if (sizeof (uint32_t)) 11271 return 0; 11272 ; 11273 return 0; 11274 } 11275 _ACEOF 11276 rm -f conftest.$ac_objext 11277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11278 (eval $ac_compile) 2>conftest.er1 11279 ac_status=$? 11280 grep -v '^ *+' conftest.er1 >conftest.err 11281 rm -f conftest.er1 11282 cat conftest.err >&5 11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11284 (exit $ac_status); } && 11285 { ac_try='test -z "$ac_c_werror_flag" 11286 || test ! -s conftest.err' 11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11288 (eval $ac_try) 2>&5 11289 ac_status=$? 11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11291 (exit $ac_status); }; } && 11292 { ac_try='test -s conftest.$ac_objext' 11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11294 (eval $ac_try) 2>&5 11295 ac_status=$? 11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11297 (exit $ac_status); }; }; then 11298 ac_cv_type_uint32_t=yes 11299 else 11300 echo "$as_me: failed program was:" >&5 11301 sed 's/^/| /' conftest.$ac_ext >&5 11302 11303 ac_cv_type_uint32_t=no 11304 fi 11305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11306 fi 11307 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 11308 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 11309 if test $ac_cv_type_uint32_t = yes; then 11310 : 11311 else 11312 11313 cat >>confdefs.h <<_ACEOF 11314 #define uint32_t unsigned int 11315 _ACEOF 11316 11317 fi 11318 11319 fi 11320 if test "$dc_cv_name" = "long"; then 11321 echo "$as_me:$LINENO: checking for uint32_t" >&5 11322 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 11323 if test "${ac_cv_type_uint32_t+set}" = set; then 11324 echo $ECHO_N "(cached) $ECHO_C" >&6 11325 else 11326 cat >conftest.$ac_ext <<_ACEOF 11327 /* confdefs.h. */ 11328 _ACEOF 11329 cat confdefs.h >>conftest.$ac_ext 11330 cat >>conftest.$ac_ext <<_ACEOF 11331 /* end confdefs.h. */ 11332 $ac_includes_default 11333 int 11334 main () 11335 { 11336 if ((uint32_t *) 0) 11337 return 0; 11338 if (sizeof (uint32_t)) 11339 return 0; 11340 ; 11341 return 0; 11342 } 11343 _ACEOF 11344 rm -f conftest.$ac_objext 11345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11346 (eval $ac_compile) 2>conftest.er1 11347 ac_status=$? 11348 grep -v '^ *+' conftest.er1 >conftest.err 11349 rm -f conftest.er1 11350 cat conftest.err >&5 11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11352 (exit $ac_status); } && 11353 { ac_try='test -z "$ac_c_werror_flag" 11354 || test ! -s conftest.err' 11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11356 (eval $ac_try) 2>&5 11357 ac_status=$? 11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11359 (exit $ac_status); }; } && 11360 { ac_try='test -s conftest.$ac_objext' 11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11362 (eval $ac_try) 2>&5 11363 ac_status=$? 11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11365 (exit $ac_status); }; }; then 11366 ac_cv_type_uint32_t=yes 11367 else 11368 echo "$as_me: failed program was:" >&5 11369 sed 's/^/| /' conftest.$ac_ext >&5 11370 11371 ac_cv_type_uint32_t=no 11372 fi 11373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11374 fi 11375 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 11376 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 11377 if test $ac_cv_type_uint32_t = yes; then 11378 : 11379 else 11380 11381 cat >>confdefs.h <<_ACEOF 11382 #define uint32_t unsigned long 11383 _ACEOF 11384 11385 fi 11386 11387 fi 11388 if test "$dc_cv_name" = "long_long"; then 11389 echo "$as_me:$LINENO: checking for uint32_t" >&5 11390 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 11391 if test "${ac_cv_type_uint32_t+set}" = set; then 11392 echo $ECHO_N "(cached) $ECHO_C" >&6 11393 else 11394 cat >conftest.$ac_ext <<_ACEOF 11395 /* confdefs.h. */ 11396 _ACEOF 11397 cat confdefs.h >>conftest.$ac_ext 11398 cat >>conftest.$ac_ext <<_ACEOF 11399 /* end confdefs.h. */ 11400 $ac_includes_default 11401 int 11402 main () 11403 { 11404 if ((uint32_t *) 0) 11405 return 0; 11406 if (sizeof (uint32_t)) 11407 return 0; 11408 ; 11409 return 0; 11410 } 11411 _ACEOF 11412 rm -f conftest.$ac_objext 11413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11414 (eval $ac_compile) 2>conftest.er1 11415 ac_status=$? 11416 grep -v '^ *+' conftest.er1 >conftest.err 11417 rm -f conftest.er1 11418 cat conftest.err >&5 11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11420 (exit $ac_status); } && 11421 { ac_try='test -z "$ac_c_werror_flag" 11422 || test ! -s conftest.err' 11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11424 (eval $ac_try) 2>&5 11425 ac_status=$? 11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11427 (exit $ac_status); }; } && 11428 { ac_try='test -s conftest.$ac_objext' 11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11430 (eval $ac_try) 2>&5 11431 ac_status=$? 11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11433 (exit $ac_status); }; }; then 11434 ac_cv_type_uint32_t=yes 11435 else 11436 echo "$as_me: failed program was:" >&5 11437 sed 's/^/| /' conftest.$ac_ext >&5 11438 11439 ac_cv_type_uint32_t=no 11440 fi 11441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11442 fi 11443 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 11444 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 11445 if test $ac_cv_type_uint32_t = yes; then 11446 : 11447 else 11448 11449 cat >>confdefs.h <<_ACEOF 11450 #define uint32_t unsigned long long 11451 _ACEOF 11452 11453 fi 11454 11455 fi 11456 if test "$dc_cv_name" = "short"; then 11457 echo "$as_me:$LINENO: checking for uint32_t" >&5 11458 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 11459 if test "${ac_cv_type_uint32_t+set}" = set; then 11460 echo $ECHO_N "(cached) $ECHO_C" >&6 11461 else 11462 cat >conftest.$ac_ext <<_ACEOF 11463 /* confdefs.h. */ 11464 _ACEOF 11465 cat confdefs.h >>conftest.$ac_ext 11466 cat >>conftest.$ac_ext <<_ACEOF 11467 /* end confdefs.h. */ 11468 $ac_includes_default 11469 int 11470 main () 11471 { 11472 if ((uint32_t *) 0) 11473 return 0; 11474 if (sizeof (uint32_t)) 11475 return 0; 11476 ; 11477 return 0; 11478 } 11479 _ACEOF 11480 rm -f conftest.$ac_objext 11481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11482 (eval $ac_compile) 2>conftest.er1 11483 ac_status=$? 11484 grep -v '^ *+' conftest.er1 >conftest.err 11485 rm -f conftest.er1 11486 cat conftest.err >&5 11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11488 (exit $ac_status); } && 11489 { ac_try='test -z "$ac_c_werror_flag" 11490 || test ! -s conftest.err' 11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11492 (eval $ac_try) 2>&5 11493 ac_status=$? 11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11495 (exit $ac_status); }; } && 11496 { ac_try='test -s conftest.$ac_objext' 11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11498 (eval $ac_try) 2>&5 11499 ac_status=$? 11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11501 (exit $ac_status); }; }; then 11502 ac_cv_type_uint32_t=yes 11503 else 11504 echo "$as_me: failed program was:" >&5 11505 sed 's/^/| /' conftest.$ac_ext >&5 11506 11507 ac_cv_type_uint32_t=no 11508 fi 11509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11510 fi 11511 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 11512 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 11513 if test $ac_cv_type_uint32_t = yes; then 11514 : 11515 else 11516 11517 cat >>confdefs.h <<_ACEOF 11518 #define uint32_t unsigned short 11519 _ACEOF 11520 11521 fi 11522 11523 fi 11524 FOUND=1 11525 break 11526 fi 11527 done 11528 11529 11530 if test -z "$ac_cv_sizeof_long"; then 11531 echo "$as_me:$LINENO: checking for inline" >&5 11532 echo $ECHO_N "checking for inline... $ECHO_C" >&6 11533 if test "${ac_cv_c_inline+set}" = set; then 11534 echo $ECHO_N "(cached) $ECHO_C" >&6 11535 else 11536 ac_cv_c_inline=no 11537 for ac_kw in inline __inline__ __inline; do 11538 cat >conftest.$ac_ext <<_ACEOF 11539 /* confdefs.h. */ 11540 _ACEOF 11541 cat confdefs.h >>conftest.$ac_ext 11542 cat >>conftest.$ac_ext <<_ACEOF 11543 /* end confdefs.h. */ 11544 #ifndef __cplusplus 11545 typedef int foo_t; 11546 static $ac_kw foo_t static_foo () {return 0; } 11547 $ac_kw foo_t foo () {return 0; } 11548 #endif 11549 11550 _ACEOF 11551 rm -f conftest.$ac_objext 11552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11553 (eval $ac_compile) 2>conftest.er1 11554 ac_status=$? 11555 grep -v '^ *+' conftest.er1 >conftest.err 11556 rm -f conftest.er1 11557 cat conftest.err >&5 11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11559 (exit $ac_status); } && 11560 { ac_try='test -z "$ac_c_werror_flag" 11561 || test ! -s conftest.err' 11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11563 (eval $ac_try) 2>&5 11564 ac_status=$? 11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11566 (exit $ac_status); }; } && 11567 { ac_try='test -s conftest.$ac_objext' 11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11569 (eval $ac_try) 2>&5 11570 ac_status=$? 11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11572 (exit $ac_status); }; }; then 11573 ac_cv_c_inline=$ac_kw; break 11574 else 11575 echo "$as_me: failed program was:" >&5 11576 sed 's/^/| /' conftest.$ac_ext >&5 11577 11578 fi 11579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11580 done 11581 11582 fi 11583 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 11584 echo "${ECHO_T}$ac_cv_c_inline" >&6 11585 11586 11587 case $ac_cv_c_inline in 11588 inline | yes) ;; 11589 *) 11590 case $ac_cv_c_inline in 11591 no) ac_val=;; 11592 *) ac_val=$ac_cv_c_inline;; 11593 esac 11594 cat >>confdefs.h <<_ACEOF 11595 #ifndef __cplusplus 11596 #define inline $ac_val 11597 #endif 11598 _ACEOF 11599 ;; 11600 esac 11601 11602 echo "$as_me:$LINENO: checking for long long" >&5 11603 echo $ECHO_N "checking for long long... $ECHO_C" >&6 11604 if test "${ac_cv_type_long_long+set}" = set; then 11605 echo $ECHO_N "(cached) $ECHO_C" >&6 11606 else 11607 cat >conftest.$ac_ext <<_ACEOF 11608 /* confdefs.h. */ 11609 _ACEOF 11610 cat confdefs.h >>conftest.$ac_ext 11611 cat >>conftest.$ac_ext <<_ACEOF 11612 /* end confdefs.h. */ 11613 $ac_includes_default 11614 int 11615 main () 11616 { 11617 if ((long long *) 0) 11618 return 0; 11619 if (sizeof (long long)) 11620 return 0; 11621 ; 11622 return 0; 11623 } 11624 _ACEOF 11625 rm -f conftest.$ac_objext 11626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11627 (eval $ac_compile) 2>conftest.er1 11628 ac_status=$? 11629 grep -v '^ *+' conftest.er1 >conftest.err 11630 rm -f conftest.er1 11631 cat conftest.err >&5 11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11633 (exit $ac_status); } && 11634 { ac_try='test -z "$ac_c_werror_flag" 11635 || test ! -s conftest.err' 11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11637 (eval $ac_try) 2>&5 11638 ac_status=$? 11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11640 (exit $ac_status); }; } && 11641 { ac_try='test -s conftest.$ac_objext' 11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11643 (eval $ac_try) 2>&5 11644 ac_status=$? 11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11646 (exit $ac_status); }; }; then 11647 ac_cv_type_long_long=yes 11648 else 11649 echo "$as_me: failed program was:" >&5 11650 sed 's/^/| /' conftest.$ac_ext >&5 11651 11652 ac_cv_type_long_long=no 11653 fi 11654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11655 fi 11656 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 11657 echo "${ECHO_T}$ac_cv_type_long_long" >&6 11658 11659 echo "$as_me:$LINENO: checking size of long long" >&5 11660 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 11661 if test "${ac_cv_sizeof_long_long+set}" = set; then 11662 echo $ECHO_N "(cached) $ECHO_C" >&6 11663 else 11664 if test "$ac_cv_type_long_long" = yes; then 11665 # The cast to unsigned long works around a bug in the HP C Compiler 11666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11668 # This bug is HP SR number 8606223364. 11669 if test "$cross_compiling" = yes; then 11670 # Depending upon the size, compute the lo and hi bounds. 11671 cat >conftest.$ac_ext <<_ACEOF 11672 /* confdefs.h. */ 11673 _ACEOF 11674 cat confdefs.h >>conftest.$ac_ext 11675 cat >>conftest.$ac_ext <<_ACEOF 11676 /* end confdefs.h. */ 11677 $ac_includes_default 11678 int 11679 main () 11680 { 11681 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 11682 test_array [0] = 0 11683 11684 ; 11685 return 0; 11686 } 11687 _ACEOF 11688 rm -f conftest.$ac_objext 11689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11690 (eval $ac_compile) 2>conftest.er1 11691 ac_status=$? 11692 grep -v '^ *+' conftest.er1 >conftest.err 11693 rm -f conftest.er1 11694 cat conftest.err >&5 11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11696 (exit $ac_status); } && 11697 { ac_try='test -z "$ac_c_werror_flag" 11698 || test ! -s conftest.err' 11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11700 (eval $ac_try) 2>&5 11701 ac_status=$? 11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11703 (exit $ac_status); }; } && 11704 { ac_try='test -s conftest.$ac_objext' 11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11706 (eval $ac_try) 2>&5 11707 ac_status=$? 11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11709 (exit $ac_status); }; }; then 11710 ac_lo=0 ac_mid=0 11711 while :; do 11712 cat >conftest.$ac_ext <<_ACEOF 11713 /* confdefs.h. */ 11714 _ACEOF 11715 cat confdefs.h >>conftest.$ac_ext 11716 cat >>conftest.$ac_ext <<_ACEOF 11717 /* end confdefs.h. */ 11718 $ac_includes_default 11719 int 11720 main () 11721 { 11722 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 11723 test_array [0] = 0 11724 11725 ; 11726 return 0; 11727 } 11728 _ACEOF 11729 rm -f conftest.$ac_objext 11730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11731 (eval $ac_compile) 2>conftest.er1 11732 ac_status=$? 11733 grep -v '^ *+' conftest.er1 >conftest.err 11734 rm -f conftest.er1 11735 cat conftest.err >&5 11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11737 (exit $ac_status); } && 11738 { ac_try='test -z "$ac_c_werror_flag" 11739 || test ! -s conftest.err' 11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11741 (eval $ac_try) 2>&5 11742 ac_status=$? 11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11744 (exit $ac_status); }; } && 11745 { ac_try='test -s conftest.$ac_objext' 11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11747 (eval $ac_try) 2>&5 11748 ac_status=$? 11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11750 (exit $ac_status); }; }; then 11751 ac_hi=$ac_mid; break 11752 else 11753 echo "$as_me: failed program was:" >&5 11754 sed 's/^/| /' conftest.$ac_ext >&5 11755 11756 ac_lo=`expr $ac_mid + 1` 11757 if test $ac_lo -le $ac_mid; then 11758 ac_lo= ac_hi= 11759 break 11760 fi 11761 ac_mid=`expr 2 '*' $ac_mid + 1` 11762 fi 11763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11764 done 11765 else 11766 echo "$as_me: failed program was:" >&5 11767 sed 's/^/| /' conftest.$ac_ext >&5 11768 11769 cat >conftest.$ac_ext <<_ACEOF 11770 /* confdefs.h. */ 11771 _ACEOF 11772 cat confdefs.h >>conftest.$ac_ext 11773 cat >>conftest.$ac_ext <<_ACEOF 11774 /* end confdefs.h. */ 11775 $ac_includes_default 11776 int 11777 main () 11778 { 11779 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 11780 test_array [0] = 0 11781 11782 ; 11783 return 0; 11784 } 11785 _ACEOF 11786 rm -f conftest.$ac_objext 11787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11788 (eval $ac_compile) 2>conftest.er1 11789 ac_status=$? 11790 grep -v '^ *+' conftest.er1 >conftest.err 11791 rm -f conftest.er1 11792 cat conftest.err >&5 11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11794 (exit $ac_status); } && 11795 { ac_try='test -z "$ac_c_werror_flag" 11796 || test ! -s conftest.err' 11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11798 (eval $ac_try) 2>&5 11799 ac_status=$? 11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11801 (exit $ac_status); }; } && 11802 { ac_try='test -s conftest.$ac_objext' 11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11804 (eval $ac_try) 2>&5 11805 ac_status=$? 11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11807 (exit $ac_status); }; }; then 11808 ac_hi=-1 ac_mid=-1 11809 while :; do 11810 cat >conftest.$ac_ext <<_ACEOF 11811 /* confdefs.h. */ 11812 _ACEOF 11813 cat confdefs.h >>conftest.$ac_ext 11814 cat >>conftest.$ac_ext <<_ACEOF 11815 /* end confdefs.h. */ 11816 $ac_includes_default 11817 int 11818 main () 11819 { 11820 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 11821 test_array [0] = 0 11822 11823 ; 11824 return 0; 11825 } 11826 _ACEOF 11827 rm -f conftest.$ac_objext 11828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11829 (eval $ac_compile) 2>conftest.er1 11830 ac_status=$? 11831 grep -v '^ *+' conftest.er1 >conftest.err 11832 rm -f conftest.er1 11833 cat conftest.err >&5 11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11835 (exit $ac_status); } && 11836 { ac_try='test -z "$ac_c_werror_flag" 11837 || test ! -s conftest.err' 11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11839 (eval $ac_try) 2>&5 11840 ac_status=$? 11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11842 (exit $ac_status); }; } && 11843 { ac_try='test -s conftest.$ac_objext' 11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11845 (eval $ac_try) 2>&5 11846 ac_status=$? 11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11848 (exit $ac_status); }; }; then 11849 ac_lo=$ac_mid; break 11850 else 11851 echo "$as_me: failed program was:" >&5 11852 sed 's/^/| /' conftest.$ac_ext >&5 11853 11854 ac_hi=`expr '(' $ac_mid ')' - 1` 11855 if test $ac_mid -le $ac_hi; then 11856 ac_lo= ac_hi= 11857 break 11858 fi 11859 ac_mid=`expr 2 '*' $ac_mid` 11860 fi 11861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11862 done 11863 else 11864 echo "$as_me: failed program was:" >&5 11865 sed 's/^/| /' conftest.$ac_ext >&5 11866 11867 ac_lo= ac_hi= 11868 fi 11869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11870 fi 11871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11872 # Binary search between lo and hi bounds. 11873 while test "x$ac_lo" != "x$ac_hi"; do 11874 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 11875 cat >conftest.$ac_ext <<_ACEOF 11876 /* confdefs.h. */ 11877 _ACEOF 11878 cat confdefs.h >>conftest.$ac_ext 11879 cat >>conftest.$ac_ext <<_ACEOF 11880 /* end confdefs.h. */ 11881 $ac_includes_default 11882 int 11883 main () 11884 { 11885 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 11886 test_array [0] = 0 11887 11888 ; 11889 return 0; 11890 } 11891 _ACEOF 11892 rm -f conftest.$ac_objext 11893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11894 (eval $ac_compile) 2>conftest.er1 11895 ac_status=$? 11896 grep -v '^ *+' conftest.er1 >conftest.err 11897 rm -f conftest.er1 11898 cat conftest.err >&5 11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11900 (exit $ac_status); } && 11901 { ac_try='test -z "$ac_c_werror_flag" 11902 || test ! -s conftest.err' 11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11904 (eval $ac_try) 2>&5 11905 ac_status=$? 11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11907 (exit $ac_status); }; } && 11908 { ac_try='test -s conftest.$ac_objext' 11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11910 (eval $ac_try) 2>&5 11911 ac_status=$? 11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11913 (exit $ac_status); }; }; then 11914 ac_hi=$ac_mid 11915 else 11916 echo "$as_me: failed program was:" >&5 11917 sed 's/^/| /' conftest.$ac_ext >&5 11918 11919 ac_lo=`expr '(' $ac_mid ')' + 1` 11920 fi 11921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11922 done 11923 case $ac_lo in 11924 ?*) ac_cv_sizeof_long_long=$ac_lo;; 11925 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 11926 See \`config.log' for more details." >&5 11927 echo "$as_me: error: cannot compute sizeof (long long), 77 11928 See \`config.log' for more details." >&2;} 11929 { (exit 1); exit 1; }; } ;; 11930 esac 11931 else 11932 if test "$cross_compiling" = yes; then 11933 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 11934 See \`config.log' for more details." >&5 11935 echo "$as_me: error: cannot run test program while cross compiling 11936 See \`config.log' for more details." >&2;} 11937 { (exit 1); exit 1; }; } 11938 else 11939 cat >conftest.$ac_ext <<_ACEOF 11940 /* confdefs.h. */ 11941 _ACEOF 11942 cat confdefs.h >>conftest.$ac_ext 11943 cat >>conftest.$ac_ext <<_ACEOF 11944 /* end confdefs.h. */ 11945 $ac_includes_default 11946 long longval () { return (long) (sizeof (long long)); } 11947 unsigned long ulongval () { return (long) (sizeof (long long)); } 11948 #include <stdio.h> 11949 #include <stdlib.h> 11950 int 11951 main () 11952 { 11953 11954 FILE *f = fopen ("conftest.val", "w"); 11955 if (! f) 11956 exit (1); 11957 if (((long) (sizeof (long long))) < 0) 11958 { 11959 long i = longval (); 11960 if (i != ((long) (sizeof (long long)))) 11961 exit (1); 11962 fprintf (f, "%ld\n", i); 11963 } 11964 else 11965 { 11966 unsigned long i = ulongval (); 11967 if (i != ((long) (sizeof (long long)))) 11968 exit (1); 11969 fprintf (f, "%lu\n", i); 11970 } 11971 exit (ferror (f) || fclose (f) != 0); 11972 11973 ; 11974 return 0; 11975 } 11976 _ACEOF 11977 rm -f conftest$ac_exeext 11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11979 (eval $ac_link) 2>&5 11980 ac_status=$? 11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11984 (eval $ac_try) 2>&5 11985 ac_status=$? 11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11987 (exit $ac_status); }; }; then 11988 ac_cv_sizeof_long_long=`cat conftest.val` 11989 else 11990 echo "$as_me: program exited with status $ac_status" >&5 11991 echo "$as_me: failed program was:" >&5 11992 sed 's/^/| /' conftest.$ac_ext >&5 11993 11994 ( exit $ac_status ) 11995 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 11996 See \`config.log' for more details." >&5 11997 echo "$as_me: error: cannot compute sizeof (long long), 77 11998 See \`config.log' for more details." >&2;} 11999 { (exit 1); exit 1; }; } 12000 fi 12001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12002 fi 12003 fi 12004 rm -f conftest.val 12005 else 12006 ac_cv_sizeof_long_long=0 12007 fi 12008 fi 12009 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 12010 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 12011 cat >>confdefs.h <<_ACEOF 12012 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 12013 _ACEOF 12014 12015 12016 echo "$as_me:$LINENO: checking for long" >&5 12017 echo $ECHO_N "checking for long... $ECHO_C" >&6 12018 if test "${ac_cv_type_long+set}" = set; then 12019 echo $ECHO_N "(cached) $ECHO_C" >&6 12020 else 12021 cat >conftest.$ac_ext <<_ACEOF 12022 /* confdefs.h. */ 12023 _ACEOF 12024 cat confdefs.h >>conftest.$ac_ext 12025 cat >>conftest.$ac_ext <<_ACEOF 12026 /* end confdefs.h. */ 12027 $ac_includes_default 12028 int 12029 main () 12030 { 12031 if ((long *) 0) 12032 return 0; 12033 if (sizeof (long)) 12034 return 0; 12035 ; 12036 return 0; 12037 } 12038 _ACEOF 12039 rm -f conftest.$ac_objext 12040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12041 (eval $ac_compile) 2>conftest.er1 12042 ac_status=$? 12043 grep -v '^ *+' conftest.er1 >conftest.err 12044 rm -f conftest.er1 12045 cat conftest.err >&5 12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12047 (exit $ac_status); } && 12048 { ac_try='test -z "$ac_c_werror_flag" 12049 || test ! -s conftest.err' 12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12051 (eval $ac_try) 2>&5 12052 ac_status=$? 12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12054 (exit $ac_status); }; } && 12055 { ac_try='test -s conftest.$ac_objext' 12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12057 (eval $ac_try) 2>&5 12058 ac_status=$? 12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12060 (exit $ac_status); }; }; then 12061 ac_cv_type_long=yes 12062 else 12063 echo "$as_me: failed program was:" >&5 12064 sed 's/^/| /' conftest.$ac_ext >&5 12065 12066 ac_cv_type_long=no 12067 fi 12068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12069 fi 12070 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 12071 echo "${ECHO_T}$ac_cv_type_long" >&6 12072 12073 echo "$as_me:$LINENO: checking size of long" >&5 12074 echo $ECHO_N "checking size of long... $ECHO_C" >&6 12075 if test "${ac_cv_sizeof_long+set}" = set; then 12076 echo $ECHO_N "(cached) $ECHO_C" >&6 12077 else 12078 if test "$ac_cv_type_long" = yes; then 12079 # The cast to unsigned long works around a bug in the HP C Compiler 12080 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12081 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12082 # This bug is HP SR number 8606223364. 12083 if test "$cross_compiling" = yes; then 12084 # Depending upon the size, compute the lo and hi bounds. 12085 cat >conftest.$ac_ext <<_ACEOF 12086 /* confdefs.h. */ 12087 _ACEOF 12088 cat confdefs.h >>conftest.$ac_ext 12089 cat >>conftest.$ac_ext <<_ACEOF 12090 /* end confdefs.h. */ 12091 $ac_includes_default 12092 int 12093 main () 12094 { 12095 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 12096 test_array [0] = 0 12097 12098 ; 12099 return 0; 12100 } 12101 _ACEOF 12102 rm -f conftest.$ac_objext 12103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12104 (eval $ac_compile) 2>conftest.er1 12105 ac_status=$? 12106 grep -v '^ *+' conftest.er1 >conftest.err 12107 rm -f conftest.er1 12108 cat conftest.err >&5 12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12110 (exit $ac_status); } && 12111 { ac_try='test -z "$ac_c_werror_flag" 12112 || test ! -s conftest.err' 12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12114 (eval $ac_try) 2>&5 12115 ac_status=$? 12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12117 (exit $ac_status); }; } && 12118 { ac_try='test -s conftest.$ac_objext' 12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12120 (eval $ac_try) 2>&5 12121 ac_status=$? 12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12123 (exit $ac_status); }; }; then 12124 ac_lo=0 ac_mid=0 12125 while :; do 12126 cat >conftest.$ac_ext <<_ACEOF 12127 /* confdefs.h. */ 12128 _ACEOF 12129 cat confdefs.h >>conftest.$ac_ext 12130 cat >>conftest.$ac_ext <<_ACEOF 12131 /* end confdefs.h. */ 12132 $ac_includes_default 12133 int 12134 main () 12135 { 12136 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 12137 test_array [0] = 0 12138 12139 ; 12140 return 0; 12141 } 12142 _ACEOF 12143 rm -f conftest.$ac_objext 12144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12145 (eval $ac_compile) 2>conftest.er1 12146 ac_status=$? 12147 grep -v '^ *+' conftest.er1 >conftest.err 12148 rm -f conftest.er1 12149 cat conftest.err >&5 12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12151 (exit $ac_status); } && 12152 { ac_try='test -z "$ac_c_werror_flag" 12153 || test ! -s conftest.err' 12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12155 (eval $ac_try) 2>&5 12156 ac_status=$? 12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12158 (exit $ac_status); }; } && 12159 { ac_try='test -s conftest.$ac_objext' 12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12161 (eval $ac_try) 2>&5 12162 ac_status=$? 12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12164 (exit $ac_status); }; }; then 12165 ac_hi=$ac_mid; break 12166 else 12167 echo "$as_me: failed program was:" >&5 12168 sed 's/^/| /' conftest.$ac_ext >&5 12169 12170 ac_lo=`expr $ac_mid + 1` 12171 if test $ac_lo -le $ac_mid; then 12172 ac_lo= ac_hi= 12173 break 12174 fi 12175 ac_mid=`expr 2 '*' $ac_mid + 1` 12176 fi 12177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12178 done 12179 else 12180 echo "$as_me: failed program was:" >&5 12181 sed 's/^/| /' conftest.$ac_ext >&5 12182 12183 cat >conftest.$ac_ext <<_ACEOF 12184 /* confdefs.h. */ 12185 _ACEOF 12186 cat confdefs.h >>conftest.$ac_ext 12187 cat >>conftest.$ac_ext <<_ACEOF 12188 /* end confdefs.h. */ 12189 $ac_includes_default 12190 int 12191 main () 12192 { 12193 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 12194 test_array [0] = 0 12195 12196 ; 12197 return 0; 12198 } 12199 _ACEOF 12200 rm -f conftest.$ac_objext 12201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12202 (eval $ac_compile) 2>conftest.er1 12203 ac_status=$? 12204 grep -v '^ *+' conftest.er1 >conftest.err 12205 rm -f conftest.er1 12206 cat conftest.err >&5 12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12208 (exit $ac_status); } && 12209 { ac_try='test -z "$ac_c_werror_flag" 12210 || test ! -s conftest.err' 12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12212 (eval $ac_try) 2>&5 12213 ac_status=$? 12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12215 (exit $ac_status); }; } && 12216 { ac_try='test -s conftest.$ac_objext' 12217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12218 (eval $ac_try) 2>&5 12219 ac_status=$? 12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12221 (exit $ac_status); }; }; then 12222 ac_hi=-1 ac_mid=-1 12223 while :; do 12224 cat >conftest.$ac_ext <<_ACEOF 12225 /* confdefs.h. */ 12226 _ACEOF 12227 cat confdefs.h >>conftest.$ac_ext 12228 cat >>conftest.$ac_ext <<_ACEOF 12229 /* end confdefs.h. */ 12230 $ac_includes_default 12231 int 12232 main () 12233 { 12234 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 12235 test_array [0] = 0 12236 12237 ; 12238 return 0; 12239 } 12240 _ACEOF 12241 rm -f conftest.$ac_objext 12242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12243 (eval $ac_compile) 2>conftest.er1 12244 ac_status=$? 12245 grep -v '^ *+' conftest.er1 >conftest.err 12246 rm -f conftest.er1 12247 cat conftest.err >&5 12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12249 (exit $ac_status); } && 12250 { ac_try='test -z "$ac_c_werror_flag" 12251 || test ! -s conftest.err' 12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12253 (eval $ac_try) 2>&5 12254 ac_status=$? 12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12256 (exit $ac_status); }; } && 12257 { ac_try='test -s conftest.$ac_objext' 12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12259 (eval $ac_try) 2>&5 12260 ac_status=$? 12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12262 (exit $ac_status); }; }; then 12263 ac_lo=$ac_mid; break 12264 else 12265 echo "$as_me: failed program was:" >&5 12266 sed 's/^/| /' conftest.$ac_ext >&5 12267 12268 ac_hi=`expr '(' $ac_mid ')' - 1` 12269 if test $ac_mid -le $ac_hi; then 12270 ac_lo= ac_hi= 12271 break 12272 fi 12273 ac_mid=`expr 2 '*' $ac_mid` 12274 fi 12275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12276 done 12277 else 12278 echo "$as_me: failed program was:" >&5 12279 sed 's/^/| /' conftest.$ac_ext >&5 12280 12281 ac_lo= ac_hi= 12282 fi 12283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12284 fi 12285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12286 # Binary search between lo and hi bounds. 12287 while test "x$ac_lo" != "x$ac_hi"; do 12288 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12289 cat >conftest.$ac_ext <<_ACEOF 12290 /* confdefs.h. */ 12291 _ACEOF 12292 cat confdefs.h >>conftest.$ac_ext 12293 cat >>conftest.$ac_ext <<_ACEOF 12294 /* end confdefs.h. */ 12295 $ac_includes_default 12296 int 12297 main () 12298 { 12299 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 12300 test_array [0] = 0 12301 12302 ; 12303 return 0; 12304 } 12305 _ACEOF 12306 rm -f conftest.$ac_objext 12307 if { (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_hi=$ac_mid 12329 else 12330 echo "$as_me: failed program was:" >&5 12331 sed 's/^/| /' conftest.$ac_ext >&5 12332 12333 ac_lo=`expr '(' $ac_mid ')' + 1` 12334 fi 12335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12336 done 12337 case $ac_lo in 12338 ?*) ac_cv_sizeof_long=$ac_lo;; 12339 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 12340 See \`config.log' for more details." >&5 12341 echo "$as_me: error: cannot compute sizeof (long), 77 12342 See \`config.log' for more details." >&2;} 12343 { (exit 1); exit 1; }; } ;; 12344 esac 12345 else 12346 if test "$cross_compiling" = yes; then 12347 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12348 See \`config.log' for more details." >&5 12349 echo "$as_me: error: cannot run test program while cross compiling 12350 See \`config.log' for more details." >&2;} 12351 { (exit 1); exit 1; }; } 12352 else 12353 cat >conftest.$ac_ext <<_ACEOF 12354 /* confdefs.h. */ 12355 _ACEOF 12356 cat confdefs.h >>conftest.$ac_ext 12357 cat >>conftest.$ac_ext <<_ACEOF 12358 /* end confdefs.h. */ 12359 $ac_includes_default 12360 long longval () { return (long) (sizeof (long)); } 12361 unsigned long ulongval () { return (long) (sizeof (long)); } 12362 #include <stdio.h> 12363 #include <stdlib.h> 12364 int 12365 main () 12366 { 12367 12368 FILE *f = fopen ("conftest.val", "w"); 12369 if (! f) 12370 exit (1); 12371 if (((long) (sizeof (long))) < 0) 12372 { 12373 long i = longval (); 12374 if (i != ((long) (sizeof (long)))) 12375 exit (1); 12376 fprintf (f, "%ld\n", i); 12377 } 12378 else 12379 { 12380 unsigned long i = ulongval (); 12381 if (i != ((long) (sizeof (long)))) 12382 exit (1); 12383 fprintf (f, "%lu\n", i); 12384 } 12385 exit (ferror (f) || fclose (f) != 0); 12386 12387 ; 12388 return 0; 12389 } 12390 _ACEOF 12391 rm -f conftest$ac_exeext 12392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12393 (eval $ac_link) 2>&5 12394 ac_status=$? 12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12398 (eval $ac_try) 2>&5 12399 ac_status=$? 12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12401 (exit $ac_status); }; }; then 12402 ac_cv_sizeof_long=`cat conftest.val` 12403 else 12404 echo "$as_me: program exited with status $ac_status" >&5 12405 echo "$as_me: failed program was:" >&5 12406 sed 's/^/| /' conftest.$ac_ext >&5 12407 12408 ( exit $ac_status ) 12409 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 12410 See \`config.log' for more details." >&5 12411 echo "$as_me: error: cannot compute sizeof (long), 77 12412 See \`config.log' for more details." >&2;} 12413 { (exit 1); exit 1; }; } 12414 fi 12415 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12416 fi 12417 fi 12418 rm -f conftest.val 12419 else 12420 ac_cv_sizeof_long=0 12421 fi 12422 fi 12423 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 12424 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 12425 cat >>confdefs.h <<_ACEOF 12426 #define SIZEOF_LONG $ac_cv_sizeof_long 12427 _ACEOF 12428 12429 12430 echo "$as_me:$LINENO: checking for int" >&5 12431 echo $ECHO_N "checking for int... $ECHO_C" >&6 12432 if test "${ac_cv_type_int+set}" = set; then 12433 echo $ECHO_N "(cached) $ECHO_C" >&6 12434 else 12435 cat >conftest.$ac_ext <<_ACEOF 12436 /* confdefs.h. */ 12437 _ACEOF 12438 cat confdefs.h >>conftest.$ac_ext 12439 cat >>conftest.$ac_ext <<_ACEOF 12440 /* end confdefs.h. */ 12441 $ac_includes_default 12442 int 12443 main () 12444 { 12445 if ((int *) 0) 12446 return 0; 12447 if (sizeof (int)) 12448 return 0; 12449 ; 12450 return 0; 12451 } 12452 _ACEOF 12453 rm -f conftest.$ac_objext 12454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12455 (eval $ac_compile) 2>conftest.er1 12456 ac_status=$? 12457 grep -v '^ *+' conftest.er1 >conftest.err 12458 rm -f conftest.er1 12459 cat conftest.err >&5 12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12461 (exit $ac_status); } && 12462 { ac_try='test -z "$ac_c_werror_flag" 12463 || test ! -s conftest.err' 12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12465 (eval $ac_try) 2>&5 12466 ac_status=$? 12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12468 (exit $ac_status); }; } && 12469 { ac_try='test -s conftest.$ac_objext' 12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12471 (eval $ac_try) 2>&5 12472 ac_status=$? 12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12474 (exit $ac_status); }; }; then 12475 ac_cv_type_int=yes 12476 else 12477 echo "$as_me: failed program was:" >&5 12478 sed 's/^/| /' conftest.$ac_ext >&5 12479 12480 ac_cv_type_int=no 12481 fi 12482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12483 fi 12484 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 12485 echo "${ECHO_T}$ac_cv_type_int" >&6 12486 12487 echo "$as_me:$LINENO: checking size of int" >&5 12488 echo $ECHO_N "checking size of int... $ECHO_C" >&6 12489 if test "${ac_cv_sizeof_int+set}" = set; then 12490 echo $ECHO_N "(cached) $ECHO_C" >&6 12491 else 12492 if test "$ac_cv_type_int" = yes; then 12493 # The cast to unsigned long works around a bug in the HP C Compiler 12494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12496 # This bug is HP SR number 8606223364. 12497 if test "$cross_compiling" = yes; then 12498 # Depending upon the size, compute the lo and hi bounds. 12499 cat >conftest.$ac_ext <<_ACEOF 12500 /* confdefs.h. */ 12501 _ACEOF 12502 cat confdefs.h >>conftest.$ac_ext 12503 cat >>conftest.$ac_ext <<_ACEOF 12504 /* end confdefs.h. */ 12505 $ac_includes_default 12506 int 12507 main () 12508 { 12509 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 12510 test_array [0] = 0 12511 12512 ; 12513 return 0; 12514 } 12515 _ACEOF 12516 rm -f conftest.$ac_objext 12517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12518 (eval $ac_compile) 2>conftest.er1 12519 ac_status=$? 12520 grep -v '^ *+' conftest.er1 >conftest.err 12521 rm -f conftest.er1 12522 cat conftest.err >&5 12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12524 (exit $ac_status); } && 12525 { ac_try='test -z "$ac_c_werror_flag" 12526 || test ! -s conftest.err' 12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12528 (eval $ac_try) 2>&5 12529 ac_status=$? 12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12531 (exit $ac_status); }; } && 12532 { ac_try='test -s conftest.$ac_objext' 12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12534 (eval $ac_try) 2>&5 12535 ac_status=$? 12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12537 (exit $ac_status); }; }; then 12538 ac_lo=0 ac_mid=0 12539 while :; do 12540 cat >conftest.$ac_ext <<_ACEOF 12541 /* confdefs.h. */ 12542 _ACEOF 12543 cat confdefs.h >>conftest.$ac_ext 12544 cat >>conftest.$ac_ext <<_ACEOF 12545 /* end confdefs.h. */ 12546 $ac_includes_default 12547 int 12548 main () 12549 { 12550 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 12551 test_array [0] = 0 12552 12553 ; 12554 return 0; 12555 } 12556 _ACEOF 12557 rm -f conftest.$ac_objext 12558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12559 (eval $ac_compile) 2>conftest.er1 12560 ac_status=$? 12561 grep -v '^ *+' conftest.er1 >conftest.err 12562 rm -f conftest.er1 12563 cat conftest.err >&5 12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12565 (exit $ac_status); } && 12566 { ac_try='test -z "$ac_c_werror_flag" 12567 || test ! -s conftest.err' 12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12569 (eval $ac_try) 2>&5 12570 ac_status=$? 12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12572 (exit $ac_status); }; } && 12573 { ac_try='test -s conftest.$ac_objext' 12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12575 (eval $ac_try) 2>&5 12576 ac_status=$? 12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12578 (exit $ac_status); }; }; then 12579 ac_hi=$ac_mid; break 12580 else 12581 echo "$as_me: failed program was:" >&5 12582 sed 's/^/| /' conftest.$ac_ext >&5 12583 12584 ac_lo=`expr $ac_mid + 1` 12585 if test $ac_lo -le $ac_mid; then 12586 ac_lo= ac_hi= 12587 break 12588 fi 12589 ac_mid=`expr 2 '*' $ac_mid + 1` 12590 fi 12591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12592 done 12593 else 12594 echo "$as_me: failed program was:" >&5 12595 sed 's/^/| /' conftest.$ac_ext >&5 12596 12597 cat >conftest.$ac_ext <<_ACEOF 12598 /* confdefs.h. */ 12599 _ACEOF 12600 cat confdefs.h >>conftest.$ac_ext 12601 cat >>conftest.$ac_ext <<_ACEOF 12602 /* end confdefs.h. */ 12603 $ac_includes_default 12604 int 12605 main () 12606 { 12607 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 12608 test_array [0] = 0 12609 12610 ; 12611 return 0; 12612 } 12613 _ACEOF 12614 rm -f conftest.$ac_objext 12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12616 (eval $ac_compile) 2>conftest.er1 12617 ac_status=$? 12618 grep -v '^ *+' conftest.er1 >conftest.err 12619 rm -f conftest.er1 12620 cat conftest.err >&5 12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12622 (exit $ac_status); } && 12623 { ac_try='test -z "$ac_c_werror_flag" 12624 || test ! -s conftest.err' 12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12626 (eval $ac_try) 2>&5 12627 ac_status=$? 12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12629 (exit $ac_status); }; } && 12630 { ac_try='test -s conftest.$ac_objext' 12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12632 (eval $ac_try) 2>&5 12633 ac_status=$? 12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12635 (exit $ac_status); }; }; then 12636 ac_hi=-1 ac_mid=-1 12637 while :; do 12638 cat >conftest.$ac_ext <<_ACEOF 12639 /* confdefs.h. */ 12640 _ACEOF 12641 cat confdefs.h >>conftest.$ac_ext 12642 cat >>conftest.$ac_ext <<_ACEOF 12643 /* end confdefs.h. */ 12644 $ac_includes_default 12645 int 12646 main () 12647 { 12648 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 12649 test_array [0] = 0 12650 12651 ; 12652 return 0; 12653 } 12654 _ACEOF 12655 rm -f conftest.$ac_objext 12656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12657 (eval $ac_compile) 2>conftest.er1 12658 ac_status=$? 12659 grep -v '^ *+' conftest.er1 >conftest.err 12660 rm -f conftest.er1 12661 cat conftest.err >&5 12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12663 (exit $ac_status); } && 12664 { ac_try='test -z "$ac_c_werror_flag" 12665 || test ! -s conftest.err' 12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12667 (eval $ac_try) 2>&5 12668 ac_status=$? 12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12670 (exit $ac_status); }; } && 12671 { ac_try='test -s conftest.$ac_objext' 12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12673 (eval $ac_try) 2>&5 12674 ac_status=$? 12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12676 (exit $ac_status); }; }; then 12677 ac_lo=$ac_mid; break 12678 else 12679 echo "$as_me: failed program was:" >&5 12680 sed 's/^/| /' conftest.$ac_ext >&5 12681 12682 ac_hi=`expr '(' $ac_mid ')' - 1` 12683 if test $ac_mid -le $ac_hi; then 12684 ac_lo= ac_hi= 12685 break 12686 fi 12687 ac_mid=`expr 2 '*' $ac_mid` 12688 fi 12689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12690 done 12691 else 12692 echo "$as_me: failed program was:" >&5 12693 sed 's/^/| /' conftest.$ac_ext >&5 12694 12695 ac_lo= ac_hi= 12696 fi 12697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12698 fi 12699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12700 # Binary search between lo and hi bounds. 12701 while test "x$ac_lo" != "x$ac_hi"; do 12702 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12703 cat >conftest.$ac_ext <<_ACEOF 12704 /* confdefs.h. */ 12705 _ACEOF 12706 cat confdefs.h >>conftest.$ac_ext 12707 cat >>conftest.$ac_ext <<_ACEOF 12708 /* end confdefs.h. */ 12709 $ac_includes_default 12710 int 12711 main () 12712 { 12713 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 12714 test_array [0] = 0 12715 12716 ; 12717 return 0; 12718 } 12719 _ACEOF 12720 rm -f conftest.$ac_objext 12721 if { (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_hi=$ac_mid 12743 else 12744 echo "$as_me: failed program was:" >&5 12745 sed 's/^/| /' conftest.$ac_ext >&5 12746 12747 ac_lo=`expr '(' $ac_mid ')' + 1` 12748 fi 12749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12750 done 12751 case $ac_lo in 12752 ?*) ac_cv_sizeof_int=$ac_lo;; 12753 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 12754 See \`config.log' for more details." >&5 12755 echo "$as_me: error: cannot compute sizeof (int), 77 12756 See \`config.log' for more details." >&2;} 12757 { (exit 1); exit 1; }; } ;; 12758 esac 12759 else 12760 if test "$cross_compiling" = yes; then 12761 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12762 See \`config.log' for more details." >&5 12763 echo "$as_me: error: cannot run test program while cross compiling 12764 See \`config.log' for more details." >&2;} 12765 { (exit 1); exit 1; }; } 12766 else 12767 cat >conftest.$ac_ext <<_ACEOF 12768 /* confdefs.h. */ 12769 _ACEOF 12770 cat confdefs.h >>conftest.$ac_ext 12771 cat >>conftest.$ac_ext <<_ACEOF 12772 /* end confdefs.h. */ 12773 $ac_includes_default 12774 long longval () { return (long) (sizeof (int)); } 12775 unsigned long ulongval () { return (long) (sizeof (int)); } 12776 #include <stdio.h> 12777 #include <stdlib.h> 12778 int 12779 main () 12780 { 12781 12782 FILE *f = fopen ("conftest.val", "w"); 12783 if (! f) 12784 exit (1); 12785 if (((long) (sizeof (int))) < 0) 12786 { 12787 long i = longval (); 12788 if (i != ((long) (sizeof (int)))) 12789 exit (1); 12790 fprintf (f, "%ld\n", i); 12791 } 12792 else 12793 { 12794 unsigned long i = ulongval (); 12795 if (i != ((long) (sizeof (int)))) 12796 exit (1); 12797 fprintf (f, "%lu\n", i); 12798 } 12799 exit (ferror (f) || fclose (f) != 0); 12800 12801 ; 12802 return 0; 12803 } 12804 _ACEOF 12805 rm -f conftest$ac_exeext 12806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12807 (eval $ac_link) 2>&5 12808 ac_status=$? 12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12812 (eval $ac_try) 2>&5 12813 ac_status=$? 12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12815 (exit $ac_status); }; }; then 12816 ac_cv_sizeof_int=`cat conftest.val` 12817 else 12818 echo "$as_me: program exited with status $ac_status" >&5 12819 echo "$as_me: failed program was:" >&5 12820 sed 's/^/| /' conftest.$ac_ext >&5 12821 12822 ( exit $ac_status ) 12823 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 12824 See \`config.log' for more details." >&5 12825 echo "$as_me: error: cannot compute sizeof (int), 77 12826 See \`config.log' for more details." >&2;} 12827 { (exit 1); exit 1; }; } 12828 fi 12829 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12830 fi 12831 fi 12832 rm -f conftest.val 12833 else 12834 ac_cv_sizeof_int=0 12835 fi 12836 fi 12837 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 12838 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 12839 cat >>confdefs.h <<_ACEOF 12840 #define SIZEOF_INT $ac_cv_sizeof_int 12841 _ACEOF 12842 12843 12844 echo "$as_me:$LINENO: checking for short" >&5 12845 echo $ECHO_N "checking for short... $ECHO_C" >&6 12846 if test "${ac_cv_type_short+set}" = set; then 12847 echo $ECHO_N "(cached) $ECHO_C" >&6 12848 else 12849 cat >conftest.$ac_ext <<_ACEOF 12850 /* confdefs.h. */ 12851 _ACEOF 12852 cat confdefs.h >>conftest.$ac_ext 12853 cat >>conftest.$ac_ext <<_ACEOF 12854 /* end confdefs.h. */ 12855 $ac_includes_default 12856 int 12857 main () 12858 { 12859 if ((short *) 0) 12860 return 0; 12861 if (sizeof (short)) 12862 return 0; 12863 ; 12864 return 0; 12865 } 12866 _ACEOF 12867 rm -f conftest.$ac_objext 12868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12869 (eval $ac_compile) 2>conftest.er1 12870 ac_status=$? 12871 grep -v '^ *+' conftest.er1 >conftest.err 12872 rm -f conftest.er1 12873 cat conftest.err >&5 12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12875 (exit $ac_status); } && 12876 { ac_try='test -z "$ac_c_werror_flag" 12877 || test ! -s conftest.err' 12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12879 (eval $ac_try) 2>&5 12880 ac_status=$? 12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12882 (exit $ac_status); }; } && 12883 { ac_try='test -s conftest.$ac_objext' 12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12885 (eval $ac_try) 2>&5 12886 ac_status=$? 12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12888 (exit $ac_status); }; }; then 12889 ac_cv_type_short=yes 12890 else 12891 echo "$as_me: failed program was:" >&5 12892 sed 's/^/| /' conftest.$ac_ext >&5 12893 12894 ac_cv_type_short=no 12895 fi 12896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12897 fi 12898 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 12899 echo "${ECHO_T}$ac_cv_type_short" >&6 12900 12901 echo "$as_me:$LINENO: checking size of short" >&5 12902 echo $ECHO_N "checking size of short... $ECHO_C" >&6 12903 if test "${ac_cv_sizeof_short+set}" = set; then 12904 echo $ECHO_N "(cached) $ECHO_C" >&6 12905 else 12906 if test "$ac_cv_type_short" = yes; then 12907 # The cast to unsigned long works around a bug in the HP C Compiler 12908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12910 # This bug is HP SR number 8606223364. 12911 if test "$cross_compiling" = yes; then 12912 # Depending upon the size, compute the lo and hi bounds. 12913 cat >conftest.$ac_ext <<_ACEOF 12914 /* confdefs.h. */ 12915 _ACEOF 12916 cat confdefs.h >>conftest.$ac_ext 12917 cat >>conftest.$ac_ext <<_ACEOF 12918 /* end confdefs.h. */ 12919 $ac_includes_default 12920 int 12921 main () 12922 { 12923 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 12924 test_array [0] = 0 12925 12926 ; 12927 return 0; 12928 } 12929 _ACEOF 12930 rm -f conftest.$ac_objext 12931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12932 (eval $ac_compile) 2>conftest.er1 12933 ac_status=$? 12934 grep -v '^ *+' conftest.er1 >conftest.err 12935 rm -f conftest.er1 12936 cat conftest.err >&5 12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12938 (exit $ac_status); } && 12939 { ac_try='test -z "$ac_c_werror_flag" 12940 || test ! -s conftest.err' 12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12942 (eval $ac_try) 2>&5 12943 ac_status=$? 12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12945 (exit $ac_status); }; } && 12946 { ac_try='test -s conftest.$ac_objext' 12947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12948 (eval $ac_try) 2>&5 12949 ac_status=$? 12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12951 (exit $ac_status); }; }; then 12952 ac_lo=0 ac_mid=0 12953 while :; do 12954 cat >conftest.$ac_ext <<_ACEOF 12955 /* confdefs.h. */ 12956 _ACEOF 12957 cat confdefs.h >>conftest.$ac_ext 12958 cat >>conftest.$ac_ext <<_ACEOF 12959 /* end confdefs.h. */ 12960 $ac_includes_default 12961 int 12962 main () 12963 { 12964 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 12965 test_array [0] = 0 12966 12967 ; 12968 return 0; 12969 } 12970 _ACEOF 12971 rm -f conftest.$ac_objext 12972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12973 (eval $ac_compile) 2>conftest.er1 12974 ac_status=$? 12975 grep -v '^ *+' conftest.er1 >conftest.err 12976 rm -f conftest.er1 12977 cat conftest.err >&5 12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12979 (exit $ac_status); } && 12980 { ac_try='test -z "$ac_c_werror_flag" 12981 || test ! -s conftest.err' 12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12983 (eval $ac_try) 2>&5 12984 ac_status=$? 12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12986 (exit $ac_status); }; } && 12987 { ac_try='test -s conftest.$ac_objext' 12988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12989 (eval $ac_try) 2>&5 12990 ac_status=$? 12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12992 (exit $ac_status); }; }; then 12993 ac_hi=$ac_mid; break 12994 else 12995 echo "$as_me: failed program was:" >&5 12996 sed 's/^/| /' conftest.$ac_ext >&5 12997 12998 ac_lo=`expr $ac_mid + 1` 12999 if test $ac_lo -le $ac_mid; then 13000 ac_lo= ac_hi= 13001 break 13002 fi 13003 ac_mid=`expr 2 '*' $ac_mid + 1` 13004 fi 13005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13006 done 13007 else 13008 echo "$as_me: failed program was:" >&5 13009 sed 's/^/| /' conftest.$ac_ext >&5 13010 13011 cat >conftest.$ac_ext <<_ACEOF 13012 /* confdefs.h. */ 13013 _ACEOF 13014 cat confdefs.h >>conftest.$ac_ext 13015 cat >>conftest.$ac_ext <<_ACEOF 13016 /* end confdefs.h. */ 13017 $ac_includes_default 13018 int 13019 main () 13020 { 13021 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 13022 test_array [0] = 0 13023 13024 ; 13025 return 0; 13026 } 13027 _ACEOF 13028 rm -f conftest.$ac_objext 13029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13030 (eval $ac_compile) 2>conftest.er1 13031 ac_status=$? 13032 grep -v '^ *+' conftest.er1 >conftest.err 13033 rm -f conftest.er1 13034 cat conftest.err >&5 13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13036 (exit $ac_status); } && 13037 { ac_try='test -z "$ac_c_werror_flag" 13038 || test ! -s conftest.err' 13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13040 (eval $ac_try) 2>&5 13041 ac_status=$? 13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13043 (exit $ac_status); }; } && 13044 { ac_try='test -s conftest.$ac_objext' 13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13046 (eval $ac_try) 2>&5 13047 ac_status=$? 13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13049 (exit $ac_status); }; }; then 13050 ac_hi=-1 ac_mid=-1 13051 while :; do 13052 cat >conftest.$ac_ext <<_ACEOF 13053 /* confdefs.h. */ 13054 _ACEOF 13055 cat confdefs.h >>conftest.$ac_ext 13056 cat >>conftest.$ac_ext <<_ACEOF 13057 /* end confdefs.h. */ 13058 $ac_includes_default 13059 int 13060 main () 13061 { 13062 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 13063 test_array [0] = 0 13064 13065 ; 13066 return 0; 13067 } 13068 _ACEOF 13069 rm -f conftest.$ac_objext 13070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13071 (eval $ac_compile) 2>conftest.er1 13072 ac_status=$? 13073 grep -v '^ *+' conftest.er1 >conftest.err 13074 rm -f conftest.er1 13075 cat conftest.err >&5 13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13077 (exit $ac_status); } && 13078 { ac_try='test -z "$ac_c_werror_flag" 13079 || test ! -s conftest.err' 13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13081 (eval $ac_try) 2>&5 13082 ac_status=$? 13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13084 (exit $ac_status); }; } && 13085 { ac_try='test -s conftest.$ac_objext' 13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13087 (eval $ac_try) 2>&5 13088 ac_status=$? 13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13090 (exit $ac_status); }; }; then 13091 ac_lo=$ac_mid; break 13092 else 13093 echo "$as_me: failed program was:" >&5 13094 sed 's/^/| /' conftest.$ac_ext >&5 13095 13096 ac_hi=`expr '(' $ac_mid ')' - 1` 13097 if test $ac_mid -le $ac_hi; then 13098 ac_lo= ac_hi= 13099 break 13100 fi 13101 ac_mid=`expr 2 '*' $ac_mid` 13102 fi 13103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13104 done 13105 else 13106 echo "$as_me: failed program was:" >&5 13107 sed 's/^/| /' conftest.$ac_ext >&5 13108 13109 ac_lo= ac_hi= 13110 fi 13111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13112 fi 13113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13114 # Binary search between lo and hi bounds. 13115 while test "x$ac_lo" != "x$ac_hi"; do 13116 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13117 cat >conftest.$ac_ext <<_ACEOF 13118 /* confdefs.h. */ 13119 _ACEOF 13120 cat confdefs.h >>conftest.$ac_ext 13121 cat >>conftest.$ac_ext <<_ACEOF 13122 /* end confdefs.h. */ 13123 $ac_includes_default 13124 int 13125 main () 13126 { 13127 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 13128 test_array [0] = 0 13129 13130 ; 13131 return 0; 13132 } 13133 _ACEOF 13134 rm -f conftest.$ac_objext 13135 if { (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_hi=$ac_mid 13157 else 13158 echo "$as_me: failed program was:" >&5 13159 sed 's/^/| /' conftest.$ac_ext >&5 13160 13161 ac_lo=`expr '(' $ac_mid ')' + 1` 13162 fi 13163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13164 done 13165 case $ac_lo in 13166 ?*) ac_cv_sizeof_short=$ac_lo;; 13167 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 13168 See \`config.log' for more details." >&5 13169 echo "$as_me: error: cannot compute sizeof (short), 77 13170 See \`config.log' for more details." >&2;} 13171 { (exit 1); exit 1; }; } ;; 13172 esac 13173 else 13174 if test "$cross_compiling" = yes; then 13175 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 13176 See \`config.log' for more details." >&5 13177 echo "$as_me: error: cannot run test program while cross compiling 13178 See \`config.log' for more details." >&2;} 13179 { (exit 1); exit 1; }; } 13180 else 13181 cat >conftest.$ac_ext <<_ACEOF 13182 /* confdefs.h. */ 13183 _ACEOF 13184 cat confdefs.h >>conftest.$ac_ext 13185 cat >>conftest.$ac_ext <<_ACEOF 13186 /* end confdefs.h. */ 13187 $ac_includes_default 13188 long longval () { return (long) (sizeof (short)); } 13189 unsigned long ulongval () { return (long) (sizeof (short)); } 13190 #include <stdio.h> 13191 #include <stdlib.h> 13192 int 13193 main () 13194 { 13195 13196 FILE *f = fopen ("conftest.val", "w"); 13197 if (! f) 13198 exit (1); 13199 if (((long) (sizeof (short))) < 0) 13200 { 13201 long i = longval (); 13202 if (i != ((long) (sizeof (short)))) 13203 exit (1); 13204 fprintf (f, "%ld\n", i); 13205 } 13206 else 13207 { 13208 unsigned long i = ulongval (); 13209 if (i != ((long) (sizeof (short)))) 13210 exit (1); 13211 fprintf (f, "%lu\n", i); 13212 } 13213 exit (ferror (f) || fclose (f) != 0); 13214 13215 ; 13216 return 0; 13217 } 13218 _ACEOF 13219 rm -f conftest$ac_exeext 13220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13221 (eval $ac_link) 2>&5 13222 ac_status=$? 13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13226 (eval $ac_try) 2>&5 13227 ac_status=$? 13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13229 (exit $ac_status); }; }; then 13230 ac_cv_sizeof_short=`cat conftest.val` 13231 else 13232 echo "$as_me: program exited with status $ac_status" >&5 13233 echo "$as_me: failed program was:" >&5 13234 sed 's/^/| /' conftest.$ac_ext >&5 13235 13236 ( exit $ac_status ) 13237 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 13238 See \`config.log' for more details." >&5 13239 echo "$as_me: error: cannot compute sizeof (short), 77 13240 See \`config.log' for more details." >&2;} 13241 { (exit 1); exit 1; }; } 13242 fi 13243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13244 fi 13245 fi 13246 rm -f conftest.val 13247 else 13248 ac_cv_sizeof_short=0 13249 fi 13250 fi 13251 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 13252 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 13253 cat >>confdefs.h <<_ACEOF 13254 #define SIZEOF_SHORT $ac_cv_sizeof_short 13255 _ACEOF 13256 13257 13258 fi 13259 FOUND=0 13260 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 13261 dc_cv_size=`eval echo $dc_cv_loop` 13262 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 13263 if test "$dc_cv_size" = "4"; then 13264 if test "$dc_cv_name" = "int"; then 13265 echo "$as_me:$LINENO: checking for int32_t" >&5 13266 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 13267 if test "${ac_cv_type_int32_t+set}" = set; then 13268 echo $ECHO_N "(cached) $ECHO_C" >&6 13269 else 13270 cat >conftest.$ac_ext <<_ACEOF 13271 /* confdefs.h. */ 13272 _ACEOF 13273 cat confdefs.h >>conftest.$ac_ext 13274 cat >>conftest.$ac_ext <<_ACEOF 13275 /* end confdefs.h. */ 13276 $ac_includes_default 13277 int 13278 main () 13279 { 13280 if ((int32_t *) 0) 13281 return 0; 13282 if (sizeof (int32_t)) 13283 return 0; 13284 ; 13285 return 0; 13286 } 13287 _ACEOF 13288 rm -f conftest.$ac_objext 13289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13290 (eval $ac_compile) 2>conftest.er1 13291 ac_status=$? 13292 grep -v '^ *+' conftest.er1 >conftest.err 13293 rm -f conftest.er1 13294 cat conftest.err >&5 13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13296 (exit $ac_status); } && 13297 { ac_try='test -z "$ac_c_werror_flag" 13298 || test ! -s conftest.err' 13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13300 (eval $ac_try) 2>&5 13301 ac_status=$? 13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13303 (exit $ac_status); }; } && 13304 { ac_try='test -s conftest.$ac_objext' 13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13306 (eval $ac_try) 2>&5 13307 ac_status=$? 13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13309 (exit $ac_status); }; }; then 13310 ac_cv_type_int32_t=yes 13311 else 13312 echo "$as_me: failed program was:" >&5 13313 sed 's/^/| /' conftest.$ac_ext >&5 13314 13315 ac_cv_type_int32_t=no 13316 fi 13317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13318 fi 13319 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 13320 echo "${ECHO_T}$ac_cv_type_int32_t" >&6 13321 if test $ac_cv_type_int32_t = yes; then 13322 : 13323 else 13324 13325 cat >>confdefs.h <<_ACEOF 13326 #define int32_t signed int 13327 _ACEOF 13328 13329 fi 13330 13331 fi 13332 if test "$dc_cv_name" = "long"; then 13333 echo "$as_me:$LINENO: checking for int32_t" >&5 13334 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 13335 if test "${ac_cv_type_int32_t+set}" = set; then 13336 echo $ECHO_N "(cached) $ECHO_C" >&6 13337 else 13338 cat >conftest.$ac_ext <<_ACEOF 13339 /* confdefs.h. */ 13340 _ACEOF 13341 cat confdefs.h >>conftest.$ac_ext 13342 cat >>conftest.$ac_ext <<_ACEOF 13343 /* end confdefs.h. */ 13344 $ac_includes_default 13345 int 13346 main () 13347 { 13348 if ((int32_t *) 0) 13349 return 0; 13350 if (sizeof (int32_t)) 13351 return 0; 13352 ; 13353 return 0; 13354 } 13355 _ACEOF 13356 rm -f conftest.$ac_objext 13357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13358 (eval $ac_compile) 2>conftest.er1 13359 ac_status=$? 13360 grep -v '^ *+' conftest.er1 >conftest.err 13361 rm -f conftest.er1 13362 cat conftest.err >&5 13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13364 (exit $ac_status); } && 13365 { ac_try='test -z "$ac_c_werror_flag" 13366 || test ! -s conftest.err' 13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13368 (eval $ac_try) 2>&5 13369 ac_status=$? 13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13371 (exit $ac_status); }; } && 13372 { ac_try='test -s conftest.$ac_objext' 13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13374 (eval $ac_try) 2>&5 13375 ac_status=$? 13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13377 (exit $ac_status); }; }; then 13378 ac_cv_type_int32_t=yes 13379 else 13380 echo "$as_me: failed program was:" >&5 13381 sed 's/^/| /' conftest.$ac_ext >&5 13382 13383 ac_cv_type_int32_t=no 13384 fi 13385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13386 fi 13387 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 13388 echo "${ECHO_T}$ac_cv_type_int32_t" >&6 13389 if test $ac_cv_type_int32_t = yes; then 13390 : 13391 else 13392 13393 cat >>confdefs.h <<_ACEOF 13394 #define int32_t signed long 13395 _ACEOF 13396 13397 fi 13398 13399 fi 13400 if test "$dc_cv_name" = "long_long"; then 13401 echo "$as_me:$LINENO: checking for int32_t" >&5 13402 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 13403 if test "${ac_cv_type_int32_t+set}" = set; then 13404 echo $ECHO_N "(cached) $ECHO_C" >&6 13405 else 13406 cat >conftest.$ac_ext <<_ACEOF 13407 /* confdefs.h. */ 13408 _ACEOF 13409 cat confdefs.h >>conftest.$ac_ext 13410 cat >>conftest.$ac_ext <<_ACEOF 13411 /* end confdefs.h. */ 13412 $ac_includes_default 13413 int 13414 main () 13415 { 13416 if ((int32_t *) 0) 13417 return 0; 13418 if (sizeof (int32_t)) 13419 return 0; 13420 ; 13421 return 0; 13422 } 13423 _ACEOF 13424 rm -f conftest.$ac_objext 13425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13426 (eval $ac_compile) 2>conftest.er1 13427 ac_status=$? 13428 grep -v '^ *+' conftest.er1 >conftest.err 13429 rm -f conftest.er1 13430 cat conftest.err >&5 13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13432 (exit $ac_status); } && 13433 { ac_try='test -z "$ac_c_werror_flag" 13434 || test ! -s conftest.err' 13435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13436 (eval $ac_try) 2>&5 13437 ac_status=$? 13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13439 (exit $ac_status); }; } && 13440 { ac_try='test -s conftest.$ac_objext' 13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13442 (eval $ac_try) 2>&5 13443 ac_status=$? 13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13445 (exit $ac_status); }; }; then 13446 ac_cv_type_int32_t=yes 13447 else 13448 echo "$as_me: failed program was:" >&5 13449 sed 's/^/| /' conftest.$ac_ext >&5 13450 13451 ac_cv_type_int32_t=no 13452 fi 13453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13454 fi 13455 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 13456 echo "${ECHO_T}$ac_cv_type_int32_t" >&6 13457 if test $ac_cv_type_int32_t = yes; then 13458 : 13459 else 13460 13461 cat >>confdefs.h <<_ACEOF 13462 #define int32_t signed long long 13463 _ACEOF 13464 13465 fi 13466 13467 fi 13468 if test "$dc_cv_name" = "short"; then 13469 echo "$as_me:$LINENO: checking for int32_t" >&5 13470 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 13471 if test "${ac_cv_type_int32_t+set}" = set; then 13472 echo $ECHO_N "(cached) $ECHO_C" >&6 13473 else 13474 cat >conftest.$ac_ext <<_ACEOF 13475 /* confdefs.h. */ 13476 _ACEOF 13477 cat confdefs.h >>conftest.$ac_ext 13478 cat >>conftest.$ac_ext <<_ACEOF 13479 /* end confdefs.h. */ 13480 $ac_includes_default 13481 int 13482 main () 13483 { 13484 if ((int32_t *) 0) 13485 return 0; 13486 if (sizeof (int32_t)) 13487 return 0; 13488 ; 13489 return 0; 13490 } 13491 _ACEOF 13492 rm -f conftest.$ac_objext 13493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13494 (eval $ac_compile) 2>conftest.er1 13495 ac_status=$? 13496 grep -v '^ *+' conftest.er1 >conftest.err 13497 rm -f conftest.er1 13498 cat conftest.err >&5 13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13500 (exit $ac_status); } && 13501 { ac_try='test -z "$ac_c_werror_flag" 13502 || test ! -s conftest.err' 13503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13504 (eval $ac_try) 2>&5 13505 ac_status=$? 13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13507 (exit $ac_status); }; } && 13508 { ac_try='test -s conftest.$ac_objext' 13509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13510 (eval $ac_try) 2>&5 13511 ac_status=$? 13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13513 (exit $ac_status); }; }; then 13514 ac_cv_type_int32_t=yes 13515 else 13516 echo "$as_me: failed program was:" >&5 13517 sed 's/^/| /' conftest.$ac_ext >&5 13518 13519 ac_cv_type_int32_t=no 13520 fi 13521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13522 fi 13523 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 13524 echo "${ECHO_T}$ac_cv_type_int32_t" >&6 13525 if test $ac_cv_type_int32_t = yes; then 13526 : 13527 else 13528 13529 cat >>confdefs.h <<_ACEOF 13530 #define int32_t signed short 13531 _ACEOF 13532 13533 fi 13534 13535 fi 13536 FOUND=1 13537 break 13538 fi 13539 done 13540 13541 13542 if test -z "$ac_cv_sizeof_long"; then 13543 echo "$as_me:$LINENO: checking for inline" >&5 13544 echo $ECHO_N "checking for inline... $ECHO_C" >&6 13545 if test "${ac_cv_c_inline+set}" = set; then 13546 echo $ECHO_N "(cached) $ECHO_C" >&6 13547 else 13548 ac_cv_c_inline=no 13549 for ac_kw in inline __inline__ __inline; do 13550 cat >conftest.$ac_ext <<_ACEOF 13551 /* confdefs.h. */ 13552 _ACEOF 13553 cat confdefs.h >>conftest.$ac_ext 13554 cat >>conftest.$ac_ext <<_ACEOF 13555 /* end confdefs.h. */ 13556 #ifndef __cplusplus 13557 typedef int foo_t; 13558 static $ac_kw foo_t static_foo () {return 0; } 13559 $ac_kw foo_t foo () {return 0; } 13560 #endif 13561 13562 _ACEOF 13563 rm -f conftest.$ac_objext 13564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13565 (eval $ac_compile) 2>conftest.er1 13566 ac_status=$? 13567 grep -v '^ *+' conftest.er1 >conftest.err 13568 rm -f conftest.er1 13569 cat conftest.err >&5 13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13571 (exit $ac_status); } && 13572 { ac_try='test -z "$ac_c_werror_flag" 13573 || test ! -s conftest.err' 13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13575 (eval $ac_try) 2>&5 13576 ac_status=$? 13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13578 (exit $ac_status); }; } && 13579 { ac_try='test -s conftest.$ac_objext' 13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13581 (eval $ac_try) 2>&5 13582 ac_status=$? 13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13584 (exit $ac_status); }; }; then 13585 ac_cv_c_inline=$ac_kw; break 13586 else 13587 echo "$as_me: failed program was:" >&5 13588 sed 's/^/| /' conftest.$ac_ext >&5 13589 13590 fi 13591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13592 done 13593 13594 fi 13595 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 13596 echo "${ECHO_T}$ac_cv_c_inline" >&6 13597 13598 13599 case $ac_cv_c_inline in 13600 inline | yes) ;; 13601 *) 13602 case $ac_cv_c_inline in 13603 no) ac_val=;; 13604 *) ac_val=$ac_cv_c_inline;; 13605 esac 13606 cat >>confdefs.h <<_ACEOF 13607 #ifndef __cplusplus 13608 #define inline $ac_val 13609 #endif 13610 _ACEOF 13611 ;; 13612 esac 13613 13614 echo "$as_me:$LINENO: checking for long long" >&5 13615 echo $ECHO_N "checking for long long... $ECHO_C" >&6 13616 if test "${ac_cv_type_long_long+set}" = set; then 13617 echo $ECHO_N "(cached) $ECHO_C" >&6 13618 else 13619 cat >conftest.$ac_ext <<_ACEOF 13620 /* confdefs.h. */ 13621 _ACEOF 13622 cat confdefs.h >>conftest.$ac_ext 13623 cat >>conftest.$ac_ext <<_ACEOF 13624 /* end confdefs.h. */ 13625 $ac_includes_default 13626 int 13627 main () 13628 { 13629 if ((long long *) 0) 13630 return 0; 13631 if (sizeof (long long)) 13632 return 0; 13633 ; 13634 return 0; 13635 } 13636 _ACEOF 13637 rm -f conftest.$ac_objext 13638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13639 (eval $ac_compile) 2>conftest.er1 13640 ac_status=$? 13641 grep -v '^ *+' conftest.er1 >conftest.err 13642 rm -f conftest.er1 13643 cat conftest.err >&5 13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13645 (exit $ac_status); } && 13646 { ac_try='test -z "$ac_c_werror_flag" 13647 || test ! -s conftest.err' 13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13649 (eval $ac_try) 2>&5 13650 ac_status=$? 13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13652 (exit $ac_status); }; } && 13653 { ac_try='test -s conftest.$ac_objext' 13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13655 (eval $ac_try) 2>&5 13656 ac_status=$? 13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13658 (exit $ac_status); }; }; then 13659 ac_cv_type_long_long=yes 13660 else 13661 echo "$as_me: failed program was:" >&5 13662 sed 's/^/| /' conftest.$ac_ext >&5 13663 13664 ac_cv_type_long_long=no 13665 fi 13666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13667 fi 13668 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 13669 echo "${ECHO_T}$ac_cv_type_long_long" >&6 13670 13671 echo "$as_me:$LINENO: checking size of long long" >&5 13672 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 13673 if test "${ac_cv_sizeof_long_long+set}" = set; then 13674 echo $ECHO_N "(cached) $ECHO_C" >&6 13675 else 13676 if test "$ac_cv_type_long_long" = yes; then 13677 # The cast to unsigned long works around a bug in the HP C Compiler 13678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13680 # This bug is HP SR number 8606223364. 13681 if test "$cross_compiling" = yes; then 13682 # Depending upon the size, compute the lo and hi bounds. 13683 cat >conftest.$ac_ext <<_ACEOF 13684 /* confdefs.h. */ 13685 _ACEOF 13686 cat confdefs.h >>conftest.$ac_ext 13687 cat >>conftest.$ac_ext <<_ACEOF 13688 /* end confdefs.h. */ 13689 $ac_includes_default 13690 int 13691 main () 13692 { 13693 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 13694 test_array [0] = 0 13695 13696 ; 13697 return 0; 13698 } 13699 _ACEOF 13700 rm -f conftest.$ac_objext 13701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13702 (eval $ac_compile) 2>conftest.er1 13703 ac_status=$? 13704 grep -v '^ *+' conftest.er1 >conftest.err 13705 rm -f conftest.er1 13706 cat conftest.err >&5 13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13708 (exit $ac_status); } && 13709 { ac_try='test -z "$ac_c_werror_flag" 13710 || test ! -s conftest.err' 13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13712 (eval $ac_try) 2>&5 13713 ac_status=$? 13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13715 (exit $ac_status); }; } && 13716 { ac_try='test -s conftest.$ac_objext' 13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13718 (eval $ac_try) 2>&5 13719 ac_status=$? 13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13721 (exit $ac_status); }; }; then 13722 ac_lo=0 ac_mid=0 13723 while :; do 13724 cat >conftest.$ac_ext <<_ACEOF 13725 /* confdefs.h. */ 13726 _ACEOF 13727 cat confdefs.h >>conftest.$ac_ext 13728 cat >>conftest.$ac_ext <<_ACEOF 13729 /* end confdefs.h. */ 13730 $ac_includes_default 13731 int 13732 main () 13733 { 13734 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 13735 test_array [0] = 0 13736 13737 ; 13738 return 0; 13739 } 13740 _ACEOF 13741 rm -f conftest.$ac_objext 13742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13743 (eval $ac_compile) 2>conftest.er1 13744 ac_status=$? 13745 grep -v '^ *+' conftest.er1 >conftest.err 13746 rm -f conftest.er1 13747 cat conftest.err >&5 13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13749 (exit $ac_status); } && 13750 { ac_try='test -z "$ac_c_werror_flag" 13751 || test ! -s conftest.err' 13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13753 (eval $ac_try) 2>&5 13754 ac_status=$? 13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13756 (exit $ac_status); }; } && 13757 { ac_try='test -s conftest.$ac_objext' 13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13759 (eval $ac_try) 2>&5 13760 ac_status=$? 13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13762 (exit $ac_status); }; }; then 13763 ac_hi=$ac_mid; break 13764 else 13765 echo "$as_me: failed program was:" >&5 13766 sed 's/^/| /' conftest.$ac_ext >&5 13767 13768 ac_lo=`expr $ac_mid + 1` 13769 if test $ac_lo -le $ac_mid; then 13770 ac_lo= ac_hi= 13771 break 13772 fi 13773 ac_mid=`expr 2 '*' $ac_mid + 1` 13774 fi 13775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13776 done 13777 else 13778 echo "$as_me: failed program was:" >&5 13779 sed 's/^/| /' conftest.$ac_ext >&5 13780 13781 cat >conftest.$ac_ext <<_ACEOF 13782 /* confdefs.h. */ 13783 _ACEOF 13784 cat confdefs.h >>conftest.$ac_ext 13785 cat >>conftest.$ac_ext <<_ACEOF 13786 /* end confdefs.h. */ 13787 $ac_includes_default 13788 int 13789 main () 13790 { 13791 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 13792 test_array [0] = 0 13793 13794 ; 13795 return 0; 13796 } 13797 _ACEOF 13798 rm -f conftest.$ac_objext 13799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13800 (eval $ac_compile) 2>conftest.er1 13801 ac_status=$? 13802 grep -v '^ *+' conftest.er1 >conftest.err 13803 rm -f conftest.er1 13804 cat conftest.err >&5 13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13806 (exit $ac_status); } && 13807 { ac_try='test -z "$ac_c_werror_flag" 13808 || test ! -s conftest.err' 13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13810 (eval $ac_try) 2>&5 13811 ac_status=$? 13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13813 (exit $ac_status); }; } && 13814 { ac_try='test -s conftest.$ac_objext' 13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13816 (eval $ac_try) 2>&5 13817 ac_status=$? 13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13819 (exit $ac_status); }; }; then 13820 ac_hi=-1 ac_mid=-1 13821 while :; do 13822 cat >conftest.$ac_ext <<_ACEOF 13823 /* confdefs.h. */ 13824 _ACEOF 13825 cat confdefs.h >>conftest.$ac_ext 13826 cat >>conftest.$ac_ext <<_ACEOF 13827 /* end confdefs.h. */ 13828 $ac_includes_default 13829 int 13830 main () 13831 { 13832 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 13833 test_array [0] = 0 13834 13835 ; 13836 return 0; 13837 } 13838 _ACEOF 13839 rm -f conftest.$ac_objext 13840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13841 (eval $ac_compile) 2>conftest.er1 13842 ac_status=$? 13843 grep -v '^ *+' conftest.er1 >conftest.err 13844 rm -f conftest.er1 13845 cat conftest.err >&5 13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13847 (exit $ac_status); } && 13848 { ac_try='test -z "$ac_c_werror_flag" 13849 || test ! -s conftest.err' 13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13851 (eval $ac_try) 2>&5 13852 ac_status=$? 13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13854 (exit $ac_status); }; } && 13855 { ac_try='test -s conftest.$ac_objext' 13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13857 (eval $ac_try) 2>&5 13858 ac_status=$? 13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13860 (exit $ac_status); }; }; then 13861 ac_lo=$ac_mid; break 13862 else 13863 echo "$as_me: failed program was:" >&5 13864 sed 's/^/| /' conftest.$ac_ext >&5 13865 13866 ac_hi=`expr '(' $ac_mid ')' - 1` 13867 if test $ac_mid -le $ac_hi; then 13868 ac_lo= ac_hi= 13869 break 13870 fi 13871 ac_mid=`expr 2 '*' $ac_mid` 13872 fi 13873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13874 done 13875 else 13876 echo "$as_me: failed program was:" >&5 13877 sed 's/^/| /' conftest.$ac_ext >&5 13878 13879 ac_lo= ac_hi= 13880 fi 13881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13882 fi 13883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13884 # Binary search between lo and hi bounds. 13885 while test "x$ac_lo" != "x$ac_hi"; do 13886 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13887 cat >conftest.$ac_ext <<_ACEOF 13888 /* confdefs.h. */ 13889 _ACEOF 13890 cat confdefs.h >>conftest.$ac_ext 13891 cat >>conftest.$ac_ext <<_ACEOF 13892 /* end confdefs.h. */ 13893 $ac_includes_default 13894 int 13895 main () 13896 { 13897 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 13898 test_array [0] = 0 13899 13900 ; 13901 return 0; 13902 } 13903 _ACEOF 13904 rm -f conftest.$ac_objext 13905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13906 (eval $ac_compile) 2>conftest.er1 13907 ac_status=$? 13908 grep -v '^ *+' conftest.er1 >conftest.err 13909 rm -f conftest.er1 13910 cat conftest.err >&5 13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13912 (exit $ac_status); } && 13913 { ac_try='test -z "$ac_c_werror_flag" 13914 || test ! -s conftest.err' 13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13916 (eval $ac_try) 2>&5 13917 ac_status=$? 13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13919 (exit $ac_status); }; } && 13920 { ac_try='test -s conftest.$ac_objext' 13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13922 (eval $ac_try) 2>&5 13923 ac_status=$? 13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13925 (exit $ac_status); }; }; then 13926 ac_hi=$ac_mid 13927 else 13928 echo "$as_me: failed program was:" >&5 13929 sed 's/^/| /' conftest.$ac_ext >&5 13930 13931 ac_lo=`expr '(' $ac_mid ')' + 1` 13932 fi 13933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13934 done 13935 case $ac_lo in 13936 ?*) ac_cv_sizeof_long_long=$ac_lo;; 13937 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 13938 See \`config.log' for more details." >&5 13939 echo "$as_me: error: cannot compute sizeof (long long), 77 13940 See \`config.log' for more details." >&2;} 13941 { (exit 1); exit 1; }; } ;; 13942 esac 13943 else 13944 if test "$cross_compiling" = yes; then 13945 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 13946 See \`config.log' for more details." >&5 13947 echo "$as_me: error: cannot run test program while cross compiling 13948 See \`config.log' for more details." >&2;} 13949 { (exit 1); exit 1; }; } 13950 else 13951 cat >conftest.$ac_ext <<_ACEOF 13952 /* confdefs.h. */ 13953 _ACEOF 13954 cat confdefs.h >>conftest.$ac_ext 13955 cat >>conftest.$ac_ext <<_ACEOF 13956 /* end confdefs.h. */ 13957 $ac_includes_default 13958 long longval () { return (long) (sizeof (long long)); } 13959 unsigned long ulongval () { return (long) (sizeof (long long)); } 13960 #include <stdio.h> 13961 #include <stdlib.h> 13962 int 13963 main () 13964 { 13965 13966 FILE *f = fopen ("conftest.val", "w"); 13967 if (! f) 13968 exit (1); 13969 if (((long) (sizeof (long long))) < 0) 13970 { 13971 long i = longval (); 13972 if (i != ((long) (sizeof (long long)))) 13973 exit (1); 13974 fprintf (f, "%ld\n", i); 13975 } 13976 else 13977 { 13978 unsigned long i = ulongval (); 13979 if (i != ((long) (sizeof (long long)))) 13980 exit (1); 13981 fprintf (f, "%lu\n", i); 13982 } 13983 exit (ferror (f) || fclose (f) != 0); 13984 13985 ; 13986 return 0; 13987 } 13988 _ACEOF 13989 rm -f conftest$ac_exeext 13990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13991 (eval $ac_link) 2>&5 13992 ac_status=$? 13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13996 (eval $ac_try) 2>&5 13997 ac_status=$? 13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13999 (exit $ac_status); }; }; then 14000 ac_cv_sizeof_long_long=`cat conftest.val` 14001 else 14002 echo "$as_me: program exited with status $ac_status" >&5 14003 echo "$as_me: failed program was:" >&5 14004 sed 's/^/| /' conftest.$ac_ext >&5 14005 14006 ( exit $ac_status ) 14007 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 14008 See \`config.log' for more details." >&5 14009 echo "$as_me: error: cannot compute sizeof (long long), 77 14010 See \`config.log' for more details." >&2;} 14011 { (exit 1); exit 1; }; } 14012 fi 14013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14014 fi 14015 fi 14016 rm -f conftest.val 14017 else 14018 ac_cv_sizeof_long_long=0 14019 fi 14020 fi 14021 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 14022 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 14023 cat >>confdefs.h <<_ACEOF 14024 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 14025 _ACEOF 14026 14027 14028 echo "$as_me:$LINENO: checking for long" >&5 14029 echo $ECHO_N "checking for long... $ECHO_C" >&6 14030 if test "${ac_cv_type_long+set}" = set; then 14031 echo $ECHO_N "(cached) $ECHO_C" >&6 14032 else 14033 cat >conftest.$ac_ext <<_ACEOF 14034 /* confdefs.h. */ 14035 _ACEOF 14036 cat confdefs.h >>conftest.$ac_ext 14037 cat >>conftest.$ac_ext <<_ACEOF 14038 /* end confdefs.h. */ 14039 $ac_includes_default 14040 int 14041 main () 14042 { 14043 if ((long *) 0) 14044 return 0; 14045 if (sizeof (long)) 14046 return 0; 14047 ; 14048 return 0; 14049 } 14050 _ACEOF 14051 rm -f conftest.$ac_objext 14052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14053 (eval $ac_compile) 2>conftest.er1 14054 ac_status=$? 14055 grep -v '^ *+' conftest.er1 >conftest.err 14056 rm -f conftest.er1 14057 cat conftest.err >&5 14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14059 (exit $ac_status); } && 14060 { ac_try='test -z "$ac_c_werror_flag" 14061 || test ! -s conftest.err' 14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14063 (eval $ac_try) 2>&5 14064 ac_status=$? 14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14066 (exit $ac_status); }; } && 14067 { ac_try='test -s conftest.$ac_objext' 14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14069 (eval $ac_try) 2>&5 14070 ac_status=$? 14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14072 (exit $ac_status); }; }; then 14073 ac_cv_type_long=yes 14074 else 14075 echo "$as_me: failed program was:" >&5 14076 sed 's/^/| /' conftest.$ac_ext >&5 14077 14078 ac_cv_type_long=no 14079 fi 14080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14081 fi 14082 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 14083 echo "${ECHO_T}$ac_cv_type_long" >&6 14084 14085 echo "$as_me:$LINENO: checking size of long" >&5 14086 echo $ECHO_N "checking size of long... $ECHO_C" >&6 14087 if test "${ac_cv_sizeof_long+set}" = set; then 14088 echo $ECHO_N "(cached) $ECHO_C" >&6 14089 else 14090 if test "$ac_cv_type_long" = yes; then 14091 # The cast to unsigned long works around a bug in the HP C Compiler 14092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14094 # This bug is HP SR number 8606223364. 14095 if test "$cross_compiling" = yes; then 14096 # Depending upon the size, compute the lo and hi bounds. 14097 cat >conftest.$ac_ext <<_ACEOF 14098 /* confdefs.h. */ 14099 _ACEOF 14100 cat confdefs.h >>conftest.$ac_ext 14101 cat >>conftest.$ac_ext <<_ACEOF 14102 /* end confdefs.h. */ 14103 $ac_includes_default 14104 int 14105 main () 14106 { 14107 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 14108 test_array [0] = 0 14109 14110 ; 14111 return 0; 14112 } 14113 _ACEOF 14114 rm -f conftest.$ac_objext 14115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14116 (eval $ac_compile) 2>conftest.er1 14117 ac_status=$? 14118 grep -v '^ *+' conftest.er1 >conftest.err 14119 rm -f conftest.er1 14120 cat conftest.err >&5 14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14122 (exit $ac_status); } && 14123 { ac_try='test -z "$ac_c_werror_flag" 14124 || test ! -s conftest.err' 14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14126 (eval $ac_try) 2>&5 14127 ac_status=$? 14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14129 (exit $ac_status); }; } && 14130 { ac_try='test -s conftest.$ac_objext' 14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14132 (eval $ac_try) 2>&5 14133 ac_status=$? 14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14135 (exit $ac_status); }; }; then 14136 ac_lo=0 ac_mid=0 14137 while :; do 14138 cat >conftest.$ac_ext <<_ACEOF 14139 /* confdefs.h. */ 14140 _ACEOF 14141 cat confdefs.h >>conftest.$ac_ext 14142 cat >>conftest.$ac_ext <<_ACEOF 14143 /* end confdefs.h. */ 14144 $ac_includes_default 14145 int 14146 main () 14147 { 14148 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 14149 test_array [0] = 0 14150 14151 ; 14152 return 0; 14153 } 14154 _ACEOF 14155 rm -f conftest.$ac_objext 14156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14157 (eval $ac_compile) 2>conftest.er1 14158 ac_status=$? 14159 grep -v '^ *+' conftest.er1 >conftest.err 14160 rm -f conftest.er1 14161 cat conftest.err >&5 14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14163 (exit $ac_status); } && 14164 { ac_try='test -z "$ac_c_werror_flag" 14165 || test ! -s conftest.err' 14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14167 (eval $ac_try) 2>&5 14168 ac_status=$? 14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14170 (exit $ac_status); }; } && 14171 { ac_try='test -s conftest.$ac_objext' 14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14173 (eval $ac_try) 2>&5 14174 ac_status=$? 14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14176 (exit $ac_status); }; }; then 14177 ac_hi=$ac_mid; break 14178 else 14179 echo "$as_me: failed program was:" >&5 14180 sed 's/^/| /' conftest.$ac_ext >&5 14181 14182 ac_lo=`expr $ac_mid + 1` 14183 if test $ac_lo -le $ac_mid; then 14184 ac_lo= ac_hi= 14185 break 14186 fi 14187 ac_mid=`expr 2 '*' $ac_mid + 1` 14188 fi 14189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14190 done 14191 else 14192 echo "$as_me: failed program was:" >&5 14193 sed 's/^/| /' conftest.$ac_ext >&5 14194 14195 cat >conftest.$ac_ext <<_ACEOF 14196 /* confdefs.h. */ 14197 _ACEOF 14198 cat confdefs.h >>conftest.$ac_ext 14199 cat >>conftest.$ac_ext <<_ACEOF 14200 /* end confdefs.h. */ 14201 $ac_includes_default 14202 int 14203 main () 14204 { 14205 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 14206 test_array [0] = 0 14207 14208 ; 14209 return 0; 14210 } 14211 _ACEOF 14212 rm -f conftest.$ac_objext 14213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14214 (eval $ac_compile) 2>conftest.er1 14215 ac_status=$? 14216 grep -v '^ *+' conftest.er1 >conftest.err 14217 rm -f conftest.er1 14218 cat conftest.err >&5 14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14220 (exit $ac_status); } && 14221 { ac_try='test -z "$ac_c_werror_flag" 14222 || test ! -s conftest.err' 14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14224 (eval $ac_try) 2>&5 14225 ac_status=$? 14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14227 (exit $ac_status); }; } && 14228 { ac_try='test -s conftest.$ac_objext' 14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14230 (eval $ac_try) 2>&5 14231 ac_status=$? 14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14233 (exit $ac_status); }; }; then 14234 ac_hi=-1 ac_mid=-1 14235 while :; do 14236 cat >conftest.$ac_ext <<_ACEOF 14237 /* confdefs.h. */ 14238 _ACEOF 14239 cat confdefs.h >>conftest.$ac_ext 14240 cat >>conftest.$ac_ext <<_ACEOF 14241 /* end confdefs.h. */ 14242 $ac_includes_default 14243 int 14244 main () 14245 { 14246 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 14247 test_array [0] = 0 14248 14249 ; 14250 return 0; 14251 } 14252 _ACEOF 14253 rm -f conftest.$ac_objext 14254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14255 (eval $ac_compile) 2>conftest.er1 14256 ac_status=$? 14257 grep -v '^ *+' conftest.er1 >conftest.err 14258 rm -f conftest.er1 14259 cat conftest.err >&5 14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14261 (exit $ac_status); } && 14262 { ac_try='test -z "$ac_c_werror_flag" 14263 || test ! -s conftest.err' 14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14265 (eval $ac_try) 2>&5 14266 ac_status=$? 14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14268 (exit $ac_status); }; } && 14269 { ac_try='test -s conftest.$ac_objext' 14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14271 (eval $ac_try) 2>&5 14272 ac_status=$? 14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14274 (exit $ac_status); }; }; then 14275 ac_lo=$ac_mid; break 14276 else 14277 echo "$as_me: failed program was:" >&5 14278 sed 's/^/| /' conftest.$ac_ext >&5 14279 14280 ac_hi=`expr '(' $ac_mid ')' - 1` 14281 if test $ac_mid -le $ac_hi; then 14282 ac_lo= ac_hi= 14283 break 14284 fi 14285 ac_mid=`expr 2 '*' $ac_mid` 14286 fi 14287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14288 done 14289 else 14290 echo "$as_me: failed program was:" >&5 14291 sed 's/^/| /' conftest.$ac_ext >&5 14292 14293 ac_lo= ac_hi= 14294 fi 14295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14296 fi 14297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14298 # Binary search between lo and hi bounds. 14299 while test "x$ac_lo" != "x$ac_hi"; do 14300 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14301 cat >conftest.$ac_ext <<_ACEOF 14302 /* confdefs.h. */ 14303 _ACEOF 14304 cat confdefs.h >>conftest.$ac_ext 14305 cat >>conftest.$ac_ext <<_ACEOF 14306 /* end confdefs.h. */ 14307 $ac_includes_default 14308 int 14309 main () 14310 { 14311 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 14312 test_array [0] = 0 14313 14314 ; 14315 return 0; 14316 } 14317 _ACEOF 14318 rm -f conftest.$ac_objext 14319 if { (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_hi=$ac_mid 14341 else 14342 echo "$as_me: failed program was:" >&5 14343 sed 's/^/| /' conftest.$ac_ext >&5 14344 14345 ac_lo=`expr '(' $ac_mid ')' + 1` 14346 fi 14347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14348 done 14349 case $ac_lo in 14350 ?*) ac_cv_sizeof_long=$ac_lo;; 14351 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 14352 See \`config.log' for more details." >&5 14353 echo "$as_me: error: cannot compute sizeof (long), 77 14354 See \`config.log' for more details." >&2;} 14355 { (exit 1); exit 1; }; } ;; 14356 esac 14357 else 14358 if test "$cross_compiling" = yes; then 14359 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 14360 See \`config.log' for more details." >&5 14361 echo "$as_me: error: cannot run test program while cross compiling 14362 See \`config.log' for more details." >&2;} 14363 { (exit 1); exit 1; }; } 14364 else 14365 cat >conftest.$ac_ext <<_ACEOF 14366 /* confdefs.h. */ 14367 _ACEOF 14368 cat confdefs.h >>conftest.$ac_ext 14369 cat >>conftest.$ac_ext <<_ACEOF 14370 /* end confdefs.h. */ 14371 $ac_includes_default 14372 long longval () { return (long) (sizeof (long)); } 14373 unsigned long ulongval () { return (long) (sizeof (long)); } 14374 #include <stdio.h> 14375 #include <stdlib.h> 14376 int 14377 main () 14378 { 14379 14380 FILE *f = fopen ("conftest.val", "w"); 14381 if (! f) 14382 exit (1); 14383 if (((long) (sizeof (long))) < 0) 14384 { 14385 long i = longval (); 14386 if (i != ((long) (sizeof (long)))) 14387 exit (1); 14388 fprintf (f, "%ld\n", i); 14389 } 14390 else 14391 { 14392 unsigned long i = ulongval (); 14393 if (i != ((long) (sizeof (long)))) 14394 exit (1); 14395 fprintf (f, "%lu\n", i); 14396 } 14397 exit (ferror (f) || fclose (f) != 0); 14398 14399 ; 14400 return 0; 14401 } 14402 _ACEOF 14403 rm -f conftest$ac_exeext 14404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14405 (eval $ac_link) 2>&5 14406 ac_status=$? 14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14410 (eval $ac_try) 2>&5 14411 ac_status=$? 14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14413 (exit $ac_status); }; }; then 14414 ac_cv_sizeof_long=`cat conftest.val` 14415 else 14416 echo "$as_me: program exited with status $ac_status" >&5 14417 echo "$as_me: failed program was:" >&5 14418 sed 's/^/| /' conftest.$ac_ext >&5 14419 14420 ( exit $ac_status ) 14421 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 14422 See \`config.log' for more details." >&5 14423 echo "$as_me: error: cannot compute sizeof (long), 77 14424 See \`config.log' for more details." >&2;} 14425 { (exit 1); exit 1; }; } 14426 fi 14427 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14428 fi 14429 fi 14430 rm -f conftest.val 14431 else 14432 ac_cv_sizeof_long=0 14433 fi 14434 fi 14435 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 14436 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 14437 cat >>confdefs.h <<_ACEOF 14438 #define SIZEOF_LONG $ac_cv_sizeof_long 14439 _ACEOF 14440 14441 14442 echo "$as_me:$LINENO: checking for int" >&5 14443 echo $ECHO_N "checking for int... $ECHO_C" >&6 14444 if test "${ac_cv_type_int+set}" = set; then 14445 echo $ECHO_N "(cached) $ECHO_C" >&6 14446 else 14447 cat >conftest.$ac_ext <<_ACEOF 14448 /* confdefs.h. */ 14449 _ACEOF 14450 cat confdefs.h >>conftest.$ac_ext 14451 cat >>conftest.$ac_ext <<_ACEOF 14452 /* end confdefs.h. */ 14453 $ac_includes_default 14454 int 14455 main () 14456 { 14457 if ((int *) 0) 14458 return 0; 14459 if (sizeof (int)) 14460 return 0; 14461 ; 14462 return 0; 14463 } 14464 _ACEOF 14465 rm -f conftest.$ac_objext 14466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14467 (eval $ac_compile) 2>conftest.er1 14468 ac_status=$? 14469 grep -v '^ *+' conftest.er1 >conftest.err 14470 rm -f conftest.er1 14471 cat conftest.err >&5 14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14473 (exit $ac_status); } && 14474 { ac_try='test -z "$ac_c_werror_flag" 14475 || test ! -s conftest.err' 14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14477 (eval $ac_try) 2>&5 14478 ac_status=$? 14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14480 (exit $ac_status); }; } && 14481 { ac_try='test -s conftest.$ac_objext' 14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14483 (eval $ac_try) 2>&5 14484 ac_status=$? 14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14486 (exit $ac_status); }; }; then 14487 ac_cv_type_int=yes 14488 else 14489 echo "$as_me: failed program was:" >&5 14490 sed 's/^/| /' conftest.$ac_ext >&5 14491 14492 ac_cv_type_int=no 14493 fi 14494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14495 fi 14496 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 14497 echo "${ECHO_T}$ac_cv_type_int" >&6 14498 14499 echo "$as_me:$LINENO: checking size of int" >&5 14500 echo $ECHO_N "checking size of int... $ECHO_C" >&6 14501 if test "${ac_cv_sizeof_int+set}" = set; then 14502 echo $ECHO_N "(cached) $ECHO_C" >&6 14503 else 14504 if test "$ac_cv_type_int" = yes; then 14505 # The cast to unsigned long works around a bug in the HP C Compiler 14506 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14507 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14508 # This bug is HP SR number 8606223364. 14509 if test "$cross_compiling" = yes; then 14510 # Depending upon the size, compute the lo and hi bounds. 14511 cat >conftest.$ac_ext <<_ACEOF 14512 /* confdefs.h. */ 14513 _ACEOF 14514 cat confdefs.h >>conftest.$ac_ext 14515 cat >>conftest.$ac_ext <<_ACEOF 14516 /* end confdefs.h. */ 14517 $ac_includes_default 14518 int 14519 main () 14520 { 14521 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 14522 test_array [0] = 0 14523 14524 ; 14525 return 0; 14526 } 14527 _ACEOF 14528 rm -f conftest.$ac_objext 14529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14530 (eval $ac_compile) 2>conftest.er1 14531 ac_status=$? 14532 grep -v '^ *+' conftest.er1 >conftest.err 14533 rm -f conftest.er1 14534 cat conftest.err >&5 14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14536 (exit $ac_status); } && 14537 { ac_try='test -z "$ac_c_werror_flag" 14538 || test ! -s conftest.err' 14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14540 (eval $ac_try) 2>&5 14541 ac_status=$? 14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14543 (exit $ac_status); }; } && 14544 { ac_try='test -s conftest.$ac_objext' 14545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14546 (eval $ac_try) 2>&5 14547 ac_status=$? 14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14549 (exit $ac_status); }; }; then 14550 ac_lo=0 ac_mid=0 14551 while :; do 14552 cat >conftest.$ac_ext <<_ACEOF 14553 /* confdefs.h. */ 14554 _ACEOF 14555 cat confdefs.h >>conftest.$ac_ext 14556 cat >>conftest.$ac_ext <<_ACEOF 14557 /* end confdefs.h. */ 14558 $ac_includes_default 14559 int 14560 main () 14561 { 14562 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 14563 test_array [0] = 0 14564 14565 ; 14566 return 0; 14567 } 14568 _ACEOF 14569 rm -f conftest.$ac_objext 14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14571 (eval $ac_compile) 2>conftest.er1 14572 ac_status=$? 14573 grep -v '^ *+' conftest.er1 >conftest.err 14574 rm -f conftest.er1 14575 cat conftest.err >&5 14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14577 (exit $ac_status); } && 14578 { ac_try='test -z "$ac_c_werror_flag" 14579 || test ! -s conftest.err' 14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14581 (eval $ac_try) 2>&5 14582 ac_status=$? 14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14584 (exit $ac_status); }; } && 14585 { ac_try='test -s conftest.$ac_objext' 14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14587 (eval $ac_try) 2>&5 14588 ac_status=$? 14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14590 (exit $ac_status); }; }; then 14591 ac_hi=$ac_mid; break 14592 else 14593 echo "$as_me: failed program was:" >&5 14594 sed 's/^/| /' conftest.$ac_ext >&5 14595 14596 ac_lo=`expr $ac_mid + 1` 14597 if test $ac_lo -le $ac_mid; then 14598 ac_lo= ac_hi= 14599 break 14600 fi 14601 ac_mid=`expr 2 '*' $ac_mid + 1` 14602 fi 14603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14604 done 14605 else 14606 echo "$as_me: failed program was:" >&5 14607 sed 's/^/| /' conftest.$ac_ext >&5 14608 14609 cat >conftest.$ac_ext <<_ACEOF 14610 /* confdefs.h. */ 14611 _ACEOF 14612 cat confdefs.h >>conftest.$ac_ext 14613 cat >>conftest.$ac_ext <<_ACEOF 14614 /* end confdefs.h. */ 14615 $ac_includes_default 14616 int 14617 main () 14618 { 14619 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 14620 test_array [0] = 0 14621 14622 ; 14623 return 0; 14624 } 14625 _ACEOF 14626 rm -f conftest.$ac_objext 14627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14628 (eval $ac_compile) 2>conftest.er1 14629 ac_status=$? 14630 grep -v '^ *+' conftest.er1 >conftest.err 14631 rm -f conftest.er1 14632 cat conftest.err >&5 14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14634 (exit $ac_status); } && 14635 { ac_try='test -z "$ac_c_werror_flag" 14636 || test ! -s conftest.err' 14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14638 (eval $ac_try) 2>&5 14639 ac_status=$? 14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14641 (exit $ac_status); }; } && 14642 { ac_try='test -s conftest.$ac_objext' 14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14644 (eval $ac_try) 2>&5 14645 ac_status=$? 14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14647 (exit $ac_status); }; }; then 14648 ac_hi=-1 ac_mid=-1 14649 while :; do 14650 cat >conftest.$ac_ext <<_ACEOF 14651 /* confdefs.h. */ 14652 _ACEOF 14653 cat confdefs.h >>conftest.$ac_ext 14654 cat >>conftest.$ac_ext <<_ACEOF 14655 /* end confdefs.h. */ 14656 $ac_includes_default 14657 int 14658 main () 14659 { 14660 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 14661 test_array [0] = 0 14662 14663 ; 14664 return 0; 14665 } 14666 _ACEOF 14667 rm -f conftest.$ac_objext 14668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14669 (eval $ac_compile) 2>conftest.er1 14670 ac_status=$? 14671 grep -v '^ *+' conftest.er1 >conftest.err 14672 rm -f conftest.er1 14673 cat conftest.err >&5 14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14675 (exit $ac_status); } && 14676 { ac_try='test -z "$ac_c_werror_flag" 14677 || test ! -s conftest.err' 14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14679 (eval $ac_try) 2>&5 14680 ac_status=$? 14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14682 (exit $ac_status); }; } && 14683 { ac_try='test -s conftest.$ac_objext' 14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14685 (eval $ac_try) 2>&5 14686 ac_status=$? 14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14688 (exit $ac_status); }; }; then 14689 ac_lo=$ac_mid; break 14690 else 14691 echo "$as_me: failed program was:" >&5 14692 sed 's/^/| /' conftest.$ac_ext >&5 14693 14694 ac_hi=`expr '(' $ac_mid ')' - 1` 14695 if test $ac_mid -le $ac_hi; then 14696 ac_lo= ac_hi= 14697 break 14698 fi 14699 ac_mid=`expr 2 '*' $ac_mid` 14700 fi 14701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14702 done 14703 else 14704 echo "$as_me: failed program was:" >&5 14705 sed 's/^/| /' conftest.$ac_ext >&5 14706 14707 ac_lo= ac_hi= 14708 fi 14709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14710 fi 14711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14712 # Binary search between lo and hi bounds. 14713 while test "x$ac_lo" != "x$ac_hi"; do 14714 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14715 cat >conftest.$ac_ext <<_ACEOF 14716 /* confdefs.h. */ 14717 _ACEOF 14718 cat confdefs.h >>conftest.$ac_ext 14719 cat >>conftest.$ac_ext <<_ACEOF 14720 /* end confdefs.h. */ 14721 $ac_includes_default 14722 int 14723 main () 14724 { 14725 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 14726 test_array [0] = 0 14727 14728 ; 14729 return 0; 14730 } 14731 _ACEOF 14732 rm -f conftest.$ac_objext 14733 if { (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_hi=$ac_mid 14755 else 14756 echo "$as_me: failed program was:" >&5 14757 sed 's/^/| /' conftest.$ac_ext >&5 14758 14759 ac_lo=`expr '(' $ac_mid ')' + 1` 14760 fi 14761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14762 done 14763 case $ac_lo in 14764 ?*) ac_cv_sizeof_int=$ac_lo;; 14765 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 14766 See \`config.log' for more details." >&5 14767 echo "$as_me: error: cannot compute sizeof (int), 77 14768 See \`config.log' for more details." >&2;} 14769 { (exit 1); exit 1; }; } ;; 14770 esac 14771 else 14772 if test "$cross_compiling" = yes; then 14773 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 14774 See \`config.log' for more details." >&5 14775 echo "$as_me: error: cannot run test program while cross compiling 14776 See \`config.log' for more details." >&2;} 14777 { (exit 1); exit 1; }; } 14778 else 14779 cat >conftest.$ac_ext <<_ACEOF 14780 /* confdefs.h. */ 14781 _ACEOF 14782 cat confdefs.h >>conftest.$ac_ext 14783 cat >>conftest.$ac_ext <<_ACEOF 14784 /* end confdefs.h. */ 14785 $ac_includes_default 14786 long longval () { return (long) (sizeof (int)); } 14787 unsigned long ulongval () { return (long) (sizeof (int)); } 14788 #include <stdio.h> 14789 #include <stdlib.h> 14790 int 14791 main () 14792 { 14793 14794 FILE *f = fopen ("conftest.val", "w"); 14795 if (! f) 14796 exit (1); 14797 if (((long) (sizeof (int))) < 0) 14798 { 14799 long i = longval (); 14800 if (i != ((long) (sizeof (int)))) 14801 exit (1); 14802 fprintf (f, "%ld\n", i); 14803 } 14804 else 14805 { 14806 unsigned long i = ulongval (); 14807 if (i != ((long) (sizeof (int)))) 14808 exit (1); 14809 fprintf (f, "%lu\n", i); 14810 } 14811 exit (ferror (f) || fclose (f) != 0); 14812 14813 ; 14814 return 0; 14815 } 14816 _ACEOF 14817 rm -f conftest$ac_exeext 14818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14819 (eval $ac_link) 2>&5 14820 ac_status=$? 14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14824 (eval $ac_try) 2>&5 14825 ac_status=$? 14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14827 (exit $ac_status); }; }; then 14828 ac_cv_sizeof_int=`cat conftest.val` 14829 else 14830 echo "$as_me: program exited with status $ac_status" >&5 14831 echo "$as_me: failed program was:" >&5 14832 sed 's/^/| /' conftest.$ac_ext >&5 14833 14834 ( exit $ac_status ) 14835 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 14836 See \`config.log' for more details." >&5 14837 echo "$as_me: error: cannot compute sizeof (int), 77 14838 See \`config.log' for more details." >&2;} 14839 { (exit 1); exit 1; }; } 14840 fi 14841 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14842 fi 14843 fi 14844 rm -f conftest.val 14845 else 14846 ac_cv_sizeof_int=0 14847 fi 14848 fi 14849 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 14850 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 14851 cat >>confdefs.h <<_ACEOF 14852 #define SIZEOF_INT $ac_cv_sizeof_int 14853 _ACEOF 14854 14855 14856 echo "$as_me:$LINENO: checking for short" >&5 14857 echo $ECHO_N "checking for short... $ECHO_C" >&6 14858 if test "${ac_cv_type_short+set}" = set; then 14859 echo $ECHO_N "(cached) $ECHO_C" >&6 14860 else 14861 cat >conftest.$ac_ext <<_ACEOF 14862 /* confdefs.h. */ 14863 _ACEOF 14864 cat confdefs.h >>conftest.$ac_ext 14865 cat >>conftest.$ac_ext <<_ACEOF 14866 /* end confdefs.h. */ 14867 $ac_includes_default 14868 int 14869 main () 14870 { 14871 if ((short *) 0) 14872 return 0; 14873 if (sizeof (short)) 14874 return 0; 14875 ; 14876 return 0; 14877 } 14878 _ACEOF 14879 rm -f conftest.$ac_objext 14880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14881 (eval $ac_compile) 2>conftest.er1 14882 ac_status=$? 14883 grep -v '^ *+' conftest.er1 >conftest.err 14884 rm -f conftest.er1 14885 cat conftest.err >&5 14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14887 (exit $ac_status); } && 14888 { ac_try='test -z "$ac_c_werror_flag" 14889 || test ! -s conftest.err' 14890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14891 (eval $ac_try) 2>&5 14892 ac_status=$? 14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14894 (exit $ac_status); }; } && 14895 { ac_try='test -s conftest.$ac_objext' 14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14897 (eval $ac_try) 2>&5 14898 ac_status=$? 14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14900 (exit $ac_status); }; }; then 14901 ac_cv_type_short=yes 14902 else 14903 echo "$as_me: failed program was:" >&5 14904 sed 's/^/| /' conftest.$ac_ext >&5 14905 14906 ac_cv_type_short=no 14907 fi 14908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14909 fi 14910 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 14911 echo "${ECHO_T}$ac_cv_type_short" >&6 14912 14913 echo "$as_me:$LINENO: checking size of short" >&5 14914 echo $ECHO_N "checking size of short... $ECHO_C" >&6 14915 if test "${ac_cv_sizeof_short+set}" = set; then 14916 echo $ECHO_N "(cached) $ECHO_C" >&6 14917 else 14918 if test "$ac_cv_type_short" = yes; then 14919 # The cast to unsigned long works around a bug in the HP C Compiler 14920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14922 # This bug is HP SR number 8606223364. 14923 if test "$cross_compiling" = yes; then 14924 # Depending upon the size, compute the lo and hi bounds. 14925 cat >conftest.$ac_ext <<_ACEOF 14926 /* confdefs.h. */ 14927 _ACEOF 14928 cat confdefs.h >>conftest.$ac_ext 14929 cat >>conftest.$ac_ext <<_ACEOF 14930 /* end confdefs.h. */ 14931 $ac_includes_default 14932 int 14933 main () 14934 { 14935 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 14936 test_array [0] = 0 14937 14938 ; 14939 return 0; 14940 } 14941 _ACEOF 14942 rm -f conftest.$ac_objext 14943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14944 (eval $ac_compile) 2>conftest.er1 14945 ac_status=$? 14946 grep -v '^ *+' conftest.er1 >conftest.err 14947 rm -f conftest.er1 14948 cat conftest.err >&5 14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14950 (exit $ac_status); } && 14951 { ac_try='test -z "$ac_c_werror_flag" 14952 || test ! -s conftest.err' 14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14954 (eval $ac_try) 2>&5 14955 ac_status=$? 14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14957 (exit $ac_status); }; } && 14958 { ac_try='test -s conftest.$ac_objext' 14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14960 (eval $ac_try) 2>&5 14961 ac_status=$? 14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14963 (exit $ac_status); }; }; then 14964 ac_lo=0 ac_mid=0 14965 while :; do 14966 cat >conftest.$ac_ext <<_ACEOF 14967 /* confdefs.h. */ 14968 _ACEOF 14969 cat confdefs.h >>conftest.$ac_ext 14970 cat >>conftest.$ac_ext <<_ACEOF 14971 /* end confdefs.h. */ 14972 $ac_includes_default 14973 int 14974 main () 14975 { 14976 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 14977 test_array [0] = 0 14978 14979 ; 14980 return 0; 14981 } 14982 _ACEOF 14983 rm -f conftest.$ac_objext 14984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14985 (eval $ac_compile) 2>conftest.er1 14986 ac_status=$? 14987 grep -v '^ *+' conftest.er1 >conftest.err 14988 rm -f conftest.er1 14989 cat conftest.err >&5 14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14991 (exit $ac_status); } && 14992 { ac_try='test -z "$ac_c_werror_flag" 14993 || test ! -s conftest.err' 14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14995 (eval $ac_try) 2>&5 14996 ac_status=$? 14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14998 (exit $ac_status); }; } && 14999 { ac_try='test -s conftest.$ac_objext' 15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15001 (eval $ac_try) 2>&5 15002 ac_status=$? 15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15004 (exit $ac_status); }; }; then 15005 ac_hi=$ac_mid; break 15006 else 15007 echo "$as_me: failed program was:" >&5 15008 sed 's/^/| /' conftest.$ac_ext >&5 15009 15010 ac_lo=`expr $ac_mid + 1` 15011 if test $ac_lo -le $ac_mid; then 15012 ac_lo= ac_hi= 15013 break 15014 fi 15015 ac_mid=`expr 2 '*' $ac_mid + 1` 15016 fi 15017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15018 done 15019 else 15020 echo "$as_me: failed program was:" >&5 15021 sed 's/^/| /' conftest.$ac_ext >&5 15022 15023 cat >conftest.$ac_ext <<_ACEOF 15024 /* confdefs.h. */ 15025 _ACEOF 15026 cat confdefs.h >>conftest.$ac_ext 15027 cat >>conftest.$ac_ext <<_ACEOF 15028 /* end confdefs.h. */ 15029 $ac_includes_default 15030 int 15031 main () 15032 { 15033 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 15034 test_array [0] = 0 15035 15036 ; 15037 return 0; 15038 } 15039 _ACEOF 15040 rm -f conftest.$ac_objext 15041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15042 (eval $ac_compile) 2>conftest.er1 15043 ac_status=$? 15044 grep -v '^ *+' conftest.er1 >conftest.err 15045 rm -f conftest.er1 15046 cat conftest.err >&5 15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15048 (exit $ac_status); } && 15049 { ac_try='test -z "$ac_c_werror_flag" 15050 || test ! -s conftest.err' 15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15052 (eval $ac_try) 2>&5 15053 ac_status=$? 15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15055 (exit $ac_status); }; } && 15056 { ac_try='test -s conftest.$ac_objext' 15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15058 (eval $ac_try) 2>&5 15059 ac_status=$? 15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15061 (exit $ac_status); }; }; then 15062 ac_hi=-1 ac_mid=-1 15063 while :; do 15064 cat >conftest.$ac_ext <<_ACEOF 15065 /* confdefs.h. */ 15066 _ACEOF 15067 cat confdefs.h >>conftest.$ac_ext 15068 cat >>conftest.$ac_ext <<_ACEOF 15069 /* end confdefs.h. */ 15070 $ac_includes_default 15071 int 15072 main () 15073 { 15074 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 15075 test_array [0] = 0 15076 15077 ; 15078 return 0; 15079 } 15080 _ACEOF 15081 rm -f conftest.$ac_objext 15082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15083 (eval $ac_compile) 2>conftest.er1 15084 ac_status=$? 15085 grep -v '^ *+' conftest.er1 >conftest.err 15086 rm -f conftest.er1 15087 cat conftest.err >&5 15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15089 (exit $ac_status); } && 15090 { ac_try='test -z "$ac_c_werror_flag" 15091 || test ! -s conftest.err' 15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15093 (eval $ac_try) 2>&5 15094 ac_status=$? 15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15096 (exit $ac_status); }; } && 15097 { ac_try='test -s conftest.$ac_objext' 15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15099 (eval $ac_try) 2>&5 15100 ac_status=$? 15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15102 (exit $ac_status); }; }; then 15103 ac_lo=$ac_mid; break 15104 else 15105 echo "$as_me: failed program was:" >&5 15106 sed 's/^/| /' conftest.$ac_ext >&5 15107 15108 ac_hi=`expr '(' $ac_mid ')' - 1` 15109 if test $ac_mid -le $ac_hi; then 15110 ac_lo= ac_hi= 15111 break 15112 fi 15113 ac_mid=`expr 2 '*' $ac_mid` 15114 fi 15115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15116 done 15117 else 15118 echo "$as_me: failed program was:" >&5 15119 sed 's/^/| /' conftest.$ac_ext >&5 15120 15121 ac_lo= ac_hi= 15122 fi 15123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15124 fi 15125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15126 # Binary search between lo and hi bounds. 15127 while test "x$ac_lo" != "x$ac_hi"; do 15128 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 15129 cat >conftest.$ac_ext <<_ACEOF 15130 /* confdefs.h. */ 15131 _ACEOF 15132 cat confdefs.h >>conftest.$ac_ext 15133 cat >>conftest.$ac_ext <<_ACEOF 15134 /* end confdefs.h. */ 15135 $ac_includes_default 15136 int 15137 main () 15138 { 15139 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 15140 test_array [0] = 0 15141 15142 ; 15143 return 0; 15144 } 15145 _ACEOF 15146 rm -f conftest.$ac_objext 15147 if { (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_hi=$ac_mid 15169 else 15170 echo "$as_me: failed program was:" >&5 15171 sed 's/^/| /' conftest.$ac_ext >&5 15172 15173 ac_lo=`expr '(' $ac_mid ')' + 1` 15174 fi 15175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15176 done 15177 case $ac_lo in 15178 ?*) ac_cv_sizeof_short=$ac_lo;; 15179 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 15180 See \`config.log' for more details." >&5 15181 echo "$as_me: error: cannot compute sizeof (short), 77 15182 See \`config.log' for more details." >&2;} 15183 { (exit 1); exit 1; }; } ;; 15184 esac 15185 else 15186 if test "$cross_compiling" = yes; then 15187 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 15188 See \`config.log' for more details." >&5 15189 echo "$as_me: error: cannot run test program while cross compiling 15190 See \`config.log' for more details." >&2;} 15191 { (exit 1); exit 1; }; } 15192 else 15193 cat >conftest.$ac_ext <<_ACEOF 15194 /* confdefs.h. */ 15195 _ACEOF 15196 cat confdefs.h >>conftest.$ac_ext 15197 cat >>conftest.$ac_ext <<_ACEOF 15198 /* end confdefs.h. */ 15199 $ac_includes_default 15200 long longval () { return (long) (sizeof (short)); } 15201 unsigned long ulongval () { return (long) (sizeof (short)); } 15202 #include <stdio.h> 15203 #include <stdlib.h> 15204 int 15205 main () 15206 { 15207 15208 FILE *f = fopen ("conftest.val", "w"); 15209 if (! f) 15210 exit (1); 15211 if (((long) (sizeof (short))) < 0) 15212 { 15213 long i = longval (); 15214 if (i != ((long) (sizeof (short)))) 15215 exit (1); 15216 fprintf (f, "%ld\n", i); 15217 } 15218 else 15219 { 15220 unsigned long i = ulongval (); 15221 if (i != ((long) (sizeof (short)))) 15222 exit (1); 15223 fprintf (f, "%lu\n", i); 15224 } 15225 exit (ferror (f) || fclose (f) != 0); 15226 15227 ; 15228 return 0; 15229 } 15230 _ACEOF 15231 rm -f conftest$ac_exeext 15232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15233 (eval $ac_link) 2>&5 15234 ac_status=$? 15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15238 (eval $ac_try) 2>&5 15239 ac_status=$? 15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15241 (exit $ac_status); }; }; then 15242 ac_cv_sizeof_short=`cat conftest.val` 15243 else 15244 echo "$as_me: program exited with status $ac_status" >&5 15245 echo "$as_me: failed program was:" >&5 15246 sed 's/^/| /' conftest.$ac_ext >&5 15247 15248 ( exit $ac_status ) 15249 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 15250 See \`config.log' for more details." >&5 15251 echo "$as_me: error: cannot compute sizeof (short), 77 15252 See \`config.log' for more details." >&2;} 15253 { (exit 1); exit 1; }; } 15254 fi 15255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15256 fi 15257 fi 15258 rm -f conftest.val 15259 else 15260 ac_cv_sizeof_short=0 15261 fi 15262 fi 15263 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 15264 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 15265 cat >>confdefs.h <<_ACEOF 15266 #define SIZEOF_SHORT $ac_cv_sizeof_short 15267 _ACEOF 15268 15269 15270 fi 15271 FOUND=0 15272 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 15273 dc_cv_size=`eval echo $dc_cv_loop` 15274 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 15275 if test "$dc_cv_size" = "2"; then 15276 if test "$dc_cv_name" = "int"; then 15277 echo "$as_me:$LINENO: checking for uint16_t" >&5 15278 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 15279 if test "${ac_cv_type_uint16_t+set}" = set; then 15280 echo $ECHO_N "(cached) $ECHO_C" >&6 15281 else 15282 cat >conftest.$ac_ext <<_ACEOF 15283 /* confdefs.h. */ 15284 _ACEOF 15285 cat confdefs.h >>conftest.$ac_ext 15286 cat >>conftest.$ac_ext <<_ACEOF 15287 /* end confdefs.h. */ 15288 $ac_includes_default 15289 int 15290 main () 15291 { 15292 if ((uint16_t *) 0) 15293 return 0; 15294 if (sizeof (uint16_t)) 15295 return 0; 15296 ; 15297 return 0; 15298 } 15299 _ACEOF 15300 rm -f conftest.$ac_objext 15301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15302 (eval $ac_compile) 2>conftest.er1 15303 ac_status=$? 15304 grep -v '^ *+' conftest.er1 >conftest.err 15305 rm -f conftest.er1 15306 cat conftest.err >&5 15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15308 (exit $ac_status); } && 15309 { ac_try='test -z "$ac_c_werror_flag" 15310 || test ! -s conftest.err' 15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15312 (eval $ac_try) 2>&5 15313 ac_status=$? 15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15315 (exit $ac_status); }; } && 15316 { ac_try='test -s conftest.$ac_objext' 15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15318 (eval $ac_try) 2>&5 15319 ac_status=$? 15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15321 (exit $ac_status); }; }; then 15322 ac_cv_type_uint16_t=yes 15323 else 15324 echo "$as_me: failed program was:" >&5 15325 sed 's/^/| /' conftest.$ac_ext >&5 15326 15327 ac_cv_type_uint16_t=no 15328 fi 15329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15330 fi 15331 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 15332 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 15333 if test $ac_cv_type_uint16_t = yes; then 15334 : 15335 else 15336 15337 cat >>confdefs.h <<_ACEOF 15338 #define uint16_t unsigned int 15339 _ACEOF 15340 15341 fi 15342 15343 fi 15344 if test "$dc_cv_name" = "long"; then 15345 echo "$as_me:$LINENO: checking for uint16_t" >&5 15346 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 15347 if test "${ac_cv_type_uint16_t+set}" = set; then 15348 echo $ECHO_N "(cached) $ECHO_C" >&6 15349 else 15350 cat >conftest.$ac_ext <<_ACEOF 15351 /* confdefs.h. */ 15352 _ACEOF 15353 cat confdefs.h >>conftest.$ac_ext 15354 cat >>conftest.$ac_ext <<_ACEOF 15355 /* end confdefs.h. */ 15356 $ac_includes_default 15357 int 15358 main () 15359 { 15360 if ((uint16_t *) 0) 15361 return 0; 15362 if (sizeof (uint16_t)) 15363 return 0; 15364 ; 15365 return 0; 15366 } 15367 _ACEOF 15368 rm -f conftest.$ac_objext 15369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15370 (eval $ac_compile) 2>conftest.er1 15371 ac_status=$? 15372 grep -v '^ *+' conftest.er1 >conftest.err 15373 rm -f conftest.er1 15374 cat conftest.err >&5 15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15376 (exit $ac_status); } && 15377 { ac_try='test -z "$ac_c_werror_flag" 15378 || test ! -s conftest.err' 15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15380 (eval $ac_try) 2>&5 15381 ac_status=$? 15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15383 (exit $ac_status); }; } && 15384 { ac_try='test -s conftest.$ac_objext' 15385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15386 (eval $ac_try) 2>&5 15387 ac_status=$? 15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15389 (exit $ac_status); }; }; then 15390 ac_cv_type_uint16_t=yes 15391 else 15392 echo "$as_me: failed program was:" >&5 15393 sed 's/^/| /' conftest.$ac_ext >&5 15394 15395 ac_cv_type_uint16_t=no 15396 fi 15397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15398 fi 15399 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 15400 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 15401 if test $ac_cv_type_uint16_t = yes; then 15402 : 15403 else 15404 15405 cat >>confdefs.h <<_ACEOF 15406 #define uint16_t unsigned long 15407 _ACEOF 15408 15409 fi 15410 15411 fi 15412 if test "$dc_cv_name" = "long_long"; then 15413 echo "$as_me:$LINENO: checking for uint16_t" >&5 15414 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 15415 if test "${ac_cv_type_uint16_t+set}" = set; then 15416 echo $ECHO_N "(cached) $ECHO_C" >&6 15417 else 15418 cat >conftest.$ac_ext <<_ACEOF 15419 /* confdefs.h. */ 15420 _ACEOF 15421 cat confdefs.h >>conftest.$ac_ext 15422 cat >>conftest.$ac_ext <<_ACEOF 15423 /* end confdefs.h. */ 15424 $ac_includes_default 15425 int 15426 main () 15427 { 15428 if ((uint16_t *) 0) 15429 return 0; 15430 if (sizeof (uint16_t)) 15431 return 0; 15432 ; 15433 return 0; 15434 } 15435 _ACEOF 15436 rm -f conftest.$ac_objext 15437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15438 (eval $ac_compile) 2>conftest.er1 15439 ac_status=$? 15440 grep -v '^ *+' conftest.er1 >conftest.err 15441 rm -f conftest.er1 15442 cat conftest.err >&5 15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15444 (exit $ac_status); } && 15445 { ac_try='test -z "$ac_c_werror_flag" 15446 || test ! -s conftest.err' 15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15448 (eval $ac_try) 2>&5 15449 ac_status=$? 15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15451 (exit $ac_status); }; } && 15452 { ac_try='test -s conftest.$ac_objext' 15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15454 (eval $ac_try) 2>&5 15455 ac_status=$? 15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15457 (exit $ac_status); }; }; then 15458 ac_cv_type_uint16_t=yes 15459 else 15460 echo "$as_me: failed program was:" >&5 15461 sed 's/^/| /' conftest.$ac_ext >&5 15462 15463 ac_cv_type_uint16_t=no 15464 fi 15465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15466 fi 15467 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 15468 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 15469 if test $ac_cv_type_uint16_t = yes; then 15470 : 15471 else 15472 15473 cat >>confdefs.h <<_ACEOF 15474 #define uint16_t unsigned long long 15475 _ACEOF 15476 15477 fi 15478 15479 fi 15480 if test "$dc_cv_name" = "short"; then 15481 echo "$as_me:$LINENO: checking for uint16_t" >&5 15482 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 15483 if test "${ac_cv_type_uint16_t+set}" = set; then 15484 echo $ECHO_N "(cached) $ECHO_C" >&6 15485 else 15486 cat >conftest.$ac_ext <<_ACEOF 15487 /* confdefs.h. */ 15488 _ACEOF 15489 cat confdefs.h >>conftest.$ac_ext 15490 cat >>conftest.$ac_ext <<_ACEOF 15491 /* end confdefs.h. */ 15492 $ac_includes_default 15493 int 15494 main () 15495 { 15496 if ((uint16_t *) 0) 15497 return 0; 15498 if (sizeof (uint16_t)) 15499 return 0; 15500 ; 15501 return 0; 15502 } 15503 _ACEOF 15504 rm -f conftest.$ac_objext 15505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15506 (eval $ac_compile) 2>conftest.er1 15507 ac_status=$? 15508 grep -v '^ *+' conftest.er1 >conftest.err 15509 rm -f conftest.er1 15510 cat conftest.err >&5 15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15512 (exit $ac_status); } && 15513 { ac_try='test -z "$ac_c_werror_flag" 15514 || test ! -s conftest.err' 15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15516 (eval $ac_try) 2>&5 15517 ac_status=$? 15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15519 (exit $ac_status); }; } && 15520 { ac_try='test -s conftest.$ac_objext' 15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15522 (eval $ac_try) 2>&5 15523 ac_status=$? 15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15525 (exit $ac_status); }; }; then 15526 ac_cv_type_uint16_t=yes 15527 else 15528 echo "$as_me: failed program was:" >&5 15529 sed 's/^/| /' conftest.$ac_ext >&5 15530 15531 ac_cv_type_uint16_t=no 15532 fi 15533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15534 fi 15535 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 15536 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 15537 if test $ac_cv_type_uint16_t = yes; then 15538 : 15539 else 15540 15541 cat >>confdefs.h <<_ACEOF 15542 #define uint16_t unsigned short 15543 _ACEOF 15544 15545 fi 15546 15547 fi 15548 FOUND=1 15549 break 15550 fi 15551 done 15552 15553 15554 if test -z "$ac_cv_sizeof_long"; then 15555 echo "$as_me:$LINENO: checking for inline" >&5 15556 echo $ECHO_N "checking for inline... $ECHO_C" >&6 15557 if test "${ac_cv_c_inline+set}" = set; then 15558 echo $ECHO_N "(cached) $ECHO_C" >&6 15559 else 15560 ac_cv_c_inline=no 15561 for ac_kw in inline __inline__ __inline; do 15562 cat >conftest.$ac_ext <<_ACEOF 15563 /* confdefs.h. */ 15564 _ACEOF 15565 cat confdefs.h >>conftest.$ac_ext 15566 cat >>conftest.$ac_ext <<_ACEOF 15567 /* end confdefs.h. */ 15568 #ifndef __cplusplus 15569 typedef int foo_t; 15570 static $ac_kw foo_t static_foo () {return 0; } 15571 $ac_kw foo_t foo () {return 0; } 15572 #endif 15573 15574 _ACEOF 15575 rm -f conftest.$ac_objext 15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15577 (eval $ac_compile) 2>conftest.er1 15578 ac_status=$? 15579 grep -v '^ *+' conftest.er1 >conftest.err 15580 rm -f conftest.er1 15581 cat conftest.err >&5 15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15583 (exit $ac_status); } && 15584 { ac_try='test -z "$ac_c_werror_flag" 15585 || test ! -s conftest.err' 15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15587 (eval $ac_try) 2>&5 15588 ac_status=$? 15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15590 (exit $ac_status); }; } && 15591 { ac_try='test -s conftest.$ac_objext' 15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15593 (eval $ac_try) 2>&5 15594 ac_status=$? 15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15596 (exit $ac_status); }; }; then 15597 ac_cv_c_inline=$ac_kw; break 15598 else 15599 echo "$as_me: failed program was:" >&5 15600 sed 's/^/| /' conftest.$ac_ext >&5 15601 15602 fi 15603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15604 done 15605 15606 fi 15607 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 15608 echo "${ECHO_T}$ac_cv_c_inline" >&6 15609 15610 15611 case $ac_cv_c_inline in 15612 inline | yes) ;; 15613 *) 15614 case $ac_cv_c_inline in 15615 no) ac_val=;; 15616 *) ac_val=$ac_cv_c_inline;; 15617 esac 15618 cat >>confdefs.h <<_ACEOF 15619 #ifndef __cplusplus 15620 #define inline $ac_val 15621 #endif 15622 _ACEOF 15623 ;; 15624 esac 15625 15626 echo "$as_me:$LINENO: checking for long long" >&5 15627 echo $ECHO_N "checking for long long... $ECHO_C" >&6 15628 if test "${ac_cv_type_long_long+set}" = set; then 15629 echo $ECHO_N "(cached) $ECHO_C" >&6 15630 else 15631 cat >conftest.$ac_ext <<_ACEOF 15632 /* confdefs.h. */ 15633 _ACEOF 15634 cat confdefs.h >>conftest.$ac_ext 15635 cat >>conftest.$ac_ext <<_ACEOF 15636 /* end confdefs.h. */ 15637 $ac_includes_default 15638 int 15639 main () 15640 { 15641 if ((long long *) 0) 15642 return 0; 15643 if (sizeof (long long)) 15644 return 0; 15645 ; 15646 return 0; 15647 } 15648 _ACEOF 15649 rm -f conftest.$ac_objext 15650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15651 (eval $ac_compile) 2>conftest.er1 15652 ac_status=$? 15653 grep -v '^ *+' conftest.er1 >conftest.err 15654 rm -f conftest.er1 15655 cat conftest.err >&5 15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15657 (exit $ac_status); } && 15658 { ac_try='test -z "$ac_c_werror_flag" 15659 || test ! -s conftest.err' 15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15661 (eval $ac_try) 2>&5 15662 ac_status=$? 15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15664 (exit $ac_status); }; } && 15665 { ac_try='test -s conftest.$ac_objext' 15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15667 (eval $ac_try) 2>&5 15668 ac_status=$? 15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15670 (exit $ac_status); }; }; then 15671 ac_cv_type_long_long=yes 15672 else 15673 echo "$as_me: failed program was:" >&5 15674 sed 's/^/| /' conftest.$ac_ext >&5 15675 15676 ac_cv_type_long_long=no 15677 fi 15678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15679 fi 15680 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 15681 echo "${ECHO_T}$ac_cv_type_long_long" >&6 15682 15683 echo "$as_me:$LINENO: checking size of long long" >&5 15684 echo $ECHO_N "checking size of long long... $ECHO_C" >&6 15685 if test "${ac_cv_sizeof_long_long+set}" = set; then 15686 echo $ECHO_N "(cached) $ECHO_C" >&6 15687 else 15688 if test "$ac_cv_type_long_long" = yes; then 15689 # The cast to unsigned long works around a bug in the HP C Compiler 15690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15692 # This bug is HP SR number 8606223364. 15693 if test "$cross_compiling" = yes; then 15694 # Depending upon the size, compute the lo and hi bounds. 15695 cat >conftest.$ac_ext <<_ACEOF 15696 /* confdefs.h. */ 15697 _ACEOF 15698 cat confdefs.h >>conftest.$ac_ext 15699 cat >>conftest.$ac_ext <<_ACEOF 15700 /* end confdefs.h. */ 15701 $ac_includes_default 15702 int 15703 main () 15704 { 15705 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 15706 test_array [0] = 0 15707 15708 ; 15709 return 0; 15710 } 15711 _ACEOF 15712 rm -f conftest.$ac_objext 15713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15714 (eval $ac_compile) 2>conftest.er1 15715 ac_status=$? 15716 grep -v '^ *+' conftest.er1 >conftest.err 15717 rm -f conftest.er1 15718 cat conftest.err >&5 15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15720 (exit $ac_status); } && 15721 { ac_try='test -z "$ac_c_werror_flag" 15722 || test ! -s conftest.err' 15723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15724 (eval $ac_try) 2>&5 15725 ac_status=$? 15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15727 (exit $ac_status); }; } && 15728 { ac_try='test -s conftest.$ac_objext' 15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15730 (eval $ac_try) 2>&5 15731 ac_status=$? 15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15733 (exit $ac_status); }; }; then 15734 ac_lo=0 ac_mid=0 15735 while :; do 15736 cat >conftest.$ac_ext <<_ACEOF 15737 /* confdefs.h. */ 15738 _ACEOF 15739 cat confdefs.h >>conftest.$ac_ext 15740 cat >>conftest.$ac_ext <<_ACEOF 15741 /* end confdefs.h. */ 15742 $ac_includes_default 15743 int 15744 main () 15745 { 15746 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 15747 test_array [0] = 0 15748 15749 ; 15750 return 0; 15751 } 15752 _ACEOF 15753 rm -f conftest.$ac_objext 15754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15755 (eval $ac_compile) 2>conftest.er1 15756 ac_status=$? 15757 grep -v '^ *+' conftest.er1 >conftest.err 15758 rm -f conftest.er1 15759 cat conftest.err >&5 15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15761 (exit $ac_status); } && 15762 { ac_try='test -z "$ac_c_werror_flag" 15763 || test ! -s conftest.err' 15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15765 (eval $ac_try) 2>&5 15766 ac_status=$? 15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15768 (exit $ac_status); }; } && 15769 { ac_try='test -s conftest.$ac_objext' 15770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15771 (eval $ac_try) 2>&5 15772 ac_status=$? 15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15774 (exit $ac_status); }; }; then 15775 ac_hi=$ac_mid; break 15776 else 15777 echo "$as_me: failed program was:" >&5 15778 sed 's/^/| /' conftest.$ac_ext >&5 15779 15780 ac_lo=`expr $ac_mid + 1` 15781 if test $ac_lo -le $ac_mid; then 15782 ac_lo= ac_hi= 15783 break 15784 fi 15785 ac_mid=`expr 2 '*' $ac_mid + 1` 15786 fi 15787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15788 done 15789 else 15790 echo "$as_me: failed program was:" >&5 15791 sed 's/^/| /' conftest.$ac_ext >&5 15792 15793 cat >conftest.$ac_ext <<_ACEOF 15794 /* confdefs.h. */ 15795 _ACEOF 15796 cat confdefs.h >>conftest.$ac_ext 15797 cat >>conftest.$ac_ext <<_ACEOF 15798 /* end confdefs.h. */ 15799 $ac_includes_default 15800 int 15801 main () 15802 { 15803 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 15804 test_array [0] = 0 15805 15806 ; 15807 return 0; 15808 } 15809 _ACEOF 15810 rm -f conftest.$ac_objext 15811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15812 (eval $ac_compile) 2>conftest.er1 15813 ac_status=$? 15814 grep -v '^ *+' conftest.er1 >conftest.err 15815 rm -f conftest.er1 15816 cat conftest.err >&5 15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15818 (exit $ac_status); } && 15819 { ac_try='test -z "$ac_c_werror_flag" 15820 || test ! -s conftest.err' 15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15822 (eval $ac_try) 2>&5 15823 ac_status=$? 15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15825 (exit $ac_status); }; } && 15826 { ac_try='test -s conftest.$ac_objext' 15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15828 (eval $ac_try) 2>&5 15829 ac_status=$? 15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15831 (exit $ac_status); }; }; then 15832 ac_hi=-1 ac_mid=-1 15833 while :; do 15834 cat >conftest.$ac_ext <<_ACEOF 15835 /* confdefs.h. */ 15836 _ACEOF 15837 cat confdefs.h >>conftest.$ac_ext 15838 cat >>conftest.$ac_ext <<_ACEOF 15839 /* end confdefs.h. */ 15840 $ac_includes_default 15841 int 15842 main () 15843 { 15844 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 15845 test_array [0] = 0 15846 15847 ; 15848 return 0; 15849 } 15850 _ACEOF 15851 rm -f conftest.$ac_objext 15852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15853 (eval $ac_compile) 2>conftest.er1 15854 ac_status=$? 15855 grep -v '^ *+' conftest.er1 >conftest.err 15856 rm -f conftest.er1 15857 cat conftest.err >&5 15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15859 (exit $ac_status); } && 15860 { ac_try='test -z "$ac_c_werror_flag" 15861 || test ! -s conftest.err' 15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15863 (eval $ac_try) 2>&5 15864 ac_status=$? 15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15866 (exit $ac_status); }; } && 15867 { ac_try='test -s conftest.$ac_objext' 15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15869 (eval $ac_try) 2>&5 15870 ac_status=$? 15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15872 (exit $ac_status); }; }; then 15873 ac_lo=$ac_mid; break 15874 else 15875 echo "$as_me: failed program was:" >&5 15876 sed 's/^/| /' conftest.$ac_ext >&5 15877 15878 ac_hi=`expr '(' $ac_mid ')' - 1` 15879 if test $ac_mid -le $ac_hi; then 15880 ac_lo= ac_hi= 15881 break 15882 fi 15883 ac_mid=`expr 2 '*' $ac_mid` 15884 fi 15885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15886 done 15887 else 15888 echo "$as_me: failed program was:" >&5 15889 sed 's/^/| /' conftest.$ac_ext >&5 15890 15891 ac_lo= ac_hi= 15892 fi 15893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15894 fi 15895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15896 # Binary search between lo and hi bounds. 15897 while test "x$ac_lo" != "x$ac_hi"; do 15898 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 15899 cat >conftest.$ac_ext <<_ACEOF 15900 /* confdefs.h. */ 15901 _ACEOF 15902 cat confdefs.h >>conftest.$ac_ext 15903 cat >>conftest.$ac_ext <<_ACEOF 15904 /* end confdefs.h. */ 15905 $ac_includes_default 15906 int 15907 main () 15908 { 15909 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 15910 test_array [0] = 0 15911 15912 ; 15913 return 0; 15914 } 15915 _ACEOF 15916 rm -f conftest.$ac_objext 15917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15918 (eval $ac_compile) 2>conftest.er1 15919 ac_status=$? 15920 grep -v '^ *+' conftest.er1 >conftest.err 15921 rm -f conftest.er1 15922 cat conftest.err >&5 15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15924 (exit $ac_status); } && 15925 { ac_try='test -z "$ac_c_werror_flag" 15926 || test ! -s conftest.err' 15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15928 (eval $ac_try) 2>&5 15929 ac_status=$? 15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15931 (exit $ac_status); }; } && 15932 { ac_try='test -s conftest.$ac_objext' 15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15934 (eval $ac_try) 2>&5 15935 ac_status=$? 15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15937 (exit $ac_status); }; }; then 15938 ac_hi=$ac_mid 15939 else 15940 echo "$as_me: failed program was:" >&5 15941 sed 's/^/| /' conftest.$ac_ext >&5 15942 15943 ac_lo=`expr '(' $ac_mid ')' + 1` 15944 fi 15945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15946 done 15947 case $ac_lo in 15948 ?*) ac_cv_sizeof_long_long=$ac_lo;; 15949 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 15950 See \`config.log' for more details." >&5 15951 echo "$as_me: error: cannot compute sizeof (long long), 77 15952 See \`config.log' for more details." >&2;} 15953 { (exit 1); exit 1; }; } ;; 15954 esac 15955 else 15956 if test "$cross_compiling" = yes; then 15957 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 15958 See \`config.log' for more details." >&5 15959 echo "$as_me: error: cannot run test program while cross compiling 15960 See \`config.log' for more details." >&2;} 15961 { (exit 1); exit 1; }; } 15962 else 15963 cat >conftest.$ac_ext <<_ACEOF 15964 /* confdefs.h. */ 15965 _ACEOF 15966 cat confdefs.h >>conftest.$ac_ext 15967 cat >>conftest.$ac_ext <<_ACEOF 15968 /* end confdefs.h. */ 15969 $ac_includes_default 15970 long longval () { return (long) (sizeof (long long)); } 15971 unsigned long ulongval () { return (long) (sizeof (long long)); } 15972 #include <stdio.h> 15973 #include <stdlib.h> 15974 int 15975 main () 15976 { 15977 15978 FILE *f = fopen ("conftest.val", "w"); 15979 if (! f) 15980 exit (1); 15981 if (((long) (sizeof (long long))) < 0) 15982 { 15983 long i = longval (); 15984 if (i != ((long) (sizeof (long long)))) 15985 exit (1); 15986 fprintf (f, "%ld\n", i); 15987 } 15988 else 15989 { 15990 unsigned long i = ulongval (); 15991 if (i != ((long) (sizeof (long long)))) 15992 exit (1); 15993 fprintf (f, "%lu\n", i); 15994 } 15995 exit (ferror (f) || fclose (f) != 0); 15996 15997 ; 15998 return 0; 15999 } 16000 _ACEOF 16001 rm -f conftest$ac_exeext 16002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16003 (eval $ac_link) 2>&5 16004 ac_status=$? 16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16008 (eval $ac_try) 2>&5 16009 ac_status=$? 16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16011 (exit $ac_status); }; }; then 16012 ac_cv_sizeof_long_long=`cat conftest.val` 16013 else 16014 echo "$as_me: program exited with status $ac_status" >&5 16015 echo "$as_me: failed program was:" >&5 16016 sed 's/^/| /' conftest.$ac_ext >&5 16017 16018 ( exit $ac_status ) 16019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 16020 See \`config.log' for more details." >&5 16021 echo "$as_me: error: cannot compute sizeof (long long), 77 16022 See \`config.log' for more details." >&2;} 16023 { (exit 1); exit 1; }; } 16024 fi 16025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16026 fi 16027 fi 16028 rm -f conftest.val 16029 else 16030 ac_cv_sizeof_long_long=0 16031 fi 16032 fi 16033 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 16034 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 16035 cat >>confdefs.h <<_ACEOF 16036 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 16037 _ACEOF 16038 16039 16040 echo "$as_me:$LINENO: checking for long" >&5 16041 echo $ECHO_N "checking for long... $ECHO_C" >&6 16042 if test "${ac_cv_type_long+set}" = set; then 16043 echo $ECHO_N "(cached) $ECHO_C" >&6 16044 else 16045 cat >conftest.$ac_ext <<_ACEOF 16046 /* confdefs.h. */ 16047 _ACEOF 16048 cat confdefs.h >>conftest.$ac_ext 16049 cat >>conftest.$ac_ext <<_ACEOF 16050 /* end confdefs.h. */ 16051 $ac_includes_default 16052 int 16053 main () 16054 { 16055 if ((long *) 0) 16056 return 0; 16057 if (sizeof (long)) 16058 return 0; 16059 ; 16060 return 0; 16061 } 16062 _ACEOF 16063 rm -f conftest.$ac_objext 16064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16065 (eval $ac_compile) 2>conftest.er1 16066 ac_status=$? 16067 grep -v '^ *+' conftest.er1 >conftest.err 16068 rm -f conftest.er1 16069 cat conftest.err >&5 16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16071 (exit $ac_status); } && 16072 { ac_try='test -z "$ac_c_werror_flag" 16073 || test ! -s conftest.err' 16074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16075 (eval $ac_try) 2>&5 16076 ac_status=$? 16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16078 (exit $ac_status); }; } && 16079 { ac_try='test -s conftest.$ac_objext' 16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16081 (eval $ac_try) 2>&5 16082 ac_status=$? 16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16084 (exit $ac_status); }; }; then 16085 ac_cv_type_long=yes 16086 else 16087 echo "$as_me: failed program was:" >&5 16088 sed 's/^/| /' conftest.$ac_ext >&5 16089 16090 ac_cv_type_long=no 16091 fi 16092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16093 fi 16094 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 16095 echo "${ECHO_T}$ac_cv_type_long" >&6 16096 16097 echo "$as_me:$LINENO: checking size of long" >&5 16098 echo $ECHO_N "checking size of long... $ECHO_C" >&6 16099 if test "${ac_cv_sizeof_long+set}" = set; then 16100 echo $ECHO_N "(cached) $ECHO_C" >&6 16101 else 16102 if test "$ac_cv_type_long" = yes; then 16103 # The cast to unsigned long works around a bug in the HP C Compiler 16104 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16105 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16106 # This bug is HP SR number 8606223364. 16107 if test "$cross_compiling" = yes; then 16108 # Depending upon the size, compute the lo and hi bounds. 16109 cat >conftest.$ac_ext <<_ACEOF 16110 /* confdefs.h. */ 16111 _ACEOF 16112 cat confdefs.h >>conftest.$ac_ext 16113 cat >>conftest.$ac_ext <<_ACEOF 16114 /* end confdefs.h. */ 16115 $ac_includes_default 16116 int 16117 main () 16118 { 16119 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 16120 test_array [0] = 0 16121 16122 ; 16123 return 0; 16124 } 16125 _ACEOF 16126 rm -f conftest.$ac_objext 16127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16128 (eval $ac_compile) 2>conftest.er1 16129 ac_status=$? 16130 grep -v '^ *+' conftest.er1 >conftest.err 16131 rm -f conftest.er1 16132 cat conftest.err >&5 16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16134 (exit $ac_status); } && 16135 { ac_try='test -z "$ac_c_werror_flag" 16136 || test ! -s conftest.err' 16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16138 (eval $ac_try) 2>&5 16139 ac_status=$? 16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16141 (exit $ac_status); }; } && 16142 { ac_try='test -s conftest.$ac_objext' 16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16144 (eval $ac_try) 2>&5 16145 ac_status=$? 16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16147 (exit $ac_status); }; }; then 16148 ac_lo=0 ac_mid=0 16149 while :; do 16150 cat >conftest.$ac_ext <<_ACEOF 16151 /* confdefs.h. */ 16152 _ACEOF 16153 cat confdefs.h >>conftest.$ac_ext 16154 cat >>conftest.$ac_ext <<_ACEOF 16155 /* end confdefs.h. */ 16156 $ac_includes_default 16157 int 16158 main () 16159 { 16160 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 16161 test_array [0] = 0 16162 16163 ; 16164 return 0; 16165 } 16166 _ACEOF 16167 rm -f conftest.$ac_objext 16168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16169 (eval $ac_compile) 2>conftest.er1 16170 ac_status=$? 16171 grep -v '^ *+' conftest.er1 >conftest.err 16172 rm -f conftest.er1 16173 cat conftest.err >&5 16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16175 (exit $ac_status); } && 16176 { ac_try='test -z "$ac_c_werror_flag" 16177 || test ! -s conftest.err' 16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16179 (eval $ac_try) 2>&5 16180 ac_status=$? 16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16182 (exit $ac_status); }; } && 16183 { ac_try='test -s conftest.$ac_objext' 16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16185 (eval $ac_try) 2>&5 16186 ac_status=$? 16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16188 (exit $ac_status); }; }; then 16189 ac_hi=$ac_mid; break 16190 else 16191 echo "$as_me: failed program was:" >&5 16192 sed 's/^/| /' conftest.$ac_ext >&5 16193 16194 ac_lo=`expr $ac_mid + 1` 16195 if test $ac_lo -le $ac_mid; then 16196 ac_lo= ac_hi= 16197 break 16198 fi 16199 ac_mid=`expr 2 '*' $ac_mid + 1` 16200 fi 16201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16202 done 16203 else 16204 echo "$as_me: failed program was:" >&5 16205 sed 's/^/| /' conftest.$ac_ext >&5 16206 16207 cat >conftest.$ac_ext <<_ACEOF 16208 /* confdefs.h. */ 16209 _ACEOF 16210 cat confdefs.h >>conftest.$ac_ext 16211 cat >>conftest.$ac_ext <<_ACEOF 16212 /* end confdefs.h. */ 16213 $ac_includes_default 16214 int 16215 main () 16216 { 16217 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 16218 test_array [0] = 0 16219 16220 ; 16221 return 0; 16222 } 16223 _ACEOF 16224 rm -f conftest.$ac_objext 16225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16226 (eval $ac_compile) 2>conftest.er1 16227 ac_status=$? 16228 grep -v '^ *+' conftest.er1 >conftest.err 16229 rm -f conftest.er1 16230 cat conftest.err >&5 16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16232 (exit $ac_status); } && 16233 { ac_try='test -z "$ac_c_werror_flag" 16234 || test ! -s conftest.err' 16235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16236 (eval $ac_try) 2>&5 16237 ac_status=$? 16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16239 (exit $ac_status); }; } && 16240 { ac_try='test -s conftest.$ac_objext' 16241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16242 (eval $ac_try) 2>&5 16243 ac_status=$? 16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16245 (exit $ac_status); }; }; then 16246 ac_hi=-1 ac_mid=-1 16247 while :; do 16248 cat >conftest.$ac_ext <<_ACEOF 16249 /* confdefs.h. */ 16250 _ACEOF 16251 cat confdefs.h >>conftest.$ac_ext 16252 cat >>conftest.$ac_ext <<_ACEOF 16253 /* end confdefs.h. */ 16254 $ac_includes_default 16255 int 16256 main () 16257 { 16258 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 16259 test_array [0] = 0 16260 16261 ; 16262 return 0; 16263 } 16264 _ACEOF 16265 rm -f conftest.$ac_objext 16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16267 (eval $ac_compile) 2>conftest.er1 16268 ac_status=$? 16269 grep -v '^ *+' conftest.er1 >conftest.err 16270 rm -f conftest.er1 16271 cat conftest.err >&5 16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16273 (exit $ac_status); } && 16274 { ac_try='test -z "$ac_c_werror_flag" 16275 || test ! -s conftest.err' 16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16277 (eval $ac_try) 2>&5 16278 ac_status=$? 16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16280 (exit $ac_status); }; } && 16281 { ac_try='test -s conftest.$ac_objext' 16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16283 (eval $ac_try) 2>&5 16284 ac_status=$? 16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16286 (exit $ac_status); }; }; then 16287 ac_lo=$ac_mid; break 16288 else 16289 echo "$as_me: failed program was:" >&5 16290 sed 's/^/| /' conftest.$ac_ext >&5 16291 16292 ac_hi=`expr '(' $ac_mid ')' - 1` 16293 if test $ac_mid -le $ac_hi; then 16294 ac_lo= ac_hi= 16295 break 16296 fi 16297 ac_mid=`expr 2 '*' $ac_mid` 16298 fi 16299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16300 done 16301 else 16302 echo "$as_me: failed program was:" >&5 16303 sed 's/^/| /' conftest.$ac_ext >&5 16304 16305 ac_lo= ac_hi= 16306 fi 16307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16308 fi 16309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16310 # Binary search between lo and hi bounds. 16311 while test "x$ac_lo" != "x$ac_hi"; do 16312 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 16313 cat >conftest.$ac_ext <<_ACEOF 16314 /* confdefs.h. */ 16315 _ACEOF 16316 cat confdefs.h >>conftest.$ac_ext 16317 cat >>conftest.$ac_ext <<_ACEOF 16318 /* end confdefs.h. */ 16319 $ac_includes_default 16320 int 16321 main () 16322 { 16323 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 16324 test_array [0] = 0 16325 16326 ; 16327 return 0; 16328 } 16329 _ACEOF 16330 rm -f conftest.$ac_objext 16331 if { (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_hi=$ac_mid 16353 else 16354 echo "$as_me: failed program was:" >&5 16355 sed 's/^/| /' conftest.$ac_ext >&5 16356 16357 ac_lo=`expr '(' $ac_mid ')' + 1` 16358 fi 16359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16360 done 16361 case $ac_lo in 16362 ?*) ac_cv_sizeof_long=$ac_lo;; 16363 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 16364 See \`config.log' for more details." >&5 16365 echo "$as_me: error: cannot compute sizeof (long), 77 16366 See \`config.log' for more details." >&2;} 16367 { (exit 1); exit 1; }; } ;; 16368 esac 16369 else 16370 if test "$cross_compiling" = yes; then 16371 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 16372 See \`config.log' for more details." >&5 16373 echo "$as_me: error: cannot run test program while cross compiling 16374 See \`config.log' for more details." >&2;} 16375 { (exit 1); exit 1; }; } 16376 else 16377 cat >conftest.$ac_ext <<_ACEOF 16378 /* confdefs.h. */ 16379 _ACEOF 16380 cat confdefs.h >>conftest.$ac_ext 16381 cat >>conftest.$ac_ext <<_ACEOF 16382 /* end confdefs.h. */ 16383 $ac_includes_default 16384 long longval () { return (long) (sizeof (long)); } 16385 unsigned long ulongval () { return (long) (sizeof (long)); } 16386 #include <stdio.h> 16387 #include <stdlib.h> 16388 int 16389 main () 16390 { 16391 16392 FILE *f = fopen ("conftest.val", "w"); 16393 if (! f) 16394 exit (1); 16395 if (((long) (sizeof (long))) < 0) 16396 { 16397 long i = longval (); 16398 if (i != ((long) (sizeof (long)))) 16399 exit (1); 16400 fprintf (f, "%ld\n", i); 16401 } 16402 else 16403 { 16404 unsigned long i = ulongval (); 16405 if (i != ((long) (sizeof (long)))) 16406 exit (1); 16407 fprintf (f, "%lu\n", i); 16408 } 16409 exit (ferror (f) || fclose (f) != 0); 16410 16411 ; 16412 return 0; 16413 } 16414 _ACEOF 16415 rm -f conftest$ac_exeext 16416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16417 (eval $ac_link) 2>&5 16418 ac_status=$? 16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16422 (eval $ac_try) 2>&5 16423 ac_status=$? 16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16425 (exit $ac_status); }; }; then 16426 ac_cv_sizeof_long=`cat conftest.val` 16427 else 16428 echo "$as_me: program exited with status $ac_status" >&5 16429 echo "$as_me: failed program was:" >&5 16430 sed 's/^/| /' conftest.$ac_ext >&5 16431 16432 ( exit $ac_status ) 16433 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 16434 See \`config.log' for more details." >&5 16435 echo "$as_me: error: cannot compute sizeof (long), 77 16436 See \`config.log' for more details." >&2;} 16437 { (exit 1); exit 1; }; } 16438 fi 16439 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16440 fi 16441 fi 16442 rm -f conftest.val 16443 else 16444 ac_cv_sizeof_long=0 16445 fi 16446 fi 16447 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 16448 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 16449 cat >>confdefs.h <<_ACEOF 16450 #define SIZEOF_LONG $ac_cv_sizeof_long 16451 _ACEOF 16452 16453 16454 echo "$as_me:$LINENO: checking for int" >&5 16455 echo $ECHO_N "checking for int... $ECHO_C" >&6 16456 if test "${ac_cv_type_int+set}" = set; then 16457 echo $ECHO_N "(cached) $ECHO_C" >&6 16458 else 16459 cat >conftest.$ac_ext <<_ACEOF 16460 /* confdefs.h. */ 16461 _ACEOF 16462 cat confdefs.h >>conftest.$ac_ext 16463 cat >>conftest.$ac_ext <<_ACEOF 16464 /* end confdefs.h. */ 16465 $ac_includes_default 16466 int 16467 main () 16468 { 16469 if ((int *) 0) 16470 return 0; 16471 if (sizeof (int)) 16472 return 0; 16473 ; 16474 return 0; 16475 } 16476 _ACEOF 16477 rm -f conftest.$ac_objext 16478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16479 (eval $ac_compile) 2>conftest.er1 16480 ac_status=$? 16481 grep -v '^ *+' conftest.er1 >conftest.err 16482 rm -f conftest.er1 16483 cat conftest.err >&5 16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16485 (exit $ac_status); } && 16486 { ac_try='test -z "$ac_c_werror_flag" 16487 || test ! -s conftest.err' 16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16489 (eval $ac_try) 2>&5 16490 ac_status=$? 16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16492 (exit $ac_status); }; } && 16493 { ac_try='test -s conftest.$ac_objext' 16494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16495 (eval $ac_try) 2>&5 16496 ac_status=$? 16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16498 (exit $ac_status); }; }; then 16499 ac_cv_type_int=yes 16500 else 16501 echo "$as_me: failed program was:" >&5 16502 sed 's/^/| /' conftest.$ac_ext >&5 16503 16504 ac_cv_type_int=no 16505 fi 16506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16507 fi 16508 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 16509 echo "${ECHO_T}$ac_cv_type_int" >&6 16510 16511 echo "$as_me:$LINENO: checking size of int" >&5 16512 echo $ECHO_N "checking size of int... $ECHO_C" >&6 16513 if test "${ac_cv_sizeof_int+set}" = set; then 16514 echo $ECHO_N "(cached) $ECHO_C" >&6 16515 else 16516 if test "$ac_cv_type_int" = yes; then 16517 # The cast to unsigned long works around a bug in the HP C Compiler 16518 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16519 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16520 # This bug is HP SR number 8606223364. 16521 if test "$cross_compiling" = yes; then 16522 # Depending upon the size, compute the lo and hi bounds. 16523 cat >conftest.$ac_ext <<_ACEOF 16524 /* confdefs.h. */ 16525 _ACEOF 16526 cat confdefs.h >>conftest.$ac_ext 16527 cat >>conftest.$ac_ext <<_ACEOF 16528 /* end confdefs.h. */ 16529 $ac_includes_default 16530 int 16531 main () 16532 { 16533 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 16534 test_array [0] = 0 16535 16536 ; 16537 return 0; 16538 } 16539 _ACEOF 16540 rm -f conftest.$ac_objext 16541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16542 (eval $ac_compile) 2>conftest.er1 16543 ac_status=$? 16544 grep -v '^ *+' conftest.er1 >conftest.err 16545 rm -f conftest.er1 16546 cat conftest.err >&5 16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16548 (exit $ac_status); } && 16549 { ac_try='test -z "$ac_c_werror_flag" 16550 || test ! -s conftest.err' 16551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16552 (eval $ac_try) 2>&5 16553 ac_status=$? 16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16555 (exit $ac_status); }; } && 16556 { ac_try='test -s conftest.$ac_objext' 16557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16558 (eval $ac_try) 2>&5 16559 ac_status=$? 16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16561 (exit $ac_status); }; }; then 16562 ac_lo=0 ac_mid=0 16563 while :; do 16564 cat >conftest.$ac_ext <<_ACEOF 16565 /* confdefs.h. */ 16566 _ACEOF 16567 cat confdefs.h >>conftest.$ac_ext 16568 cat >>conftest.$ac_ext <<_ACEOF 16569 /* end confdefs.h. */ 16570 $ac_includes_default 16571 int 16572 main () 16573 { 16574 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 16575 test_array [0] = 0 16576 16577 ; 16578 return 0; 16579 } 16580 _ACEOF 16581 rm -f conftest.$ac_objext 16582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16583 (eval $ac_compile) 2>conftest.er1 16584 ac_status=$? 16585 grep -v '^ *+' conftest.er1 >conftest.err 16586 rm -f conftest.er1 16587 cat conftest.err >&5 16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16589 (exit $ac_status); } && 16590 { ac_try='test -z "$ac_c_werror_flag" 16591 || test ! -s conftest.err' 16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16593 (eval $ac_try) 2>&5 16594 ac_status=$? 16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16596 (exit $ac_status); }; } && 16597 { ac_try='test -s conftest.$ac_objext' 16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16599 (eval $ac_try) 2>&5 16600 ac_status=$? 16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16602 (exit $ac_status); }; }; then 16603 ac_hi=$ac_mid; break 16604 else 16605 echo "$as_me: failed program was:" >&5 16606 sed 's/^/| /' conftest.$ac_ext >&5 16607 16608 ac_lo=`expr $ac_mid + 1` 16609 if test $ac_lo -le $ac_mid; then 16610 ac_lo= ac_hi= 16611 break 16612 fi 16613 ac_mid=`expr 2 '*' $ac_mid + 1` 16614 fi 16615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16616 done 16617 else 16618 echo "$as_me: failed program was:" >&5 16619 sed 's/^/| /' conftest.$ac_ext >&5 16620 16621 cat >conftest.$ac_ext <<_ACEOF 16622 /* confdefs.h. */ 16623 _ACEOF 16624 cat confdefs.h >>conftest.$ac_ext 16625 cat >>conftest.$ac_ext <<_ACEOF 16626 /* end confdefs.h. */ 16627 $ac_includes_default 16628 int 16629 main () 16630 { 16631 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 16632 test_array [0] = 0 16633 16634 ; 16635 return 0; 16636 } 16637 _ACEOF 16638 rm -f conftest.$ac_objext 16639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16640 (eval $ac_compile) 2>conftest.er1 16641 ac_status=$? 16642 grep -v '^ *+' conftest.er1 >conftest.err 16643 rm -f conftest.er1 16644 cat conftest.err >&5 16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16646 (exit $ac_status); } && 16647 { ac_try='test -z "$ac_c_werror_flag" 16648 || test ! -s conftest.err' 16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16650 (eval $ac_try) 2>&5 16651 ac_status=$? 16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16653 (exit $ac_status); }; } && 16654 { ac_try='test -s conftest.$ac_objext' 16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16656 (eval $ac_try) 2>&5 16657 ac_status=$? 16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16659 (exit $ac_status); }; }; then 16660 ac_hi=-1 ac_mid=-1 16661 while :; do 16662 cat >conftest.$ac_ext <<_ACEOF 16663 /* confdefs.h. */ 16664 _ACEOF 16665 cat confdefs.h >>conftest.$ac_ext 16666 cat >>conftest.$ac_ext <<_ACEOF 16667 /* end confdefs.h. */ 16668 $ac_includes_default 16669 int 16670 main () 16671 { 16672 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 16673 test_array [0] = 0 16674 16675 ; 16676 return 0; 16677 } 16678 _ACEOF 16679 rm -f conftest.$ac_objext 16680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16681 (eval $ac_compile) 2>conftest.er1 16682 ac_status=$? 16683 grep -v '^ *+' conftest.er1 >conftest.err 16684 rm -f conftest.er1 16685 cat conftest.err >&5 16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16687 (exit $ac_status); } && 16688 { ac_try='test -z "$ac_c_werror_flag" 16689 || test ! -s conftest.err' 16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16691 (eval $ac_try) 2>&5 16692 ac_status=$? 16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16694 (exit $ac_status); }; } && 16695 { ac_try='test -s conftest.$ac_objext' 16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16697 (eval $ac_try) 2>&5 16698 ac_status=$? 16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16700 (exit $ac_status); }; }; then 16701 ac_lo=$ac_mid; break 16702 else 16703 echo "$as_me: failed program was:" >&5 16704 sed 's/^/| /' conftest.$ac_ext >&5 16705 16706 ac_hi=`expr '(' $ac_mid ')' - 1` 16707 if test $ac_mid -le $ac_hi; then 16708 ac_lo= ac_hi= 16709 break 16710 fi 16711 ac_mid=`expr 2 '*' $ac_mid` 16712 fi 16713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16714 done 16715 else 16716 echo "$as_me: failed program was:" >&5 16717 sed 's/^/| /' conftest.$ac_ext >&5 16718 16719 ac_lo= ac_hi= 16720 fi 16721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16722 fi 16723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16724 # Binary search between lo and hi bounds. 16725 while test "x$ac_lo" != "x$ac_hi"; do 16726 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 16727 cat >conftest.$ac_ext <<_ACEOF 16728 /* confdefs.h. */ 16729 _ACEOF 16730 cat confdefs.h >>conftest.$ac_ext 16731 cat >>conftest.$ac_ext <<_ACEOF 16732 /* end confdefs.h. */ 16733 $ac_includes_default 16734 int 16735 main () 16736 { 16737 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 16738 test_array [0] = 0 16739 16740 ; 16741 return 0; 16742 } 16743 _ACEOF 16744 rm -f conftest.$ac_objext 16745 if { (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_hi=$ac_mid 16767 else 16768 echo "$as_me: failed program was:" >&5 16769 sed 's/^/| /' conftest.$ac_ext >&5 16770 16771 ac_lo=`expr '(' $ac_mid ')' + 1` 16772 fi 16773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16774 done 16775 case $ac_lo in 16776 ?*) ac_cv_sizeof_int=$ac_lo;; 16777 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 16778 See \`config.log' for more details." >&5 16779 echo "$as_me: error: cannot compute sizeof (int), 77 16780 See \`config.log' for more details." >&2;} 16781 { (exit 1); exit 1; }; } ;; 16782 esac 16783 else 16784 if test "$cross_compiling" = yes; then 16785 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 16786 See \`config.log' for more details." >&5 16787 echo "$as_me: error: cannot run test program while cross compiling 16788 See \`config.log' for more details." >&2;} 16789 { (exit 1); exit 1; }; } 16790 else 16791 cat >conftest.$ac_ext <<_ACEOF 16792 /* confdefs.h. */ 16793 _ACEOF 16794 cat confdefs.h >>conftest.$ac_ext 16795 cat >>conftest.$ac_ext <<_ACEOF 16796 /* end confdefs.h. */ 16797 $ac_includes_default 16798 long longval () { return (long) (sizeof (int)); } 16799 unsigned long ulongval () { return (long) (sizeof (int)); } 16800 #include <stdio.h> 16801 #include <stdlib.h> 16802 int 16803 main () 16804 { 16805 16806 FILE *f = fopen ("conftest.val", "w"); 16807 if (! f) 16808 exit (1); 16809 if (((long) (sizeof (int))) < 0) 16810 { 16811 long i = longval (); 16812 if (i != ((long) (sizeof (int)))) 16813 exit (1); 16814 fprintf (f, "%ld\n", i); 16815 } 16816 else 16817 { 16818 unsigned long i = ulongval (); 16819 if (i != ((long) (sizeof (int)))) 16820 exit (1); 16821 fprintf (f, "%lu\n", i); 16822 } 16823 exit (ferror (f) || fclose (f) != 0); 16824 16825 ; 16826 return 0; 16827 } 16828 _ACEOF 16829 rm -f conftest$ac_exeext 16830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16831 (eval $ac_link) 2>&5 16832 ac_status=$? 16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16836 (eval $ac_try) 2>&5 16837 ac_status=$? 16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16839 (exit $ac_status); }; }; then 16840 ac_cv_sizeof_int=`cat conftest.val` 16841 else 16842 echo "$as_me: program exited with status $ac_status" >&5 16843 echo "$as_me: failed program was:" >&5 16844 sed 's/^/| /' conftest.$ac_ext >&5 16845 16846 ( exit $ac_status ) 16847 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 16848 See \`config.log' for more details." >&5 16849 echo "$as_me: error: cannot compute sizeof (int), 77 16850 See \`config.log' for more details." >&2;} 16851 { (exit 1); exit 1; }; } 16852 fi 16853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16854 fi 16855 fi 16856 rm -f conftest.val 16857 else 16858 ac_cv_sizeof_int=0 16859 fi 16860 fi 16861 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 16862 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 16863 cat >>confdefs.h <<_ACEOF 16864 #define SIZEOF_INT $ac_cv_sizeof_int 16865 _ACEOF 16866 16867 16868 echo "$as_me:$LINENO: checking for short" >&5 16869 echo $ECHO_N "checking for short... $ECHO_C" >&6 16870 if test "${ac_cv_type_short+set}" = set; then 16871 echo $ECHO_N "(cached) $ECHO_C" >&6 16872 else 16873 cat >conftest.$ac_ext <<_ACEOF 16874 /* confdefs.h. */ 16875 _ACEOF 16876 cat confdefs.h >>conftest.$ac_ext 16877 cat >>conftest.$ac_ext <<_ACEOF 16878 /* end confdefs.h. */ 16879 $ac_includes_default 16880 int 16881 main () 16882 { 16883 if ((short *) 0) 16884 return 0; 16885 if (sizeof (short)) 16886 return 0; 16887 ; 16888 return 0; 16889 } 16890 _ACEOF 16891 rm -f conftest.$ac_objext 16892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16893 (eval $ac_compile) 2>conftest.er1 16894 ac_status=$? 16895 grep -v '^ *+' conftest.er1 >conftest.err 16896 rm -f conftest.er1 16897 cat conftest.err >&5 16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16899 (exit $ac_status); } && 16900 { ac_try='test -z "$ac_c_werror_flag" 16901 || test ! -s conftest.err' 16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16903 (eval $ac_try) 2>&5 16904 ac_status=$? 16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16906 (exit $ac_status); }; } && 16907 { ac_try='test -s conftest.$ac_objext' 16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16909 (eval $ac_try) 2>&5 16910 ac_status=$? 16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16912 (exit $ac_status); }; }; then 16913 ac_cv_type_short=yes 16914 else 16915 echo "$as_me: failed program was:" >&5 16916 sed 's/^/| /' conftest.$ac_ext >&5 16917 16918 ac_cv_type_short=no 16919 fi 16920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16921 fi 16922 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 16923 echo "${ECHO_T}$ac_cv_type_short" >&6 16924 16925 echo "$as_me:$LINENO: checking size of short" >&5 16926 echo $ECHO_N "checking size of short... $ECHO_C" >&6 16927 if test "${ac_cv_sizeof_short+set}" = set; then 16928 echo $ECHO_N "(cached) $ECHO_C" >&6 16929 else 16930 if test "$ac_cv_type_short" = yes; then 16931 # The cast to unsigned long works around a bug in the HP C Compiler 16932 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16933 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16934 # This bug is HP SR number 8606223364. 16935 if test "$cross_compiling" = yes; then 16936 # Depending upon the size, compute the lo and hi bounds. 16937 cat >conftest.$ac_ext <<_ACEOF 16938 /* confdefs.h. */ 16939 _ACEOF 16940 cat confdefs.h >>conftest.$ac_ext 16941 cat >>conftest.$ac_ext <<_ACEOF 16942 /* end confdefs.h. */ 16943 $ac_includes_default 16944 int 16945 main () 16946 { 16947 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 16948 test_array [0] = 0 16949 16950 ; 16951 return 0; 16952 } 16953 _ACEOF 16954 rm -f conftest.$ac_objext 16955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16956 (eval $ac_compile) 2>conftest.er1 16957 ac_status=$? 16958 grep -v '^ *+' conftest.er1 >conftest.err 16959 rm -f conftest.er1 16960 cat conftest.err >&5 16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16962 (exit $ac_status); } && 16963 { ac_try='test -z "$ac_c_werror_flag" 16964 || test ! -s conftest.err' 16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16966 (eval $ac_try) 2>&5 16967 ac_status=$? 16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16969 (exit $ac_status); }; } && 16970 { ac_try='test -s conftest.$ac_objext' 16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16972 (eval $ac_try) 2>&5 16973 ac_status=$? 16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16975 (exit $ac_status); }; }; then 16976 ac_lo=0 ac_mid=0 16977 while :; do 16978 cat >conftest.$ac_ext <<_ACEOF 16979 /* confdefs.h. */ 16980 _ACEOF 16981 cat confdefs.h >>conftest.$ac_ext 16982 cat >>conftest.$ac_ext <<_ACEOF 16983 /* end confdefs.h. */ 16984 $ac_includes_default 16985 int 16986 main () 16987 { 16988 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 16989 test_array [0] = 0 16990 16991 ; 16992 return 0; 16993 } 16994 _ACEOF 16995 rm -f conftest.$ac_objext 16996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16997 (eval $ac_compile) 2>conftest.er1 16998 ac_status=$? 16999 grep -v '^ *+' conftest.er1 >conftest.err 17000 rm -f conftest.er1 17001 cat conftest.err >&5 17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17003 (exit $ac_status); } && 17004 { ac_try='test -z "$ac_c_werror_flag" 17005 || test ! -s conftest.err' 17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17007 (eval $ac_try) 2>&5 17008 ac_status=$? 17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17010 (exit $ac_status); }; } && 17011 { ac_try='test -s conftest.$ac_objext' 17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17013 (eval $ac_try) 2>&5 17014 ac_status=$? 17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17016 (exit $ac_status); }; }; then 17017 ac_hi=$ac_mid; break 17018 else 17019 echo "$as_me: failed program was:" >&5 17020 sed 's/^/| /' conftest.$ac_ext >&5 17021 17022 ac_lo=`expr $ac_mid + 1` 17023 if test $ac_lo -le $ac_mid; then 17024 ac_lo= ac_hi= 17025 break 17026 fi 17027 ac_mid=`expr 2 '*' $ac_mid + 1` 17028 fi 17029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17030 done 17031 else 17032 echo "$as_me: failed program was:" >&5 17033 sed 's/^/| /' conftest.$ac_ext >&5 17034 17035 cat >conftest.$ac_ext <<_ACEOF 17036 /* confdefs.h. */ 17037 _ACEOF 17038 cat confdefs.h >>conftest.$ac_ext 17039 cat >>conftest.$ac_ext <<_ACEOF 17040 /* end confdefs.h. */ 17041 $ac_includes_default 17042 int 17043 main () 17044 { 17045 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 17046 test_array [0] = 0 17047 17048 ; 17049 return 0; 17050 } 17051 _ACEOF 17052 rm -f conftest.$ac_objext 17053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17054 (eval $ac_compile) 2>conftest.er1 17055 ac_status=$? 17056 grep -v '^ *+' conftest.er1 >conftest.err 17057 rm -f conftest.er1 17058 cat conftest.err >&5 17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17060 (exit $ac_status); } && 17061 { ac_try='test -z "$ac_c_werror_flag" 17062 || test ! -s conftest.err' 17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17064 (eval $ac_try) 2>&5 17065 ac_status=$? 17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17067 (exit $ac_status); }; } && 17068 { ac_try='test -s conftest.$ac_objext' 17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17070 (eval $ac_try) 2>&5 17071 ac_status=$? 17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17073 (exit $ac_status); }; }; then 17074 ac_hi=-1 ac_mid=-1 17075 while :; do 17076 cat >conftest.$ac_ext <<_ACEOF 17077 /* confdefs.h. */ 17078 _ACEOF 17079 cat confdefs.h >>conftest.$ac_ext 17080 cat >>conftest.$ac_ext <<_ACEOF 17081 /* end confdefs.h. */ 17082 $ac_includes_default 17083 int 17084 main () 17085 { 17086 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 17087 test_array [0] = 0 17088 17089 ; 17090 return 0; 17091 } 17092 _ACEOF 17093 rm -f conftest.$ac_objext 17094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17095 (eval $ac_compile) 2>conftest.er1 17096 ac_status=$? 17097 grep -v '^ *+' conftest.er1 >conftest.err 17098 rm -f conftest.er1 17099 cat conftest.err >&5 17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17101 (exit $ac_status); } && 17102 { ac_try='test -z "$ac_c_werror_flag" 17103 || test ! -s conftest.err' 17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17105 (eval $ac_try) 2>&5 17106 ac_status=$? 17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17108 (exit $ac_status); }; } && 17109 { ac_try='test -s conftest.$ac_objext' 17110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17111 (eval $ac_try) 2>&5 17112 ac_status=$? 17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17114 (exit $ac_status); }; }; then 17115 ac_lo=$ac_mid; break 17116 else 17117 echo "$as_me: failed program was:" >&5 17118 sed 's/^/| /' conftest.$ac_ext >&5 17119 17120 ac_hi=`expr '(' $ac_mid ')' - 1` 17121 if test $ac_mid -le $ac_hi; then 17122 ac_lo= ac_hi= 17123 break 17124 fi 17125 ac_mid=`expr 2 '*' $ac_mid` 17126 fi 17127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17128 done 17129 else 17130 echo "$as_me: failed program was:" >&5 17131 sed 's/^/| /' conftest.$ac_ext >&5 17132 17133 ac_lo= ac_hi= 17134 fi 17135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17136 fi 17137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17138 # Binary search between lo and hi bounds. 17139 while test "x$ac_lo" != "x$ac_hi"; do 17140 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 17141 cat >conftest.$ac_ext <<_ACEOF 17142 /* confdefs.h. */ 17143 _ACEOF 17144 cat confdefs.h >>conftest.$ac_ext 17145 cat >>conftest.$ac_ext <<_ACEOF 17146 /* end confdefs.h. */ 17147 $ac_includes_default 17148 int 17149 main () 17150 { 17151 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 17152 test_array [0] = 0 17153 17154 ; 17155 return 0; 17156 } 17157 _ACEOF 17158 rm -f conftest.$ac_objext 17159 if { (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_hi=$ac_mid 17181 else 17182 echo "$as_me: failed program was:" >&5 17183 sed 's/^/| /' conftest.$ac_ext >&5 17184 17185 ac_lo=`expr '(' $ac_mid ')' + 1` 17186 fi 17187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17188 done 17189 case $ac_lo in 17190 ?*) ac_cv_sizeof_short=$ac_lo;; 17191 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 17192 See \`config.log' for more details." >&5 17193 echo "$as_me: error: cannot compute sizeof (short), 77 17194 See \`config.log' for more details." >&2;} 17195 { (exit 1); exit 1; }; } ;; 17196 esac 17197 else 17198 if test "$cross_compiling" = yes; then 17199 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 17200 See \`config.log' for more details." >&5 17201 echo "$as_me: error: cannot run test program while cross compiling 17202 See \`config.log' for more details." >&2;} 17203 { (exit 1); exit 1; }; } 17204 else 17205 cat >conftest.$ac_ext <<_ACEOF 17206 /* confdefs.h. */ 17207 _ACEOF 17208 cat confdefs.h >>conftest.$ac_ext 17209 cat >>conftest.$ac_ext <<_ACEOF 17210 /* end confdefs.h. */ 17211 $ac_includes_default 17212 long longval () { return (long) (sizeof (short)); } 17213 unsigned long ulongval () { return (long) (sizeof (short)); } 17214 #include <stdio.h> 17215 #include <stdlib.h> 17216 int 17217 main () 17218 { 17219 17220 FILE *f = fopen ("conftest.val", "w"); 17221 if (! f) 17222 exit (1); 17223 if (((long) (sizeof (short))) < 0) 17224 { 17225 long i = longval (); 17226 if (i != ((long) (sizeof (short)))) 17227 exit (1); 17228 fprintf (f, "%ld\n", i); 17229 } 17230 else 17231 { 17232 unsigned long i = ulongval (); 17233 if (i != ((long) (sizeof (short)))) 17234 exit (1); 17235 fprintf (f, "%lu\n", i); 17236 } 17237 exit (ferror (f) || fclose (f) != 0); 17238 17239 ; 17240 return 0; 17241 } 17242 _ACEOF 17243 rm -f conftest$ac_exeext 17244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17245 (eval $ac_link) 2>&5 17246 ac_status=$? 17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17250 (eval $ac_try) 2>&5 17251 ac_status=$? 17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17253 (exit $ac_status); }; }; then 17254 ac_cv_sizeof_short=`cat conftest.val` 17255 else 17256 echo "$as_me: program exited with status $ac_status" >&5 17257 echo "$as_me: failed program was:" >&5 17258 sed 's/^/| /' conftest.$ac_ext >&5 17259 17260 ( exit $ac_status ) 17261 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 17262 See \`config.log' for more details." >&5 17263 echo "$as_me: error: cannot compute sizeof (short), 77 17264 See \`config.log' for more details." >&2;} 17265 { (exit 1); exit 1; }; } 17266 fi 17267 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17268 fi 17269 fi 17270 rm -f conftest.val 17271 else 17272 ac_cv_sizeof_short=0 17273 fi 17274 fi 17275 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 17276 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 17277 cat >>confdefs.h <<_ACEOF 17278 #define SIZEOF_SHORT $ac_cv_sizeof_short 17279 _ACEOF 17280 17281 17282 fi 17283 FOUND=0 17284 for dc_cv_loop in \$ac_cv_sizeof_long_long \$ac_cv_sizeof_int \$ac_cv_sizeof_long \$ac_cv_sizeof_short; do 17285 dc_cv_size=`eval echo $dc_cv_loop` 17286 dc_cv_name=`echo $dc_cv_loop | sed s/\\\$ac_cv_sizeof_//` 17287 if test "$dc_cv_size" = "2"; then 17288 if test "$dc_cv_name" = "int"; then 17289 echo "$as_me:$LINENO: checking for int16_t" >&5 17290 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 17291 if test "${ac_cv_type_int16_t+set}" = set; then 17292 echo $ECHO_N "(cached) $ECHO_C" >&6 17293 else 17294 cat >conftest.$ac_ext <<_ACEOF 17295 /* confdefs.h. */ 17296 _ACEOF 17297 cat confdefs.h >>conftest.$ac_ext 17298 cat >>conftest.$ac_ext <<_ACEOF 17299 /* end confdefs.h. */ 17300 $ac_includes_default 17301 int 17302 main () 17303 { 17304 if ((int16_t *) 0) 17305 return 0; 17306 if (sizeof (int16_t)) 17307 return 0; 17308 ; 17309 return 0; 17310 } 17311 _ACEOF 17312 rm -f conftest.$ac_objext 17313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17314 (eval $ac_compile) 2>conftest.er1 17315 ac_status=$? 17316 grep -v '^ *+' conftest.er1 >conftest.err 17317 rm -f conftest.er1 17318 cat conftest.err >&5 17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17320 (exit $ac_status); } && 17321 { ac_try='test -z "$ac_c_werror_flag" 17322 || test ! -s conftest.err' 17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17324 (eval $ac_try) 2>&5 17325 ac_status=$? 17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17327 (exit $ac_status); }; } && 17328 { ac_try='test -s conftest.$ac_objext' 17329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17330 (eval $ac_try) 2>&5 17331 ac_status=$? 17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17333 (exit $ac_status); }; }; then 17334 ac_cv_type_int16_t=yes 17335 else 17336 echo "$as_me: failed program was:" >&5 17337 sed 's/^/| /' conftest.$ac_ext >&5 17338 17339 ac_cv_type_int16_t=no 17340 fi 17341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17342 fi 17343 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 17344 echo "${ECHO_T}$ac_cv_type_int16_t" >&6 17345 if test $ac_cv_type_int16_t = yes; then 17346 : 17347 else 17348 17349 cat >>confdefs.h <<_ACEOF 17350 #define int16_t signed int 17351 _ACEOF 17352 17353 fi 17354 17355 fi 17356 if test "$dc_cv_name" = "long"; then 17357 echo "$as_me:$LINENO: checking for int16_t" >&5 17358 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 17359 if test "${ac_cv_type_int16_t+set}" = set; then 17360 echo $ECHO_N "(cached) $ECHO_C" >&6 17361 else 17362 cat >conftest.$ac_ext <<_ACEOF 17363 /* confdefs.h. */ 17364 _ACEOF 17365 cat confdefs.h >>conftest.$ac_ext 17366 cat >>conftest.$ac_ext <<_ACEOF 17367 /* end confdefs.h. */ 17368 $ac_includes_default 17369 int 17370 main () 17371 { 17372 if ((int16_t *) 0) 17373 return 0; 17374 if (sizeof (int16_t)) 17375 return 0; 17376 ; 17377 return 0; 17378 } 17379 _ACEOF 17380 rm -f conftest.$ac_objext 17381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17382 (eval $ac_compile) 2>conftest.er1 17383 ac_status=$? 17384 grep -v '^ *+' conftest.er1 >conftest.err 17385 rm -f conftest.er1 17386 cat conftest.err >&5 17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17388 (exit $ac_status); } && 17389 { ac_try='test -z "$ac_c_werror_flag" 17390 || test ! -s conftest.err' 17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17392 (eval $ac_try) 2>&5 17393 ac_status=$? 17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17395 (exit $ac_status); }; } && 17396 { ac_try='test -s conftest.$ac_objext' 17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17398 (eval $ac_try) 2>&5 17399 ac_status=$? 17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17401 (exit $ac_status); }; }; then 17402 ac_cv_type_int16_t=yes 17403 else 17404 echo "$as_me: failed program was:" >&5 17405 sed 's/^/| /' conftest.$ac_ext >&5 17406 17407 ac_cv_type_int16_t=no 17408 fi 17409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17410 fi 17411 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 17412 echo "${ECHO_T}$ac_cv_type_int16_t" >&6 17413 if test $ac_cv_type_int16_t = yes; then 17414 : 17415 else 17416 17417 cat >>confdefs.h <<_ACEOF 17418 #define int16_t signed long 17419 _ACEOF 17420 17421 fi 17422 17423 fi 17424 if test "$dc_cv_name" = "long_long"; then 17425 echo "$as_me:$LINENO: checking for int16_t" >&5 17426 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 17427 if test "${ac_cv_type_int16_t+set}" = set; then 17428 echo $ECHO_N "(cached) $ECHO_C" >&6 17429 else 17430 cat >conftest.$ac_ext <<_ACEOF 17431 /* confdefs.h. */ 17432 _ACEOF 17433 cat confdefs.h >>conftest.$ac_ext 17434 cat >>conftest.$ac_ext <<_ACEOF 17435 /* end confdefs.h. */ 17436 $ac_includes_default 17437 int 17438 main () 17439 { 17440 if ((int16_t *) 0) 17441 return 0; 17442 if (sizeof (int16_t)) 17443 return 0; 17444 ; 17445 return 0; 17446 } 17447 _ACEOF 17448 rm -f conftest.$ac_objext 17449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17450 (eval $ac_compile) 2>conftest.er1 17451 ac_status=$? 17452 grep -v '^ *+' conftest.er1 >conftest.err 17453 rm -f conftest.er1 17454 cat conftest.err >&5 17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17456 (exit $ac_status); } && 17457 { ac_try='test -z "$ac_c_werror_flag" 17458 || test ! -s conftest.err' 17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17460 (eval $ac_try) 2>&5 17461 ac_status=$? 17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17463 (exit $ac_status); }; } && 17464 { ac_try='test -s conftest.$ac_objext' 17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17466 (eval $ac_try) 2>&5 17467 ac_status=$? 17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17469 (exit $ac_status); }; }; then 17470 ac_cv_type_int16_t=yes 17471 else 17472 echo "$as_me: failed program was:" >&5 17473 sed 's/^/| /' conftest.$ac_ext >&5 17474 17475 ac_cv_type_int16_t=no 17476 fi 17477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17478 fi 17479 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 17480 echo "${ECHO_T}$ac_cv_type_int16_t" >&6 17481 if test $ac_cv_type_int16_t = yes; then 17482 : 17483 else 17484 17485 cat >>confdefs.h <<_ACEOF 17486 #define int16_t signed long long 17487 _ACEOF 17488 17489 fi 17490 17491 fi 17492 if test "$dc_cv_name" = "short"; then 17493 echo "$as_me:$LINENO: checking for int16_t" >&5 17494 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 17495 if test "${ac_cv_type_int16_t+set}" = set; then 17496 echo $ECHO_N "(cached) $ECHO_C" >&6 17497 else 17498 cat >conftest.$ac_ext <<_ACEOF 17499 /* confdefs.h. */ 17500 _ACEOF 17501 cat confdefs.h >>conftest.$ac_ext 17502 cat >>conftest.$ac_ext <<_ACEOF 17503 /* end confdefs.h. */ 17504 $ac_includes_default 17505 int 17506 main () 17507 { 17508 if ((int16_t *) 0) 17509 return 0; 17510 if (sizeof (int16_t)) 17511 return 0; 17512 ; 17513 return 0; 17514 } 17515 _ACEOF 17516 rm -f conftest.$ac_objext 17517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17518 (eval $ac_compile) 2>conftest.er1 17519 ac_status=$? 17520 grep -v '^ *+' conftest.er1 >conftest.err 17521 rm -f conftest.er1 17522 cat conftest.err >&5 17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17524 (exit $ac_status); } && 17525 { ac_try='test -z "$ac_c_werror_flag" 17526 || test ! -s conftest.err' 17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17528 (eval $ac_try) 2>&5 17529 ac_status=$? 17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17531 (exit $ac_status); }; } && 17532 { ac_try='test -s conftest.$ac_objext' 17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17534 (eval $ac_try) 2>&5 17535 ac_status=$? 17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17537 (exit $ac_status); }; }; then 17538 ac_cv_type_int16_t=yes 17539 else 17540 echo "$as_me: failed program was:" >&5 17541 sed 's/^/| /' conftest.$ac_ext >&5 17542 17543 ac_cv_type_int16_t=no 17544 fi 17545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17546 fi 17547 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 17548 echo "${ECHO_T}$ac_cv_type_int16_t" >&6 17549 if test $ac_cv_type_int16_t = yes; then 17550 : 17551 else 17552 17553 cat >>confdefs.h <<_ACEOF 17554 #define int16_t signed short 17555 _ACEOF 17556 17557 fi 17558 17559 fi 17560 FOUND=1 17561 break 17562 fi 17563 done 17564 17565 17566 17567 echo "$as_me:$LINENO: checking for library containing socket" >&5 17568 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6 17569 if test "${ac_cv_search_socket+set}" = set; then 17570 echo $ECHO_N "(cached) $ECHO_C" >&6 17571 else 17572 ac_func_search_save_LIBS=$LIBS 17573 ac_cv_search_socket=no 17574 cat >conftest.$ac_ext <<_ACEOF 17575 /* confdefs.h. */ 17576 _ACEOF 17577 cat confdefs.h >>conftest.$ac_ext 17578 cat >>conftest.$ac_ext <<_ACEOF 17579 /* end confdefs.h. */ 17580 17581 /* Override any gcc2 internal prototype to avoid an error. */ 17582 #ifdef __cplusplus 17583 extern "C" 17584 #endif 17585 /* We use char because int might match the return type of a gcc2 17586 builtin and then its argument prototype would still apply. */ 17587 char socket (); 17588 int 17589 main () 17590 { 17591 socket (); 17592 ; 17593 return 0; 17594 } 17595 _ACEOF 17596 rm -f conftest.$ac_objext conftest$ac_exeext 17597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17598 (eval $ac_link) 2>conftest.er1 17599 ac_status=$? 17600 grep -v '^ *+' conftest.er1 >conftest.err 17601 rm -f conftest.er1 17602 cat conftest.err >&5 17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17604 (exit $ac_status); } && 17605 { ac_try='test -z "$ac_c_werror_flag" 17606 || test ! -s conftest.err' 17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17608 (eval $ac_try) 2>&5 17609 ac_status=$? 17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17611 (exit $ac_status); }; } && 17612 { ac_try='test -s conftest$ac_exeext' 17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17614 (eval $ac_try) 2>&5 17615 ac_status=$? 17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17617 (exit $ac_status); }; }; then 17618 ac_cv_search_socket="none required" 17619 else 17620 echo "$as_me: failed program was:" >&5 17621 sed 's/^/| /' conftest.$ac_ext >&5 17622 17623 fi 17624 rm -f conftest.err conftest.$ac_objext \ 17625 conftest$ac_exeext conftest.$ac_ext 17626 if test "$ac_cv_search_socket" = no; then 17627 for ac_lib in socket nsl ws2_32 wsock32; do 17628 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17629 cat >conftest.$ac_ext <<_ACEOF 17630 /* confdefs.h. */ 17631 _ACEOF 17632 cat confdefs.h >>conftest.$ac_ext 17633 cat >>conftest.$ac_ext <<_ACEOF 17634 /* end confdefs.h. */ 17635 17636 /* Override any gcc2 internal prototype to avoid an error. */ 17637 #ifdef __cplusplus 17638 extern "C" 17639 #endif 17640 /* We use char because int might match the return type of a gcc2 17641 builtin and then its argument prototype would still apply. */ 17642 char socket (); 17643 int 17644 main () 17645 { 17646 socket (); 17647 ; 17648 return 0; 17649 } 17650 _ACEOF 17651 rm -f conftest.$ac_objext conftest$ac_exeext 17652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17653 (eval $ac_link) 2>conftest.er1 17654 ac_status=$? 17655 grep -v '^ *+' conftest.er1 >conftest.err 17656 rm -f conftest.er1 17657 cat conftest.err >&5 17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17659 (exit $ac_status); } && 17660 { ac_try='test -z "$ac_c_werror_flag" 17661 || test ! -s conftest.err' 17662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17663 (eval $ac_try) 2>&5 17664 ac_status=$? 17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17666 (exit $ac_status); }; } && 17667 { ac_try='test -s conftest$ac_exeext' 17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17669 (eval $ac_try) 2>&5 17670 ac_status=$? 17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17672 (exit $ac_status); }; }; then 17673 ac_cv_search_socket="-l$ac_lib" 17674 break 17675 else 17676 echo "$as_me: failed program was:" >&5 17677 sed 's/^/| /' conftest.$ac_ext >&5 17678 17679 fi 17680 rm -f conftest.err conftest.$ac_objext \ 17681 conftest$ac_exeext conftest.$ac_ext 17682 done 17683 fi 17684 LIBS=$ac_func_search_save_LIBS 17685 fi 17686 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 17687 echo "${ECHO_T}$ac_cv_search_socket" >&6 17688 if test "$ac_cv_search_socket" != no; then 17689 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" 17690 17691 cat >>confdefs.h <<\_ACEOF 17692 #define HAVE_SOCKET 17693 _ACEOF 17694 17695 fi 17696 17697 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 17698 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 17699 if test "${ac_cv_search_gethostbyname+set}" = set; then 17700 echo $ECHO_N "(cached) $ECHO_C" >&6 17701 else 17702 ac_func_search_save_LIBS=$LIBS 17703 ac_cv_search_gethostbyname=no 17704 cat >conftest.$ac_ext <<_ACEOF 17705 /* confdefs.h. */ 17706 _ACEOF 17707 cat confdefs.h >>conftest.$ac_ext 17708 cat >>conftest.$ac_ext <<_ACEOF 17709 /* end confdefs.h. */ 17710 17711 /* Override any gcc2 internal prototype to avoid an error. */ 17712 #ifdef __cplusplus 17713 extern "C" 17714 #endif 17715 /* We use char because int might match the return type of a gcc2 17716 builtin and then its argument prototype would still apply. */ 17717 char gethostbyname (); 17718 int 17719 main () 17720 { 17721 gethostbyname (); 17722 ; 17723 return 0; 17724 } 17725 _ACEOF 17726 rm -f conftest.$ac_objext conftest$ac_exeext 17727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17728 (eval $ac_link) 2>conftest.er1 17729 ac_status=$? 17730 grep -v '^ *+' conftest.er1 >conftest.err 17731 rm -f conftest.er1 17732 cat conftest.err >&5 17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17734 (exit $ac_status); } && 17735 { ac_try='test -z "$ac_c_werror_flag" 17736 || test ! -s conftest.err' 17737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17738 (eval $ac_try) 2>&5 17739 ac_status=$? 17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17741 (exit $ac_status); }; } && 17742 { ac_try='test -s conftest$ac_exeext' 17743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17744 (eval $ac_try) 2>&5 17745 ac_status=$? 17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17747 (exit $ac_status); }; }; then 17748 ac_cv_search_gethostbyname="none required" 17749 else 17750 echo "$as_me: failed program was:" >&5 17751 sed 's/^/| /' conftest.$ac_ext >&5 17752 17753 fi 17754 rm -f conftest.err conftest.$ac_objext \ 17755 conftest$ac_exeext conftest.$ac_ext 17756 if test "$ac_cv_search_gethostbyname" = no; then 17757 for ac_lib in nsl ws2_32 wsock32; do 17758 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17759 cat >conftest.$ac_ext <<_ACEOF 17760 /* confdefs.h. */ 17761 _ACEOF 17762 cat confdefs.h >>conftest.$ac_ext 17763 cat >>conftest.$ac_ext <<_ACEOF 17764 /* end confdefs.h. */ 17765 17766 /* Override any gcc2 internal prototype to avoid an error. */ 17767 #ifdef __cplusplus 17768 extern "C" 17769 #endif 17770 /* We use char because int might match the return type of a gcc2 17771 builtin and then its argument prototype would still apply. */ 17772 char gethostbyname (); 17773 int 17774 main () 17775 { 17776 gethostbyname (); 17777 ; 17778 return 0; 17779 } 17780 _ACEOF 17781 rm -f conftest.$ac_objext conftest$ac_exeext 17782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17783 (eval $ac_link) 2>conftest.er1 17784 ac_status=$? 17785 grep -v '^ *+' conftest.er1 >conftest.err 17786 rm -f conftest.er1 17787 cat conftest.err >&5 17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17789 (exit $ac_status); } && 17790 { ac_try='test -z "$ac_c_werror_flag" 17791 || test ! -s conftest.err' 17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17793 (eval $ac_try) 2>&5 17794 ac_status=$? 17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17796 (exit $ac_status); }; } && 17797 { ac_try='test -s conftest$ac_exeext' 17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17799 (eval $ac_try) 2>&5 17800 ac_status=$? 17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17802 (exit $ac_status); }; }; then 17803 ac_cv_search_gethostbyname="-l$ac_lib" 17804 break 17805 else 17806 echo "$as_me: failed program was:" >&5 17807 sed 's/^/| /' conftest.$ac_ext >&5 17808 17809 fi 17810 rm -f conftest.err conftest.$ac_objext \ 17811 conftest$ac_exeext conftest.$ac_ext 17812 done 17813 fi 17814 LIBS=$ac_func_search_save_LIBS 17815 fi 17816 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 17817 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 17818 if test "$ac_cv_search_gethostbyname" != no; then 17819 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" 17820 17821 cat >>confdefs.h <<\_ACEOF 17822 #define HAVE_GETHOSTBYNAME 17823 _ACEOF 17824 17825 fi 17826 17827 echo "$as_me:$LINENO: checking for library containing inet_aton" >&5 17828 echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6 17829 if test "${ac_cv_search_inet_aton+set}" = set; then 17830 echo $ECHO_N "(cached) $ECHO_C" >&6 17831 else 17832 ac_func_search_save_LIBS=$LIBS 17833 ac_cv_search_inet_aton=no 17834 cat >conftest.$ac_ext <<_ACEOF 17835 /* confdefs.h. */ 17836 _ACEOF 17837 cat confdefs.h >>conftest.$ac_ext 17838 cat >>conftest.$ac_ext <<_ACEOF 17839 /* end confdefs.h. */ 17840 17841 /* Override any gcc2 internal prototype to avoid an error. */ 17842 #ifdef __cplusplus 17843 extern "C" 17844 #endif 17845 /* We use char because int might match the return type of a gcc2 17846 builtin and then its argument prototype would still apply. */ 17847 char inet_aton (); 17848 int 17849 main () 17850 { 17851 inet_aton (); 17852 ; 17853 return 0; 17854 } 17855 _ACEOF 17856 rm -f conftest.$ac_objext conftest$ac_exeext 17857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17858 (eval $ac_link) 2>conftest.er1 17859 ac_status=$? 17860 grep -v '^ *+' conftest.er1 >conftest.err 17861 rm -f conftest.er1 17862 cat conftest.err >&5 17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17864 (exit $ac_status); } && 17865 { ac_try='test -z "$ac_c_werror_flag" 17866 || test ! -s conftest.err' 17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17868 (eval $ac_try) 2>&5 17869 ac_status=$? 17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17871 (exit $ac_status); }; } && 17872 { ac_try='test -s conftest$ac_exeext' 17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17874 (eval $ac_try) 2>&5 17875 ac_status=$? 17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17877 (exit $ac_status); }; }; then 17878 ac_cv_search_inet_aton="none required" 17879 else 17880 echo "$as_me: failed program was:" >&5 17881 sed 's/^/| /' conftest.$ac_ext >&5 17882 17883 fi 17884 rm -f conftest.err conftest.$ac_objext \ 17885 conftest$ac_exeext conftest.$ac_ext 17886 if test "$ac_cv_search_inet_aton" = no; then 17887 for ac_lib in xnet ws2_32 wsock32; do 17888 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17889 cat >conftest.$ac_ext <<_ACEOF 17890 /* confdefs.h. */ 17891 _ACEOF 17892 cat confdefs.h >>conftest.$ac_ext 17893 cat >>conftest.$ac_ext <<_ACEOF 17894 /* end confdefs.h. */ 17895 17896 /* Override any gcc2 internal prototype to avoid an error. */ 17897 #ifdef __cplusplus 17898 extern "C" 17899 #endif 17900 /* We use char because int might match the return type of a gcc2 17901 builtin and then its argument prototype would still apply. */ 17902 char inet_aton (); 17903 int 17904 main () 17905 { 17906 inet_aton (); 17907 ; 17908 return 0; 17909 } 17910 _ACEOF 17911 rm -f conftest.$ac_objext conftest$ac_exeext 17912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17913 (eval $ac_link) 2>conftest.er1 17914 ac_status=$? 17915 grep -v '^ *+' conftest.er1 >conftest.err 17916 rm -f conftest.er1 17917 cat conftest.err >&5 17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17919 (exit $ac_status); } && 17920 { ac_try='test -z "$ac_c_werror_flag" 17921 || test ! -s conftest.err' 17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17923 (eval $ac_try) 2>&5 17924 ac_status=$? 17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17926 (exit $ac_status); }; } && 17927 { ac_try='test -s conftest$ac_exeext' 17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17929 (eval $ac_try) 2>&5 17930 ac_status=$? 17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17932 (exit $ac_status); }; }; then 17933 ac_cv_search_inet_aton="-l$ac_lib" 17934 break 17935 else 17936 echo "$as_me: failed program was:" >&5 17937 sed 's/^/| /' conftest.$ac_ext >&5 17938 17939 fi 17940 rm -f conftest.err conftest.$ac_objext \ 17941 conftest$ac_exeext conftest.$ac_ext 17942 done 17943 fi 17944 LIBS=$ac_func_search_save_LIBS 17945 fi 17946 echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5 17947 echo "${ECHO_T}$ac_cv_search_inet_aton" >&6 17948 if test "$ac_cv_search_inet_aton" != no; then 17949 test "$ac_cv_search_inet_aton" = "none required" || LIBS="$ac_cv_search_inet_aton $LIBS" 17950 17951 cat >>confdefs.h <<\_ACEOF 17952 #define HAVE_INET_ATON 17953 _ACEOF 17954 17955 else 17956 echo "$as_me:$LINENO: checking for library containing inet_addr" >&5 17957 echo $ECHO_N "checking for library containing inet_addr... $ECHO_C" >&6 17958 if test "${ac_cv_search_inet_addr+set}" = set; then 17959 echo $ECHO_N "(cached) $ECHO_C" >&6 17960 else 17961 ac_func_search_save_LIBS=$LIBS 17962 ac_cv_search_inet_addr=no 17963 cat >conftest.$ac_ext <<_ACEOF 17964 /* confdefs.h. */ 17965 _ACEOF 17966 cat confdefs.h >>conftest.$ac_ext 17967 cat >>conftest.$ac_ext <<_ACEOF 17968 /* end confdefs.h. */ 17969 17970 /* Override any gcc2 internal prototype to avoid an error. */ 17971 #ifdef __cplusplus 17972 extern "C" 17973 #endif 17974 /* We use char because int might match the return type of a gcc2 17975 builtin and then its argument prototype would still apply. */ 17976 char inet_addr (); 17977 int 17978 main () 17979 { 17980 inet_addr (); 17981 ; 17982 return 0; 17983 } 17984 _ACEOF 17985 rm -f conftest.$ac_objext conftest$ac_exeext 17986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17987 (eval $ac_link) 2>conftest.er1 17988 ac_status=$? 17989 grep -v '^ *+' conftest.er1 >conftest.err 17990 rm -f conftest.er1 17991 cat conftest.err >&5 17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17993 (exit $ac_status); } && 17994 { ac_try='test -z "$ac_c_werror_flag" 17995 || test ! -s conftest.err' 17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17997 (eval $ac_try) 2>&5 17998 ac_status=$? 17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18000 (exit $ac_status); }; } && 18001 { ac_try='test -s conftest$ac_exeext' 18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18003 (eval $ac_try) 2>&5 18004 ac_status=$? 18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18006 (exit $ac_status); }; }; then 18007 ac_cv_search_inet_addr="none required" 18008 else 18009 echo "$as_me: failed program was:" >&5 18010 sed 's/^/| /' conftest.$ac_ext >&5 18011 18012 fi 18013 rm -f conftest.err conftest.$ac_objext \ 18014 conftest$ac_exeext conftest.$ac_ext 18015 if test "$ac_cv_search_inet_addr" = no; then 18016 for ac_lib in nsl ws2_32 wsock32; do 18017 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18018 cat >conftest.$ac_ext <<_ACEOF 18019 /* confdefs.h. */ 18020 _ACEOF 18021 cat confdefs.h >>conftest.$ac_ext 18022 cat >>conftest.$ac_ext <<_ACEOF 18023 /* end confdefs.h. */ 18024 18025 /* Override any gcc2 internal prototype to avoid an error. */ 18026 #ifdef __cplusplus 18027 extern "C" 18028 #endif 18029 /* We use char because int might match the return type of a gcc2 18030 builtin and then its argument prototype would still apply. */ 18031 char inet_addr (); 18032 int 18033 main () 18034 { 18035 inet_addr (); 18036 ; 18037 return 0; 18038 } 18039 _ACEOF 18040 rm -f conftest.$ac_objext conftest$ac_exeext 18041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18042 (eval $ac_link) 2>conftest.er1 18043 ac_status=$? 18044 grep -v '^ *+' conftest.er1 >conftest.err 18045 rm -f conftest.er1 18046 cat conftest.err >&5 18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18048 (exit $ac_status); } && 18049 { ac_try='test -z "$ac_c_werror_flag" 18050 || test ! -s conftest.err' 18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18052 (eval $ac_try) 2>&5 18053 ac_status=$? 18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18055 (exit $ac_status); }; } && 18056 { ac_try='test -s conftest$ac_exeext' 18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18058 (eval $ac_try) 2>&5 18059 ac_status=$? 18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18061 (exit $ac_status); }; }; then 18062 ac_cv_search_inet_addr="-l$ac_lib" 18063 break 18064 else 18065 echo "$as_me: failed program was:" >&5 18066 sed 's/^/| /' conftest.$ac_ext >&5 18067 18068 fi 18069 rm -f conftest.err conftest.$ac_objext \ 18070 conftest$ac_exeext conftest.$ac_ext 18071 done 18072 fi 18073 LIBS=$ac_func_search_save_LIBS 18074 fi 18075 echo "$as_me:$LINENO: result: $ac_cv_search_inet_addr" >&5 18076 echo "${ECHO_T}$ac_cv_search_inet_addr" >&6 18077 if test "$ac_cv_search_inet_addr" != no; then 18078 test "$ac_cv_search_inet_addr" = "none required" || LIBS="$ac_cv_search_inet_addr $LIBS" 18079 18080 cat >>confdefs.h <<\_ACEOF 18081 #define HAVE_INET_ADDR 18082 _ACEOF 18083 18084 fi 18085 18086 fi 18087 18088 18089 18090 18091 18092 18093 for ac_header in windows.h windowsx.h winsock2.h 18094 do 18095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 18096 if eval "test \"\${$as_ac_Header+set}\" = set"; then 18097 echo "$as_me:$LINENO: checking for $ac_header" >&5 18098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 18099 if eval "test \"\${$as_ac_Header+set}\" = set"; then 18100 echo $ECHO_N "(cached) $ECHO_C" >&6 18101 fi 18102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18104 else 18105 # Is the header compilable? 18106 echo "$as_me:$LINENO: checking $ac_header usability" >&5 18107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 18108 cat >conftest.$ac_ext <<_ACEOF 18109 /* confdefs.h. */ 18110 _ACEOF 18111 cat confdefs.h >>conftest.$ac_ext 18112 cat >>conftest.$ac_ext <<_ACEOF 18113 /* end confdefs.h. */ 18114 $ac_includes_default 18115 #include <$ac_header> 18116 _ACEOF 18117 rm -f conftest.$ac_objext 18118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18119 (eval $ac_compile) 2>conftest.er1 18120 ac_status=$? 18121 grep -v '^ *+' conftest.er1 >conftest.err 18122 rm -f conftest.er1 18123 cat conftest.err >&5 18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18125 (exit $ac_status); } && 18126 { ac_try='test -z "$ac_c_werror_flag" 18127 || test ! -s conftest.err' 18128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18129 (eval $ac_try) 2>&5 18130 ac_status=$? 18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18132 (exit $ac_status); }; } && 18133 { ac_try='test -s conftest.$ac_objext' 18134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18135 (eval $ac_try) 2>&5 18136 ac_status=$? 18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18138 (exit $ac_status); }; }; then 18139 ac_header_compiler=yes 18140 else 18141 echo "$as_me: failed program was:" >&5 18142 sed 's/^/| /' conftest.$ac_ext >&5 18143 18144 ac_header_compiler=no 18145 fi 18146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18148 echo "${ECHO_T}$ac_header_compiler" >&6 18149 18150 # Is the header present? 18151 echo "$as_me:$LINENO: checking $ac_header presence" >&5 18152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 18153 cat >conftest.$ac_ext <<_ACEOF 18154 /* confdefs.h. */ 18155 _ACEOF 18156 cat confdefs.h >>conftest.$ac_ext 18157 cat >>conftest.$ac_ext <<_ACEOF 18158 /* end confdefs.h. */ 18159 #include <$ac_header> 18160 _ACEOF 18161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 18162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 18163 ac_status=$? 18164 grep -v '^ *+' conftest.er1 >conftest.err 18165 rm -f conftest.er1 18166 cat conftest.err >&5 18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18168 (exit $ac_status); } >/dev/null; then 18169 if test -s conftest.err; then 18170 ac_cpp_err=$ac_c_preproc_warn_flag 18171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 18172 else 18173 ac_cpp_err= 18174 fi 18175 else 18176 ac_cpp_err=yes 18177 fi 18178 if test -z "$ac_cpp_err"; then 18179 ac_header_preproc=yes 18180 else 18181 echo "$as_me: failed program was:" >&5 18182 sed 's/^/| /' conftest.$ac_ext >&5 18183 18184 ac_header_preproc=no 18185 fi 18186 rm -f conftest.err conftest.$ac_ext 18187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 18188 echo "${ECHO_T}$ac_header_preproc" >&6 18189 18190 # So? What about this header? 18191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 18192 yes:no: ) 18193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 18194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 18195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 18196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 18197 ac_header_preproc=yes 18198 ;; 18199 no:yes:* ) 18200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 18201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 18202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 18203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 18204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 18205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 18206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 18207 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 18208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 18211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 18212 ( 18213 cat <<\_ASBOX 18214 ## ------------------------------------ ## 18215 ## Report this to the libconfig lists. ## 18216 ## ------------------------------------ ## 18217 _ASBOX 18218 ) | 18219 sed "s/^/$as_me: WARNING: /" >&2 18220 ;; 18221 esac 18222 echo "$as_me:$LINENO: checking for $ac_header" >&5 18223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 18224 if eval "test \"\${$as_ac_Header+set}\" = set"; then 18225 echo $ECHO_N "(cached) $ECHO_C" >&6 18226 else 18227 eval "$as_ac_Header=\$ac_header_preproc" 18228 fi 18229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18231 18232 fi 18233 if test `eval echo '${'$as_ac_Header'}'` = yes; then 18234 cat >>confdefs.h <<_ACEOF 18235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 18236 _ACEOF 18237 18238 fi 18239 18240 done 18241 18242 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5 18243 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6 18244 if test "${ac_cv_lib_wsock32_main+set}" = set; then 18245 echo $ECHO_N "(cached) $ECHO_C" >&6 18246 else 18247 ac_check_lib_save_LIBS=$LIBS 18248 LIBS="-lwsock32 $LIBS" 18249 cat >conftest.$ac_ext <<_ACEOF 18250 /* confdefs.h. */ 18251 _ACEOF 18252 cat confdefs.h >>conftest.$ac_ext 18253 cat >>conftest.$ac_ext <<_ACEOF 18254 /* end confdefs.h. */ 18255 18256 18257 int 18258 main () 18259 { 18260 main (); 18261 ; 18262 return 0; 18263 } 18264 _ACEOF 18265 rm -f conftest.$ac_objext conftest$ac_exeext 18266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18267 (eval $ac_link) 2>conftest.er1 18268 ac_status=$? 18269 grep -v '^ *+' conftest.er1 >conftest.err 18270 rm -f conftest.er1 18271 cat conftest.err >&5 18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18273 (exit $ac_status); } && 18274 { ac_try='test -z "$ac_c_werror_flag" 18275 || test ! -s conftest.err' 18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18277 (eval $ac_try) 2>&5 18278 ac_status=$? 18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18280 (exit $ac_status); }; } && 18281 { ac_try='test -s conftest$ac_exeext' 18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18283 (eval $ac_try) 2>&5 18284 ac_status=$? 18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18286 (exit $ac_status); }; }; then 18287 ac_cv_lib_wsock32_main=yes 18288 else 18289 echo "$as_me: failed program was:" >&5 18290 sed 's/^/| /' conftest.$ac_ext >&5 18291 18292 ac_cv_lib_wsock32_main=no 18293 fi 18294 rm -f conftest.err conftest.$ac_objext \ 18295 conftest$ac_exeext conftest.$ac_ext 18296 LIBS=$ac_check_lib_save_LIBS 18297 fi 18298 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5 18299 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6 18300 if test $ac_cv_lib_wsock32_main = yes; then 18301 18302 18303 cat >>confdefs.h <<\_ACEOF 18304 #define HAVE_LIBWSOCK32 18305 _ACEOF 18306 18307 LIBS="${LIBS} -lwsock32" 18308 18309 fi 18310 18311 18312 18313 18314 18315 SHLIBOBJS="" 18316 for obj in $LIBOBJS; do 18317 SHLIBOBJS="$SHLIBOBJS `echo $obj | sed 's/\.o$/_shr.o/g'`" 18318 done 18319 18320 18321 18322 18323 OLD_LDFLAGS="$LDFLAGS" 18324 18325 for testldflags in "-Wl,-rpath -Wl,$libdir" "-Wl,-R -Wl,$libdir"; do 18326 LDFLAGS="$OLD_LDFLAGS $testldflags" 18327 cat >conftest.$ac_ext <<_ACEOF 18328 /* confdefs.h. */ 18329 _ACEOF 18330 cat confdefs.h >>conftest.$ac_ext 18331 cat >>conftest.$ac_ext <<_ACEOF 18332 /* end confdefs.h. */ 18333 #include <stdio.h> 18334 int 18335 main () 18336 { 18337 return(0); 18338 ; 18339 return 0; 18340 } 18341 _ACEOF 18342 rm -f conftest.$ac_objext conftest$ac_exeext 18343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18344 (eval $ac_link) 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_exeext' 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 LDRUNPATH="$LDRUNPATH $testldflags"; break 18365 else 18366 echo "$as_me: failed program was:" >&5 18367 sed 's/^/| /' conftest.$ac_ext >&5 18368 18369 fi 18370 rm -f conftest.err conftest.$ac_objext \ 18371 conftest$ac_exeext conftest.$ac_ext; 18372 done 18373 18374 LDFLAGS="$OLD_LDFLAGS" 18375 18376 18377 ac_config_files="$ac_config_files Makefile fopen_net.3 fseek_net.3 lseek_net.3 open_net.3 opennet.3 read_net.3 fread_net.3" 18378 cat >confcache <<\_ACEOF 18379 # This file is a shell script that caches the results of configure 18380 # tests run on this system so they can be shared between configure 18381 # scripts and configure runs, see configure's option --config-cache. 18382 # It is not useful on other systems. If it contains results you don't 18383 # want to keep, you may remove or edit it. 18384 # 18385 # config.status only pays attention to the cache file if you give it 18386 # the --recheck option to rerun configure. 18387 # 18388 # `ac_cv_env_foo' variables (set or unset) will be overridden when 18389 # loading this file, other *unset* `ac_cv_foo' will be assigned the 18390 # following values. 18391 18392 _ACEOF 18393 18394 # The following way of writing the cache mishandles newlines in values, 18395 # but we know of no workaround that is simple, portable, and efficient. 18396 # So, don't put newlines in cache variables' values. 18397 # Ultrix sh set writes to stderr and can't be redirected directly, 18398 # and sets the high bit in the cache file unless we assign to the vars. 18399 { 18400 (set) 2>&1 | 18401 case `(ac_space=' '; set | grep ac_space) 2>&1` in 18402 *ac_space=\ *) 18403 # `set' does not quote correctly, so add quotes (double-quote 18404 # substitution turns \\\\ into \\, and sed turns \\ into \). 18405 sed -n \ 18406 "s/'/'\\\\''/g; 18407 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18408 ;; 18409 *) 18410 # `set' quotes correctly as required by POSIX, so do not add quotes. 18411 sed -n \ 18412 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 18413 ;; 18414 esac; 18415 } | 18416 sed ' 18417 t clear 18418 : clear 18419 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18420 t end 18421 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18422 : end' >>confcache 18423 if diff $cache_file confcache >/dev/null 2>&1; then :; else 18424 if test -w $cache_file; then 18425 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 18426 cat confcache >$cache_file 18427 else 18428 echo "not updating unwritable cache $cache_file" 18429 fi 18430 fi 18431 rm -f confcache 18432 18433 test "x$prefix" = xNONE && prefix=$ac_default_prefix 18434 # Let make expand exec_prefix. 18435 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18436 18437 # VPATH may cause trouble with some makes, so we remove $(srcdir), 18438 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 18439 # trailing colons and then remove the whole line if VPATH becomes empty 18440 # (actually we leave an empty line to preserve line numbers). 18441 if test "x$srcdir" = x.; then 18442 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 18443 s/:*\$(srcdir):*/:/; 18444 s/:*\${srcdir}:*/:/; 18445 s/:*@srcdir@:*/:/; 18446 s/^\([^=]*=[ ]*\):*/\1/; 18447 s/:*$//; 18448 s/^[^=]*=[ ]*$//; 18449 }' 18450 fi 18451 18452 DEFS=-DHAVE_CONFIG_H 18453 18454 ac_libobjs= 18455 ac_ltlibobjs= 18456 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18457 # 1. Remove the extension, and $U if already installed. 18458 ac_i=`echo "$ac_i" | 18459 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 18460 # 2. Add them. 18461 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 18462 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 18463 done 18464 LIBOBJS=$ac_libobjs 18465 18466 LTLIBOBJS=$ac_ltlibobjs 18467 18468 18469 18470 : ${CONFIG_STATUS=./config.status} 18471 ac_clean_files_save=$ac_clean_files 18472 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18473 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 18474 echo "$as_me: creating $CONFIG_STATUS" >&6;} 18475 cat >$CONFIG_STATUS <<_ACEOF 18476 #! $SHELL 18477 # Generated by $as_me. 18478 # Run this file to recreate the current configuration. 18479 # Compiler output produced by configure, useful for debugging 18480 # configure, is in config.log if it exists. 18481 18482 debug=false 18483 ac_cs_recheck=false 18484 ac_cs_silent=false 18485 SHELL=\${CONFIG_SHELL-$SHELL} 18486 _ACEOF 18487 18488 cat >>$CONFIG_STATUS <<\_ACEOF 18489 ## --------------------- ## 18490 ## M4sh Initialization. ## 18491 ## --------------------- ## 18492 18493 # Be Bourne compatible 18494 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18495 emulate sh 18496 NULLCMD=: 18497 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18498 # is contrary to our usage. Disable this feature. 18499 alias -g '${1+"$@"}'='"$@"' 18500 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 18501 set -o posix 18502 fi 18503 DUALCASE=1; export DUALCASE # for MKS sh 18504 18505 # Support unset when possible. 18506 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 18507 as_unset=unset 18508 else 18509 as_unset=false 18510 fi 18511 18512 18513 # Work around bugs in pre-3.0 UWIN ksh. 18514 $as_unset ENV MAIL MAILPATH 18515 PS1='$ ' 18516 PS2='> ' 18517 PS4='+ ' 18518 18519 # NLS nuisances. 18520 for as_var in \ 18521 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 18522 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 18523 LC_TELEPHONE LC_TIME 18524 do 18525 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 18526 eval $as_var=C; export $as_var 18527 else 18528 $as_unset $as_var 18529 fi 18530 done 18531 18532 # Required to use basename. 18533 if expr a : '\(a\)' >/dev/null 2>&1; then 18534 as_expr=expr 18535 else 18536 as_expr=false 18537 fi 18538 18539 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 18540 as_basename=basename 18541 else 18542 as_basename=false 18543 fi 18544 18545 18546 # Name of the executable. 18547 as_me=`$as_basename "$0" || 18548 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18549 X"$0" : 'X\(//\)$' \| \ 18550 X"$0" : 'X\(/\)$' \| \ 18551 . : '\(.\)' 2>/dev/null || 18552 echo X/"$0" | 18553 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 18554 /^X\/\(\/\/\)$/{ s//\1/; q; } 18555 /^X\/\(\/\).*/{ s//\1/; q; } 18556 s/.*/./; q'` 18557 18558 18559 # PATH needs CR, and LINENO needs CR and PATH. 18560 # Avoid depending upon Character Ranges. 18561 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18562 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18563 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18564 as_cr_digits='0123456789' 18565 as_cr_alnum=$as_cr_Letters$as_cr_digits 18566 18567 # The user is always right. 18568 if test "${PATH_SEPARATOR+set}" != set; then 18569 echo "#! /bin/sh" >conf$$.sh 18570 echo "exit 0" >>conf$$.sh 18571 chmod +x conf$$.sh 18572 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 18573 PATH_SEPARATOR=';' 18574 else 18575 PATH_SEPARATOR=: 18576 fi 18577 rm -f conf$$.sh 18578 fi 18579 18580 18581 as_lineno_1=$LINENO 18582 as_lineno_2=$LINENO 18583 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 18584 test "x$as_lineno_1" != "x$as_lineno_2" && 18585 test "x$as_lineno_3" = "x$as_lineno_2" || { 18586 # Find who we are. Look in the path if we contain no path at all 18587 # relative or not. 18588 case $0 in 18589 *[\\/]* ) as_myself=$0 ;; 18590 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18591 for as_dir in $PATH 18592 do 18593 IFS=$as_save_IFS 18594 test -z "$as_dir" && as_dir=. 18595 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18596 done 18597 18598 ;; 18599 esac 18600 # We did not find ourselves, most probably we were run as `sh COMMAND' 18601 # in which case we are not to be found in the path. 18602 if test "x$as_myself" = x; then 18603 as_myself=$0 18604 fi 18605 if test ! -f "$as_myself"; then 18606 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 18607 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 18608 { (exit 1); exit 1; }; } 18609 fi 18610 case $CONFIG_SHELL in 18611 '') 18612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18613 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 18614 do 18615 IFS=$as_save_IFS 18616 test -z "$as_dir" && as_dir=. 18617 for as_base in sh bash ksh sh5; do 18618 case $as_dir in 18619 /*) 18620 if ("$as_dir/$as_base" -c ' 18621 as_lineno_1=$LINENO 18622 as_lineno_2=$LINENO 18623 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 18624 test "x$as_lineno_1" != "x$as_lineno_2" && 18625 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 18626 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 18627 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 18628 CONFIG_SHELL=$as_dir/$as_base 18629 export CONFIG_SHELL 18630 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 18631 fi;; 18632 esac 18633 done 18634 done 18635 ;; 18636 esac 18637 18638 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 18639 # uniformly replaced by the line number. The first 'sed' inserts a 18640 # line-number line before each line; the second 'sed' does the real 18641 # work. The second script uses 'N' to pair each line-number line 18642 # with the numbered line, and appends trailing '-' during 18643 # substitution so that $LINENO is not a special case at line end. 18644 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 18645 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 18646 sed '=' <$as_myself | 18647 sed ' 18648 N 18649 s,$,-, 18650 : loop 18651 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 18652 t loop 18653 s,-$,, 18654 s,^['$as_cr_digits']*\n,, 18655 ' >$as_me.lineno && 18656 chmod +x $as_me.lineno || 18657 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 18658 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 18659 { (exit 1); exit 1; }; } 18660 18661 # Don't try to exec as it changes $[0], causing all sort of problems 18662 # (the dirname of $[0] is not the place where we might find the 18663 # original and so on. Autoconf is especially sensible to this). 18664 . ./$as_me.lineno 18665 # Exit status is that of the last command. 18666 exit 18667 } 18668 18669 18670 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 18671 *c*,-n*) ECHO_N= ECHO_C=' 18672 ' ECHO_T=' ' ;; 18673 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 18674 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 18675 esac 18676 18677 if expr a : '\(a\)' >/dev/null 2>&1; then 18678 as_expr=expr 18679 else 18680 as_expr=false 18681 fi 18682 18683 rm -f conf$$ conf$$.exe conf$$.file 18684 echo >conf$$.file 18685 if ln -s conf$$.file conf$$ 2>/dev/null; then 18686 # We could just check for DJGPP; but this test a) works b) is more generic 18687 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 18688 if test -f conf$$.exe; then 18689 # Don't use ln at all; we don't have any links 18690 as_ln_s='cp -p' 18691 else 18692 as_ln_s='ln -s' 18693 fi 18694 elif ln conf$$.file conf$$ 2>/dev/null; then 18695 as_ln_s=ln 18696 else 18697 as_ln_s='cp -p' 18698 fi 18699 rm -f conf$$ conf$$.exe conf$$.file 18700 18701 if mkdir -p . 2>/dev/null; then 18702 as_mkdir_p=: 18703 else 18704 test -d ./-p && rmdir ./-p 18705 as_mkdir_p=false 18706 fi 18707 18708 as_executable_p="test -f" 18709 18710 # Sed expression to map a string onto a valid CPP name. 18711 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18712 18713 # Sed expression to map a string onto a valid variable name. 18714 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18715 18716 18717 # IFS 18718 # We need space, tab and new line, in precisely that order. 18719 as_nl=' 18720 ' 18721 IFS=" $as_nl" 18722 18723 # CDPATH. 18724 $as_unset CDPATH 18725 18726 exec 6>&1 18727 18728 # Open the log real soon, to keep \$[0] and so on meaningful, and to 18729 # report actual input values of CONFIG_FILES etc. instead of their 18730 # values after options handling. Logging --version etc. is OK. 18731 exec 5>>config.log 18732 { 18733 echo 18734 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18735 ## Running $as_me. ## 18736 _ASBOX 18737 } >&5 18738 cat >&5 <<_CSEOF 18739 18740 This file was extended by libconfig $as_me 0.9.9, which was 18741 generated by GNU Autoconf 2.59. Invocation command line was 18742 18743 CONFIG_FILES = $CONFIG_FILES 18744 CONFIG_HEADERS = $CONFIG_HEADERS 18745 CONFIG_LINKS = $CONFIG_LINKS 18746 CONFIG_COMMANDS = $CONFIG_COMMANDS 18747 $ $0 $@ 18748 18749 _CSEOF 18750 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 18751 echo >&5 18752 _ACEOF 18753 18754 # Files that config.status was made for. 18755 if test -n "$ac_config_files"; then 18756 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 18757 fi 18758 18759 if test -n "$ac_config_headers"; then 18760 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 18761 fi 18762 18763 if test -n "$ac_config_links"; then 18764 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 18765 fi 18766 18767 if test -n "$ac_config_commands"; then 18768 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 18769 fi 18770 18771 cat >>$CONFIG_STATUS <<\_ACEOF 18772 18773 ac_cs_usage="\ 18774 \`$as_me' instantiates files from templates according to the 18775 current configuration. 18776 18777 Usage: $0 [OPTIONS] [FILE]... 18778 18779 -h, --help print this help, then exit 18780 -V, --version print version number, then exit 18781 -q, --quiet do not print progress messages 18782 -d, --debug don't remove temporary files 18783 --recheck update $as_me by reconfiguring in the same conditions 18784 --file=FILE[:TEMPLATE] 18785 instantiate the configuration file FILE 18786 --header=FILE[:TEMPLATE] 18787 instantiate the configuration header FILE 18788 18789 Configuration files: 18790 $config_files 18791 18792 Configuration headers: 18793 $config_headers 18794 18795 Report bugs to <bug-autoconf@gnu.org>." 18796 _ACEOF 18797 18798 cat >>$CONFIG_STATUS <<_ACEOF 18799 ac_cs_version="\\ 18800 libconfig config.status 0.9.9 18801 configured by $0, generated by GNU Autoconf 2.59, 18802 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 18803 18804 Copyright (C) 2003 Free Software Foundation, Inc. 18805 This config.status script is free software; the Free Software Foundation 18806 gives unlimited permission to copy, distribute and modify it." 18807 srcdir=$srcdir 18808 INSTALL="$INSTALL" 18809 _ACEOF 18810 18811 cat >>$CONFIG_STATUS <<\_ACEOF 18812 # If no file are specified by the user, then we need to provide default 18813 # value. By we need to know if files were specified by the user. 18814 ac_need_defaults=: 18815 while test $# != 0 18816 do 18817 case $1 in 18818 --*=*) 18819 ac_option=`expr "x$1" : 'x\([^=]*\)='` 18820 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 18821 ac_shift=: 18822 ;; 18823 -*) 18824 ac_option=$1 18825 ac_optarg=$2 18826 ac_shift=shift 18827 ;; 18828 *) # This is not an option, so the user has probably given explicit 18829 # arguments. 18830 ac_option=$1 18831 ac_need_defaults=false;; 18832 esac 18833 18834 case $ac_option in 18835 # Handling of the options. 18836 _ACEOF 18837 cat >>$CONFIG_STATUS <<\_ACEOF 18838 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18839 ac_cs_recheck=: ;; 18840 --version | --vers* | -V ) 18841 echo "$ac_cs_version"; exit 0 ;; 18842 --he | --h) 18843 # Conflict between --help and --header 18844 { { echo "$as_me:$LINENO: error: ambiguous option: $1 18845 Try \`$0 --help' for more information." >&5 18846 echo "$as_me: error: ambiguous option: $1 18847 Try \`$0 --help' for more information." >&2;} 18848 { (exit 1); exit 1; }; };; 18849 --help | --hel | -h ) 18850 echo "$ac_cs_usage"; exit 0 ;; 18851 --debug | --d* | -d ) 18852 debug=: ;; 18853 --file | --fil | --fi | --f ) 18854 $ac_shift 18855 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 18856 ac_need_defaults=false;; 18857 --header | --heade | --head | --hea ) 18858 $ac_shift 18859 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 18860 ac_need_defaults=false;; 18861 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18862 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18863 ac_cs_silent=: ;; 18864 18865 # This is an error. 18866 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 18867 Try \`$0 --help' for more information." >&5 18868 echo "$as_me: error: unrecognized option: $1 18869 Try \`$0 --help' for more information." >&2;} 18870 { (exit 1); exit 1; }; } ;; 18871 18872 *) ac_config_targets="$ac_config_targets $1" ;; 18873 18874 esac 18875 shift 18876 done 18877 18878 ac_configure_extra_args= 18879 18880 if $ac_cs_silent; then 18881 exec 6>/dev/null 18882 ac_configure_extra_args="$ac_configure_extra_args --silent" 18883 fi 18884 18885 _ACEOF 18886 cat >>$CONFIG_STATUS <<_ACEOF 18887 if \$ac_cs_recheck; then 18888 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 18889 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18890 fi 18891 18892 _ACEOF 18893 18894 18895 18896 18897 18898 cat >>$CONFIG_STATUS <<\_ACEOF 18899 for ac_config_target in $ac_config_targets 18900 do 18901 case "$ac_config_target" in 18902 # Handling of arguments. 18903 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18904 "fopen_net.3" ) CONFIG_FILES="$CONFIG_FILES fopen_net.3" ;; 18905 "fseek_net.3" ) CONFIG_FILES="$CONFIG_FILES fseek_net.3" ;; 18906 "lseek_net.3" ) CONFIG_FILES="$CONFIG_FILES lseek_net.3" ;; 18907 "open_net.3" ) CONFIG_FILES="$CONFIG_FILES open_net.3" ;; 18908 "opennet.3" ) CONFIG_FILES="$CONFIG_FILES opennet.3" ;; 18909 "read_net.3" ) CONFIG_FILES="$CONFIG_FILES read_net.3" ;; 18910 "fread_net.3" ) CONFIG_FILES="$CONFIG_FILES fread_net.3" ;; 18911 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18912 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 18913 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 18914 { (exit 1); exit 1; }; };; 18915 esac 18916 done 18917 18918 # If the user did not use the arguments to specify the items to instantiate, 18919 # then the envvar interface is used. Set only those that are not. 18920 # We use the long form for the default assignment because of an extremely 18921 # bizarre bug on SunOS 4.1.3. 18922 if $ac_need_defaults; then 18923 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18924 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18925 fi 18926 18927 # Have a temporary directory for convenience. Make it in the build tree 18928 # simply because there is no reason to put it here, and in addition, 18929 # creating and moving files from /tmp can sometimes cause problems. 18930 # Create a temporary directory, and hook for its removal unless debugging. 18931 $debug || 18932 { 18933 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 18934 trap '{ (exit 1); exit 1; }' 1 2 13 15 18935 } 18936 18937 # Create a (secure) tmp directory for tmp files. 18938 18939 { 18940 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 18941 test -n "$tmp" && test -d "$tmp" 18942 } || 18943 { 18944 tmp=./confstat$$-$RANDOM 18945 (umask 077 && mkdir $tmp) 18946 } || 18947 { 18948 echo "$me: cannot create a temporary directory in ." >&2 18949 { (exit 1); exit 1; } 18950 } 18951 18952 _ACEOF 18953 18954 cat >>$CONFIG_STATUS <<_ACEOF 18955 18956 # 18957 # CONFIG_FILES section. 18958 # 18959 18960 # No need to generate the scripts if there are no CONFIG_FILES. 18961 # This happens for instance when ./config.status config.h 18962 if test -n "\$CONFIG_FILES"; then 18963 # Protect against being on the right side of a sed subst in config.status. 18964 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 18965 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 18966 s,@SHELL@,$SHELL,;t t 18967 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 18968 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 18969 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 18970 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 18971 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 18972 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 18973 s,@exec_prefix@,$exec_prefix,;t t 18974 s,@prefix@,$prefix,;t t 18975 s,@program_transform_name@,$program_transform_name,;t t 18976 s,@bindir@,$bindir,;t t 18977 s,@sbindir@,$sbindir,;t t 18978 s,@libexecdir@,$libexecdir,;t t 18979 s,@datadir@,$datadir,;t t 18980 s,@sysconfdir@,$sysconfdir,;t t 18981 s,@sharedstatedir@,$sharedstatedir,;t t 18982 s,@localstatedir@,$localstatedir,;t t 18983 s,@libdir@,$libdir,;t t 18984 s,@includedir@,$includedir,;t t 18985 s,@oldincludedir@,$oldincludedir,;t t 18986 s,@infodir@,$infodir,;t t 18987 s,@mandir@,$mandir,;t t 18988 s,@build_alias@,$build_alias,;t t 18989 s,@host_alias@,$host_alias,;t t 18990 s,@target_alias@,$target_alias,;t t 18991 s,@DEFS@,$DEFS,;t t 18992 s,@ECHO_C@,$ECHO_C,;t t 18993 s,@ECHO_N@,$ECHO_N,;t t 18994 s,@ECHO_T@,$ECHO_T,;t t 18995 s,@LIBS@,$LIBS,;t t 18996 s,@CC@,$CC,;t t 18997 s,@CFLAGS@,$CFLAGS,;t t 18998 s,@LDFLAGS@,$LDFLAGS,;t t 18999 s,@CPPFLAGS@,$CPPFLAGS,;t t 19000 s,@ac_ct_CC@,$ac_ct_CC,;t t 19001 s,@EXEEXT@,$EXEEXT,;t t 19002 s,@OBJEXT@,$OBJEXT,;t t 19003 s,@SET_MAKE@,$SET_MAKE,;t t 19004 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 19005 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 19006 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 19007 s,@LN_S@,$LN_S,;t t 19008 s,@RANLIB@,$RANLIB,;t t 19009 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 19010 s,@AR@,$AR,;t t 19011 s,@ac_ct_AR@,$ac_ct_AR,;t t 19012 s,@CPP@,$CPP,;t t 19013 s,@EGREP@,$EGREP,;t t 19014 s,@build@,$build,;t t 19015 s,@build_cpu@,$build_cpu,;t t 19016 s,@build_vendor@,$build_vendor,;t t 19017 s,@build_os@,$build_os,;t t 19018 s,@host@,$host,;t t 19019 s,@host_cpu@,$host_cpu,;t t 19020 s,@host_vendor@,$host_vendor,;t t 19021 s,@host_os@,$host_os,;t t 19022 s,@SHOBJEXT@,$SHOBJEXT,;t t 19023 s,@AREXT@,$AREXT,;t t 19024 s,@SHOBJFLAGS@,$SHOBJFLAGS,;t t 19025 s,@SHOBJLDFLAGS@,$SHOBJLDFLAGS,;t t 19026 s,@SHLIBOBJS@,$SHLIBOBJS,;t t 19027 s,@LIBOBJS@,$LIBOBJS,;t t 19028 s,@LDRUNPATH@,$LDRUNPATH,;t t 19029 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 19030 CEOF 19031 19032 _ACEOF 19033 19034 cat >>$CONFIG_STATUS <<\_ACEOF 19035 # Split the substitutions into bite-sized pieces for seds with 19036 # small command number limits, like on Digital OSF/1 and HP-UX. 19037 ac_max_sed_lines=48 19038 ac_sed_frag=1 # Number of current file. 19039 ac_beg=1 # First line for current file. 19040 ac_end=$ac_max_sed_lines # Line after last line for current file. 19041 ac_more_lines=: 19042 ac_sed_cmds= 19043 while $ac_more_lines; do 19044 if test $ac_beg -gt 1; then 19045 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 19046 else 19047 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 19048 fi 19049 if test ! -s $tmp/subs.frag; then 19050 ac_more_lines=false 19051 else 19052 # The purpose of the label and of the branching condition is to 19053 # speed up the sed processing (if there are no `@' at all, there 19054 # is no need to browse any of the substitutions). 19055 # These are the two extra sed commands mentioned above. 19056 (echo ':t 19057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 19058 if test -z "$ac_sed_cmds"; then 19059 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 19060 else 19061 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 19062 fi 19063 ac_sed_frag=`expr $ac_sed_frag + 1` 19064 ac_beg=$ac_end 19065 ac_end=`expr $ac_end + $ac_max_sed_lines` 19066 fi 19067 done 19068 if test -z "$ac_sed_cmds"; then 19069 ac_sed_cmds=cat 19070 fi 19071 fi # test -n "$CONFIG_FILES" 19072 19073 _ACEOF 19074 cat >>$CONFIG_STATUS <<\_ACEOF 19075 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 19076 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 19077 case $ac_file in 19078 - | *:- | *:-:* ) # input from stdin 19079 cat >$tmp/stdin 19080 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19082 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19083 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19084 * ) ac_file_in=$ac_file.in ;; 19085 esac 19086 19087 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 19088 ac_dir=`(dirname "$ac_file") 2>/dev/null || 19089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19090 X"$ac_file" : 'X\(//\)[^/]' \| \ 19091 X"$ac_file" : 'X\(//\)$' \| \ 19092 X"$ac_file" : 'X\(/\)' \| \ 19093 . : '\(.\)' 2>/dev/null || 19094 echo X"$ac_file" | 19095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19096 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19097 /^X\(\/\/\)$/{ s//\1/; q; } 19098 /^X\(\/\).*/{ s//\1/; q; } 19099 s/.*/./; q'` 19100 { if $as_mkdir_p; then 19101 mkdir -p "$ac_dir" 19102 else 19103 as_dir="$ac_dir" 19104 as_dirs= 19105 while test ! -d "$as_dir"; do 19106 as_dirs="$as_dir $as_dirs" 19107 as_dir=`(dirname "$as_dir") 2>/dev/null || 19108 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19109 X"$as_dir" : 'X\(//\)[^/]' \| \ 19110 X"$as_dir" : 'X\(//\)$' \| \ 19111 X"$as_dir" : 'X\(/\)' \| \ 19112 . : '\(.\)' 2>/dev/null || 19113 echo X"$as_dir" | 19114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19115 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19116 /^X\(\/\/\)$/{ s//\1/; q; } 19117 /^X\(\/\).*/{ s//\1/; q; } 19118 s/.*/./; q'` 19119 done 19120 test ! -n "$as_dirs" || mkdir $as_dirs 19121 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 19122 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 19123 { (exit 1); exit 1; }; }; } 19124 19125 ac_builddir=. 19126 19127 if test "$ac_dir" != .; then 19128 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 19129 # A "../" for each directory in $ac_dir_suffix. 19130 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 19131 else 19132 ac_dir_suffix= ac_top_builddir= 19133 fi 19134 19135 case $srcdir in 19136 .) # No --srcdir option. We are building in place. 19137 ac_srcdir=. 19138 if test -z "$ac_top_builddir"; then 19139 ac_top_srcdir=. 19140 else 19141 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 19142 fi ;; 19143 [\\/]* | ?:[\\/]* ) # Absolute path. 19144 ac_srcdir=$srcdir$ac_dir_suffix; 19145 ac_top_srcdir=$srcdir ;; 19146 *) # Relative path. 19147 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 19148 ac_top_srcdir=$ac_top_builddir$srcdir ;; 19149 esac 19150 19151 # Do not use `cd foo && pwd` to compute absolute paths, because 19152 # the directories may not exist. 19153 case `pwd` in 19154 .) ac_abs_builddir="$ac_dir";; 19155 *) 19156 case "$ac_dir" in 19157 .) ac_abs_builddir=`pwd`;; 19158 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 19159 *) ac_abs_builddir=`pwd`/"$ac_dir";; 19160 esac;; 19161 esac 19162 case $ac_abs_builddir in 19163 .) ac_abs_top_builddir=${ac_top_builddir}.;; 19164 *) 19165 case ${ac_top_builddir}. in 19166 .) ac_abs_top_builddir=$ac_abs_builddir;; 19167 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 19168 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 19169 esac;; 19170 esac 19171 case $ac_abs_builddir in 19172 .) ac_abs_srcdir=$ac_srcdir;; 19173 *) 19174 case $ac_srcdir in 19175 .) ac_abs_srcdir=$ac_abs_builddir;; 19176 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 19177 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 19178 esac;; 19179 esac 19180 case $ac_abs_builddir in 19181 .) ac_abs_top_srcdir=$ac_top_srcdir;; 19182 *) 19183 case $ac_top_srcdir in 19184 .) ac_abs_top_srcdir=$ac_abs_builddir;; 19185 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 19186 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 19187 esac;; 19188 esac 19189 19190 19191 case $INSTALL in 19192 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19193 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 19194 esac 19195 19196 if test x"$ac_file" != x-; then 19197 { echo "$as_me:$LINENO: creating $ac_file" >&5 19198 echo "$as_me: creating $ac_file" >&6;} 19199 rm -f "$ac_file" 19200 fi 19201 # Let's still pretend it is `configure' which instantiates (i.e., don't 19202 # use $as_me), people would be surprised to read: 19203 # /* config.h. Generated by config.status. */ 19204 if test x"$ac_file" = x-; then 19205 configure_input= 19206 else 19207 configure_input="$ac_file. " 19208 fi 19209 configure_input=$configure_input"Generated from `echo $ac_file_in | 19210 sed 's,.*/,,'` by configure." 19211 19212 # First look for the input files in the build tree, otherwise in the 19213 # src tree. 19214 ac_file_inputs=`IFS=: 19215 for f in $ac_file_in; do 19216 case $f in 19217 -) echo $tmp/stdin ;; 19218 [\\/$]*) 19219 # Absolute (can't be DOS-style, as IFS=:) 19220 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 19221 echo "$as_me: error: cannot find input file: $f" >&2;} 19222 { (exit 1); exit 1; }; } 19223 echo "$f";; 19224 *) # Relative 19225 if test -f "$f"; then 19226 # Build tree 19227 echo "$f" 19228 elif test -f "$srcdir/$f"; then 19229 # Source tree 19230 echo "$srcdir/$f" 19231 else 19232 # /dev/null tree 19233 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 19234 echo "$as_me: error: cannot find input file: $f" >&2;} 19235 { (exit 1); exit 1; }; } 19236 fi;; 19237 esac 19238 done` || { (exit 1); exit 1; } 19239 _ACEOF 19240 cat >>$CONFIG_STATUS <<_ACEOF 19241 sed "$ac_vpsub 19242 $extrasub 19243 _ACEOF 19244 cat >>$CONFIG_STATUS <<\_ACEOF 19245 :t 19246 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19247 s,@configure_input@,$configure_input,;t t 19248 s,@srcdir@,$ac_srcdir,;t t 19249 s,@abs_srcdir@,$ac_abs_srcdir,;t t 19250 s,@top_srcdir@,$ac_top_srcdir,;t t 19251 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 19252 s,@builddir@,$ac_builddir,;t t 19253 s,@abs_builddir@,$ac_abs_builddir,;t t 19254 s,@top_builddir@,$ac_top_builddir,;t t 19255 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 19256 s,@INSTALL@,$ac_INSTALL,;t t 19257 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 19258 rm -f $tmp/stdin 19259 if test x"$ac_file" != x-; then 19260 mv $tmp/out $ac_file 19261 else 19262 cat $tmp/out 19263 rm -f $tmp/out 19264 fi 19265 19266 done 19267 _ACEOF 19268 cat >>$CONFIG_STATUS <<\_ACEOF 19269 19270 # 19271 # CONFIG_HEADER section. 19272 # 19273 19274 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 19275 # NAME is the cpp macro being defined and VALUE is the value it is being given. 19276 # 19277 # ac_d sets the value in "#define NAME VALUE" lines. 19278 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 19279 ac_dB='[ ].*$,\1#\2' 19280 ac_dC=' ' 19281 ac_dD=',;t' 19282 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 19283 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 19284 ac_uB='$,\1#\2define\3' 19285 ac_uC=' ' 19286 ac_uD=',;t' 19287 19288 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 19289 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 19290 case $ac_file in 19291 - | *:- | *:-:* ) # input from stdin 19292 cat >$tmp/stdin 19293 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19294 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19295 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19296 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19297 * ) ac_file_in=$ac_file.in ;; 19298 esac 19299 19300 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 19301 echo "$as_me: creating $ac_file" >&6;} 19302 19303 # First look for the input files in the build tree, otherwise in the 19304 # src tree. 19305 ac_file_inputs=`IFS=: 19306 for f in $ac_file_in; do 19307 case $f in 19308 -) echo $tmp/stdin ;; 19309 [\\/$]*) 19310 # Absolute (can't be DOS-style, as IFS=:) 19311 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 19312 echo "$as_me: error: cannot find input file: $f" >&2;} 19313 { (exit 1); exit 1; }; } 19314 # Do quote $f, to prevent DOS paths from being IFS'd. 19315 echo "$f";; 19316 *) # Relative 19317 if test -f "$f"; then 19318 # Build tree 19319 echo "$f" 19320 elif test -f "$srcdir/$f"; then 19321 # Source tree 19322 echo "$srcdir/$f" 19323 else 19324 # /dev/null tree 19325 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 19326 echo "$as_me: error: cannot find input file: $f" >&2;} 19327 { (exit 1); exit 1; }; } 19328 fi;; 19329 esac 19330 done` || { (exit 1); exit 1; } 19331 # Remove the trailing spaces. 19332 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 19333 19334 _ACEOF 19335 19336 # Transform confdefs.h into two sed scripts, `conftest.defines' and 19337 # `conftest.undefs', that substitutes the proper values into 19338 # config.h.in to produce config.h. The first handles `#define' 19339 # templates, and the second `#undef' templates. 19340 # And first: Protect against being on the right side of a sed subst in 19341 # config.status. Protect against being in an unquoted here document 19342 # in config.status. 19343 rm -f conftest.defines conftest.undefs 19344 # Using a here document instead of a string reduces the quoting nightmare. 19345 # Putting comments in sed scripts is not portable. 19346 # 19347 # `end' is used to avoid that the second main sed command (meant for 19348 # 0-ary CPP macros) applies to n-ary macro definitions. 19349 # See the Autoconf documentation for `clear'. 19350 cat >confdef2sed.sed <<\_ACEOF 19351 s/[\\&,]/\\&/g 19352 s,[\\$`],\\&,g 19353 t clear 19354 : clear 19355 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 19356 t end 19357 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 19358 : end 19359 _ACEOF 19360 # If some macros were called several times there might be several times 19361 # the same #defines, which is useless. Nevertheless, we may not want to 19362 # sort them, since we want the *last* AC-DEFINE to be honored. 19363 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 19364 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 19365 rm -f confdef2sed.sed 19366 19367 # This sed command replaces #undef with comments. This is necessary, for 19368 # example, in the case of _POSIX_SOURCE, which is predefined and required 19369 # on some systems where configure will not decide to define it. 19370 cat >>conftest.undefs <<\_ACEOF 19371 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 19372 _ACEOF 19373 19374 # Break up conftest.defines because some shells have a limit on the size 19375 # of here documents, and old seds have small limits too (100 cmds). 19376 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 19377 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 19378 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 19379 echo ' :' >>$CONFIG_STATUS 19380 rm -f conftest.tail 19381 while grep . conftest.defines >/dev/null 19382 do 19383 # Write a limited-size here document to $tmp/defines.sed. 19384 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 19385 # Speed up: don't consider the non `#define' lines. 19386 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 19387 # Work around the forget-to-reset-the-flag bug. 19388 echo 't clr' >>$CONFIG_STATUS 19389 echo ': clr' >>$CONFIG_STATUS 19390 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 19391 echo 'CEOF 19392 sed -f $tmp/defines.sed $tmp/in >$tmp/out 19393 rm -f $tmp/in 19394 mv $tmp/out $tmp/in 19395 ' >>$CONFIG_STATUS 19396 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 19397 rm -f conftest.defines 19398 mv conftest.tail conftest.defines 19399 done 19400 rm -f conftest.defines 19401 echo ' fi # grep' >>$CONFIG_STATUS 19402 echo >>$CONFIG_STATUS 19403 19404 # Break up conftest.undefs because some shells have a limit on the size 19405 # of here documents, and old seds have small limits too (100 cmds). 19406 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 19407 rm -f conftest.tail 19408 while grep . conftest.undefs >/dev/null 19409 do 19410 # Write a limited-size here document to $tmp/undefs.sed. 19411 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 19412 # Speed up: don't consider the non `#undef' 19413 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 19414 # Work around the forget-to-reset-the-flag bug. 19415 echo 't clr' >>$CONFIG_STATUS 19416 echo ': clr' >>$CONFIG_STATUS 19417 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 19418 echo 'CEOF 19419 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 19420 rm -f $tmp/in 19421 mv $tmp/out $tmp/in 19422 ' >>$CONFIG_STATUS 19423 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 19424 rm -f conftest.undefs 19425 mv conftest.tail conftest.undefs 19426 done 19427 rm -f conftest.undefs 19428 19429 cat >>$CONFIG_STATUS <<\_ACEOF 19430 # Let's still pretend it is `configure' which instantiates (i.e., don't 19431 # use $as_me), people would be surprised to read: 19432 # /* config.h. Generated by config.status. */ 19433 if test x"$ac_file" = x-; then 19434 echo "/* Generated by configure. */" >$tmp/config.h 19435 else 19436 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 19437 fi 19438 cat $tmp/in >>$tmp/config.h 19439 rm -f $tmp/in 19440 if test x"$ac_file" != x-; then 19441 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 19442 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 19443 echo "$as_me: $ac_file is unchanged" >&6;} 19444 else 19445 ac_dir=`(dirname "$ac_file") 2>/dev/null || 19446 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19447 X"$ac_file" : 'X\(//\)[^/]' \| \ 19448 X"$ac_file" : 'X\(//\)$' \| \ 19449 X"$ac_file" : 'X\(/\)' \| \ 19450 . : '\(.\)' 2>/dev/null || 19451 echo X"$ac_file" | 19452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19453 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19454 /^X\(\/\/\)$/{ s//\1/; q; } 19455 /^X\(\/\).*/{ s//\1/; q; } 19456 s/.*/./; q'` 19457 { if $as_mkdir_p; then 19458 mkdir -p "$ac_dir" 19459 else 19460 as_dir="$ac_dir" 19461 as_dirs= 19462 while test ! -d "$as_dir"; do 19463 as_dirs="$as_dir $as_dirs" 19464 as_dir=`(dirname "$as_dir") 2>/dev/null || 19465 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19466 X"$as_dir" : 'X\(//\)[^/]' \| \ 19467 X"$as_dir" : 'X\(//\)$' \| \ 19468 X"$as_dir" : 'X\(/\)' \| \ 19469 . : '\(.\)' 2>/dev/null || 19470 echo X"$as_dir" | 19471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19472 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19473 /^X\(\/\/\)$/{ s//\1/; q; } 19474 /^X\(\/\).*/{ s//\1/; q; } 19475 s/.*/./; q'` 19476 done 19477 test ! -n "$as_dirs" || mkdir $as_dirs 19478 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 19479 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 19480 { (exit 1); exit 1; }; }; } 19481 19482 rm -f $ac_file 19483 mv $tmp/config.h $ac_file 19484 fi 19485 else 19486 cat $tmp/config.h 19487 rm -f $tmp/config.h 19488 fi 19489 done 19490 _ACEOF 19491 19492 cat >>$CONFIG_STATUS <<\_ACEOF 19493 19494 { (exit 0); exit 0; } 19495 _ACEOF 19496 chmod +x $CONFIG_STATUS 19497 ac_clean_files=$ac_clean_files_save 19498 19499 19500 # configure is writing to config.log, and then calls config.status. 19501 # config.status does its own redirection, appending to config.log. 19502 # Unfortunately, on DOS this fails, as config.log is still kept open 19503 # by configure, so config.status won't be able to write to it; its 19504 # output is simply discarded. So we exec the FD to /dev/null, 19505 # effectively closing config.log, so it can be properly (re)opened and 19506 # appended to by config.status. When coming back to configure, we 19507 # need to make the FD available again. 19508 if test "$no_create" != yes; then 19509 ac_cs_success=: 19510 ac_config_status_args= 19511 test "$silent" = yes && 19512 ac_config_status_args="$ac_config_status_args --quiet" 19513 exec 5>/dev/null 19514 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19515 exec 5>>config.log 19516 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19517 # would make configure fail if this is the last instruction. 19518 $ac_cs_success || { (exit 1); exit 1; } 19519 fi |