configure revision 1.61
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for libnbcompat noversion. 4# 5# Report bugs to <lib-bug-people@NetBSD.org>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24DUALCASE=1; export DUALCASE # for MKS sh 25 26# Support unset when possible. 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225fi 226 227as_executable_p="test -f" 228 229# Sed expression to map a string onto a valid CPP name. 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232# Sed expression to map a string onto a valid variable name. 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236# IFS 237# We need space, tab and new line, in precisely that order. 238as_nl=' 239' 240IFS=" $as_nl" 241 242# CDPATH. 243$as_unset CDPATH 244 245 246# Name of the host. 247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 248# so uname gets run too. 249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 250 251exec 6>&1 252 253# 254# Initializations. 255# 256ac_default_prefix=/usr/local 257ac_config_libobj_dir=. 258cross_compiling=no 259subdirs= 260MFLAGS= 261MAKEFLAGS= 262SHELL=${CONFIG_SHELL-/bin/sh} 263 264# Maximum number of lines to put in a shell here document. 265# This variable seems obsolete. It should probably be removed, and 266# only ac_max_sed_lines should be used. 267: ${ac_max_here_lines=38} 268 269# Identity of this package. 270PACKAGE_NAME='libnbcompat' 271PACKAGE_TARNAME='libnbcompat' 272PACKAGE_VERSION='noversion' 273PACKAGE_STRING='libnbcompat noversion' 274PACKAGE_BUGREPORT='lib-bug-people@NetBSD.org' 275 276# Factoring default headers for most tests. 277ac_includes_default="\ 278#include <stdio.h> 279#if HAVE_SYS_TYPES_H 280# include <sys/types.h> 281#endif 282#if HAVE_SYS_STAT_H 283# include <sys/stat.h> 284#endif 285#if STDC_HEADERS 286# include <stdlib.h> 287# include <stddef.h> 288#else 289# if HAVE_STDLIB_H 290# include <stdlib.h> 291# endif 292#endif 293#if HAVE_STRING_H 294# if !STDC_HEADERS && HAVE_MEMORY_H 295# include <memory.h> 296# endif 297# include <string.h> 298#endif 299#if HAVE_STRINGS_H 300# include <strings.h> 301#endif 302#if HAVE_INTTYPES_H 303# include <inttypes.h> 304#else 305# if HAVE_STDINT_H 306# include <stdint.h> 307# endif 308#endif 309#if HAVE_UNISTD_H 310# include <unistd.h> 311#endif" 312 313ac_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 CPP EGREP BSHELL ALLOCA LIBOBJS LTLIBOBJS' 314ac_subst_files='' 315 316# Initialize some variables set by options. 317ac_init_help= 318ac_init_version=false 319# The variables have the same names as the options, with 320# dashes changed to underlines. 321cache_file=/dev/null 322exec_prefix=NONE 323no_create= 324no_recursion= 325prefix=NONE 326program_prefix=NONE 327program_suffix=NONE 328program_transform_name=s,x,x, 329silent= 330site= 331srcdir= 332verbose= 333x_includes=NONE 334x_libraries=NONE 335 336# Installation directory options. 337# These are left unexpanded so users can "make install exec_prefix=/foo" 338# and all the variables that are supposed to be based on exec_prefix 339# by default will actually change. 340# Use braces instead of parens because sh, perl, etc. also accept them. 341bindir='${exec_prefix}/bin' 342sbindir='${exec_prefix}/sbin' 343libexecdir='${exec_prefix}/libexec' 344datadir='${prefix}/share' 345sysconfdir='${prefix}/etc' 346sharedstatedir='${prefix}/com' 347localstatedir='${prefix}/var' 348libdir='${exec_prefix}/lib' 349includedir='${prefix}/include' 350oldincludedir='/usr/include' 351infodir='${prefix}/info' 352mandir='${prefix}/man' 353 354ac_prev= 355for ac_option 356do 357 # If the previous option needs an argument, assign it. 358 if test -n "$ac_prev"; then 359 eval "$ac_prev=\$ac_option" 360 ac_prev= 361 continue 362 fi 363 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 365 366 # Accept the important Cygnus configure options, so we can diagnose typos. 367 368 case $ac_option in 369 370 -bindir | --bindir | --bindi | --bind | --bin | --bi) 371 ac_prev=bindir ;; 372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 373 bindir=$ac_optarg ;; 374 375 -build | --build | --buil | --bui | --bu) 376 ac_prev=build_alias ;; 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 378 build_alias=$ac_optarg ;; 379 380 -cache-file | --cache-file | --cache-fil | --cache-fi \ 381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 382 ac_prev=cache_file ;; 383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 385 cache_file=$ac_optarg ;; 386 387 --config-cache | -C) 388 cache_file=config.cache ;; 389 390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 391 ac_prev=datadir ;; 392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 393 | --da=*) 394 datadir=$ac_optarg ;; 395 396 -disable-* | --disable-*) 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 398 # Reject names that are not valid shell variable names. 399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 401 { (exit 1); exit 1; }; } 402 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 403 eval "enable_$ac_feature=no" ;; 404 405 -enable-* | --enable-*) 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 407 # Reject names that are not valid shell variable names. 408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 410 { (exit 1); exit 1; }; } 411 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 412 case $ac_option in 413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 414 *) ac_optarg=yes ;; 415 esac 416 eval "enable_$ac_feature='$ac_optarg'" ;; 417 418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 420 | --exec | --exe | --ex) 421 ac_prev=exec_prefix ;; 422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 424 | --exec=* | --exe=* | --ex=*) 425 exec_prefix=$ac_optarg ;; 426 427 -gas | --gas | --ga | --g) 428 # Obsolete; use --with-gas. 429 with_gas=yes ;; 430 431 -help | --help | --hel | --he | -h) 432 ac_init_help=long ;; 433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 434 ac_init_help=recursive ;; 435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 436 ac_init_help=short ;; 437 438 -host | --host | --hos | --ho) 439 ac_prev=host_alias ;; 440 -host=* | --host=* | --hos=* | --ho=*) 441 host_alias=$ac_optarg ;; 442 443 -includedir | --includedir | --includedi | --included | --include \ 444 | --includ | --inclu | --incl | --inc) 445 ac_prev=includedir ;; 446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 447 | --includ=* | --inclu=* | --incl=* | --inc=*) 448 includedir=$ac_optarg ;; 449 450 -infodir | --infodir | --infodi | --infod | --info | --inf) 451 ac_prev=infodir ;; 452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 453 infodir=$ac_optarg ;; 454 455 -libdir | --libdir | --libdi | --libd) 456 ac_prev=libdir ;; 457 -libdir=* | --libdir=* | --libdi=* | --libd=*) 458 libdir=$ac_optarg ;; 459 460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 461 | --libexe | --libex | --libe) 462 ac_prev=libexecdir ;; 463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 464 | --libexe=* | --libex=* | --libe=*) 465 libexecdir=$ac_optarg ;; 466 467 -localstatedir | --localstatedir | --localstatedi | --localstated \ 468 | --localstate | --localstat | --localsta | --localst \ 469 | --locals | --local | --loca | --loc | --lo) 470 ac_prev=localstatedir ;; 471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 474 localstatedir=$ac_optarg ;; 475 476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 477 ac_prev=mandir ;; 478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 479 mandir=$ac_optarg ;; 480 481 -nfp | --nfp | --nf) 482 # Obsolete; use --without-fp. 483 with_fp=no ;; 484 485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 486 | --no-cr | --no-c | -n) 487 no_create=yes ;; 488 489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 491 no_recursion=yes ;; 492 493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 495 | --oldin | --oldi | --old | --ol | --o) 496 ac_prev=oldincludedir ;; 497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 500 oldincludedir=$ac_optarg ;; 501 502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 503 ac_prev=prefix ;; 504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 505 prefix=$ac_optarg ;; 506 507 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 508 | --program-pre | --program-pr | --program-p) 509 ac_prev=program_prefix ;; 510 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 512 program_prefix=$ac_optarg ;; 513 514 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 515 | --program-suf | --program-su | --program-s) 516 ac_prev=program_suffix ;; 517 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 519 program_suffix=$ac_optarg ;; 520 521 -program-transform-name | --program-transform-name \ 522 | --program-transform-nam | --program-transform-na \ 523 | --program-transform-n | --program-transform- \ 524 | --program-transform | --program-transfor \ 525 | --program-transfo | --program-transf \ 526 | --program-trans | --program-tran \ 527 | --progr-tra | --program-tr | --program-t) 528 ac_prev=program_transform_name ;; 529 -program-transform-name=* | --program-transform-name=* \ 530 | --program-transform-nam=* | --program-transform-na=* \ 531 | --program-transform-n=* | --program-transform-=* \ 532 | --program-transform=* | --program-transfor=* \ 533 | --program-transfo=* | --program-transf=* \ 534 | --program-trans=* | --program-tran=* \ 535 | --progr-tra=* | --program-tr=* | --program-t=*) 536 program_transform_name=$ac_optarg ;; 537 538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 539 | -silent | --silent | --silen | --sile | --sil) 540 silent=yes ;; 541 542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 543 ac_prev=sbindir ;; 544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 545 | --sbi=* | --sb=*) 546 sbindir=$ac_optarg ;; 547 548 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 550 | --sharedst | --shareds | --shared | --share | --shar \ 551 | --sha | --sh) 552 ac_prev=sharedstatedir ;; 553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 556 | --sha=* | --sh=*) 557 sharedstatedir=$ac_optarg ;; 558 559 -site | --site | --sit) 560 ac_prev=site ;; 561 -site=* | --site=* | --sit=*) 562 site=$ac_optarg ;; 563 564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 565 ac_prev=srcdir ;; 566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 567 srcdir=$ac_optarg ;; 568 569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 570 | --syscon | --sysco | --sysc | --sys | --sy) 571 ac_prev=sysconfdir ;; 572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 574 sysconfdir=$ac_optarg ;; 575 576 -target | --target | --targe | --targ | --tar | --ta | --t) 577 ac_prev=target_alias ;; 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 579 target_alias=$ac_optarg ;; 580 581 -v | -verbose | --verbose | --verbos | --verbo | --verb) 582 verbose=yes ;; 583 584 -version | --version | --versio | --versi | --vers | -V) 585 ac_init_version=: ;; 586 587 -with-* | --with-*) 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 589 # Reject names that are not valid shell variable names. 590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 591 { echo "$as_me: error: invalid package name: $ac_package" >&2 592 { (exit 1); exit 1; }; } 593 ac_package=`echo $ac_package| sed 's/-/_/g'` 594 case $ac_option in 595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 596 *) ac_optarg=yes ;; 597 esac 598 eval "with_$ac_package='$ac_optarg'" ;; 599 600 -without-* | --without-*) 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 602 # Reject names that are not valid shell variable names. 603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 604 { echo "$as_me: error: invalid package name: $ac_package" >&2 605 { (exit 1); exit 1; }; } 606 ac_package=`echo $ac_package | sed 's/-/_/g'` 607 eval "with_$ac_package=no" ;; 608 609 --x) 610 # Obsolete; use --with-x. 611 with_x=yes ;; 612 613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 614 | --x-incl | --x-inc | --x-in | --x-i) 615 ac_prev=x_includes ;; 616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 618 x_includes=$ac_optarg ;; 619 620 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 622 ac_prev=x_libraries ;; 623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 625 x_libraries=$ac_optarg ;; 626 627 -*) { echo "$as_me: error: unrecognized option: $ac_option 628Try \`$0 --help' for more information." >&2 629 { (exit 1); exit 1; }; } 630 ;; 631 632 *=*) 633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 634 # Reject names that are not valid shell variable names. 635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 637 { (exit 1); exit 1; }; } 638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 639 eval "$ac_envvar='$ac_optarg'" 640 export $ac_envvar ;; 641 642 *) 643 # FIXME: should be removed in autoconf 3.0. 644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 648 ;; 649 650 esac 651done 652 653if test -n "$ac_prev"; then 654 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 655 { echo "$as_me: error: missing argument to $ac_option" >&2 656 { (exit 1); exit 1; }; } 657fi 658 659# Be sure to have absolute paths. 660for ac_var in exec_prefix prefix 661do 662 eval ac_val=$`echo $ac_var` 663 case $ac_val in 664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 666 { (exit 1); exit 1; }; };; 667 esac 668done 669 670# Be sure to have absolute paths. 671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 672 localstatedir libdir includedir oldincludedir infodir mandir 673do 674 eval ac_val=$`echo $ac_var` 675 case $ac_val in 676 [\\/$]* | ?:[\\/]* ) ;; 677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 678 { (exit 1); exit 1; }; };; 679 esac 680done 681 682# There might be people who depend on the old broken behavior: `$host' 683# used to hold the argument of --host etc. 684# FIXME: To remove some day. 685build=$build_alias 686host=$host_alias 687target=$target_alias 688 689# FIXME: To remove some day. 690if test "x$host_alias" != x; then 691 if test "x$build_alias" = x; then 692 cross_compiling=maybe 693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 694 If a cross compiler is detected then cross compile mode will be used." >&2 695 elif test "x$build_alias" != "x$host_alias"; then 696 cross_compiling=yes 697 fi 698fi 699 700ac_tool_prefix= 701test -n "$host_alias" && ac_tool_prefix=$host_alias- 702 703test "$silent" = yes && exec 6>/dev/null 704 705 706# Find the source files, if location was not specified. 707if test -z "$srcdir"; then 708 ac_srcdir_defaulted=yes 709 # Try the directory containing this script, then its parent. 710 ac_confdir=`(dirname "$0") 2>/dev/null || 711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 712 X"$0" : 'X\(//\)[^/]' \| \ 713 X"$0" : 'X\(//\)$' \| \ 714 X"$0" : 'X\(/\)' \| \ 715 . : '\(.\)' 2>/dev/null || 716echo X"$0" | 717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 718 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 719 /^X\(\/\/\)$/{ s//\1/; q; } 720 /^X\(\/\).*/{ s//\1/; q; } 721 s/.*/./; q'` 722 srcdir=$ac_confdir 723 if test ! -r $srcdir/$ac_unique_file; then 724 srcdir=.. 725 fi 726else 727 ac_srcdir_defaulted=no 728fi 729if test ! -r $srcdir/$ac_unique_file; then 730 if test "$ac_srcdir_defaulted" = yes; then 731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 732 { (exit 1); exit 1; }; } 733 else 734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 735 { (exit 1); exit 1; }; } 736 fi 737fi 738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 740 { (exit 1); exit 1; }; } 741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 742ac_env_build_alias_set=${build_alias+set} 743ac_env_build_alias_value=$build_alias 744ac_cv_env_build_alias_set=${build_alias+set} 745ac_cv_env_build_alias_value=$build_alias 746ac_env_host_alias_set=${host_alias+set} 747ac_env_host_alias_value=$host_alias 748ac_cv_env_host_alias_set=${host_alias+set} 749ac_cv_env_host_alias_value=$host_alias 750ac_env_target_alias_set=${target_alias+set} 751ac_env_target_alias_value=$target_alias 752ac_cv_env_target_alias_set=${target_alias+set} 753ac_cv_env_target_alias_value=$target_alias 754ac_env_CC_set=${CC+set} 755ac_env_CC_value=$CC 756ac_cv_env_CC_set=${CC+set} 757ac_cv_env_CC_value=$CC 758ac_env_CFLAGS_set=${CFLAGS+set} 759ac_env_CFLAGS_value=$CFLAGS 760ac_cv_env_CFLAGS_set=${CFLAGS+set} 761ac_cv_env_CFLAGS_value=$CFLAGS 762ac_env_LDFLAGS_set=${LDFLAGS+set} 763ac_env_LDFLAGS_value=$LDFLAGS 764ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 765ac_cv_env_LDFLAGS_value=$LDFLAGS 766ac_env_CPPFLAGS_set=${CPPFLAGS+set} 767ac_env_CPPFLAGS_value=$CPPFLAGS 768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 769ac_cv_env_CPPFLAGS_value=$CPPFLAGS 770ac_env_CPP_set=${CPP+set} 771ac_env_CPP_value=$CPP 772ac_cv_env_CPP_set=${CPP+set} 773ac_cv_env_CPP_value=$CPP 774 775# 776# Report the --help message. 777# 778if test "$ac_init_help" = "long"; then 779 # Omit some internal or obsolete options to make the list less imposing. 780 # This message is too long to be a string in the A/UX 3.1 sh. 781 cat <<_ACEOF 782\`configure' configures libnbcompat noversion to adapt to many kinds of systems. 783 784Usage: $0 [OPTION]... [VAR=VALUE]... 785 786To assign environment variables (e.g., CC, CFLAGS...), specify them as 787VAR=VALUE. See below for descriptions of some of the useful variables. 788 789Defaults for the options are specified in brackets. 790 791Configuration: 792 -h, --help display this help and exit 793 --help=short display options specific to this package 794 --help=recursive display the short help of all the included packages 795 -V, --version display version information and exit 796 -q, --quiet, --silent do not print \`checking...' messages 797 --cache-file=FILE cache test results in FILE [disabled] 798 -C, --config-cache alias for \`--cache-file=config.cache' 799 -n, --no-create do not create output files 800 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 801 802_ACEOF 803 804 cat <<_ACEOF 805Installation directories: 806 --prefix=PREFIX install architecture-independent files in PREFIX 807 [$ac_default_prefix] 808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 809 [PREFIX] 810 811By default, \`make install' will install all the files in 812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 813an installation prefix other than \`$ac_default_prefix' using \`--prefix', 814for instance \`--prefix=\$HOME'. 815 816For better control, use the options below. 817 818Fine tuning of the installation directories: 819 --bindir=DIR user executables [EPREFIX/bin] 820 --sbindir=DIR system admin executables [EPREFIX/sbin] 821 --libexecdir=DIR program executables [EPREFIX/libexec] 822 --datadir=DIR read-only architecture-independent data [PREFIX/share] 823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 825 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 826 --libdir=DIR object code libraries [EPREFIX/lib] 827 --includedir=DIR C header files [PREFIX/include] 828 --oldincludedir=DIR C header files for non-gcc [/usr/include] 829 --infodir=DIR info documentation [PREFIX/info] 830 --mandir=DIR man documentation [PREFIX/man] 831_ACEOF 832 833 cat <<\_ACEOF 834_ACEOF 835fi 836 837if test -n "$ac_init_help"; then 838 case $ac_init_help in 839 short | recursive ) echo "Configuration of libnbcompat noversion:";; 840 esac 841 cat <<\_ACEOF 842 843Some influential environment variables: 844 CC C compiler command 845 CFLAGS C compiler flags 846 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 847 nonstandard directory <lib dir> 848 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 849 headers in a nonstandard directory <include dir> 850 CPP C preprocessor 851 852Use these variables to override the choices made by `configure' or to help 853it to find libraries and programs with nonstandard names/locations. 854 855Report bugs to <lib-bug-people@NetBSD.org>. 856_ACEOF 857fi 858 859if test "$ac_init_help" = "recursive"; then 860 # If there are subdirs, report their specific --help. 861 ac_popdir=`pwd` 862 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 863 test -d $ac_dir || continue 864 ac_builddir=. 865 866if test "$ac_dir" != .; then 867 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 868 # A "../" for each directory in $ac_dir_suffix. 869 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 870else 871 ac_dir_suffix= ac_top_builddir= 872fi 873 874case $srcdir in 875 .) # No --srcdir option. We are building in place. 876 ac_srcdir=. 877 if test -z "$ac_top_builddir"; then 878 ac_top_srcdir=. 879 else 880 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 881 fi ;; 882 [\\/]* | ?:[\\/]* ) # Absolute path. 883 ac_srcdir=$srcdir$ac_dir_suffix; 884 ac_top_srcdir=$srcdir ;; 885 *) # Relative path. 886 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 887 ac_top_srcdir=$ac_top_builddir$srcdir ;; 888esac 889 890# Do not use `cd foo && pwd` to compute absolute paths, because 891# the directories may not exist. 892case `pwd` in 893.) ac_abs_builddir="$ac_dir";; 894*) 895 case "$ac_dir" in 896 .) ac_abs_builddir=`pwd`;; 897 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 898 *) ac_abs_builddir=`pwd`/"$ac_dir";; 899 esac;; 900esac 901case $ac_abs_builddir in 902.) ac_abs_top_builddir=${ac_top_builddir}.;; 903*) 904 case ${ac_top_builddir}. in 905 .) ac_abs_top_builddir=$ac_abs_builddir;; 906 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 907 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 908 esac;; 909esac 910case $ac_abs_builddir in 911.) ac_abs_srcdir=$ac_srcdir;; 912*) 913 case $ac_srcdir in 914 .) ac_abs_srcdir=$ac_abs_builddir;; 915 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 916 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 917 esac;; 918esac 919case $ac_abs_builddir in 920.) ac_abs_top_srcdir=$ac_top_srcdir;; 921*) 922 case $ac_top_srcdir in 923 .) ac_abs_top_srcdir=$ac_abs_builddir;; 924 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 925 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 926 esac;; 927esac 928 929 cd $ac_dir 930 # Check for guested configure; otherwise get Cygnus style configure. 931 if test -f $ac_srcdir/configure.gnu; then 932 echo 933 $SHELL $ac_srcdir/configure.gnu --help=recursive 934 elif test -f $ac_srcdir/configure; then 935 echo 936 $SHELL $ac_srcdir/configure --help=recursive 937 elif test -f $ac_srcdir/configure.ac || 938 test -f $ac_srcdir/configure.in; then 939 echo 940 $ac_configure --help 941 else 942 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 943 fi 944 cd $ac_popdir 945 done 946fi 947 948test -n "$ac_init_help" && exit 0 949if $ac_init_version; then 950 cat <<\_ACEOF 951libnbcompat configure noversion 952generated by GNU Autoconf 2.59 953 954Copyright (C) 2003 Free Software Foundation, Inc. 955This configure script is free software; the Free Software Foundation 956gives unlimited permission to copy, distribute and modify it. 957_ACEOF 958 exit 0 959fi 960exec 5>config.log 961cat >&5 <<_ACEOF 962This file contains any messages produced by compilers while 963running configure, to aid debugging if configure makes a mistake. 964 965It was created by libnbcompat $as_me noversion, which was 966generated by GNU Autoconf 2.59. Invocation command line was 967 968 $ $0 $@ 969 970_ACEOF 971{ 972cat <<_ASUNAME 973## --------- ## 974## Platform. ## 975## --------- ## 976 977hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 978uname -m = `(uname -m) 2>/dev/null || echo unknown` 979uname -r = `(uname -r) 2>/dev/null || echo unknown` 980uname -s = `(uname -s) 2>/dev/null || echo unknown` 981uname -v = `(uname -v) 2>/dev/null || echo unknown` 982 983/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 984/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 985 986/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 987/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 988/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 989hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 990/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 991/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 992/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 993 994_ASUNAME 995 996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 997for as_dir in $PATH 998do 999 IFS=$as_save_IFS 1000 test -z "$as_dir" && as_dir=. 1001 echo "PATH: $as_dir" 1002done 1003 1004} >&5 1005 1006cat >&5 <<_ACEOF 1007 1008 1009## ----------- ## 1010## Core tests. ## 1011## ----------- ## 1012 1013_ACEOF 1014 1015 1016# Keep a trace of the command line. 1017# Strip out --no-create and --no-recursion so they do not pile up. 1018# Strip out --silent because we don't want to record it for future runs. 1019# Also quote any args containing shell meta-characters. 1020# Make two passes to allow for proper duplicate-argument suppression. 1021ac_configure_args= 1022ac_configure_args0= 1023ac_configure_args1= 1024ac_sep= 1025ac_must_keep_next=false 1026for ac_pass in 1 2 1027do 1028 for ac_arg 1029 do 1030 case $ac_arg in 1031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1033 | -silent | --silent | --silen | --sile | --sil) 1034 continue ;; 1035 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1036 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1037 esac 1038 case $ac_pass in 1039 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1040 2) 1041 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1042 if test $ac_must_keep_next = true; then 1043 ac_must_keep_next=false # Got value, back to normal. 1044 else 1045 case $ac_arg in 1046 *=* | --config-cache | -C | -disable-* | --disable-* \ 1047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1049 | -with-* | --with-* | -without-* | --without-* | --x) 1050 case "$ac_configure_args0 " in 1051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1052 esac 1053 ;; 1054 -* ) ac_must_keep_next=true ;; 1055 esac 1056 fi 1057 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1058 # Get rid of the leading space. 1059 ac_sep=" " 1060 ;; 1061 esac 1062 done 1063done 1064$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1065$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1066 1067# When interrupted or exit'd, cleanup temporary files, and complete 1068# config.log. We remove comments because anyway the quotes in there 1069# would cause problems or look ugly. 1070# WARNING: Be sure not to use single quotes in there, as some shells, 1071# such as our DU 5.0 friend, will then `close' the trap. 1072trap 'exit_status=$? 1073 # Save into config.log some information that might help in debugging. 1074 { 1075 echo 1076 1077 cat <<\_ASBOX 1078## ---------------- ## 1079## Cache variables. ## 1080## ---------------- ## 1081_ASBOX 1082 echo 1083 # The following way of writing the cache mishandles newlines in values, 1084{ 1085 (set) 2>&1 | 1086 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1087 *ac_space=\ *) 1088 sed -n \ 1089 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1091 ;; 1092 *) 1093 sed -n \ 1094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1095 ;; 1096 esac; 1097} 1098 echo 1099 1100 cat <<\_ASBOX 1101## ----------------- ## 1102## Output variables. ## 1103## ----------------- ## 1104_ASBOX 1105 echo 1106 for ac_var in $ac_subst_vars 1107 do 1108 eval ac_val=$`echo $ac_var` 1109 echo "$ac_var='"'"'$ac_val'"'"'" 1110 done | sort 1111 echo 1112 1113 if test -n "$ac_subst_files"; then 1114 cat <<\_ASBOX 1115## ------------- ## 1116## Output files. ## 1117## ------------- ## 1118_ASBOX 1119 echo 1120 for ac_var in $ac_subst_files 1121 do 1122 eval ac_val=$`echo $ac_var` 1123 echo "$ac_var='"'"'$ac_val'"'"'" 1124 done | sort 1125 echo 1126 fi 1127 1128 if test -s confdefs.h; then 1129 cat <<\_ASBOX 1130## ----------- ## 1131## confdefs.h. ## 1132## ----------- ## 1133_ASBOX 1134 echo 1135 sed "/^$/d" confdefs.h | sort 1136 echo 1137 fi 1138 test "$ac_signal" != 0 && 1139 echo "$as_me: caught signal $ac_signal" 1140 echo "$as_me: exit $exit_status" 1141 } >&5 1142 rm -f core *.core && 1143 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1144 exit $exit_status 1145 ' 0 1146for ac_signal in 1 2 13 15; do 1147 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1148done 1149ac_signal=0 1150 1151# confdefs.h avoids OS command line length limits that DEFS can exceed. 1152rm -rf conftest* confdefs.h 1153# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1154echo >confdefs.h 1155 1156# Predefined preprocessor variables. 1157 1158cat >>confdefs.h <<_ACEOF 1159#define PACKAGE_NAME "$PACKAGE_NAME" 1160_ACEOF 1161 1162 1163cat >>confdefs.h <<_ACEOF 1164#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1165_ACEOF 1166 1167 1168cat >>confdefs.h <<_ACEOF 1169#define PACKAGE_VERSION "$PACKAGE_VERSION" 1170_ACEOF 1171 1172 1173cat >>confdefs.h <<_ACEOF 1174#define PACKAGE_STRING "$PACKAGE_STRING" 1175_ACEOF 1176 1177 1178cat >>confdefs.h <<_ACEOF 1179#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1180_ACEOF 1181 1182 1183# Let the site file select an alternate cache file if it wants to. 1184# Prefer explicitly selected file to automatically selected ones. 1185if test -z "$CONFIG_SITE"; then 1186 if test "x$prefix" != xNONE; then 1187 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1188 else 1189 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1190 fi 1191fi 1192for ac_site_file in $CONFIG_SITE; do 1193 if test -r "$ac_site_file"; then 1194 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1195echo "$as_me: loading site script $ac_site_file" >&6;} 1196 sed 's/^/| /' "$ac_site_file" >&5 1197 . "$ac_site_file" 1198 fi 1199done 1200 1201if test -r "$cache_file"; then 1202 # Some versions of bash will fail to source /dev/null (special 1203 # files actually), so we avoid doing that. 1204 if test -f "$cache_file"; then 1205 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1206echo "$as_me: loading cache $cache_file" >&6;} 1207 case $cache_file in 1208 [\\/]* | ?:[\\/]* ) . $cache_file;; 1209 *) . ./$cache_file;; 1210 esac 1211 fi 1212else 1213 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1214echo "$as_me: creating cache $cache_file" >&6;} 1215 >$cache_file 1216fi 1217 1218# Check that the precious variables saved in the cache have kept the same 1219# value. 1220ac_cache_corrupted=false 1221for ac_var in `(set) 2>&1 | 1222 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1223 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1224 eval ac_new_set=\$ac_env_${ac_var}_set 1225 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1226 eval ac_new_val="\$ac_env_${ac_var}_value" 1227 case $ac_old_set,$ac_new_set in 1228 set,) 1229 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1230echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1231 ac_cache_corrupted=: ;; 1232 ,set) 1233 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1234echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1235 ac_cache_corrupted=: ;; 1236 ,);; 1237 *) 1238 if test "x$ac_old_val" != "x$ac_new_val"; then 1239 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1240echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1241 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1242echo "$as_me: former value: $ac_old_val" >&2;} 1243 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1244echo "$as_me: current value: $ac_new_val" >&2;} 1245 ac_cache_corrupted=: 1246 fi;; 1247 esac 1248 # Pass precious variables to config.status. 1249 if test "$ac_new_set" = set; then 1250 case $ac_new_val in 1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1252 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1253 *) ac_arg=$ac_var=$ac_new_val ;; 1254 esac 1255 case " $ac_configure_args " in 1256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1257 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1258 esac 1259 fi 1260done 1261if $ac_cache_corrupted; then 1262 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1263echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1264 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1265echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1266 { (exit 1); exit 1; }; } 1267fi 1268 1269ac_ext=c 1270ac_cpp='$CPP $CPPFLAGS' 1271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1273ac_compiler_gnu=$ac_cv_c_compiler_gnu 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 ac_config_headers="$ac_config_headers nbtool_config.h" 1302 1303 ac_config_files="$ac_config_files defs.mk" 1304 1305 1306# Autoheader header and footer 1307 1308 1309 1310 1311 1312 1313# AC_NETBSD 1314 1315ac_ext=c 1316ac_cpp='$CPP $CPPFLAGS' 1317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1319ac_compiler_gnu=$ac_cv_c_compiler_gnu 1320if test -n "$ac_tool_prefix"; then 1321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1322set dummy ${ac_tool_prefix}gcc; ac_word=$2 1323echo "$as_me:$LINENO: checking for $ac_word" >&5 1324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1325if test "${ac_cv_prog_CC+set}" = set; then 1326 echo $ECHO_N "(cached) $ECHO_C" >&6 1327else 1328 if test -n "$CC"; then 1329 ac_cv_prog_CC="$CC" # Let the user override the test. 1330else 1331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1332for as_dir in $PATH 1333do 1334 IFS=$as_save_IFS 1335 test -z "$as_dir" && as_dir=. 1336 for ac_exec_ext in '' $ac_executable_extensions; do 1337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1338 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1340 break 2 1341 fi 1342done 1343done 1344 1345fi 1346fi 1347CC=$ac_cv_prog_CC 1348if test -n "$CC"; then 1349 echo "$as_me:$LINENO: result: $CC" >&5 1350echo "${ECHO_T}$CC" >&6 1351else 1352 echo "$as_me:$LINENO: result: no" >&5 1353echo "${ECHO_T}no" >&6 1354fi 1355 1356fi 1357if test -z "$ac_cv_prog_CC"; then 1358 ac_ct_CC=$CC 1359 # Extract the first word of "gcc", so it can be a program name with args. 1360set dummy gcc; ac_word=$2 1361echo "$as_me:$LINENO: checking for $ac_word" >&5 1362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1363if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1364 echo $ECHO_N "(cached) $ECHO_C" >&6 1365else 1366 if test -n "$ac_ct_CC"; then 1367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1368else 1369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1370for as_dir in $PATH 1371do 1372 IFS=$as_save_IFS 1373 test -z "$as_dir" && as_dir=. 1374 for ac_exec_ext in '' $ac_executable_extensions; do 1375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1376 ac_cv_prog_ac_ct_CC="gcc" 1377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1378 break 2 1379 fi 1380done 1381done 1382 1383fi 1384fi 1385ac_ct_CC=$ac_cv_prog_ac_ct_CC 1386if test -n "$ac_ct_CC"; then 1387 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1388echo "${ECHO_T}$ac_ct_CC" >&6 1389else 1390 echo "$as_me:$LINENO: result: no" >&5 1391echo "${ECHO_T}no" >&6 1392fi 1393 1394 CC=$ac_ct_CC 1395else 1396 CC="$ac_cv_prog_CC" 1397fi 1398 1399if test -z "$CC"; then 1400 if test -n "$ac_tool_prefix"; then 1401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1402set dummy ${ac_tool_prefix}cc; ac_word=$2 1403echo "$as_me:$LINENO: checking for $ac_word" >&5 1404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1405if test "${ac_cv_prog_CC+set}" = set; then 1406 echo $ECHO_N "(cached) $ECHO_C" >&6 1407else 1408 if test -n "$CC"; then 1409 ac_cv_prog_CC="$CC" # Let the user override the test. 1410else 1411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1412for as_dir in $PATH 1413do 1414 IFS=$as_save_IFS 1415 test -z "$as_dir" && as_dir=. 1416 for ac_exec_ext in '' $ac_executable_extensions; do 1417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1418 ac_cv_prog_CC="${ac_tool_prefix}cc" 1419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1420 break 2 1421 fi 1422done 1423done 1424 1425fi 1426fi 1427CC=$ac_cv_prog_CC 1428if test -n "$CC"; then 1429 echo "$as_me:$LINENO: result: $CC" >&5 1430echo "${ECHO_T}$CC" >&6 1431else 1432 echo "$as_me:$LINENO: result: no" >&5 1433echo "${ECHO_T}no" >&6 1434fi 1435 1436fi 1437if test -z "$ac_cv_prog_CC"; then 1438 ac_ct_CC=$CC 1439 # Extract the first word of "cc", so it can be a program name with args. 1440set dummy cc; ac_word=$2 1441echo "$as_me:$LINENO: checking for $ac_word" >&5 1442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1443if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1444 echo $ECHO_N "(cached) $ECHO_C" >&6 1445else 1446 if test -n "$ac_ct_CC"; then 1447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1448else 1449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1450for as_dir in $PATH 1451do 1452 IFS=$as_save_IFS 1453 test -z "$as_dir" && as_dir=. 1454 for ac_exec_ext in '' $ac_executable_extensions; do 1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1456 ac_cv_prog_ac_ct_CC="cc" 1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1458 break 2 1459 fi 1460done 1461done 1462 1463fi 1464fi 1465ac_ct_CC=$ac_cv_prog_ac_ct_CC 1466if test -n "$ac_ct_CC"; then 1467 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1468echo "${ECHO_T}$ac_ct_CC" >&6 1469else 1470 echo "$as_me:$LINENO: result: no" >&5 1471echo "${ECHO_T}no" >&6 1472fi 1473 1474 CC=$ac_ct_CC 1475else 1476 CC="$ac_cv_prog_CC" 1477fi 1478 1479fi 1480if test -z "$CC"; then 1481 # Extract the first word of "cc", so it can be a program name with args. 1482set dummy cc; ac_word=$2 1483echo "$as_me:$LINENO: checking for $ac_word" >&5 1484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1485if test "${ac_cv_prog_CC+set}" = set; then 1486 echo $ECHO_N "(cached) $ECHO_C" >&6 1487else 1488 if test -n "$CC"; then 1489 ac_cv_prog_CC="$CC" # Let the user override the test. 1490else 1491 ac_prog_rejected=no 1492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1493for as_dir in $PATH 1494do 1495 IFS=$as_save_IFS 1496 test -z "$as_dir" && as_dir=. 1497 for ac_exec_ext in '' $ac_executable_extensions; do 1498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1500 ac_prog_rejected=yes 1501 continue 1502 fi 1503 ac_cv_prog_CC="cc" 1504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1505 break 2 1506 fi 1507done 1508done 1509 1510if test $ac_prog_rejected = yes; then 1511 # We found a bogon in the path, so make sure we never use it. 1512 set dummy $ac_cv_prog_CC 1513 shift 1514 if test $# != 0; then 1515 # We chose a different compiler from the bogus one. 1516 # However, it has the same basename, so the bogon will be chosen 1517 # first if we set CC to just the basename; use the full file name. 1518 shift 1519 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1520 fi 1521fi 1522fi 1523fi 1524CC=$ac_cv_prog_CC 1525if test -n "$CC"; then 1526 echo "$as_me:$LINENO: result: $CC" >&5 1527echo "${ECHO_T}$CC" >&6 1528else 1529 echo "$as_me:$LINENO: result: no" >&5 1530echo "${ECHO_T}no" >&6 1531fi 1532 1533fi 1534if test -z "$CC"; then 1535 if test -n "$ac_tool_prefix"; then 1536 for ac_prog in cl 1537 do 1538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1539set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1540echo "$as_me:$LINENO: checking for $ac_word" >&5 1541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1542if test "${ac_cv_prog_CC+set}" = set; then 1543 echo $ECHO_N "(cached) $ECHO_C" >&6 1544else 1545 if test -n "$CC"; then 1546 ac_cv_prog_CC="$CC" # Let the user override the test. 1547else 1548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1549for as_dir in $PATH 1550do 1551 IFS=$as_save_IFS 1552 test -z "$as_dir" && as_dir=. 1553 for ac_exec_ext in '' $ac_executable_extensions; do 1554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1555 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1557 break 2 1558 fi 1559done 1560done 1561 1562fi 1563fi 1564CC=$ac_cv_prog_CC 1565if test -n "$CC"; then 1566 echo "$as_me:$LINENO: result: $CC" >&5 1567echo "${ECHO_T}$CC" >&6 1568else 1569 echo "$as_me:$LINENO: result: no" >&5 1570echo "${ECHO_T}no" >&6 1571fi 1572 1573 test -n "$CC" && break 1574 done 1575fi 1576if test -z "$CC"; then 1577 ac_ct_CC=$CC 1578 for ac_prog in cl 1579do 1580 # Extract the first word of "$ac_prog", so it can be a program name with args. 1581set dummy $ac_prog; ac_word=$2 1582echo "$as_me:$LINENO: checking for $ac_word" >&5 1583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1584if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1585 echo $ECHO_N "(cached) $ECHO_C" >&6 1586else 1587 if test -n "$ac_ct_CC"; then 1588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1589else 1590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1591for as_dir in $PATH 1592do 1593 IFS=$as_save_IFS 1594 test -z "$as_dir" && as_dir=. 1595 for ac_exec_ext in '' $ac_executable_extensions; do 1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1597 ac_cv_prog_ac_ct_CC="$ac_prog" 1598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1599 break 2 1600 fi 1601done 1602done 1603 1604fi 1605fi 1606ac_ct_CC=$ac_cv_prog_ac_ct_CC 1607if test -n "$ac_ct_CC"; then 1608 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1609echo "${ECHO_T}$ac_ct_CC" >&6 1610else 1611 echo "$as_me:$LINENO: result: no" >&5 1612echo "${ECHO_T}no" >&6 1613fi 1614 1615 test -n "$ac_ct_CC" && break 1616done 1617 1618 CC=$ac_ct_CC 1619fi 1620 1621fi 1622 1623 1624test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1625See \`config.log' for more details." >&5 1626echo "$as_me: error: no acceptable C compiler found in \$PATH 1627See \`config.log' for more details." >&2;} 1628 { (exit 1); exit 1; }; } 1629 1630# Provide some information about the compiler. 1631echo "$as_me:$LINENO:" \ 1632 "checking for C compiler version" >&5 1633ac_compiler=`set X $ac_compile; echo $2` 1634{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1635 (eval $ac_compiler --version </dev/null >&5) 2>&5 1636 ac_status=$? 1637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1638 (exit $ac_status); } 1639{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1640 (eval $ac_compiler -v </dev/null >&5) 2>&5 1641 ac_status=$? 1642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1643 (exit $ac_status); } 1644{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1645 (eval $ac_compiler -V </dev/null >&5) 2>&5 1646 ac_status=$? 1647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1648 (exit $ac_status); } 1649 1650cat >conftest.$ac_ext <<_ACEOF 1651/* confdefs.h. */ 1652_ACEOF 1653cat confdefs.h >>conftest.$ac_ext 1654cat >>conftest.$ac_ext <<_ACEOF 1655/* end confdefs.h. */ 1656 1657int 1658main () 1659{ 1660 1661 ; 1662 return 0; 1663} 1664_ACEOF 1665ac_clean_files_save=$ac_clean_files 1666ac_clean_files="$ac_clean_files a.out a.exe b.out" 1667# Try to create an executable without -o first, disregard a.out. 1668# It will help us diagnose broken compilers, and finding out an intuition 1669# of exeext. 1670echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1671echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1672ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1673if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1674 (eval $ac_link_default) 2>&5 1675 ac_status=$? 1676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1677 (exit $ac_status); }; then 1678 # Find the output, starting from the most likely. This scheme is 1679# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1680# resort. 1681 1682# Be careful to initialize this variable, since it used to be cached. 1683# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1684ac_cv_exeext= 1685# b.out is created by i960 compilers. 1686for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1687do 1688 test -f "$ac_file" || continue 1689 case $ac_file in 1690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1691 ;; 1692 conftest.$ac_ext ) 1693 # This is the source file. 1694 ;; 1695 [ab].out ) 1696 # We found the default executable, but exeext='' is most 1697 # certainly right. 1698 break;; 1699 *.* ) 1700 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1701 # FIXME: I believe we export ac_cv_exeext for Libtool, 1702 # but it would be cool to find out if it's true. Does anybody 1703 # maintain Libtool? --akim. 1704 export ac_cv_exeext 1705 break;; 1706 * ) 1707 break;; 1708 esac 1709done 1710else 1711 echo "$as_me: failed program was:" >&5 1712sed 's/^/| /' conftest.$ac_ext >&5 1713 1714{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1715See \`config.log' for more details." >&5 1716echo "$as_me: error: C compiler cannot create executables 1717See \`config.log' for more details." >&2;} 1718 { (exit 77); exit 77; }; } 1719fi 1720 1721ac_exeext=$ac_cv_exeext 1722echo "$as_me:$LINENO: result: $ac_file" >&5 1723echo "${ECHO_T}$ac_file" >&6 1724 1725# Check the compiler produces executables we can run. If not, either 1726# the compiler is broken, or we cross compile. 1727echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1728echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1729# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1730# If not cross compiling, check that we can run a simple program. 1731if test "$cross_compiling" != yes; then 1732 if { ac_try='./$ac_file' 1733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1734 (eval $ac_try) 2>&5 1735 ac_status=$? 1736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1737 (exit $ac_status); }; }; then 1738 cross_compiling=no 1739 else 1740 if test "$cross_compiling" = maybe; then 1741 cross_compiling=yes 1742 else 1743 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1744If you meant to cross compile, use \`--host'. 1745See \`config.log' for more details." >&5 1746echo "$as_me: error: cannot run C compiled programs. 1747If you meant to cross compile, use \`--host'. 1748See \`config.log' for more details." >&2;} 1749 { (exit 1); exit 1; }; } 1750 fi 1751 fi 1752fi 1753echo "$as_me:$LINENO: result: yes" >&5 1754echo "${ECHO_T}yes" >&6 1755 1756rm -f a.out a.exe conftest$ac_cv_exeext b.out 1757ac_clean_files=$ac_clean_files_save 1758# Check the compiler produces executables we can run. If not, either 1759# the compiler is broken, or we cross compile. 1760echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1761echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1762echo "$as_me:$LINENO: result: $cross_compiling" >&5 1763echo "${ECHO_T}$cross_compiling" >&6 1764 1765echo "$as_me:$LINENO: checking for suffix of executables" >&5 1766echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1768 (eval $ac_link) 2>&5 1769 ac_status=$? 1770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1771 (exit $ac_status); }; then 1772 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1773# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1774# work properly (i.e., refer to `conftest.exe'), while it won't with 1775# `rm'. 1776for ac_file in conftest.exe conftest conftest.*; do 1777 test -f "$ac_file" || continue 1778 case $ac_file in 1779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1780 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1781 export ac_cv_exeext 1782 break;; 1783 * ) break;; 1784 esac 1785done 1786else 1787 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1788See \`config.log' for more details." >&5 1789echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1790See \`config.log' for more details." >&2;} 1791 { (exit 1); exit 1; }; } 1792fi 1793 1794rm -f conftest$ac_cv_exeext 1795echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1796echo "${ECHO_T}$ac_cv_exeext" >&6 1797 1798rm -f conftest.$ac_ext 1799EXEEXT=$ac_cv_exeext 1800ac_exeext=$EXEEXT 1801echo "$as_me:$LINENO: checking for suffix of object files" >&5 1802echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1803if test "${ac_cv_objext+set}" = set; then 1804 echo $ECHO_N "(cached) $ECHO_C" >&6 1805else 1806 cat >conftest.$ac_ext <<_ACEOF 1807/* confdefs.h. */ 1808_ACEOF 1809cat confdefs.h >>conftest.$ac_ext 1810cat >>conftest.$ac_ext <<_ACEOF 1811/* end confdefs.h. */ 1812 1813int 1814main () 1815{ 1816 1817 ; 1818 return 0; 1819} 1820_ACEOF 1821rm -f conftest.o conftest.obj 1822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1823 (eval $ac_compile) 2>&5 1824 ac_status=$? 1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1826 (exit $ac_status); }; then 1827 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1828 case $ac_file in 1829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1830 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1831 break;; 1832 esac 1833done 1834else 1835 echo "$as_me: failed program was:" >&5 1836sed 's/^/| /' conftest.$ac_ext >&5 1837 1838{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1839See \`config.log' for more details." >&5 1840echo "$as_me: error: cannot compute suffix of object files: cannot compile 1841See \`config.log' for more details." >&2;} 1842 { (exit 1); exit 1; }; } 1843fi 1844 1845rm -f conftest.$ac_cv_objext conftest.$ac_ext 1846fi 1847echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1848echo "${ECHO_T}$ac_cv_objext" >&6 1849OBJEXT=$ac_cv_objext 1850ac_objext=$OBJEXT 1851echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1852echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1853if test "${ac_cv_c_compiler_gnu+set}" = set; then 1854 echo $ECHO_N "(cached) $ECHO_C" >&6 1855else 1856 cat >conftest.$ac_ext <<_ACEOF 1857/* confdefs.h. */ 1858_ACEOF 1859cat confdefs.h >>conftest.$ac_ext 1860cat >>conftest.$ac_ext <<_ACEOF 1861/* end confdefs.h. */ 1862 1863int 1864main () 1865{ 1866#ifndef __GNUC__ 1867 choke me 1868#endif 1869 1870 ; 1871 return 0; 1872} 1873_ACEOF 1874rm -f conftest.$ac_objext 1875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1876 (eval $ac_compile) 2>conftest.er1 1877 ac_status=$? 1878 grep -v '^ *+' conftest.er1 >conftest.err 1879 rm -f conftest.er1 1880 cat conftest.err >&5 1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1882 (exit $ac_status); } && 1883 { ac_try='test -z "$ac_c_werror_flag" 1884 || test ! -s conftest.err' 1885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1886 (eval $ac_try) 2>&5 1887 ac_status=$? 1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1889 (exit $ac_status); }; } && 1890 { ac_try='test -s conftest.$ac_objext' 1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1892 (eval $ac_try) 2>&5 1893 ac_status=$? 1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1895 (exit $ac_status); }; }; then 1896 ac_compiler_gnu=yes 1897else 1898 echo "$as_me: failed program was:" >&5 1899sed 's/^/| /' conftest.$ac_ext >&5 1900 1901ac_compiler_gnu=no 1902fi 1903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1904ac_cv_c_compiler_gnu=$ac_compiler_gnu 1905 1906fi 1907echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1908echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1909GCC=`test $ac_compiler_gnu = yes && echo yes` 1910ac_test_CFLAGS=${CFLAGS+set} 1911ac_save_CFLAGS=$CFLAGS 1912CFLAGS="-g" 1913echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1914echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1915if test "${ac_cv_prog_cc_g+set}" = set; then 1916 echo $ECHO_N "(cached) $ECHO_C" >&6 1917else 1918 cat >conftest.$ac_ext <<_ACEOF 1919/* confdefs.h. */ 1920_ACEOF 1921cat confdefs.h >>conftest.$ac_ext 1922cat >>conftest.$ac_ext <<_ACEOF 1923/* end confdefs.h. */ 1924 1925int 1926main () 1927{ 1928 1929 ; 1930 return 0; 1931} 1932_ACEOF 1933rm -f conftest.$ac_objext 1934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1935 (eval $ac_compile) 2>conftest.er1 1936 ac_status=$? 1937 grep -v '^ *+' conftest.er1 >conftest.err 1938 rm -f conftest.er1 1939 cat conftest.err >&5 1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1941 (exit $ac_status); } && 1942 { ac_try='test -z "$ac_c_werror_flag" 1943 || test ! -s conftest.err' 1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1945 (eval $ac_try) 2>&5 1946 ac_status=$? 1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1948 (exit $ac_status); }; } && 1949 { ac_try='test -s conftest.$ac_objext' 1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1951 (eval $ac_try) 2>&5 1952 ac_status=$? 1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1954 (exit $ac_status); }; }; then 1955 ac_cv_prog_cc_g=yes 1956else 1957 echo "$as_me: failed program was:" >&5 1958sed 's/^/| /' conftest.$ac_ext >&5 1959 1960ac_cv_prog_cc_g=no 1961fi 1962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1963fi 1964echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1965echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1966if test "$ac_test_CFLAGS" = set; then 1967 CFLAGS=$ac_save_CFLAGS 1968elif test $ac_cv_prog_cc_g = yes; then 1969 if test "$GCC" = yes; then 1970 CFLAGS="-g -O2" 1971 else 1972 CFLAGS="-g" 1973 fi 1974else 1975 if test "$GCC" = yes; then 1976 CFLAGS="-O2" 1977 else 1978 CFLAGS= 1979 fi 1980fi 1981echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 1982echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1983if test "${ac_cv_prog_cc_stdc+set}" = set; then 1984 echo $ECHO_N "(cached) $ECHO_C" >&6 1985else 1986 ac_cv_prog_cc_stdc=no 1987ac_save_CC=$CC 1988cat >conftest.$ac_ext <<_ACEOF 1989/* confdefs.h. */ 1990_ACEOF 1991cat confdefs.h >>conftest.$ac_ext 1992cat >>conftest.$ac_ext <<_ACEOF 1993/* end confdefs.h. */ 1994#include <stdarg.h> 1995#include <stdio.h> 1996#include <sys/types.h> 1997#include <sys/stat.h> 1998/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1999struct buf { int x; }; 2000FILE * (*rcsopen) (struct buf *, struct stat *, int); 2001static char *e (p, i) 2002 char **p; 2003 int i; 2004{ 2005 return p[i]; 2006} 2007static char *f (char * (*g) (char **, int), char **p, ...) 2008{ 2009 char *s; 2010 va_list v; 2011 va_start (v,p); 2012 s = g (p, va_arg (v,int)); 2013 va_end (v); 2014 return s; 2015} 2016 2017/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2018 function prototypes and stuff, but not '\xHH' hex character constants. 2019 These don't provoke an error unfortunately, instead are silently treated 2020 as 'x'. The following induces an error, until -std1 is added to get 2021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2022 array size at least. It's necessary to write '\x00'==0 to get something 2023 that's true only with -std1. */ 2024int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2025 2026int test (int i, double x); 2027struct s1 {int (*f) (int a);}; 2028struct s2 {int (*f) (double a);}; 2029int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2030int argc; 2031char **argv; 2032int 2033main () 2034{ 2035return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2036 ; 2037 return 0; 2038} 2039_ACEOF 2040# Don't try gcc -ansi; that turns off useful extensions and 2041# breaks some systems' header files. 2042# AIX -qlanglvl=ansi 2043# Ultrix and OSF/1 -std1 2044# HP-UX 10.20 and later -Ae 2045# HP-UX older versions -Aa -D_HPUX_SOURCE 2046# SVR4 -Xc -D__EXTENSIONS__ 2047for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2048do 2049 CC="$ac_save_CC $ac_arg" 2050 rm -f conftest.$ac_objext 2051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2052 (eval $ac_compile) 2>conftest.er1 2053 ac_status=$? 2054 grep -v '^ *+' conftest.er1 >conftest.err 2055 rm -f conftest.er1 2056 cat conftest.err >&5 2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2058 (exit $ac_status); } && 2059 { ac_try='test -z "$ac_c_werror_flag" 2060 || test ! -s conftest.err' 2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2062 (eval $ac_try) 2>&5 2063 ac_status=$? 2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2065 (exit $ac_status); }; } && 2066 { ac_try='test -s conftest.$ac_objext' 2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2068 (eval $ac_try) 2>&5 2069 ac_status=$? 2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2071 (exit $ac_status); }; }; then 2072 ac_cv_prog_cc_stdc=$ac_arg 2073break 2074else 2075 echo "$as_me: failed program was:" >&5 2076sed 's/^/| /' conftest.$ac_ext >&5 2077 2078fi 2079rm -f conftest.err conftest.$ac_objext 2080done 2081rm -f conftest.$ac_ext conftest.$ac_objext 2082CC=$ac_save_CC 2083 2084fi 2085 2086case "x$ac_cv_prog_cc_stdc" in 2087 x|xno) 2088 echo "$as_me:$LINENO: result: none needed" >&5 2089echo "${ECHO_T}none needed" >&6 ;; 2090 *) 2091 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2092echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2093 CC="$CC $ac_cv_prog_cc_stdc" ;; 2094esac 2095 2096# Some people use a C++ compiler to compile C. Since we use `exit', 2097# in C++ we need to declare it. In case someone uses the same compiler 2098# for both compiling C and C++ we need to have the C++ compiler decide 2099# the declaration of exit, since it's the most demanding environment. 2100cat >conftest.$ac_ext <<_ACEOF 2101#ifndef __cplusplus 2102 choke me 2103#endif 2104_ACEOF 2105rm -f conftest.$ac_objext 2106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2107 (eval $ac_compile) 2>conftest.er1 2108 ac_status=$? 2109 grep -v '^ *+' conftest.er1 >conftest.err 2110 rm -f conftest.er1 2111 cat conftest.err >&5 2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2113 (exit $ac_status); } && 2114 { ac_try='test -z "$ac_c_werror_flag" 2115 || test ! -s conftest.err' 2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2117 (eval $ac_try) 2>&5 2118 ac_status=$? 2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2120 (exit $ac_status); }; } && 2121 { ac_try='test -s conftest.$ac_objext' 2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2123 (eval $ac_try) 2>&5 2124 ac_status=$? 2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2126 (exit $ac_status); }; }; then 2127 for ac_declaration in \ 2128 '' \ 2129 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2130 'extern "C" void std::exit (int); using std::exit;' \ 2131 'extern "C" void exit (int) throw ();' \ 2132 'extern "C" void exit (int);' \ 2133 'void exit (int);' 2134do 2135 cat >conftest.$ac_ext <<_ACEOF 2136/* confdefs.h. */ 2137_ACEOF 2138cat confdefs.h >>conftest.$ac_ext 2139cat >>conftest.$ac_ext <<_ACEOF 2140/* end confdefs.h. */ 2141$ac_declaration 2142#include <stdlib.h> 2143int 2144main () 2145{ 2146exit (42); 2147 ; 2148 return 0; 2149} 2150_ACEOF 2151rm -f conftest.$ac_objext 2152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2153 (eval $ac_compile) 2>conftest.er1 2154 ac_status=$? 2155 grep -v '^ *+' conftest.er1 >conftest.err 2156 rm -f conftest.er1 2157 cat conftest.err >&5 2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2159 (exit $ac_status); } && 2160 { ac_try='test -z "$ac_c_werror_flag" 2161 || test ! -s conftest.err' 2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2163 (eval $ac_try) 2>&5 2164 ac_status=$? 2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2166 (exit $ac_status); }; } && 2167 { ac_try='test -s conftest.$ac_objext' 2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2169 (eval $ac_try) 2>&5 2170 ac_status=$? 2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2172 (exit $ac_status); }; }; then 2173 : 2174else 2175 echo "$as_me: failed program was:" >&5 2176sed 's/^/| /' conftest.$ac_ext >&5 2177 2178continue 2179fi 2180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2181 cat >conftest.$ac_ext <<_ACEOF 2182/* confdefs.h. */ 2183_ACEOF 2184cat confdefs.h >>conftest.$ac_ext 2185cat >>conftest.$ac_ext <<_ACEOF 2186/* end confdefs.h. */ 2187$ac_declaration 2188int 2189main () 2190{ 2191exit (42); 2192 ; 2193 return 0; 2194} 2195_ACEOF 2196rm -f conftest.$ac_objext 2197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2198 (eval $ac_compile) 2>conftest.er1 2199 ac_status=$? 2200 grep -v '^ *+' conftest.er1 >conftest.err 2201 rm -f conftest.er1 2202 cat conftest.err >&5 2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2204 (exit $ac_status); } && 2205 { ac_try='test -z "$ac_c_werror_flag" 2206 || test ! -s conftest.err' 2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2208 (eval $ac_try) 2>&5 2209 ac_status=$? 2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2211 (exit $ac_status); }; } && 2212 { ac_try='test -s conftest.$ac_objext' 2213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2214 (eval $ac_try) 2>&5 2215 ac_status=$? 2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2217 (exit $ac_status); }; }; then 2218 break 2219else 2220 echo "$as_me: failed program was:" >&5 2221sed 's/^/| /' conftest.$ac_ext >&5 2222 2223fi 2224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2225done 2226rm -f conftest* 2227if test -n "$ac_declaration"; then 2228 echo '#ifdef __cplusplus' >>confdefs.h 2229 echo $ac_declaration >>confdefs.h 2230 echo '#endif' >>confdefs.h 2231fi 2232 2233else 2234 echo "$as_me: failed program was:" >&5 2235sed 's/^/| /' conftest.$ac_ext >&5 2236 2237fi 2238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2239ac_ext=c 2240ac_cpp='$CPP $CPPFLAGS' 2241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2243ac_compiler_gnu=$ac_cv_c_compiler_gnu 2244 2245 2246ac_ext=c 2247ac_cpp='$CPP $CPPFLAGS' 2248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2250ac_compiler_gnu=$ac_cv_c_compiler_gnu 2251echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2252echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2253# On Suns, sometimes $CPP names a directory. 2254if test -n "$CPP" && test -d "$CPP"; then 2255 CPP= 2256fi 2257if test -z "$CPP"; then 2258 if test "${ac_cv_prog_CPP+set}" = set; then 2259 echo $ECHO_N "(cached) $ECHO_C" >&6 2260else 2261 # Double quotes because CPP needs to be expanded 2262 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2263 do 2264 ac_preproc_ok=false 2265for ac_c_preproc_warn_flag in '' yes 2266do 2267 # Use a header file that comes with gcc, so configuring glibc 2268 # with a fresh cross-compiler works. 2269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2270 # <limits.h> exists even on freestanding compilers. 2271 # On the NeXT, cc -E runs the code through the compiler's parser, 2272 # not just through cpp. "Syntax error" is here to catch this case. 2273 cat >conftest.$ac_ext <<_ACEOF 2274/* confdefs.h. */ 2275_ACEOF 2276cat confdefs.h >>conftest.$ac_ext 2277cat >>conftest.$ac_ext <<_ACEOF 2278/* end confdefs.h. */ 2279#ifdef __STDC__ 2280# include <limits.h> 2281#else 2282# include <assert.h> 2283#endif 2284 Syntax error 2285_ACEOF 2286if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2288 ac_status=$? 2289 grep -v '^ *+' conftest.er1 >conftest.err 2290 rm -f conftest.er1 2291 cat conftest.err >&5 2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2293 (exit $ac_status); } >/dev/null; then 2294 if test -s conftest.err; then 2295 ac_cpp_err=$ac_c_preproc_warn_flag 2296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2297 else 2298 ac_cpp_err= 2299 fi 2300else 2301 ac_cpp_err=yes 2302fi 2303if test -z "$ac_cpp_err"; then 2304 : 2305else 2306 echo "$as_me: failed program was:" >&5 2307sed 's/^/| /' conftest.$ac_ext >&5 2308 2309 # Broken: fails on valid input. 2310continue 2311fi 2312rm -f conftest.err conftest.$ac_ext 2313 2314 # OK, works on sane cases. Now check whether non-existent headers 2315 # can be detected and how. 2316 cat >conftest.$ac_ext <<_ACEOF 2317/* confdefs.h. */ 2318_ACEOF 2319cat confdefs.h >>conftest.$ac_ext 2320cat >>conftest.$ac_ext <<_ACEOF 2321/* end confdefs.h. */ 2322#include <ac_nonexistent.h> 2323_ACEOF 2324if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2326 ac_status=$? 2327 grep -v '^ *+' conftest.er1 >conftest.err 2328 rm -f conftest.er1 2329 cat conftest.err >&5 2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2331 (exit $ac_status); } >/dev/null; then 2332 if test -s conftest.err; then 2333 ac_cpp_err=$ac_c_preproc_warn_flag 2334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2335 else 2336 ac_cpp_err= 2337 fi 2338else 2339 ac_cpp_err=yes 2340fi 2341if test -z "$ac_cpp_err"; then 2342 # Broken: success on invalid input. 2343continue 2344else 2345 echo "$as_me: failed program was:" >&5 2346sed 's/^/| /' conftest.$ac_ext >&5 2347 2348 # Passes both tests. 2349ac_preproc_ok=: 2350break 2351fi 2352rm -f conftest.err conftest.$ac_ext 2353 2354done 2355# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2356rm -f conftest.err conftest.$ac_ext 2357if $ac_preproc_ok; then 2358 break 2359fi 2360 2361 done 2362 ac_cv_prog_CPP=$CPP 2363 2364fi 2365 CPP=$ac_cv_prog_CPP 2366else 2367 ac_cv_prog_CPP=$CPP 2368fi 2369echo "$as_me:$LINENO: result: $CPP" >&5 2370echo "${ECHO_T}$CPP" >&6 2371ac_preproc_ok=false 2372for ac_c_preproc_warn_flag in '' yes 2373do 2374 # Use a header file that comes with gcc, so configuring glibc 2375 # with a fresh cross-compiler works. 2376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2377 # <limits.h> exists even on freestanding compilers. 2378 # On the NeXT, cc -E runs the code through the compiler's parser, 2379 # not just through cpp. "Syntax error" is here to catch this case. 2380 cat >conftest.$ac_ext <<_ACEOF 2381/* confdefs.h. */ 2382_ACEOF 2383cat confdefs.h >>conftest.$ac_ext 2384cat >>conftest.$ac_ext <<_ACEOF 2385/* end confdefs.h. */ 2386#ifdef __STDC__ 2387# include <limits.h> 2388#else 2389# include <assert.h> 2390#endif 2391 Syntax error 2392_ACEOF 2393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2395 ac_status=$? 2396 grep -v '^ *+' conftest.er1 >conftest.err 2397 rm -f conftest.er1 2398 cat conftest.err >&5 2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2400 (exit $ac_status); } >/dev/null; then 2401 if test -s conftest.err; then 2402 ac_cpp_err=$ac_c_preproc_warn_flag 2403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2404 else 2405 ac_cpp_err= 2406 fi 2407else 2408 ac_cpp_err=yes 2409fi 2410if test -z "$ac_cpp_err"; then 2411 : 2412else 2413 echo "$as_me: failed program was:" >&5 2414sed 's/^/| /' conftest.$ac_ext >&5 2415 2416 # Broken: fails on valid input. 2417continue 2418fi 2419rm -f conftest.err conftest.$ac_ext 2420 2421 # OK, works on sane cases. Now check whether non-existent headers 2422 # can be detected and how. 2423 cat >conftest.$ac_ext <<_ACEOF 2424/* confdefs.h. */ 2425_ACEOF 2426cat confdefs.h >>conftest.$ac_ext 2427cat >>conftest.$ac_ext <<_ACEOF 2428/* end confdefs.h. */ 2429#include <ac_nonexistent.h> 2430_ACEOF 2431if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2433 ac_status=$? 2434 grep -v '^ *+' conftest.er1 >conftest.err 2435 rm -f conftest.er1 2436 cat conftest.err >&5 2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2438 (exit $ac_status); } >/dev/null; then 2439 if test -s conftest.err; then 2440 ac_cpp_err=$ac_c_preproc_warn_flag 2441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2442 else 2443 ac_cpp_err= 2444 fi 2445else 2446 ac_cpp_err=yes 2447fi 2448if test -z "$ac_cpp_err"; then 2449 # Broken: success on invalid input. 2450continue 2451else 2452 echo "$as_me: failed program was:" >&5 2453sed 's/^/| /' conftest.$ac_ext >&5 2454 2455 # Passes both tests. 2456ac_preproc_ok=: 2457break 2458fi 2459rm -f conftest.err conftest.$ac_ext 2460 2461done 2462# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2463rm -f conftest.err conftest.$ac_ext 2464if $ac_preproc_ok; then 2465 : 2466else 2467 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2468See \`config.log' for more details." >&5 2469echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2470See \`config.log' for more details." >&2;} 2471 { (exit 1); exit 1; }; } 2472fi 2473 2474ac_ext=c 2475ac_cpp='$CPP $CPPFLAGS' 2476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2478ac_compiler_gnu=$ac_cv_c_compiler_gnu 2479 2480 2481echo "$as_me:$LINENO: checking for egrep" >&5 2482echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2483if test "${ac_cv_prog_egrep+set}" = set; then 2484 echo $ECHO_N "(cached) $ECHO_C" >&6 2485else 2486 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2487 then ac_cv_prog_egrep='grep -E' 2488 else ac_cv_prog_egrep='egrep' 2489 fi 2490fi 2491echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2492echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2493 EGREP=$ac_cv_prog_egrep 2494 2495 2496 echo "$as_me:$LINENO: checking for NetBSD" >&5 2497echo $ECHO_N "checking for NetBSD... $ECHO_C" >&6 2498 cat >conftest.$ac_ext <<_ACEOF 2499/* confdefs.h. */ 2500_ACEOF 2501cat confdefs.h >>conftest.$ac_ext 2502cat >>conftest.$ac_ext <<_ACEOF 2503/* end confdefs.h. */ 2504#ifdef __NetBSD__ 2505 yes 2506 #endif 2507 2508_ACEOF 2509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2510 $EGREP "yes" >/dev/null 2>&1; then 2511 echo "$as_me:$LINENO: result: yes" >&5 2512echo "${ECHO_T}yes" >&6 2513 2514cat >>confdefs.h <<\_ACEOF 2515#define _POSIX_SOURCE 1 2516_ACEOF 2517 2518 2519cat >>confdefs.h <<\_ACEOF 2520#define _POSIX_C_SOURCE 200112L 2521_ACEOF 2522 2523 2524cat >>confdefs.h <<\_ACEOF 2525#define _XOPEN_SOURCE 600 2526_ACEOF 2527 2528else 2529 echo "$as_me:$LINENO: result: no" >&5 2530echo "${ECHO_T}no" >&6 2531fi 2532rm -f conftest* 2533 2534 2535# Extract the first word of "sh", so it can be a program name with args. 2536set dummy sh; ac_word=$2 2537echo "$as_me:$LINENO: checking for $ac_word" >&5 2538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2539if test "${ac_cv_path_BSHELL+set}" = set; then 2540 echo $ECHO_N "(cached) $ECHO_C" >&6 2541else 2542 case $BSHELL in 2543 [\\/]* | ?:[\\/]*) 2544 ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path. 2545 ;; 2546 *) 2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2548for as_dir in $PATH 2549do 2550 IFS=$as_save_IFS 2551 test -z "$as_dir" && as_dir=. 2552 for ac_exec_ext in '' $ac_executable_extensions; do 2553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2554 ac_cv_path_BSHELL="$as_dir/$ac_word$ac_exec_ext" 2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2556 break 2 2557 fi 2558done 2559done 2560 2561 ;; 2562esac 2563fi 2564BSHELL=$ac_cv_path_BSHELL 2565 2566if test -n "$BSHELL"; then 2567 echo "$as_me:$LINENO: result: $BSHELL" >&5 2568echo "${ECHO_T}$BSHELL" >&6 2569else 2570 echo "$as_me:$LINENO: result: no" >&5 2571echo "${ECHO_T}no" >&6 2572fi 2573 2574if test x"$BSHELL" = x; then 2575 { { echo "$as_me:$LINENO: error: sh must be somewhere on \$PATH" >&5 2576echo "$as_me: error: sh must be somewhere on \$PATH" >&2;} 2577 { (exit 1); exit 1; }; } 2578fi 2579 2580cat >>confdefs.h <<_ACEOF 2581#define PATH_BSHELL "$BSHELL" 2582_ACEOF 2583 2584 2585echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 2586echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 2587if test "${ac_cv_c_bigendian+set}" = set; then 2588 echo $ECHO_N "(cached) $ECHO_C" >&6 2589else 2590 # See if sys/param.h defines the BYTE_ORDER macro. 2591cat >conftest.$ac_ext <<_ACEOF 2592/* confdefs.h. */ 2593_ACEOF 2594cat confdefs.h >>conftest.$ac_ext 2595cat >>conftest.$ac_ext <<_ACEOF 2596/* end confdefs.h. */ 2597#include <sys/types.h> 2598#include <sys/param.h> 2599 2600int 2601main () 2602{ 2603#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 2604 bogus endian macros 2605#endif 2606 2607 ; 2608 return 0; 2609} 2610_ACEOF 2611rm -f conftest.$ac_objext 2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2613 (eval $ac_compile) 2>conftest.er1 2614 ac_status=$? 2615 grep -v '^ *+' conftest.er1 >conftest.err 2616 rm -f conftest.er1 2617 cat conftest.err >&5 2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2619 (exit $ac_status); } && 2620 { ac_try='test -z "$ac_c_werror_flag" 2621 || test ! -s conftest.err' 2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2623 (eval $ac_try) 2>&5 2624 ac_status=$? 2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2626 (exit $ac_status); }; } && 2627 { ac_try='test -s conftest.$ac_objext' 2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2629 (eval $ac_try) 2>&5 2630 ac_status=$? 2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2632 (exit $ac_status); }; }; then 2633 # It does; now see whether it defined to BIG_ENDIAN or not. 2634cat >conftest.$ac_ext <<_ACEOF 2635/* confdefs.h. */ 2636_ACEOF 2637cat confdefs.h >>conftest.$ac_ext 2638cat >>conftest.$ac_ext <<_ACEOF 2639/* end confdefs.h. */ 2640#include <sys/types.h> 2641#include <sys/param.h> 2642 2643int 2644main () 2645{ 2646#if BYTE_ORDER != BIG_ENDIAN 2647 not big endian 2648#endif 2649 2650 ; 2651 return 0; 2652} 2653_ACEOF 2654rm -f conftest.$ac_objext 2655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2656 (eval $ac_compile) 2>conftest.er1 2657 ac_status=$? 2658 grep -v '^ *+' conftest.er1 >conftest.err 2659 rm -f conftest.er1 2660 cat conftest.err >&5 2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2662 (exit $ac_status); } && 2663 { ac_try='test -z "$ac_c_werror_flag" 2664 || test ! -s conftest.err' 2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2666 (eval $ac_try) 2>&5 2667 ac_status=$? 2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2669 (exit $ac_status); }; } && 2670 { ac_try='test -s conftest.$ac_objext' 2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2672 (eval $ac_try) 2>&5 2673 ac_status=$? 2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2675 (exit $ac_status); }; }; then 2676 ac_cv_c_bigendian=yes 2677else 2678 echo "$as_me: failed program was:" >&5 2679sed 's/^/| /' conftest.$ac_ext >&5 2680 2681ac_cv_c_bigendian=no 2682fi 2683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2684else 2685 echo "$as_me: failed program was:" >&5 2686sed 's/^/| /' conftest.$ac_ext >&5 2687 2688# It does not; compile a test program. 2689if test "$cross_compiling" = yes; then 2690 # try to guess the endianness by grepping values into an object file 2691 ac_cv_c_bigendian=unknown 2692 cat >conftest.$ac_ext <<_ACEOF 2693/* confdefs.h. */ 2694_ACEOF 2695cat confdefs.h >>conftest.$ac_ext 2696cat >>conftest.$ac_ext <<_ACEOF 2697/* end confdefs.h. */ 2698short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 2699short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 2700void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 2701short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 2702short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 2703void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 2704int 2705main () 2706{ 2707 _ascii (); _ebcdic (); 2708 ; 2709 return 0; 2710} 2711_ACEOF 2712rm -f conftest.$ac_objext 2713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2714 (eval $ac_compile) 2>conftest.er1 2715 ac_status=$? 2716 grep -v '^ *+' conftest.er1 >conftest.err 2717 rm -f conftest.er1 2718 cat conftest.err >&5 2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2720 (exit $ac_status); } && 2721 { ac_try='test -z "$ac_c_werror_flag" 2722 || test ! -s conftest.err' 2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2724 (eval $ac_try) 2>&5 2725 ac_status=$? 2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2727 (exit $ac_status); }; } && 2728 { ac_try='test -s conftest.$ac_objext' 2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2730 (eval $ac_try) 2>&5 2731 ac_status=$? 2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2733 (exit $ac_status); }; }; then 2734 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 2735 ac_cv_c_bigendian=yes 2736fi 2737if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 2738 if test "$ac_cv_c_bigendian" = unknown; then 2739 ac_cv_c_bigendian=no 2740 else 2741 # finding both strings is unlikely to happen, but who knows? 2742 ac_cv_c_bigendian=unknown 2743 fi 2744fi 2745else 2746 echo "$as_me: failed program was:" >&5 2747sed 's/^/| /' conftest.$ac_ext >&5 2748 2749fi 2750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2751else 2752 cat >conftest.$ac_ext <<_ACEOF 2753/* confdefs.h. */ 2754_ACEOF 2755cat confdefs.h >>conftest.$ac_ext 2756cat >>conftest.$ac_ext <<_ACEOF 2757/* end confdefs.h. */ 2758int 2759main () 2760{ 2761 /* Are we little or big endian? From Harbison&Steele. */ 2762 union 2763 { 2764 long l; 2765 char c[sizeof (long)]; 2766 } u; 2767 u.l = 1; 2768 exit (u.c[sizeof (long) - 1] == 1); 2769} 2770_ACEOF 2771rm -f conftest$ac_exeext 2772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2773 (eval $ac_link) 2>&5 2774 ac_status=$? 2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2778 (eval $ac_try) 2>&5 2779 ac_status=$? 2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2781 (exit $ac_status); }; }; then 2782 ac_cv_c_bigendian=no 2783else 2784 echo "$as_me: program exited with status $ac_status" >&5 2785echo "$as_me: failed program was:" >&5 2786sed 's/^/| /' conftest.$ac_ext >&5 2787 2788( exit $ac_status ) 2789ac_cv_c_bigendian=yes 2790fi 2791rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2792fi 2793fi 2794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2795fi 2796echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 2797echo "${ECHO_T}$ac_cv_c_bigendian" >&6 2798case $ac_cv_c_bigendian in 2799 yes) 2800 2801cat >>confdefs.h <<\_ACEOF 2802#define WORDS_BIGENDIAN 1 2803_ACEOF 2804 ;; 2805 no) 2806 ;; 2807 *) 2808 { { echo "$as_me:$LINENO: error: unknown endianness 2809presetting ac_cv_c_bigendian=no (or yes) will help" >&5 2810echo "$as_me: error: unknown endianness 2811presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 2812 { (exit 1); exit 1; }; } ;; 2813esac 2814 2815echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2816echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2817if test "${ac_cv_header_stdc+set}" = set; then 2818 echo $ECHO_N "(cached) $ECHO_C" >&6 2819else 2820 cat >conftest.$ac_ext <<_ACEOF 2821/* confdefs.h. */ 2822_ACEOF 2823cat confdefs.h >>conftest.$ac_ext 2824cat >>conftest.$ac_ext <<_ACEOF 2825/* end confdefs.h. */ 2826#include <stdlib.h> 2827#include <stdarg.h> 2828#include <string.h> 2829#include <float.h> 2830 2831int 2832main () 2833{ 2834 2835 ; 2836 return 0; 2837} 2838_ACEOF 2839rm -f conftest.$ac_objext 2840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2841 (eval $ac_compile) 2>conftest.er1 2842 ac_status=$? 2843 grep -v '^ *+' conftest.er1 >conftest.err 2844 rm -f conftest.er1 2845 cat conftest.err >&5 2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2847 (exit $ac_status); } && 2848 { ac_try='test -z "$ac_c_werror_flag" 2849 || test ! -s conftest.err' 2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2851 (eval $ac_try) 2>&5 2852 ac_status=$? 2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2854 (exit $ac_status); }; } && 2855 { ac_try='test -s conftest.$ac_objext' 2856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2857 (eval $ac_try) 2>&5 2858 ac_status=$? 2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2860 (exit $ac_status); }; }; then 2861 ac_cv_header_stdc=yes 2862else 2863 echo "$as_me: failed program was:" >&5 2864sed 's/^/| /' conftest.$ac_ext >&5 2865 2866ac_cv_header_stdc=no 2867fi 2868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2869 2870if test $ac_cv_header_stdc = yes; then 2871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2872 cat >conftest.$ac_ext <<_ACEOF 2873/* confdefs.h. */ 2874_ACEOF 2875cat confdefs.h >>conftest.$ac_ext 2876cat >>conftest.$ac_ext <<_ACEOF 2877/* end confdefs.h. */ 2878#include <string.h> 2879 2880_ACEOF 2881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2882 $EGREP "memchr" >/dev/null 2>&1; then 2883 : 2884else 2885 ac_cv_header_stdc=no 2886fi 2887rm -f conftest* 2888 2889fi 2890 2891if test $ac_cv_header_stdc = yes; then 2892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2893 cat >conftest.$ac_ext <<_ACEOF 2894/* confdefs.h. */ 2895_ACEOF 2896cat confdefs.h >>conftest.$ac_ext 2897cat >>conftest.$ac_ext <<_ACEOF 2898/* end confdefs.h. */ 2899#include <stdlib.h> 2900 2901_ACEOF 2902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2903 $EGREP "free" >/dev/null 2>&1; then 2904 : 2905else 2906 ac_cv_header_stdc=no 2907fi 2908rm -f conftest* 2909 2910fi 2911 2912if test $ac_cv_header_stdc = yes; then 2913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2914 if test "$cross_compiling" = yes; then 2915 : 2916else 2917 cat >conftest.$ac_ext <<_ACEOF 2918/* confdefs.h. */ 2919_ACEOF 2920cat confdefs.h >>conftest.$ac_ext 2921cat >>conftest.$ac_ext <<_ACEOF 2922/* end confdefs.h. */ 2923#include <ctype.h> 2924#if ((' ' & 0x0FF) == 0x020) 2925# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2926# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2927#else 2928# define ISLOWER(c) \ 2929 (('a' <= (c) && (c) <= 'i') \ 2930 || ('j' <= (c) && (c) <= 'r') \ 2931 || ('s' <= (c) && (c) <= 'z')) 2932# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2933#endif 2934 2935#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2936int 2937main () 2938{ 2939 int i; 2940 for (i = 0; i < 256; i++) 2941 if (XOR (islower (i), ISLOWER (i)) 2942 || toupper (i) != TOUPPER (i)) 2943 exit(2); 2944 exit (0); 2945} 2946_ACEOF 2947rm -f conftest$ac_exeext 2948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2949 (eval $ac_link) 2>&5 2950 ac_status=$? 2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 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); }; }; then 2958 : 2959else 2960 echo "$as_me: program exited with status $ac_status" >&5 2961echo "$as_me: failed program was:" >&5 2962sed 's/^/| /' conftest.$ac_ext >&5 2963 2964( exit $ac_status ) 2965ac_cv_header_stdc=no 2966fi 2967rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2968fi 2969fi 2970fi 2971echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 2972echo "${ECHO_T}$ac_cv_header_stdc" >&6 2973if test $ac_cv_header_stdc = yes; then 2974 2975cat >>confdefs.h <<\_ACEOF 2976#define STDC_HEADERS 1 2977_ACEOF 2978 2979fi 2980 2981 2982# Confirm existence of zlib. (This is available as a default install 2983# option on many OS's; this could be added as a reachover build in the 2984# future.) 2985# On IRIX 5.3, sys/types and inttypes.h are conflicting. 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 2996 inttypes.h stdint.h unistd.h 2997do 2998as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2999echo "$as_me:$LINENO: checking for $ac_header" >&5 3000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3001if eval "test \"\${$as_ac_Header+set}\" = set"; then 3002 echo $ECHO_N "(cached) $ECHO_C" >&6 3003else 3004 cat >conftest.$ac_ext <<_ACEOF 3005/* confdefs.h. */ 3006_ACEOF 3007cat confdefs.h >>conftest.$ac_ext 3008cat >>conftest.$ac_ext <<_ACEOF 3009/* end confdefs.h. */ 3010$ac_includes_default 3011 3012#include <$ac_header> 3013_ACEOF 3014rm -f conftest.$ac_objext 3015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3016 (eval $ac_compile) 2>conftest.er1 3017 ac_status=$? 3018 grep -v '^ *+' conftest.er1 >conftest.err 3019 rm -f conftest.er1 3020 cat conftest.err >&5 3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3022 (exit $ac_status); } && 3023 { ac_try='test -z "$ac_c_werror_flag" 3024 || test ! -s conftest.err' 3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3026 (eval $ac_try) 2>&5 3027 ac_status=$? 3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3029 (exit $ac_status); }; } && 3030 { ac_try='test -s conftest.$ac_objext' 3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3032 (eval $ac_try) 2>&5 3033 ac_status=$? 3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3035 (exit $ac_status); }; }; then 3036 eval "$as_ac_Header=yes" 3037else 3038 echo "$as_me: failed program was:" >&5 3039sed 's/^/| /' conftest.$ac_ext >&5 3040 3041eval "$as_ac_Header=no" 3042fi 3043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3044fi 3045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3047if test `eval echo '${'$as_ac_Header'}'` = yes; then 3048 cat >>confdefs.h <<_ACEOF 3049#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3050_ACEOF 3051 3052fi 3053 3054done 3055 3056 3057if test "${ac_cv_header_zlib_h+set}" = set; then 3058 echo "$as_me:$LINENO: checking for zlib.h" >&5 3059echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 3060if test "${ac_cv_header_zlib_h+set}" = set; then 3061 echo $ECHO_N "(cached) $ECHO_C" >&6 3062fi 3063echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 3064echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 3065else 3066 # Is the header compilable? 3067echo "$as_me:$LINENO: checking zlib.h usability" >&5 3068echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 3069cat >conftest.$ac_ext <<_ACEOF 3070/* confdefs.h. */ 3071_ACEOF 3072cat confdefs.h >>conftest.$ac_ext 3073cat >>conftest.$ac_ext <<_ACEOF 3074/* end confdefs.h. */ 3075$ac_includes_default 3076#include <zlib.h> 3077_ACEOF 3078rm -f conftest.$ac_objext 3079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3080 (eval $ac_compile) 2>conftest.er1 3081 ac_status=$? 3082 grep -v '^ *+' conftest.er1 >conftest.err 3083 rm -f conftest.er1 3084 cat conftest.err >&5 3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3086 (exit $ac_status); } && 3087 { ac_try='test -z "$ac_c_werror_flag" 3088 || test ! -s conftest.err' 3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3090 (eval $ac_try) 2>&5 3091 ac_status=$? 3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3093 (exit $ac_status); }; } && 3094 { ac_try='test -s conftest.$ac_objext' 3095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3096 (eval $ac_try) 2>&5 3097 ac_status=$? 3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099 (exit $ac_status); }; }; then 3100 ac_header_compiler=yes 3101else 3102 echo "$as_me: failed program was:" >&5 3103sed 's/^/| /' conftest.$ac_ext >&5 3104 3105ac_header_compiler=no 3106fi 3107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3108echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3109echo "${ECHO_T}$ac_header_compiler" >&6 3110 3111# Is the header present? 3112echo "$as_me:$LINENO: checking zlib.h presence" >&5 3113echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 3114cat >conftest.$ac_ext <<_ACEOF 3115/* confdefs.h. */ 3116_ACEOF 3117cat confdefs.h >>conftest.$ac_ext 3118cat >>conftest.$ac_ext <<_ACEOF 3119/* end confdefs.h. */ 3120#include <zlib.h> 3121_ACEOF 3122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3124 ac_status=$? 3125 grep -v '^ *+' conftest.er1 >conftest.err 3126 rm -f conftest.er1 3127 cat conftest.err >&5 3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3129 (exit $ac_status); } >/dev/null; then 3130 if test -s conftest.err; then 3131 ac_cpp_err=$ac_c_preproc_warn_flag 3132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3133 else 3134 ac_cpp_err= 3135 fi 3136else 3137 ac_cpp_err=yes 3138fi 3139if test -z "$ac_cpp_err"; then 3140 ac_header_preproc=yes 3141else 3142 echo "$as_me: failed program was:" >&5 3143sed 's/^/| /' conftest.$ac_ext >&5 3144 3145 ac_header_preproc=no 3146fi 3147rm -f conftest.err conftest.$ac_ext 3148echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3149echo "${ECHO_T}$ac_header_preproc" >&6 3150 3151# So? What about this header? 3152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3153 yes:no: ) 3154 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 3155echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3156 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 3157echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} 3158 ac_header_preproc=yes 3159 ;; 3160 no:yes:* ) 3161 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 3162echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} 3163 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 3164echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} 3165 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 3166echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} 3167 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 3168echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 3169 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 3170echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} 3171 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 3172echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} 3173 ( 3174 cat <<\_ASBOX 3175## ---------------------------------------- ## 3176## Report this to lib-bug-people@NetBSD.org ## 3177## ---------------------------------------- ## 3178_ASBOX 3179 ) | 3180 sed "s/^/$as_me: WARNING: /" >&2 3181 ;; 3182esac 3183echo "$as_me:$LINENO: checking for zlib.h" >&5 3184echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 3185if test "${ac_cv_header_zlib_h+set}" = set; then 3186 echo $ECHO_N "(cached) $ECHO_C" >&6 3187else 3188 ac_cv_header_zlib_h=$ac_header_preproc 3189fi 3190echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 3191echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 3192 3193fi 3194if test $ac_cv_header_zlib_h = yes; then 3195 : 3196else 3197 { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5 3198echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;} 3199 { (exit 1); exit 1; }; } 3200fi 3201 3202 3203 3204echo "$as_me:$LINENO: checking for gzdopen in -lz" >&5 3205echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6 3206if test "${ac_cv_lib_z_gzdopen+set}" = set; then 3207 echo $ECHO_N "(cached) $ECHO_C" >&6 3208else 3209 ac_check_lib_save_LIBS=$LIBS 3210LIBS="-lz $LIBS" 3211cat >conftest.$ac_ext <<_ACEOF 3212/* confdefs.h. */ 3213_ACEOF 3214cat confdefs.h >>conftest.$ac_ext 3215cat >>conftest.$ac_ext <<_ACEOF 3216/* end confdefs.h. */ 3217 3218/* Override any gcc2 internal prototype to avoid an error. */ 3219#ifdef __cplusplus 3220extern "C" 3221#endif 3222/* We use char because int might match the return type of a gcc2 3223 builtin and then its argument prototype would still apply. */ 3224char gzdopen (); 3225int 3226main () 3227{ 3228gzdopen (); 3229 ; 3230 return 0; 3231} 3232_ACEOF 3233rm -f conftest.$ac_objext conftest$ac_exeext 3234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3235 (eval $ac_link) 2>conftest.er1 3236 ac_status=$? 3237 grep -v '^ *+' conftest.er1 >conftest.err 3238 rm -f conftest.er1 3239 cat conftest.err >&5 3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3241 (exit $ac_status); } && 3242 { ac_try='test -z "$ac_c_werror_flag" 3243 || test ! -s conftest.err' 3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3245 (eval $ac_try) 2>&5 3246 ac_status=$? 3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3248 (exit $ac_status); }; } && 3249 { ac_try='test -s conftest$ac_exeext' 3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3251 (eval $ac_try) 2>&5 3252 ac_status=$? 3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3254 (exit $ac_status); }; }; then 3255 ac_cv_lib_z_gzdopen=yes 3256else 3257 echo "$as_me: failed program was:" >&5 3258sed 's/^/| /' conftest.$ac_ext >&5 3259 3260ac_cv_lib_z_gzdopen=no 3261fi 3262rm -f conftest.err conftest.$ac_objext \ 3263 conftest$ac_exeext conftest.$ac_ext 3264LIBS=$ac_check_lib_save_LIBS 3265fi 3266echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzdopen" >&5 3267echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6 3268if test $ac_cv_lib_z_gzdopen = yes; then 3269 cat >>confdefs.h <<_ACEOF 3270#define HAVE_LIBZ 1 3271_ACEOF 3272 3273 LIBS="-lz $LIBS" 3274 3275else 3276 { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5 3277echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;} 3278 { (exit 1); exit 1; }; } 3279fi 3280 3281 3282# Make sure certain required headers are available. 3283# These are not necessarily required by the code, but they are not 3284# currently conditionalized. 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311for ac_header in sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \ 3312 sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \ 3313 sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \ 3314 netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \ 3315 termios.h unistd.h 3316do 3317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3318if eval "test \"\${$as_ac_Header+set}\" = set"; then 3319 echo "$as_me:$LINENO: checking for $ac_header" >&5 3320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3321if eval "test \"\${$as_ac_Header+set}\" = set"; then 3322 echo $ECHO_N "(cached) $ECHO_C" >&6 3323fi 3324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3326else 3327 # Is the header compilable? 3328echo "$as_me:$LINENO: checking $ac_header usability" >&5 3329echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3330cat >conftest.$ac_ext <<_ACEOF 3331/* confdefs.h. */ 3332_ACEOF 3333cat confdefs.h >>conftest.$ac_ext 3334cat >>conftest.$ac_ext <<_ACEOF 3335/* end confdefs.h. */ 3336$ac_includes_default 3337#include <$ac_header> 3338_ACEOF 3339rm -f conftest.$ac_objext 3340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3341 (eval $ac_compile) 2>conftest.er1 3342 ac_status=$? 3343 grep -v '^ *+' conftest.er1 >conftest.err 3344 rm -f conftest.er1 3345 cat conftest.err >&5 3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3347 (exit $ac_status); } && 3348 { ac_try='test -z "$ac_c_werror_flag" 3349 || test ! -s conftest.err' 3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3351 (eval $ac_try) 2>&5 3352 ac_status=$? 3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3354 (exit $ac_status); }; } && 3355 { ac_try='test -s conftest.$ac_objext' 3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3357 (eval $ac_try) 2>&5 3358 ac_status=$? 3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3360 (exit $ac_status); }; }; then 3361 ac_header_compiler=yes 3362else 3363 echo "$as_me: failed program was:" >&5 3364sed 's/^/| /' conftest.$ac_ext >&5 3365 3366ac_header_compiler=no 3367fi 3368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3369echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3370echo "${ECHO_T}$ac_header_compiler" >&6 3371 3372# Is the header present? 3373echo "$as_me:$LINENO: checking $ac_header presence" >&5 3374echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3375cat >conftest.$ac_ext <<_ACEOF 3376/* confdefs.h. */ 3377_ACEOF 3378cat confdefs.h >>conftest.$ac_ext 3379cat >>conftest.$ac_ext <<_ACEOF 3380/* end confdefs.h. */ 3381#include <$ac_header> 3382_ACEOF 3383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3384 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then 3391 if test -s conftest.err; then 3392 ac_cpp_err=$ac_c_preproc_warn_flag 3393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3394 else 3395 ac_cpp_err= 3396 fi 3397else 3398 ac_cpp_err=yes 3399fi 3400if test -z "$ac_cpp_err"; then 3401 ac_header_preproc=yes 3402else 3403 echo "$as_me: failed program was:" >&5 3404sed 's/^/| /' conftest.$ac_ext >&5 3405 3406 ac_header_preproc=no 3407fi 3408rm -f conftest.err conftest.$ac_ext 3409echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3410echo "${ECHO_T}$ac_header_preproc" >&6 3411 3412# So? What about this header? 3413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3414 yes:no: ) 3415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3416echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3418echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3419 ac_header_preproc=yes 3420 ;; 3421 no:yes:* ) 3422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3423echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3425echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3427echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3429echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3431echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3433echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3434 ( 3435 cat <<\_ASBOX 3436## ---------------------------------------- ## 3437## Report this to lib-bug-people@NetBSD.org ## 3438## ---------------------------------------- ## 3439_ASBOX 3440 ) | 3441 sed "s/^/$as_me: WARNING: /" >&2 3442 ;; 3443esac 3444echo "$as_me:$LINENO: checking for $ac_header" >&5 3445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3446if eval "test \"\${$as_ac_Header+set}\" = set"; then 3447 echo $ECHO_N "(cached) $ECHO_C" >&6 3448else 3449 eval "$as_ac_Header=\$ac_header_preproc" 3450fi 3451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3453 3454fi 3455if test `eval echo '${'$as_ac_Header'}'` = yes; then 3456 cat >>confdefs.h <<_ACEOF 3457#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3458_ACEOF 3459 3460else 3461 { { echo "$as_me:$LINENO: error: standard system header file not found" >&5 3462echo "$as_me: error: standard system header file not found" >&2;} 3463 { (exit 1); exit 1; }; } 3464fi 3465 3466done 3467 3468 3469# Find headers that may not be available. 3470 3471 3472 3473 3474 3475ac_header_dirent=no 3476for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 3477 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 3478echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 3479echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 3480if eval "test \"\${$as_ac_Header+set}\" = set"; then 3481 echo $ECHO_N "(cached) $ECHO_C" >&6 3482else 3483 cat >conftest.$ac_ext <<_ACEOF 3484/* confdefs.h. */ 3485_ACEOF 3486cat confdefs.h >>conftest.$ac_ext 3487cat >>conftest.$ac_ext <<_ACEOF 3488/* end confdefs.h. */ 3489#include <sys/types.h> 3490#include <$ac_hdr> 3491 3492int 3493main () 3494{ 3495if ((DIR *) 0) 3496return 0; 3497 ; 3498 return 0; 3499} 3500_ACEOF 3501rm -f conftest.$ac_objext 3502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3503 (eval $ac_compile) 2>conftest.er1 3504 ac_status=$? 3505 grep -v '^ *+' conftest.er1 >conftest.err 3506 rm -f conftest.er1 3507 cat conftest.err >&5 3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3509 (exit $ac_status); } && 3510 { ac_try='test -z "$ac_c_werror_flag" 3511 || test ! -s conftest.err' 3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3513 (eval $ac_try) 2>&5 3514 ac_status=$? 3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3516 (exit $ac_status); }; } && 3517 { ac_try='test -s conftest.$ac_objext' 3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3519 (eval $ac_try) 2>&5 3520 ac_status=$? 3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3522 (exit $ac_status); }; }; then 3523 eval "$as_ac_Header=yes" 3524else 3525 echo "$as_me: failed program was:" >&5 3526sed 's/^/| /' conftest.$ac_ext >&5 3527 3528eval "$as_ac_Header=no" 3529fi 3530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3531fi 3532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3534if test `eval echo '${'$as_ac_Header'}'` = yes; then 3535 cat >>confdefs.h <<_ACEOF 3536#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 3537_ACEOF 3538 3539ac_header_dirent=$ac_hdr; break 3540fi 3541 3542done 3543# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 3544if test $ac_header_dirent = dirent.h; then 3545 echo "$as_me:$LINENO: checking for library containing opendir" >&5 3546echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 3547if test "${ac_cv_search_opendir+set}" = set; then 3548 echo $ECHO_N "(cached) $ECHO_C" >&6 3549else 3550 ac_func_search_save_LIBS=$LIBS 3551ac_cv_search_opendir=no 3552cat >conftest.$ac_ext <<_ACEOF 3553/* confdefs.h. */ 3554_ACEOF 3555cat confdefs.h >>conftest.$ac_ext 3556cat >>conftest.$ac_ext <<_ACEOF 3557/* end confdefs.h. */ 3558 3559/* Override any gcc2 internal prototype to avoid an error. */ 3560#ifdef __cplusplus 3561extern "C" 3562#endif 3563/* We use char because int might match the return type of a gcc2 3564 builtin and then its argument prototype would still apply. */ 3565char opendir (); 3566int 3567main () 3568{ 3569opendir (); 3570 ; 3571 return 0; 3572} 3573_ACEOF 3574rm -f conftest.$ac_objext conftest$ac_exeext 3575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3576 (eval $ac_link) 2>conftest.er1 3577 ac_status=$? 3578 grep -v '^ *+' conftest.er1 >conftest.err 3579 rm -f conftest.er1 3580 cat conftest.err >&5 3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3582 (exit $ac_status); } && 3583 { ac_try='test -z "$ac_c_werror_flag" 3584 || test ! -s conftest.err' 3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3586 (eval $ac_try) 2>&5 3587 ac_status=$? 3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3589 (exit $ac_status); }; } && 3590 { ac_try='test -s conftest$ac_exeext' 3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3592 (eval $ac_try) 2>&5 3593 ac_status=$? 3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3595 (exit $ac_status); }; }; then 3596 ac_cv_search_opendir="none required" 3597else 3598 echo "$as_me: failed program was:" >&5 3599sed 's/^/| /' conftest.$ac_ext >&5 3600 3601fi 3602rm -f conftest.err conftest.$ac_objext \ 3603 conftest$ac_exeext conftest.$ac_ext 3604if test "$ac_cv_search_opendir" = no; then 3605 for ac_lib in dir; do 3606 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3607 cat >conftest.$ac_ext <<_ACEOF 3608/* confdefs.h. */ 3609_ACEOF 3610cat confdefs.h >>conftest.$ac_ext 3611cat >>conftest.$ac_ext <<_ACEOF 3612/* end confdefs.h. */ 3613 3614/* Override any gcc2 internal prototype to avoid an error. */ 3615#ifdef __cplusplus 3616extern "C" 3617#endif 3618/* We use char because int might match the return type of a gcc2 3619 builtin and then its argument prototype would still apply. */ 3620char opendir (); 3621int 3622main () 3623{ 3624opendir (); 3625 ; 3626 return 0; 3627} 3628_ACEOF 3629rm -f conftest.$ac_objext conftest$ac_exeext 3630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3631 (eval $ac_link) 2>conftest.er1 3632 ac_status=$? 3633 grep -v '^ *+' conftest.er1 >conftest.err 3634 rm -f conftest.er1 3635 cat conftest.err >&5 3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3637 (exit $ac_status); } && 3638 { ac_try='test -z "$ac_c_werror_flag" 3639 || test ! -s conftest.err' 3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3641 (eval $ac_try) 2>&5 3642 ac_status=$? 3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3644 (exit $ac_status); }; } && 3645 { ac_try='test -s conftest$ac_exeext' 3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3647 (eval $ac_try) 2>&5 3648 ac_status=$? 3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3650 (exit $ac_status); }; }; then 3651 ac_cv_search_opendir="-l$ac_lib" 3652break 3653else 3654 echo "$as_me: failed program was:" >&5 3655sed 's/^/| /' conftest.$ac_ext >&5 3656 3657fi 3658rm -f conftest.err conftest.$ac_objext \ 3659 conftest$ac_exeext conftest.$ac_ext 3660 done 3661fi 3662LIBS=$ac_func_search_save_LIBS 3663fi 3664echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 3665echo "${ECHO_T}$ac_cv_search_opendir" >&6 3666if test "$ac_cv_search_opendir" != no; then 3667 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 3668 3669fi 3670 3671else 3672 echo "$as_me:$LINENO: checking for library containing opendir" >&5 3673echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 3674if test "${ac_cv_search_opendir+set}" = set; then 3675 echo $ECHO_N "(cached) $ECHO_C" >&6 3676else 3677 ac_func_search_save_LIBS=$LIBS 3678ac_cv_search_opendir=no 3679cat >conftest.$ac_ext <<_ACEOF 3680/* confdefs.h. */ 3681_ACEOF 3682cat confdefs.h >>conftest.$ac_ext 3683cat >>conftest.$ac_ext <<_ACEOF 3684/* end confdefs.h. */ 3685 3686/* Override any gcc2 internal prototype to avoid an error. */ 3687#ifdef __cplusplus 3688extern "C" 3689#endif 3690/* We use char because int might match the return type of a gcc2 3691 builtin and then its argument prototype would still apply. */ 3692char opendir (); 3693int 3694main () 3695{ 3696opendir (); 3697 ; 3698 return 0; 3699} 3700_ACEOF 3701rm -f conftest.$ac_objext conftest$ac_exeext 3702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3703 (eval $ac_link) 2>conftest.er1 3704 ac_status=$? 3705 grep -v '^ *+' conftest.er1 >conftest.err 3706 rm -f conftest.er1 3707 cat conftest.err >&5 3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3709 (exit $ac_status); } && 3710 { ac_try='test -z "$ac_c_werror_flag" 3711 || test ! -s conftest.err' 3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3713 (eval $ac_try) 2>&5 3714 ac_status=$? 3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3716 (exit $ac_status); }; } && 3717 { ac_try='test -s conftest$ac_exeext' 3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3719 (eval $ac_try) 2>&5 3720 ac_status=$? 3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3722 (exit $ac_status); }; }; then 3723 ac_cv_search_opendir="none required" 3724else 3725 echo "$as_me: failed program was:" >&5 3726sed 's/^/| /' conftest.$ac_ext >&5 3727 3728fi 3729rm -f conftest.err conftest.$ac_objext \ 3730 conftest$ac_exeext conftest.$ac_ext 3731if test "$ac_cv_search_opendir" = no; then 3732 for ac_lib in x; do 3733 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3734 cat >conftest.$ac_ext <<_ACEOF 3735/* confdefs.h. */ 3736_ACEOF 3737cat confdefs.h >>conftest.$ac_ext 3738cat >>conftest.$ac_ext <<_ACEOF 3739/* end confdefs.h. */ 3740 3741/* Override any gcc2 internal prototype to avoid an error. */ 3742#ifdef __cplusplus 3743extern "C" 3744#endif 3745/* We use char because int might match the return type of a gcc2 3746 builtin and then its argument prototype would still apply. */ 3747char opendir (); 3748int 3749main () 3750{ 3751opendir (); 3752 ; 3753 return 0; 3754} 3755_ACEOF 3756rm -f conftest.$ac_objext conftest$ac_exeext 3757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3758 (eval $ac_link) 2>conftest.er1 3759 ac_status=$? 3760 grep -v '^ *+' conftest.er1 >conftest.err 3761 rm -f conftest.er1 3762 cat conftest.err >&5 3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3764 (exit $ac_status); } && 3765 { ac_try='test -z "$ac_c_werror_flag" 3766 || test ! -s conftest.err' 3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3768 (eval $ac_try) 2>&5 3769 ac_status=$? 3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3771 (exit $ac_status); }; } && 3772 { ac_try='test -s conftest$ac_exeext' 3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3774 (eval $ac_try) 2>&5 3775 ac_status=$? 3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3777 (exit $ac_status); }; }; then 3778 ac_cv_search_opendir="-l$ac_lib" 3779break 3780else 3781 echo "$as_me: failed program was:" >&5 3782sed 's/^/| /' conftest.$ac_ext >&5 3783 3784fi 3785rm -f conftest.err conftest.$ac_objext \ 3786 conftest$ac_exeext conftest.$ac_ext 3787 done 3788fi 3789LIBS=$ac_func_search_save_LIBS 3790fi 3791echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 3792echo "${ECHO_T}$ac_cv_search_opendir" >&6 3793if test "$ac_cv_search_opendir" != no; then 3794 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 3795 3796fi 3797 3798fi 3799 3800 3801 3802 3803 3804 3805 3806 3807for ac_header in sys/sysmacros.h sys/syslimits.h \ 3808 getopt.h features.h malloc.h sys/poll.h stddef.h 3809do 3810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3811if eval "test \"\${$as_ac_Header+set}\" = set"; then 3812 echo "$as_me:$LINENO: checking for $ac_header" >&5 3813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3814if eval "test \"\${$as_ac_Header+set}\" = set"; then 3815 echo $ECHO_N "(cached) $ECHO_C" >&6 3816fi 3817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3819else 3820 # Is the header compilable? 3821echo "$as_me:$LINENO: checking $ac_header usability" >&5 3822echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3823cat >conftest.$ac_ext <<_ACEOF 3824/* confdefs.h. */ 3825_ACEOF 3826cat confdefs.h >>conftest.$ac_ext 3827cat >>conftest.$ac_ext <<_ACEOF 3828/* end confdefs.h. */ 3829$ac_includes_default 3830#include <$ac_header> 3831_ACEOF 3832rm -f conftest.$ac_objext 3833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3834 (eval $ac_compile) 2>conftest.er1 3835 ac_status=$? 3836 grep -v '^ *+' conftest.er1 >conftest.err 3837 rm -f conftest.er1 3838 cat conftest.err >&5 3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3840 (exit $ac_status); } && 3841 { ac_try='test -z "$ac_c_werror_flag" 3842 || test ! -s conftest.err' 3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3844 (eval $ac_try) 2>&5 3845 ac_status=$? 3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3847 (exit $ac_status); }; } && 3848 { ac_try='test -s conftest.$ac_objext' 3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3850 (eval $ac_try) 2>&5 3851 ac_status=$? 3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3853 (exit $ac_status); }; }; then 3854 ac_header_compiler=yes 3855else 3856 echo "$as_me: failed program was:" >&5 3857sed 's/^/| /' conftest.$ac_ext >&5 3858 3859ac_header_compiler=no 3860fi 3861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3862echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3863echo "${ECHO_T}$ac_header_compiler" >&6 3864 3865# Is the header present? 3866echo "$as_me:$LINENO: checking $ac_header presence" >&5 3867echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3868cat >conftest.$ac_ext <<_ACEOF 3869/* confdefs.h. */ 3870_ACEOF 3871cat confdefs.h >>conftest.$ac_ext 3872cat >>conftest.$ac_ext <<_ACEOF 3873/* end confdefs.h. */ 3874#include <$ac_header> 3875_ACEOF 3876if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3878 ac_status=$? 3879 grep -v '^ *+' conftest.er1 >conftest.err 3880 rm -f conftest.er1 3881 cat conftest.err >&5 3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3883 (exit $ac_status); } >/dev/null; then 3884 if test -s conftest.err; then 3885 ac_cpp_err=$ac_c_preproc_warn_flag 3886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3887 else 3888 ac_cpp_err= 3889 fi 3890else 3891 ac_cpp_err=yes 3892fi 3893if test -z "$ac_cpp_err"; then 3894 ac_header_preproc=yes 3895else 3896 echo "$as_me: failed program was:" >&5 3897sed 's/^/| /' conftest.$ac_ext >&5 3898 3899 ac_header_preproc=no 3900fi 3901rm -f conftest.err conftest.$ac_ext 3902echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3903echo "${ECHO_T}$ac_header_preproc" >&6 3904 3905# So? What about this header? 3906case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3907 yes:no: ) 3908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3909echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3911echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3912 ac_header_preproc=yes 3913 ;; 3914 no:yes:* ) 3915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3916echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3918echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3920echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3922echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3924echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3926echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3927 ( 3928 cat <<\_ASBOX 3929## ---------------------------------------- ## 3930## Report this to lib-bug-people@NetBSD.org ## 3931## ---------------------------------------- ## 3932_ASBOX 3933 ) | 3934 sed "s/^/$as_me: WARNING: /" >&2 3935 ;; 3936esac 3937echo "$as_me:$LINENO: checking for $ac_header" >&5 3938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3939if eval "test \"\${$as_ac_Header+set}\" = set"; then 3940 echo $ECHO_N "(cached) $ECHO_C" >&6 3941else 3942 eval "$as_ac_Header=\$ac_header_preproc" 3943fi 3944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3945echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3946 3947fi 3948if test `eval echo '${'$as_ac_Header'}'` = yes; then 3949 cat >>confdefs.h <<_ACEOF 3950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3951_ACEOF 3952 3953fi 3954 3955done 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \ 3969 sys/featuretest.h err.h inttypes.h libgen.h paths.h stdint.h util.h 3970do 3971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3972if eval "test \"\${$as_ac_Header+set}\" = set"; then 3973 echo "$as_me:$LINENO: checking for $ac_header" >&5 3974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3975if eval "test \"\${$as_ac_Header+set}\" = set"; then 3976 echo $ECHO_N "(cached) $ECHO_C" >&6 3977fi 3978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3980else 3981 # Is the header compilable? 3982echo "$as_me:$LINENO: checking $ac_header usability" >&5 3983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3984cat >conftest.$ac_ext <<_ACEOF 3985/* confdefs.h. */ 3986_ACEOF 3987cat confdefs.h >>conftest.$ac_ext 3988cat >>conftest.$ac_ext <<_ACEOF 3989/* end confdefs.h. */ 3990$ac_includes_default 3991#include <$ac_header> 3992_ACEOF 3993rm -f conftest.$ac_objext 3994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3995 (eval $ac_compile) 2>conftest.er1 3996 ac_status=$? 3997 grep -v '^ *+' conftest.er1 >conftest.err 3998 rm -f conftest.er1 3999 cat conftest.err >&5 4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4001 (exit $ac_status); } && 4002 { ac_try='test -z "$ac_c_werror_flag" 4003 || test ! -s conftest.err' 4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4005 (eval $ac_try) 2>&5 4006 ac_status=$? 4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4008 (exit $ac_status); }; } && 4009 { ac_try='test -s conftest.$ac_objext' 4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4011 (eval $ac_try) 2>&5 4012 ac_status=$? 4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4014 (exit $ac_status); }; }; then 4015 ac_header_compiler=yes 4016else 4017 echo "$as_me: failed program was:" >&5 4018sed 's/^/| /' conftest.$ac_ext >&5 4019 4020ac_header_compiler=no 4021fi 4022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4023echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4024echo "${ECHO_T}$ac_header_compiler" >&6 4025 4026# Is the header present? 4027echo "$as_me:$LINENO: checking $ac_header presence" >&5 4028echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4029cat >conftest.$ac_ext <<_ACEOF 4030/* confdefs.h. */ 4031_ACEOF 4032cat confdefs.h >>conftest.$ac_ext 4033cat >>conftest.$ac_ext <<_ACEOF 4034/* end confdefs.h. */ 4035#include <$ac_header> 4036_ACEOF 4037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4039 ac_status=$? 4040 grep -v '^ *+' conftest.er1 >conftest.err 4041 rm -f conftest.er1 4042 cat conftest.err >&5 4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4044 (exit $ac_status); } >/dev/null; then 4045 if test -s conftest.err; then 4046 ac_cpp_err=$ac_c_preproc_warn_flag 4047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4048 else 4049 ac_cpp_err= 4050 fi 4051else 4052 ac_cpp_err=yes 4053fi 4054if test -z "$ac_cpp_err"; then 4055 ac_header_preproc=yes 4056else 4057 echo "$as_me: failed program was:" >&5 4058sed 's/^/| /' conftest.$ac_ext >&5 4059 4060 ac_header_preproc=no 4061fi 4062rm -f conftest.err conftest.$ac_ext 4063echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4064echo "${ECHO_T}$ac_header_preproc" >&6 4065 4066# So? What about this header? 4067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4068 yes:no: ) 4069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4072echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4073 ac_header_preproc=yes 4074 ;; 4075 no:yes:* ) 4076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4077echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4079echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4081echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4083echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4085echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4087echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4088 ( 4089 cat <<\_ASBOX 4090## ---------------------------------------- ## 4091## Report this to lib-bug-people@NetBSD.org ## 4092## ---------------------------------------- ## 4093_ASBOX 4094 ) | 4095 sed "s/^/$as_me: WARNING: /" >&2 4096 ;; 4097esac 4098echo "$as_me:$LINENO: checking for $ac_header" >&5 4099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4100if eval "test \"\${$as_ac_Header+set}\" = set"; then 4101 echo $ECHO_N "(cached) $ECHO_C" >&6 4102else 4103 eval "$as_ac_Header=\$ac_header_preproc" 4104fi 4105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4107 4108fi 4109if test `eval echo '${'$as_ac_Header'}'` = yes; then 4110 cat >>confdefs.h <<_ACEOF 4111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4112_ACEOF 4113 4114else 4115 test -f include/$ac_header || touch include/$ac_header 4116fi 4117 4118done 4119 4120 4121 4122for ac_header in rpc/types.h netconfig.h 4123do 4124as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4125if eval "test \"\${$as_ac_Header+set}\" = set"; then 4126 echo "$as_me:$LINENO: checking for $ac_header" >&5 4127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4128if eval "test \"\${$as_ac_Header+set}\" = set"; then 4129 echo $ECHO_N "(cached) $ECHO_C" >&6 4130fi 4131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4133else 4134 # Is the header compilable? 4135echo "$as_me:$LINENO: checking $ac_header usability" >&5 4136echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4137cat >conftest.$ac_ext <<_ACEOF 4138/* confdefs.h. */ 4139_ACEOF 4140cat confdefs.h >>conftest.$ac_ext 4141cat >>conftest.$ac_ext <<_ACEOF 4142/* end confdefs.h. */ 4143$ac_includes_default 4144#include <$ac_header> 4145_ACEOF 4146rm -f conftest.$ac_objext 4147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4148 (eval $ac_compile) 2>conftest.er1 4149 ac_status=$? 4150 grep -v '^ *+' conftest.er1 >conftest.err 4151 rm -f conftest.er1 4152 cat conftest.err >&5 4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4154 (exit $ac_status); } && 4155 { ac_try='test -z "$ac_c_werror_flag" 4156 || test ! -s conftest.err' 4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4158 (eval $ac_try) 2>&5 4159 ac_status=$? 4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4161 (exit $ac_status); }; } && 4162 { ac_try='test -s conftest.$ac_objext' 4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4164 (eval $ac_try) 2>&5 4165 ac_status=$? 4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4167 (exit $ac_status); }; }; then 4168 ac_header_compiler=yes 4169else 4170 echo "$as_me: failed program was:" >&5 4171sed 's/^/| /' conftest.$ac_ext >&5 4172 4173ac_header_compiler=no 4174fi 4175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4176echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4177echo "${ECHO_T}$ac_header_compiler" >&6 4178 4179# Is the header present? 4180echo "$as_me:$LINENO: checking $ac_header presence" >&5 4181echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4182cat >conftest.$ac_ext <<_ACEOF 4183/* confdefs.h. */ 4184_ACEOF 4185cat confdefs.h >>conftest.$ac_ext 4186cat >>conftest.$ac_ext <<_ACEOF 4187/* end confdefs.h. */ 4188#include <$ac_header> 4189_ACEOF 4190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4192 ac_status=$? 4193 grep -v '^ *+' conftest.er1 >conftest.err 4194 rm -f conftest.er1 4195 cat conftest.err >&5 4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4197 (exit $ac_status); } >/dev/null; then 4198 if test -s conftest.err; then 4199 ac_cpp_err=$ac_c_preproc_warn_flag 4200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4201 else 4202 ac_cpp_err= 4203 fi 4204else 4205 ac_cpp_err=yes 4206fi 4207if test -z "$ac_cpp_err"; then 4208 ac_header_preproc=yes 4209else 4210 echo "$as_me: failed program was:" >&5 4211sed 's/^/| /' conftest.$ac_ext >&5 4212 4213 ac_header_preproc=no 4214fi 4215rm -f conftest.err conftest.$ac_ext 4216echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4217echo "${ECHO_T}$ac_header_preproc" >&6 4218 4219# So? What about this header? 4220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4221 yes:no: ) 4222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4225echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4226 ac_header_preproc=yes 4227 ;; 4228 no:yes:* ) 4229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4230echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4232echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4234echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4236echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4238echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4240echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4241 ( 4242 cat <<\_ASBOX 4243## ---------------------------------------- ## 4244## Report this to lib-bug-people@NetBSD.org ## 4245## ---------------------------------------- ## 4246_ASBOX 4247 ) | 4248 sed "s/^/$as_me: WARNING: /" >&2 4249 ;; 4250esac 4251echo "$as_me:$LINENO: checking for $ac_header" >&5 4252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4253if eval "test \"\${$as_ac_Header+set}\" = set"; then 4254 echo $ECHO_N "(cached) $ECHO_C" >&6 4255else 4256 eval "$as_ac_Header=\$ac_header_preproc" 4257fi 4258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4260 4261fi 4262if test `eval echo '${'$as_ac_Header'}'` = yes; then 4263 cat >>confdefs.h <<_ACEOF 4264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4265_ACEOF 4266 4267else 4268 echo '#include "nbtool_config.h"' >include/$ac_header.new 4269 echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new 4270 if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then 4271 rm -f include/$ac_header.new 4272 else 4273 mv -f include/$ac_header.new include/$ac_header 4274 fi 4275fi 4276 4277done 4278 4279 4280# Typedefs. 4281echo "$as_me:$LINENO: checking for size_t" >&5 4282echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4283if test "${ac_cv_type_size_t+set}" = set; then 4284 echo $ECHO_N "(cached) $ECHO_C" >&6 4285else 4286 cat >conftest.$ac_ext <<_ACEOF 4287/* confdefs.h. */ 4288_ACEOF 4289cat confdefs.h >>conftest.$ac_ext 4290cat >>conftest.$ac_ext <<_ACEOF 4291/* end confdefs.h. */ 4292$ac_includes_default 4293int 4294main () 4295{ 4296if ((size_t *) 0) 4297 return 0; 4298if (sizeof (size_t)) 4299 return 0; 4300 ; 4301 return 0; 4302} 4303_ACEOF 4304rm -f conftest.$ac_objext 4305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4306 (eval $ac_compile) 2>conftest.er1 4307 ac_status=$? 4308 grep -v '^ *+' conftest.er1 >conftest.err 4309 rm -f conftest.er1 4310 cat conftest.err >&5 4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4312 (exit $ac_status); } && 4313 { ac_try='test -z "$ac_c_werror_flag" 4314 || test ! -s conftest.err' 4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4316 (eval $ac_try) 2>&5 4317 ac_status=$? 4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4319 (exit $ac_status); }; } && 4320 { ac_try='test -s conftest.$ac_objext' 4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4322 (eval $ac_try) 2>&5 4323 ac_status=$? 4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4325 (exit $ac_status); }; }; then 4326 ac_cv_type_size_t=yes 4327else 4328 echo "$as_me: failed program was:" >&5 4329sed 's/^/| /' conftest.$ac_ext >&5 4330 4331ac_cv_type_size_t=no 4332fi 4333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4334fi 4335echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 4336echo "${ECHO_T}$ac_cv_type_size_t" >&6 4337if test $ac_cv_type_size_t = yes; then 4338 : 4339else 4340 4341cat >>confdefs.h <<_ACEOF 4342#define size_t unsigned 4343_ACEOF 4344 4345fi 4346 4347echo "$as_me:$LINENO: checking for id_t" >&5 4348echo $ECHO_N "checking for id_t... $ECHO_C" >&6 4349if test "${ac_cv_type_id_t+set}" = set; then 4350 echo $ECHO_N "(cached) $ECHO_C" >&6 4351else 4352 cat >conftest.$ac_ext <<_ACEOF 4353/* confdefs.h. */ 4354_ACEOF 4355cat confdefs.h >>conftest.$ac_ext 4356cat >>conftest.$ac_ext <<_ACEOF 4357/* end confdefs.h. */ 4358$ac_includes_default 4359int 4360main () 4361{ 4362if ((id_t *) 0) 4363 return 0; 4364if (sizeof (id_t)) 4365 return 0; 4366 ; 4367 return 0; 4368} 4369_ACEOF 4370rm -f conftest.$ac_objext 4371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4372 (eval $ac_compile) 2>conftest.er1 4373 ac_status=$? 4374 grep -v '^ *+' conftest.er1 >conftest.err 4375 rm -f conftest.er1 4376 cat conftest.err >&5 4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4378 (exit $ac_status); } && 4379 { ac_try='test -z "$ac_c_werror_flag" 4380 || test ! -s conftest.err' 4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4382 (eval $ac_try) 2>&5 4383 ac_status=$? 4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4385 (exit $ac_status); }; } && 4386 { ac_try='test -s conftest.$ac_objext' 4387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4388 (eval $ac_try) 2>&5 4389 ac_status=$? 4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4391 (exit $ac_status); }; }; then 4392 ac_cv_type_id_t=yes 4393else 4394 echo "$as_me: failed program was:" >&5 4395sed 's/^/| /' conftest.$ac_ext >&5 4396 4397ac_cv_type_id_t=no 4398fi 4399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4400fi 4401echo "$as_me:$LINENO: result: $ac_cv_type_id_t" >&5 4402echo "${ECHO_T}$ac_cv_type_id_t" >&6 4403if test $ac_cv_type_id_t = yes; then 4404 4405cat >>confdefs.h <<_ACEOF 4406#define HAVE_ID_T 1 4407_ACEOF 4408 4409 4410fi 4411echo "$as_me:$LINENO: checking for long long" >&5 4412echo $ECHO_N "checking for long long... $ECHO_C" >&6 4413if test "${ac_cv_type_long_long+set}" = set; then 4414 echo $ECHO_N "(cached) $ECHO_C" >&6 4415else 4416 cat >conftest.$ac_ext <<_ACEOF 4417/* confdefs.h. */ 4418_ACEOF 4419cat confdefs.h >>conftest.$ac_ext 4420cat >>conftest.$ac_ext <<_ACEOF 4421/* end confdefs.h. */ 4422$ac_includes_default 4423int 4424main () 4425{ 4426if ((long long *) 0) 4427 return 0; 4428if (sizeof (long long)) 4429 return 0; 4430 ; 4431 return 0; 4432} 4433_ACEOF 4434rm -f conftest.$ac_objext 4435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4436 (eval $ac_compile) 2>conftest.er1 4437 ac_status=$? 4438 grep -v '^ *+' conftest.er1 >conftest.err 4439 rm -f conftest.er1 4440 cat conftest.err >&5 4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4442 (exit $ac_status); } && 4443 { ac_try='test -z "$ac_c_werror_flag" 4444 || test ! -s conftest.err' 4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4446 (eval $ac_try) 2>&5 4447 ac_status=$? 4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4449 (exit $ac_status); }; } && 4450 { ac_try='test -s conftest.$ac_objext' 4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4452 (eval $ac_try) 2>&5 4453 ac_status=$? 4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4455 (exit $ac_status); }; }; then 4456 ac_cv_type_long_long=yes 4457else 4458 echo "$as_me: failed program was:" >&5 4459sed 's/^/| /' conftest.$ac_ext >&5 4460 4461ac_cv_type_long_long=no 4462fi 4463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4464fi 4465echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 4466echo "${ECHO_T}$ac_cv_type_long_long" >&6 4467if test $ac_cv_type_long_long = yes; then 4468 4469cat >>confdefs.h <<_ACEOF 4470#define HAVE_LONG_LONG 1 4471_ACEOF 4472 4473 4474fi 4475echo "$as_me:$LINENO: checking for u_long" >&5 4476echo $ECHO_N "checking for u_long... $ECHO_C" >&6 4477if test "${ac_cv_type_u_long+set}" = set; then 4478 echo $ECHO_N "(cached) $ECHO_C" >&6 4479else 4480 cat >conftest.$ac_ext <<_ACEOF 4481/* confdefs.h. */ 4482_ACEOF 4483cat confdefs.h >>conftest.$ac_ext 4484cat >>conftest.$ac_ext <<_ACEOF 4485/* end confdefs.h. */ 4486$ac_includes_default 4487int 4488main () 4489{ 4490if ((u_long *) 0) 4491 return 0; 4492if (sizeof (u_long)) 4493 return 0; 4494 ; 4495 return 0; 4496} 4497_ACEOF 4498rm -f conftest.$ac_objext 4499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4500 (eval $ac_compile) 2>conftest.er1 4501 ac_status=$? 4502 grep -v '^ *+' conftest.er1 >conftest.err 4503 rm -f conftest.er1 4504 cat conftest.err >&5 4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4506 (exit $ac_status); } && 4507 { ac_try='test -z "$ac_c_werror_flag" 4508 || test ! -s conftest.err' 4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4510 (eval $ac_try) 2>&5 4511 ac_status=$? 4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4513 (exit $ac_status); }; } && 4514 { ac_try='test -s conftest.$ac_objext' 4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4516 (eval $ac_try) 2>&5 4517 ac_status=$? 4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4519 (exit $ac_status); }; }; then 4520 ac_cv_type_u_long=yes 4521else 4522 echo "$as_me: failed program was:" >&5 4523sed 's/^/| /' conftest.$ac_ext >&5 4524 4525ac_cv_type_u_long=no 4526fi 4527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4528fi 4529echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5 4530echo "${ECHO_T}$ac_cv_type_u_long" >&6 4531if test $ac_cv_type_u_long = yes; then 4532 4533cat >>confdefs.h <<_ACEOF 4534#define HAVE_U_LONG 1 4535_ACEOF 4536 4537 4538fi 4539echo "$as_me:$LINENO: checking for u_char" >&5 4540echo $ECHO_N "checking for u_char... $ECHO_C" >&6 4541if test "${ac_cv_type_u_char+set}" = set; then 4542 echo $ECHO_N "(cached) $ECHO_C" >&6 4543else 4544 cat >conftest.$ac_ext <<_ACEOF 4545/* confdefs.h. */ 4546_ACEOF 4547cat confdefs.h >>conftest.$ac_ext 4548cat >>conftest.$ac_ext <<_ACEOF 4549/* end confdefs.h. */ 4550$ac_includes_default 4551int 4552main () 4553{ 4554if ((u_char *) 0) 4555 return 0; 4556if (sizeof (u_char)) 4557 return 0; 4558 ; 4559 return 0; 4560} 4561_ACEOF 4562rm -f conftest.$ac_objext 4563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4564 (eval $ac_compile) 2>conftest.er1 4565 ac_status=$? 4566 grep -v '^ *+' conftest.er1 >conftest.err 4567 rm -f conftest.er1 4568 cat conftest.err >&5 4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4570 (exit $ac_status); } && 4571 { ac_try='test -z "$ac_c_werror_flag" 4572 || test ! -s conftest.err' 4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4574 (eval $ac_try) 2>&5 4575 ac_status=$? 4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4577 (exit $ac_status); }; } && 4578 { ac_try='test -s conftest.$ac_objext' 4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4580 (eval $ac_try) 2>&5 4581 ac_status=$? 4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4583 (exit $ac_status); }; }; then 4584 ac_cv_type_u_char=yes 4585else 4586 echo "$as_me: failed program was:" >&5 4587sed 's/^/| /' conftest.$ac_ext >&5 4588 4589ac_cv_type_u_char=no 4590fi 4591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4592fi 4593echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5 4594echo "${ECHO_T}$ac_cv_type_u_char" >&6 4595if test $ac_cv_type_u_char = yes; then 4596 4597cat >>confdefs.h <<_ACEOF 4598#define HAVE_U_CHAR 1 4599_ACEOF 4600 4601 4602fi 4603echo "$as_me:$LINENO: checking for u_short" >&5 4604echo $ECHO_N "checking for u_short... $ECHO_C" >&6 4605if test "${ac_cv_type_u_short+set}" = set; then 4606 echo $ECHO_N "(cached) $ECHO_C" >&6 4607else 4608 cat >conftest.$ac_ext <<_ACEOF 4609/* confdefs.h. */ 4610_ACEOF 4611cat confdefs.h >>conftest.$ac_ext 4612cat >>conftest.$ac_ext <<_ACEOF 4613/* end confdefs.h. */ 4614$ac_includes_default 4615int 4616main () 4617{ 4618if ((u_short *) 0) 4619 return 0; 4620if (sizeof (u_short)) 4621 return 0; 4622 ; 4623 return 0; 4624} 4625_ACEOF 4626rm -f conftest.$ac_objext 4627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4628 (eval $ac_compile) 2>conftest.er1 4629 ac_status=$? 4630 grep -v '^ *+' conftest.er1 >conftest.err 4631 rm -f conftest.er1 4632 cat conftest.err >&5 4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4634 (exit $ac_status); } && 4635 { ac_try='test -z "$ac_c_werror_flag" 4636 || test ! -s conftest.err' 4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4638 (eval $ac_try) 2>&5 4639 ac_status=$? 4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4641 (exit $ac_status); }; } && 4642 { ac_try='test -s conftest.$ac_objext' 4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4644 (eval $ac_try) 2>&5 4645 ac_status=$? 4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4647 (exit $ac_status); }; }; then 4648 ac_cv_type_u_short=yes 4649else 4650 echo "$as_me: failed program was:" >&5 4651sed 's/^/| /' conftest.$ac_ext >&5 4652 4653ac_cv_type_u_short=no 4654fi 4655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4656fi 4657echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5 4658echo "${ECHO_T}$ac_cv_type_u_short" >&6 4659if test $ac_cv_type_u_short = yes; then 4660 4661cat >>confdefs.h <<_ACEOF 4662#define HAVE_U_SHORT 1 4663_ACEOF 4664 4665 4666fi 4667echo "$as_me:$LINENO: checking for u_int" >&5 4668echo $ECHO_N "checking for u_int... $ECHO_C" >&6 4669if test "${ac_cv_type_u_int+set}" = set; then 4670 echo $ECHO_N "(cached) $ECHO_C" >&6 4671else 4672 cat >conftest.$ac_ext <<_ACEOF 4673/* confdefs.h. */ 4674_ACEOF 4675cat confdefs.h >>conftest.$ac_ext 4676cat >>conftest.$ac_ext <<_ACEOF 4677/* end confdefs.h. */ 4678$ac_includes_default 4679int 4680main () 4681{ 4682if ((u_int *) 0) 4683 return 0; 4684if (sizeof (u_int)) 4685 return 0; 4686 ; 4687 return 0; 4688} 4689_ACEOF 4690rm -f conftest.$ac_objext 4691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4692 (eval $ac_compile) 2>conftest.er1 4693 ac_status=$? 4694 grep -v '^ *+' conftest.er1 >conftest.err 4695 rm -f conftest.er1 4696 cat conftest.err >&5 4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4698 (exit $ac_status); } && 4699 { ac_try='test -z "$ac_c_werror_flag" 4700 || test ! -s conftest.err' 4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4702 (eval $ac_try) 2>&5 4703 ac_status=$? 4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4705 (exit $ac_status); }; } && 4706 { ac_try='test -s conftest.$ac_objext' 4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4708 (eval $ac_try) 2>&5 4709 ac_status=$? 4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4711 (exit $ac_status); }; }; then 4712 ac_cv_type_u_int=yes 4713else 4714 echo "$as_me: failed program was:" >&5 4715sed 's/^/| /' conftest.$ac_ext >&5 4716 4717ac_cv_type_u_int=no 4718fi 4719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4720fi 4721echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5 4722echo "${ECHO_T}$ac_cv_type_u_int" >&6 4723if test $ac_cv_type_u_int = yes; then 4724 4725cat >>confdefs.h <<_ACEOF 4726#define HAVE_U_INT 1 4727_ACEOF 4728 4729 4730fi 4731echo "$as_me:$LINENO: checking for u_quad_t" >&5 4732echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6 4733if test "${ac_cv_type_u_quad_t+set}" = set; then 4734 echo $ECHO_N "(cached) $ECHO_C" >&6 4735else 4736 cat >conftest.$ac_ext <<_ACEOF 4737/* confdefs.h. */ 4738_ACEOF 4739cat confdefs.h >>conftest.$ac_ext 4740cat >>conftest.$ac_ext <<_ACEOF 4741/* end confdefs.h. */ 4742$ac_includes_default 4743int 4744main () 4745{ 4746if ((u_quad_t *) 0) 4747 return 0; 4748if (sizeof (u_quad_t)) 4749 return 0; 4750 ; 4751 return 0; 4752} 4753_ACEOF 4754rm -f conftest.$ac_objext 4755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4756 (eval $ac_compile) 2>conftest.er1 4757 ac_status=$? 4758 grep -v '^ *+' conftest.er1 >conftest.err 4759 rm -f conftest.er1 4760 cat conftest.err >&5 4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4762 (exit $ac_status); } && 4763 { ac_try='test -z "$ac_c_werror_flag" 4764 || test ! -s conftest.err' 4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4766 (eval $ac_try) 2>&5 4767 ac_status=$? 4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4769 (exit $ac_status); }; } && 4770 { ac_try='test -s conftest.$ac_objext' 4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4772 (eval $ac_try) 2>&5 4773 ac_status=$? 4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4775 (exit $ac_status); }; }; then 4776 ac_cv_type_u_quad_t=yes 4777else 4778 echo "$as_me: failed program was:" >&5 4779sed 's/^/| /' conftest.$ac_ext >&5 4780 4781ac_cv_type_u_quad_t=no 4782fi 4783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4784fi 4785echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5 4786echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6 4787if test $ac_cv_type_u_quad_t = yes; then 4788 4789cat >>confdefs.h <<_ACEOF 4790#define HAVE_U_QUAD_T 1 4791_ACEOF 4792 4793 4794fi 4795 4796echo "$as_me:$LINENO: checking for socklen_t" >&5 4797echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 4798if test "${ac_cv_type_socklen_t+set}" = set; then 4799 echo $ECHO_N "(cached) $ECHO_C" >&6 4800else 4801 cat >conftest.$ac_ext <<_ACEOF 4802/* confdefs.h. */ 4803_ACEOF 4804cat confdefs.h >>conftest.$ac_ext 4805cat >>conftest.$ac_ext <<_ACEOF 4806/* end confdefs.h. */ 4807#include <sys/types.h> 4808#include <sys/socket.h> 4809 4810int 4811main () 4812{ 4813if ((socklen_t *) 0) 4814 return 0; 4815if (sizeof (socklen_t)) 4816 return 0; 4817 ; 4818 return 0; 4819} 4820_ACEOF 4821rm -f conftest.$ac_objext 4822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4823 (eval $ac_compile) 2>conftest.er1 4824 ac_status=$? 4825 grep -v '^ *+' conftest.er1 >conftest.err 4826 rm -f conftest.er1 4827 cat conftest.err >&5 4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4829 (exit $ac_status); } && 4830 { ac_try='test -z "$ac_c_werror_flag" 4831 || test ! -s conftest.err' 4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4833 (eval $ac_try) 2>&5 4834 ac_status=$? 4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4836 (exit $ac_status); }; } && 4837 { ac_try='test -s conftest.$ac_objext' 4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4839 (eval $ac_try) 2>&5 4840 ac_status=$? 4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4842 (exit $ac_status); }; }; then 4843 ac_cv_type_socklen_t=yes 4844else 4845 echo "$as_me: failed program was:" >&5 4846sed 's/^/| /' conftest.$ac_ext >&5 4847 4848ac_cv_type_socklen_t=no 4849fi 4850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4851fi 4852echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 4853echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 4854if test $ac_cv_type_socklen_t = yes; then 4855 4856cat >>confdefs.h <<\_ACEOF 4857#define HAVE_SOCKLEN_T 1 4858_ACEOF 4859 4860fi 4861 4862 4863 4864 4865 4866 echo "$as_me:$LINENO: checking for uint8_t" >&5 4867echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 4868if test "${ac_cv_type_uint8_t+set}" = set; then 4869 echo $ECHO_N "(cached) $ECHO_C" >&6 4870else 4871 cat >conftest.$ac_ext <<_ACEOF 4872/* confdefs.h. */ 4873_ACEOF 4874cat confdefs.h >>conftest.$ac_ext 4875cat >>conftest.$ac_ext <<_ACEOF 4876/* end confdefs.h. */ 4877$ac_includes_default 4878int 4879main () 4880{ 4881if ((uint8_t *) 0) 4882 return 0; 4883if (sizeof (uint8_t)) 4884 return 0; 4885 ; 4886 return 0; 4887} 4888_ACEOF 4889rm -f conftest.$ac_objext 4890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4891 (eval $ac_compile) 2>conftest.er1 4892 ac_status=$? 4893 grep -v '^ *+' conftest.er1 >conftest.err 4894 rm -f conftest.er1 4895 cat conftest.err >&5 4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4897 (exit $ac_status); } && 4898 { ac_try='test -z "$ac_c_werror_flag" 4899 || test ! -s conftest.err' 4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4901 (eval $ac_try) 2>&5 4902 ac_status=$? 4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4904 (exit $ac_status); }; } && 4905 { ac_try='test -s conftest.$ac_objext' 4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4907 (eval $ac_try) 2>&5 4908 ac_status=$? 4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4910 (exit $ac_status); }; }; then 4911 ac_cv_type_uint8_t=yes 4912else 4913 echo "$as_me: failed program was:" >&5 4914sed 's/^/| /' conftest.$ac_ext >&5 4915 4916ac_cv_type_uint8_t=no 4917fi 4918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4919fi 4920echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 4921echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 4922if test $ac_cv_type_uint8_t = yes; then 4923 : 4924else 4925 4926 echo "$as_me:$LINENO: checking for u_int8_t" >&5 4927echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6 4928if test "${ac_cv_type_u_int8_t+set}" = set; then 4929 echo $ECHO_N "(cached) $ECHO_C" >&6 4930else 4931 cat >conftest.$ac_ext <<_ACEOF 4932/* confdefs.h. */ 4933_ACEOF 4934cat confdefs.h >>conftest.$ac_ext 4935cat >>conftest.$ac_ext <<_ACEOF 4936/* end confdefs.h. */ 4937$ac_includes_default 4938int 4939main () 4940{ 4941if ((u_int8_t *) 0) 4942 return 0; 4943if (sizeof (u_int8_t)) 4944 return 0; 4945 ; 4946 return 0; 4947} 4948_ACEOF 4949rm -f conftest.$ac_objext 4950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4951 (eval $ac_compile) 2>conftest.er1 4952 ac_status=$? 4953 grep -v '^ *+' conftest.er1 >conftest.err 4954 rm -f conftest.er1 4955 cat conftest.err >&5 4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4957 (exit $ac_status); } && 4958 { ac_try='test -z "$ac_c_werror_flag" 4959 || test ! -s conftest.err' 4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4961 (eval $ac_try) 2>&5 4962 ac_status=$? 4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4964 (exit $ac_status); }; } && 4965 { ac_try='test -s conftest.$ac_objext' 4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4967 (eval $ac_try) 2>&5 4968 ac_status=$? 4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4970 (exit $ac_status); }; }; then 4971 ac_cv_type_u_int8_t=yes 4972else 4973 echo "$as_me: failed program was:" >&5 4974sed 's/^/| /' conftest.$ac_ext >&5 4975 4976ac_cv_type_u_int8_t=no 4977fi 4978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4979fi 4980echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 4981echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6 4982if test $ac_cv_type_u_int8_t = yes; then 4983 4984cat >>confdefs.h <<\_ACEOF 4985#define uint8_t u_int8_t 4986_ACEOF 4987 4988else 4989 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint8_t" >&5 4990echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;} 4991 { (exit 1); exit 1; }; } 4992fi 4993 4994 4995fi 4996 4997 echo "$as_me:$LINENO: checking for u_int8_t" >&5 4998echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6 4999if test "${ac_cv_type_u_int8_t+set}" = set; then 5000 echo $ECHO_N "(cached) $ECHO_C" >&6 5001else 5002 cat >conftest.$ac_ext <<_ACEOF 5003/* confdefs.h. */ 5004_ACEOF 5005cat confdefs.h >>conftest.$ac_ext 5006cat >>conftest.$ac_ext <<_ACEOF 5007/* end confdefs.h. */ 5008$ac_includes_default 5009int 5010main () 5011{ 5012if ((u_int8_t *) 0) 5013 return 0; 5014if (sizeof (u_int8_t)) 5015 return 0; 5016 ; 5017 return 0; 5018} 5019_ACEOF 5020rm -f conftest.$ac_objext 5021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5022 (eval $ac_compile) 2>conftest.er1 5023 ac_status=$? 5024 grep -v '^ *+' conftest.er1 >conftest.err 5025 rm -f conftest.er1 5026 cat conftest.err >&5 5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5028 (exit $ac_status); } && 5029 { ac_try='test -z "$ac_c_werror_flag" 5030 || test ! -s conftest.err' 5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5032 (eval $ac_try) 2>&5 5033 ac_status=$? 5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5035 (exit $ac_status); }; } && 5036 { ac_try='test -s conftest.$ac_objext' 5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5038 (eval $ac_try) 2>&5 5039 ac_status=$? 5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5041 (exit $ac_status); }; }; then 5042 ac_cv_type_u_int8_t=yes 5043else 5044 echo "$as_me: failed program was:" >&5 5045sed 's/^/| /' conftest.$ac_ext >&5 5046 5047ac_cv_type_u_int8_t=no 5048fi 5049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5050fi 5051echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 5052echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6 5053if test $ac_cv_type_u_int8_t = yes; then 5054 : 5055else 5056 5057 echo "$as_me:$LINENO: checking for uint8_t" >&5 5058echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 5059if test "${ac_cv_type_uint8_t+set}" = set; then 5060 echo $ECHO_N "(cached) $ECHO_C" >&6 5061else 5062 cat >conftest.$ac_ext <<_ACEOF 5063/* confdefs.h. */ 5064_ACEOF 5065cat confdefs.h >>conftest.$ac_ext 5066cat >>conftest.$ac_ext <<_ACEOF 5067/* end confdefs.h. */ 5068$ac_includes_default 5069int 5070main () 5071{ 5072if ((uint8_t *) 0) 5073 return 0; 5074if (sizeof (uint8_t)) 5075 return 0; 5076 ; 5077 return 0; 5078} 5079_ACEOF 5080rm -f conftest.$ac_objext 5081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5082 (eval $ac_compile) 2>conftest.er1 5083 ac_status=$? 5084 grep -v '^ *+' conftest.er1 >conftest.err 5085 rm -f conftest.er1 5086 cat conftest.err >&5 5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5088 (exit $ac_status); } && 5089 { ac_try='test -z "$ac_c_werror_flag" 5090 || test ! -s conftest.err' 5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5092 (eval $ac_try) 2>&5 5093 ac_status=$? 5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5095 (exit $ac_status); }; } && 5096 { ac_try='test -s conftest.$ac_objext' 5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5098 (eval $ac_try) 2>&5 5099 ac_status=$? 5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5101 (exit $ac_status); }; }; then 5102 ac_cv_type_uint8_t=yes 5103else 5104 echo "$as_me: failed program was:" >&5 5105sed 's/^/| /' conftest.$ac_ext >&5 5106 5107ac_cv_type_uint8_t=no 5108fi 5109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5110fi 5111echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 5112echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 5113if test $ac_cv_type_uint8_t = yes; then 5114 5115cat >>confdefs.h <<\_ACEOF 5116#define u_int8_t uint8_t 5117_ACEOF 5118 5119else 5120 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int8_t" >&5 5121echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;} 5122 { (exit 1); exit 1; }; } 5123fi 5124 5125 5126fi 5127 5128 5129 5130 echo "$as_me:$LINENO: checking for uint16_t" >&5 5131echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 5132if test "${ac_cv_type_uint16_t+set}" = set; then 5133 echo $ECHO_N "(cached) $ECHO_C" >&6 5134else 5135 cat >conftest.$ac_ext <<_ACEOF 5136/* confdefs.h. */ 5137_ACEOF 5138cat confdefs.h >>conftest.$ac_ext 5139cat >>conftest.$ac_ext <<_ACEOF 5140/* end confdefs.h. */ 5141$ac_includes_default 5142int 5143main () 5144{ 5145if ((uint16_t *) 0) 5146 return 0; 5147if (sizeof (uint16_t)) 5148 return 0; 5149 ; 5150 return 0; 5151} 5152_ACEOF 5153rm -f conftest.$ac_objext 5154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5155 (eval $ac_compile) 2>conftest.er1 5156 ac_status=$? 5157 grep -v '^ *+' conftest.er1 >conftest.err 5158 rm -f conftest.er1 5159 cat conftest.err >&5 5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5161 (exit $ac_status); } && 5162 { ac_try='test -z "$ac_c_werror_flag" 5163 || test ! -s conftest.err' 5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5165 (eval $ac_try) 2>&5 5166 ac_status=$? 5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5168 (exit $ac_status); }; } && 5169 { ac_try='test -s conftest.$ac_objext' 5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5171 (eval $ac_try) 2>&5 5172 ac_status=$? 5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5174 (exit $ac_status); }; }; then 5175 ac_cv_type_uint16_t=yes 5176else 5177 echo "$as_me: failed program was:" >&5 5178sed 's/^/| /' conftest.$ac_ext >&5 5179 5180ac_cv_type_uint16_t=no 5181fi 5182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5183fi 5184echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 5185echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 5186if test $ac_cv_type_uint16_t = yes; then 5187 : 5188else 5189 5190 echo "$as_me:$LINENO: checking for u_int16_t" >&5 5191echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 5192if test "${ac_cv_type_u_int16_t+set}" = set; then 5193 echo $ECHO_N "(cached) $ECHO_C" >&6 5194else 5195 cat >conftest.$ac_ext <<_ACEOF 5196/* confdefs.h. */ 5197_ACEOF 5198cat confdefs.h >>conftest.$ac_ext 5199cat >>conftest.$ac_ext <<_ACEOF 5200/* end confdefs.h. */ 5201$ac_includes_default 5202int 5203main () 5204{ 5205if ((u_int16_t *) 0) 5206 return 0; 5207if (sizeof (u_int16_t)) 5208 return 0; 5209 ; 5210 return 0; 5211} 5212_ACEOF 5213rm -f conftest.$ac_objext 5214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5215 (eval $ac_compile) 2>conftest.er1 5216 ac_status=$? 5217 grep -v '^ *+' conftest.er1 >conftest.err 5218 rm -f conftest.er1 5219 cat conftest.err >&5 5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5221 (exit $ac_status); } && 5222 { ac_try='test -z "$ac_c_werror_flag" 5223 || test ! -s conftest.err' 5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5225 (eval $ac_try) 2>&5 5226 ac_status=$? 5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5228 (exit $ac_status); }; } && 5229 { ac_try='test -s conftest.$ac_objext' 5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5231 (eval $ac_try) 2>&5 5232 ac_status=$? 5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5234 (exit $ac_status); }; }; then 5235 ac_cv_type_u_int16_t=yes 5236else 5237 echo "$as_me: failed program was:" >&5 5238sed 's/^/| /' conftest.$ac_ext >&5 5239 5240ac_cv_type_u_int16_t=no 5241fi 5242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5243fi 5244echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 5245echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 5246if test $ac_cv_type_u_int16_t = yes; then 5247 5248cat >>confdefs.h <<\_ACEOF 5249#define uint16_t u_int16_t 5250_ACEOF 5251 5252else 5253 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint16_t" >&5 5254echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;} 5255 { (exit 1); exit 1; }; } 5256fi 5257 5258 5259fi 5260 5261 echo "$as_me:$LINENO: checking for u_int16_t" >&5 5262echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 5263if test "${ac_cv_type_u_int16_t+set}" = set; then 5264 echo $ECHO_N "(cached) $ECHO_C" >&6 5265else 5266 cat >conftest.$ac_ext <<_ACEOF 5267/* confdefs.h. */ 5268_ACEOF 5269cat confdefs.h >>conftest.$ac_ext 5270cat >>conftest.$ac_ext <<_ACEOF 5271/* end confdefs.h. */ 5272$ac_includes_default 5273int 5274main () 5275{ 5276if ((u_int16_t *) 0) 5277 return 0; 5278if (sizeof (u_int16_t)) 5279 return 0; 5280 ; 5281 return 0; 5282} 5283_ACEOF 5284rm -f conftest.$ac_objext 5285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5286 (eval $ac_compile) 2>conftest.er1 5287 ac_status=$? 5288 grep -v '^ *+' conftest.er1 >conftest.err 5289 rm -f conftest.er1 5290 cat conftest.err >&5 5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5292 (exit $ac_status); } && 5293 { ac_try='test -z "$ac_c_werror_flag" 5294 || test ! -s conftest.err' 5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5296 (eval $ac_try) 2>&5 5297 ac_status=$? 5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5299 (exit $ac_status); }; } && 5300 { ac_try='test -s conftest.$ac_objext' 5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5302 (eval $ac_try) 2>&5 5303 ac_status=$? 5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5305 (exit $ac_status); }; }; then 5306 ac_cv_type_u_int16_t=yes 5307else 5308 echo "$as_me: failed program was:" >&5 5309sed 's/^/| /' conftest.$ac_ext >&5 5310 5311ac_cv_type_u_int16_t=no 5312fi 5313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5314fi 5315echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 5316echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 5317if test $ac_cv_type_u_int16_t = yes; then 5318 : 5319else 5320 5321 echo "$as_me:$LINENO: checking for uint16_t" >&5 5322echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 5323if test "${ac_cv_type_uint16_t+set}" = set; then 5324 echo $ECHO_N "(cached) $ECHO_C" >&6 5325else 5326 cat >conftest.$ac_ext <<_ACEOF 5327/* confdefs.h. */ 5328_ACEOF 5329cat confdefs.h >>conftest.$ac_ext 5330cat >>conftest.$ac_ext <<_ACEOF 5331/* end confdefs.h. */ 5332$ac_includes_default 5333int 5334main () 5335{ 5336if ((uint16_t *) 0) 5337 return 0; 5338if (sizeof (uint16_t)) 5339 return 0; 5340 ; 5341 return 0; 5342} 5343_ACEOF 5344rm -f conftest.$ac_objext 5345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5346 (eval $ac_compile) 2>conftest.er1 5347 ac_status=$? 5348 grep -v '^ *+' conftest.er1 >conftest.err 5349 rm -f conftest.er1 5350 cat conftest.err >&5 5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5352 (exit $ac_status); } && 5353 { ac_try='test -z "$ac_c_werror_flag" 5354 || test ! -s conftest.err' 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); }; } && 5360 { ac_try='test -s conftest.$ac_objext' 5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5362 (eval $ac_try) 2>&5 5363 ac_status=$? 5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5365 (exit $ac_status); }; }; then 5366 ac_cv_type_uint16_t=yes 5367else 5368 echo "$as_me: failed program was:" >&5 5369sed 's/^/| /' conftest.$ac_ext >&5 5370 5371ac_cv_type_uint16_t=no 5372fi 5373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5374fi 5375echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 5376echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 5377if test $ac_cv_type_uint16_t = yes; then 5378 5379cat >>confdefs.h <<\_ACEOF 5380#define u_int16_t uint16_t 5381_ACEOF 5382 5383else 5384 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int16_t" >&5 5385echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;} 5386 { (exit 1); exit 1; }; } 5387fi 5388 5389 5390fi 5391 5392 5393 5394 echo "$as_me:$LINENO: checking for uint32_t" >&5 5395echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 5396if test "${ac_cv_type_uint32_t+set}" = set; then 5397 echo $ECHO_N "(cached) $ECHO_C" >&6 5398else 5399 cat >conftest.$ac_ext <<_ACEOF 5400/* confdefs.h. */ 5401_ACEOF 5402cat confdefs.h >>conftest.$ac_ext 5403cat >>conftest.$ac_ext <<_ACEOF 5404/* end confdefs.h. */ 5405$ac_includes_default 5406int 5407main () 5408{ 5409if ((uint32_t *) 0) 5410 return 0; 5411if (sizeof (uint32_t)) 5412 return 0; 5413 ; 5414 return 0; 5415} 5416_ACEOF 5417rm -f conftest.$ac_objext 5418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5419 (eval $ac_compile) 2>conftest.er1 5420 ac_status=$? 5421 grep -v '^ *+' conftest.er1 >conftest.err 5422 rm -f conftest.er1 5423 cat conftest.err >&5 5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5425 (exit $ac_status); } && 5426 { ac_try='test -z "$ac_c_werror_flag" 5427 || test ! -s conftest.err' 5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5429 (eval $ac_try) 2>&5 5430 ac_status=$? 5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5432 (exit $ac_status); }; } && 5433 { ac_try='test -s conftest.$ac_objext' 5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5435 (eval $ac_try) 2>&5 5436 ac_status=$? 5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5438 (exit $ac_status); }; }; then 5439 ac_cv_type_uint32_t=yes 5440else 5441 echo "$as_me: failed program was:" >&5 5442sed 's/^/| /' conftest.$ac_ext >&5 5443 5444ac_cv_type_uint32_t=no 5445fi 5446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5447fi 5448echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 5449echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 5450if test $ac_cv_type_uint32_t = yes; then 5451 : 5452else 5453 5454 echo "$as_me:$LINENO: checking for u_int32_t" >&5 5455echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 5456if test "${ac_cv_type_u_int32_t+set}" = set; then 5457 echo $ECHO_N "(cached) $ECHO_C" >&6 5458else 5459 cat >conftest.$ac_ext <<_ACEOF 5460/* confdefs.h. */ 5461_ACEOF 5462cat confdefs.h >>conftest.$ac_ext 5463cat >>conftest.$ac_ext <<_ACEOF 5464/* end confdefs.h. */ 5465$ac_includes_default 5466int 5467main () 5468{ 5469if ((u_int32_t *) 0) 5470 return 0; 5471if (sizeof (u_int32_t)) 5472 return 0; 5473 ; 5474 return 0; 5475} 5476_ACEOF 5477rm -f conftest.$ac_objext 5478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5479 (eval $ac_compile) 2>conftest.er1 5480 ac_status=$? 5481 grep -v '^ *+' conftest.er1 >conftest.err 5482 rm -f conftest.er1 5483 cat conftest.err >&5 5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5485 (exit $ac_status); } && 5486 { ac_try='test -z "$ac_c_werror_flag" 5487 || test ! -s conftest.err' 5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5489 (eval $ac_try) 2>&5 5490 ac_status=$? 5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5492 (exit $ac_status); }; } && 5493 { ac_try='test -s conftest.$ac_objext' 5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5495 (eval $ac_try) 2>&5 5496 ac_status=$? 5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5498 (exit $ac_status); }; }; then 5499 ac_cv_type_u_int32_t=yes 5500else 5501 echo "$as_me: failed program was:" >&5 5502sed 's/^/| /' conftest.$ac_ext >&5 5503 5504ac_cv_type_u_int32_t=no 5505fi 5506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5507fi 5508echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 5509echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 5510if test $ac_cv_type_u_int32_t = yes; then 5511 5512cat >>confdefs.h <<\_ACEOF 5513#define uint32_t u_int32_t 5514_ACEOF 5515 5516else 5517 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint32_t" >&5 5518echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;} 5519 { (exit 1); exit 1; }; } 5520fi 5521 5522 5523fi 5524 5525 echo "$as_me:$LINENO: checking for u_int32_t" >&5 5526echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 5527if test "${ac_cv_type_u_int32_t+set}" = set; then 5528 echo $ECHO_N "(cached) $ECHO_C" >&6 5529else 5530 cat >conftest.$ac_ext <<_ACEOF 5531/* confdefs.h. */ 5532_ACEOF 5533cat confdefs.h >>conftest.$ac_ext 5534cat >>conftest.$ac_ext <<_ACEOF 5535/* end confdefs.h. */ 5536$ac_includes_default 5537int 5538main () 5539{ 5540if ((u_int32_t *) 0) 5541 return 0; 5542if (sizeof (u_int32_t)) 5543 return 0; 5544 ; 5545 return 0; 5546} 5547_ACEOF 5548rm -f conftest.$ac_objext 5549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5550 (eval $ac_compile) 2>conftest.er1 5551 ac_status=$? 5552 grep -v '^ *+' conftest.er1 >conftest.err 5553 rm -f conftest.er1 5554 cat conftest.err >&5 5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5556 (exit $ac_status); } && 5557 { ac_try='test -z "$ac_c_werror_flag" 5558 || test ! -s conftest.err' 5559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5560 (eval $ac_try) 2>&5 5561 ac_status=$? 5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5563 (exit $ac_status); }; } && 5564 { ac_try='test -s conftest.$ac_objext' 5565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5566 (eval $ac_try) 2>&5 5567 ac_status=$? 5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5569 (exit $ac_status); }; }; then 5570 ac_cv_type_u_int32_t=yes 5571else 5572 echo "$as_me: failed program was:" >&5 5573sed 's/^/| /' conftest.$ac_ext >&5 5574 5575ac_cv_type_u_int32_t=no 5576fi 5577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5578fi 5579echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 5580echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 5581if test $ac_cv_type_u_int32_t = yes; then 5582 : 5583else 5584 5585 echo "$as_me:$LINENO: checking for uint32_t" >&5 5586echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 5587if test "${ac_cv_type_uint32_t+set}" = set; then 5588 echo $ECHO_N "(cached) $ECHO_C" >&6 5589else 5590 cat >conftest.$ac_ext <<_ACEOF 5591/* confdefs.h. */ 5592_ACEOF 5593cat confdefs.h >>conftest.$ac_ext 5594cat >>conftest.$ac_ext <<_ACEOF 5595/* end confdefs.h. */ 5596$ac_includes_default 5597int 5598main () 5599{ 5600if ((uint32_t *) 0) 5601 return 0; 5602if (sizeof (uint32_t)) 5603 return 0; 5604 ; 5605 return 0; 5606} 5607_ACEOF 5608rm -f conftest.$ac_objext 5609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5610 (eval $ac_compile) 2>conftest.er1 5611 ac_status=$? 5612 grep -v '^ *+' conftest.er1 >conftest.err 5613 rm -f conftest.er1 5614 cat conftest.err >&5 5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5616 (exit $ac_status); } && 5617 { ac_try='test -z "$ac_c_werror_flag" 5618 || test ! -s conftest.err' 5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5620 (eval $ac_try) 2>&5 5621 ac_status=$? 5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5623 (exit $ac_status); }; } && 5624 { ac_try='test -s conftest.$ac_objext' 5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5626 (eval $ac_try) 2>&5 5627 ac_status=$? 5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5629 (exit $ac_status); }; }; then 5630 ac_cv_type_uint32_t=yes 5631else 5632 echo "$as_me: failed program was:" >&5 5633sed 's/^/| /' conftest.$ac_ext >&5 5634 5635ac_cv_type_uint32_t=no 5636fi 5637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5638fi 5639echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 5640echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 5641if test $ac_cv_type_uint32_t = yes; then 5642 5643cat >>confdefs.h <<\_ACEOF 5644#define u_int32_t uint32_t 5645_ACEOF 5646 5647else 5648 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int32_t" >&5 5649echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;} 5650 { (exit 1); exit 1; }; } 5651fi 5652 5653 5654fi 5655 5656 5657 5658 echo "$as_me:$LINENO: checking for uint64_t" >&5 5659echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 5660if test "${ac_cv_type_uint64_t+set}" = set; then 5661 echo $ECHO_N "(cached) $ECHO_C" >&6 5662else 5663 cat >conftest.$ac_ext <<_ACEOF 5664/* confdefs.h. */ 5665_ACEOF 5666cat confdefs.h >>conftest.$ac_ext 5667cat >>conftest.$ac_ext <<_ACEOF 5668/* end confdefs.h. */ 5669$ac_includes_default 5670int 5671main () 5672{ 5673if ((uint64_t *) 0) 5674 return 0; 5675if (sizeof (uint64_t)) 5676 return 0; 5677 ; 5678 return 0; 5679} 5680_ACEOF 5681rm -f conftest.$ac_objext 5682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5683 (eval $ac_compile) 2>conftest.er1 5684 ac_status=$? 5685 grep -v '^ *+' conftest.er1 >conftest.err 5686 rm -f conftest.er1 5687 cat conftest.err >&5 5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5689 (exit $ac_status); } && 5690 { ac_try='test -z "$ac_c_werror_flag" 5691 || test ! -s conftest.err' 5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5693 (eval $ac_try) 2>&5 5694 ac_status=$? 5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5696 (exit $ac_status); }; } && 5697 { ac_try='test -s conftest.$ac_objext' 5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5699 (eval $ac_try) 2>&5 5700 ac_status=$? 5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5702 (exit $ac_status); }; }; then 5703 ac_cv_type_uint64_t=yes 5704else 5705 echo "$as_me: failed program was:" >&5 5706sed 's/^/| /' conftest.$ac_ext >&5 5707 5708ac_cv_type_uint64_t=no 5709fi 5710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5711fi 5712echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 5713echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 5714if test $ac_cv_type_uint64_t = yes; then 5715 : 5716else 5717 5718 echo "$as_me:$LINENO: checking for u_int64_t" >&5 5719echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 5720if test "${ac_cv_type_u_int64_t+set}" = set; then 5721 echo $ECHO_N "(cached) $ECHO_C" >&6 5722else 5723 cat >conftest.$ac_ext <<_ACEOF 5724/* confdefs.h. */ 5725_ACEOF 5726cat confdefs.h >>conftest.$ac_ext 5727cat >>conftest.$ac_ext <<_ACEOF 5728/* end confdefs.h. */ 5729$ac_includes_default 5730int 5731main () 5732{ 5733if ((u_int64_t *) 0) 5734 return 0; 5735if (sizeof (u_int64_t)) 5736 return 0; 5737 ; 5738 return 0; 5739} 5740_ACEOF 5741rm -f conftest.$ac_objext 5742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5743 (eval $ac_compile) 2>conftest.er1 5744 ac_status=$? 5745 grep -v '^ *+' conftest.er1 >conftest.err 5746 rm -f conftest.er1 5747 cat conftest.err >&5 5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5749 (exit $ac_status); } && 5750 { ac_try='test -z "$ac_c_werror_flag" 5751 || test ! -s conftest.err' 5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5753 (eval $ac_try) 2>&5 5754 ac_status=$? 5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5756 (exit $ac_status); }; } && 5757 { ac_try='test -s conftest.$ac_objext' 5758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5759 (eval $ac_try) 2>&5 5760 ac_status=$? 5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5762 (exit $ac_status); }; }; then 5763 ac_cv_type_u_int64_t=yes 5764else 5765 echo "$as_me: failed program was:" >&5 5766sed 's/^/| /' conftest.$ac_ext >&5 5767 5768ac_cv_type_u_int64_t=no 5769fi 5770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5771fi 5772echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 5773echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 5774if test $ac_cv_type_u_int64_t = yes; then 5775 5776cat >>confdefs.h <<\_ACEOF 5777#define uint64_t u_int64_t 5778_ACEOF 5779 5780else 5781 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint64_t" >&5 5782echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;} 5783 { (exit 1); exit 1; }; } 5784fi 5785 5786 5787fi 5788 5789 echo "$as_me:$LINENO: checking for u_int64_t" >&5 5790echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 5791if test "${ac_cv_type_u_int64_t+set}" = set; then 5792 echo $ECHO_N "(cached) $ECHO_C" >&6 5793else 5794 cat >conftest.$ac_ext <<_ACEOF 5795/* confdefs.h. */ 5796_ACEOF 5797cat confdefs.h >>conftest.$ac_ext 5798cat >>conftest.$ac_ext <<_ACEOF 5799/* end confdefs.h. */ 5800$ac_includes_default 5801int 5802main () 5803{ 5804if ((u_int64_t *) 0) 5805 return 0; 5806if (sizeof (u_int64_t)) 5807 return 0; 5808 ; 5809 return 0; 5810} 5811_ACEOF 5812rm -f conftest.$ac_objext 5813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5814 (eval $ac_compile) 2>conftest.er1 5815 ac_status=$? 5816 grep -v '^ *+' conftest.er1 >conftest.err 5817 rm -f conftest.er1 5818 cat conftest.err >&5 5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5820 (exit $ac_status); } && 5821 { ac_try='test -z "$ac_c_werror_flag" 5822 || test ! -s conftest.err' 5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5824 (eval $ac_try) 2>&5 5825 ac_status=$? 5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5827 (exit $ac_status); }; } && 5828 { ac_try='test -s conftest.$ac_objext' 5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5830 (eval $ac_try) 2>&5 5831 ac_status=$? 5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5833 (exit $ac_status); }; }; then 5834 ac_cv_type_u_int64_t=yes 5835else 5836 echo "$as_me: failed program was:" >&5 5837sed 's/^/| /' conftest.$ac_ext >&5 5838 5839ac_cv_type_u_int64_t=no 5840fi 5841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5842fi 5843echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 5844echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 5845if test $ac_cv_type_u_int64_t = yes; then 5846 : 5847else 5848 5849 echo "$as_me:$LINENO: checking for uint64_t" >&5 5850echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 5851if test "${ac_cv_type_uint64_t+set}" = set; then 5852 echo $ECHO_N "(cached) $ECHO_C" >&6 5853else 5854 cat >conftest.$ac_ext <<_ACEOF 5855/* confdefs.h. */ 5856_ACEOF 5857cat confdefs.h >>conftest.$ac_ext 5858cat >>conftest.$ac_ext <<_ACEOF 5859/* end confdefs.h. */ 5860$ac_includes_default 5861int 5862main () 5863{ 5864if ((uint64_t *) 0) 5865 return 0; 5866if (sizeof (uint64_t)) 5867 return 0; 5868 ; 5869 return 0; 5870} 5871_ACEOF 5872rm -f conftest.$ac_objext 5873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5874 (eval $ac_compile) 2>conftest.er1 5875 ac_status=$? 5876 grep -v '^ *+' conftest.er1 >conftest.err 5877 rm -f conftest.er1 5878 cat conftest.err >&5 5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5880 (exit $ac_status); } && 5881 { ac_try='test -z "$ac_c_werror_flag" 5882 || test ! -s conftest.err' 5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5884 (eval $ac_try) 2>&5 5885 ac_status=$? 5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5887 (exit $ac_status); }; } && 5888 { ac_try='test -s conftest.$ac_objext' 5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5890 (eval $ac_try) 2>&5 5891 ac_status=$? 5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5893 (exit $ac_status); }; }; then 5894 ac_cv_type_uint64_t=yes 5895else 5896 echo "$as_me: failed program was:" >&5 5897sed 's/^/| /' conftest.$ac_ext >&5 5898 5899ac_cv_type_uint64_t=no 5900fi 5901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5902fi 5903echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 5904echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 5905if test $ac_cv_type_uint64_t = yes; then 5906 5907cat >>confdefs.h <<\_ACEOF 5908#define u_int64_t uint64_t 5909_ACEOF 5910 5911else 5912 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int64_t" >&5 5913echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;} 5914 { (exit 1); exit 1; }; } 5915fi 5916 5917 5918fi 5919 5920 5921 5922# Struct members. 5923echo "$as_me:$LINENO: checking for DIR.dd_fd" >&5 5924echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6 5925if test "${ac_cv_member_DIR_dd_fd+set}" = set; then 5926 echo $ECHO_N "(cached) $ECHO_C" >&6 5927else 5928 cat >conftest.$ac_ext <<_ACEOF 5929/* confdefs.h. */ 5930_ACEOF 5931cat confdefs.h >>conftest.$ac_ext 5932cat >>conftest.$ac_ext <<_ACEOF 5933/* end confdefs.h. */ 5934#include <sys/types.h> 5935#include <dirent.h> 5936 5937int 5938main () 5939{ 5940static DIR ac_aggr; 5941if (ac_aggr.dd_fd) 5942return 0; 5943 ; 5944 return 0; 5945} 5946_ACEOF 5947rm -f conftest.$ac_objext 5948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5949 (eval $ac_compile) 2>conftest.er1 5950 ac_status=$? 5951 grep -v '^ *+' conftest.er1 >conftest.err 5952 rm -f conftest.er1 5953 cat conftest.err >&5 5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5955 (exit $ac_status); } && 5956 { ac_try='test -z "$ac_c_werror_flag" 5957 || test ! -s conftest.err' 5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5959 (eval $ac_try) 2>&5 5960 ac_status=$? 5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5962 (exit $ac_status); }; } && 5963 { ac_try='test -s conftest.$ac_objext' 5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5965 (eval $ac_try) 2>&5 5966 ac_status=$? 5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5968 (exit $ac_status); }; }; then 5969 ac_cv_member_DIR_dd_fd=yes 5970else 5971 echo "$as_me: failed program was:" >&5 5972sed 's/^/| /' conftest.$ac_ext >&5 5973 5974cat >conftest.$ac_ext <<_ACEOF 5975/* confdefs.h. */ 5976_ACEOF 5977cat confdefs.h >>conftest.$ac_ext 5978cat >>conftest.$ac_ext <<_ACEOF 5979/* end confdefs.h. */ 5980#include <sys/types.h> 5981#include <dirent.h> 5982 5983int 5984main () 5985{ 5986static DIR ac_aggr; 5987if (sizeof ac_aggr.dd_fd) 5988return 0; 5989 ; 5990 return 0; 5991} 5992_ACEOF 5993rm -f conftest.$ac_objext 5994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5995 (eval $ac_compile) 2>conftest.er1 5996 ac_status=$? 5997 grep -v '^ *+' conftest.er1 >conftest.err 5998 rm -f conftest.er1 5999 cat conftest.err >&5 6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6001 (exit $ac_status); } && 6002 { ac_try='test -z "$ac_c_werror_flag" 6003 || test ! -s conftest.err' 6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6005 (eval $ac_try) 2>&5 6006 ac_status=$? 6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6008 (exit $ac_status); }; } && 6009 { ac_try='test -s conftest.$ac_objext' 6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6011 (eval $ac_try) 2>&5 6012 ac_status=$? 6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6014 (exit $ac_status); }; }; then 6015 ac_cv_member_DIR_dd_fd=yes 6016else 6017 echo "$as_me: failed program was:" >&5 6018sed 's/^/| /' conftest.$ac_ext >&5 6019 6020ac_cv_member_DIR_dd_fd=no 6021fi 6022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6023fi 6024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6025fi 6026echo "$as_me:$LINENO: result: $ac_cv_member_DIR_dd_fd" >&5 6027echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6 6028if test $ac_cv_member_DIR_dd_fd = yes; then 6029 6030cat >>confdefs.h <<_ACEOF 6031#define HAVE_DIR_DD_FD 1 6032_ACEOF 6033 6034 6035fi 6036echo "$as_me:$LINENO: checking for DIR.__dd_fd" >&5 6037echo $ECHO_N "checking for DIR.__dd_fd... $ECHO_C" >&6 6038if test "${ac_cv_member_DIR___dd_fd+set}" = set; then 6039 echo $ECHO_N "(cached) $ECHO_C" >&6 6040else 6041 cat >conftest.$ac_ext <<_ACEOF 6042/* confdefs.h. */ 6043_ACEOF 6044cat confdefs.h >>conftest.$ac_ext 6045cat >>conftest.$ac_ext <<_ACEOF 6046/* end confdefs.h. */ 6047#include <sys/types.h> 6048#include <dirent.h> 6049 6050int 6051main () 6052{ 6053static DIR ac_aggr; 6054if (ac_aggr.__dd_fd) 6055return 0; 6056 ; 6057 return 0; 6058} 6059_ACEOF 6060rm -f conftest.$ac_objext 6061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6062 (eval $ac_compile) 2>conftest.er1 6063 ac_status=$? 6064 grep -v '^ *+' conftest.er1 >conftest.err 6065 rm -f conftest.er1 6066 cat conftest.err >&5 6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6068 (exit $ac_status); } && 6069 { ac_try='test -z "$ac_c_werror_flag" 6070 || test ! -s conftest.err' 6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6072 (eval $ac_try) 2>&5 6073 ac_status=$? 6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6075 (exit $ac_status); }; } && 6076 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 6082 ac_cv_member_DIR___dd_fd=yes 6083else 6084 echo "$as_me: failed program was:" >&5 6085sed 's/^/| /' conftest.$ac_ext >&5 6086 6087cat >conftest.$ac_ext <<_ACEOF 6088/* confdefs.h. */ 6089_ACEOF 6090cat confdefs.h >>conftest.$ac_ext 6091cat >>conftest.$ac_ext <<_ACEOF 6092/* end confdefs.h. */ 6093#include <sys/types.h> 6094#include <dirent.h> 6095 6096int 6097main () 6098{ 6099static DIR ac_aggr; 6100if (sizeof ac_aggr.__dd_fd) 6101return 0; 6102 ; 6103 return 0; 6104} 6105_ACEOF 6106rm -f conftest.$ac_objext 6107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6108 (eval $ac_compile) 2>conftest.er1 6109 ac_status=$? 6110 grep -v '^ *+' conftest.er1 >conftest.err 6111 rm -f conftest.er1 6112 cat conftest.err >&5 6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6114 (exit $ac_status); } && 6115 { ac_try='test -z "$ac_c_werror_flag" 6116 || test ! -s conftest.err' 6117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6118 (eval $ac_try) 2>&5 6119 ac_status=$? 6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6121 (exit $ac_status); }; } && 6122 { ac_try='test -s conftest.$ac_objext' 6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6124 (eval $ac_try) 2>&5 6125 ac_status=$? 6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6127 (exit $ac_status); }; }; then 6128 ac_cv_member_DIR___dd_fd=yes 6129else 6130 echo "$as_me: failed program was:" >&5 6131sed 's/^/| /' conftest.$ac_ext >&5 6132 6133ac_cv_member_DIR___dd_fd=no 6134fi 6135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6136fi 6137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6138fi 6139echo "$as_me:$LINENO: result: $ac_cv_member_DIR___dd_fd" >&5 6140echo "${ECHO_T}$ac_cv_member_DIR___dd_fd" >&6 6141if test $ac_cv_member_DIR___dd_fd = yes; then 6142 6143cat >>confdefs.h <<_ACEOF 6144#define HAVE_DIR___DD_FD 1 6145_ACEOF 6146 6147 6148fi 6149echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5 6150echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6 6151if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then 6152 echo $ECHO_N "(cached) $ECHO_C" >&6 6153else 6154 cat >conftest.$ac_ext <<_ACEOF 6155/* confdefs.h. */ 6156_ACEOF 6157cat confdefs.h >>conftest.$ac_ext 6158cat >>conftest.$ac_ext <<_ACEOF 6159/* end confdefs.h. */ 6160#include <sys/types.h> 6161#include <dirent.h> 6162 6163int 6164main () 6165{ 6166static struct dirent ac_aggr; 6167if (ac_aggr.d_namlen) 6168return 0; 6169 ; 6170 return 0; 6171} 6172_ACEOF 6173rm -f conftest.$ac_objext 6174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6175 (eval $ac_compile) 2>conftest.er1 6176 ac_status=$? 6177 grep -v '^ *+' conftest.er1 >conftest.err 6178 rm -f conftest.er1 6179 cat conftest.err >&5 6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6181 (exit $ac_status); } && 6182 { ac_try='test -z "$ac_c_werror_flag" 6183 || test ! -s conftest.err' 6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6185 (eval $ac_try) 2>&5 6186 ac_status=$? 6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6188 (exit $ac_status); }; } && 6189 { ac_try='test -s conftest.$ac_objext' 6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6191 (eval $ac_try) 2>&5 6192 ac_status=$? 6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6194 (exit $ac_status); }; }; then 6195 ac_cv_member_struct_dirent_d_namlen=yes 6196else 6197 echo "$as_me: failed program was:" >&5 6198sed 's/^/| /' conftest.$ac_ext >&5 6199 6200cat >conftest.$ac_ext <<_ACEOF 6201/* confdefs.h. */ 6202_ACEOF 6203cat confdefs.h >>conftest.$ac_ext 6204cat >>conftest.$ac_ext <<_ACEOF 6205/* end confdefs.h. */ 6206#include <sys/types.h> 6207#include <dirent.h> 6208 6209int 6210main () 6211{ 6212static struct dirent ac_aggr; 6213if (sizeof ac_aggr.d_namlen) 6214return 0; 6215 ; 6216 return 0; 6217} 6218_ACEOF 6219rm -f conftest.$ac_objext 6220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6221 (eval $ac_compile) 2>conftest.er1 6222 ac_status=$? 6223 grep -v '^ *+' conftest.er1 >conftest.err 6224 rm -f conftest.er1 6225 cat conftest.err >&5 6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6227 (exit $ac_status); } && 6228 { ac_try='test -z "$ac_c_werror_flag" 6229 || test ! -s conftest.err' 6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6231 (eval $ac_try) 2>&5 6232 ac_status=$? 6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6234 (exit $ac_status); }; } && 6235 { ac_try='test -s conftest.$ac_objext' 6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6237 (eval $ac_try) 2>&5 6238 ac_status=$? 6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6240 (exit $ac_status); }; }; then 6241 ac_cv_member_struct_dirent_d_namlen=yes 6242else 6243 echo "$as_me: failed program was:" >&5 6244sed 's/^/| /' conftest.$ac_ext >&5 6245 6246ac_cv_member_struct_dirent_d_namlen=no 6247fi 6248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6249fi 6250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6251fi 6252echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_namlen" >&5 6253echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6 6254if test $ac_cv_member_struct_dirent_d_namlen = yes; then 6255 6256cat >>confdefs.h <<_ACEOF 6257#define HAVE_STRUCT_DIRENT_D_NAMLEN 1 6258_ACEOF 6259 6260 6261fi 6262 6263echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 6264echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6 6265if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then 6266 echo $ECHO_N "(cached) $ECHO_C" >&6 6267else 6268 cat >conftest.$ac_ext <<_ACEOF 6269/* confdefs.h. */ 6270_ACEOF 6271cat confdefs.h >>conftest.$ac_ext 6272cat >>conftest.$ac_ext <<_ACEOF 6273/* end confdefs.h. */ 6274#include <sys/stat.h> 6275 6276int 6277main () 6278{ 6279static struct stat ac_aggr; 6280if (ac_aggr.st_flags) 6281return 0; 6282 ; 6283 return 0; 6284} 6285_ACEOF 6286rm -f conftest.$ac_objext 6287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6288 (eval $ac_compile) 2>conftest.er1 6289 ac_status=$? 6290 grep -v '^ *+' conftest.er1 >conftest.err 6291 rm -f conftest.er1 6292 cat conftest.err >&5 6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6294 (exit $ac_status); } && 6295 { ac_try='test -z "$ac_c_werror_flag" 6296 || test ! -s conftest.err' 6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6298 (eval $ac_try) 2>&5 6299 ac_status=$? 6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6301 (exit $ac_status); }; } && 6302 { ac_try='test -s conftest.$ac_objext' 6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6304 (eval $ac_try) 2>&5 6305 ac_status=$? 6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6307 (exit $ac_status); }; }; then 6308 ac_cv_member_struct_stat_st_flags=yes 6309else 6310 echo "$as_me: failed program was:" >&5 6311sed 's/^/| /' conftest.$ac_ext >&5 6312 6313cat >conftest.$ac_ext <<_ACEOF 6314/* confdefs.h. */ 6315_ACEOF 6316cat confdefs.h >>conftest.$ac_ext 6317cat >>conftest.$ac_ext <<_ACEOF 6318/* end confdefs.h. */ 6319#include <sys/stat.h> 6320 6321int 6322main () 6323{ 6324static struct stat ac_aggr; 6325if (sizeof ac_aggr.st_flags) 6326return 0; 6327 ; 6328 return 0; 6329} 6330_ACEOF 6331rm -f conftest.$ac_objext 6332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6333 (eval $ac_compile) 2>conftest.er1 6334 ac_status=$? 6335 grep -v '^ *+' conftest.er1 >conftest.err 6336 rm -f conftest.er1 6337 cat conftest.err >&5 6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6339 (exit $ac_status); } && 6340 { ac_try='test -z "$ac_c_werror_flag" 6341 || test ! -s conftest.err' 6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6343 (eval $ac_try) 2>&5 6344 ac_status=$? 6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6346 (exit $ac_status); }; } && 6347 { ac_try='test -s conftest.$ac_objext' 6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6349 (eval $ac_try) 2>&5 6350 ac_status=$? 6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6352 (exit $ac_status); }; }; then 6353 ac_cv_member_struct_stat_st_flags=yes 6354else 6355 echo "$as_me: failed program was:" >&5 6356sed 's/^/| /' conftest.$ac_ext >&5 6357 6358ac_cv_member_struct_stat_st_flags=no 6359fi 6360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6361fi 6362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6363fi 6364echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 6365echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6 6366if test $ac_cv_member_struct_stat_st_flags = yes; then 6367 6368cat >>confdefs.h <<_ACEOF 6369#define HAVE_STRUCT_STAT_ST_FLAGS 1 6370_ACEOF 6371 6372 6373fi 6374echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 6375echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6 6376if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then 6377 echo $ECHO_N "(cached) $ECHO_C" >&6 6378else 6379 cat >conftest.$ac_ext <<_ACEOF 6380/* confdefs.h. */ 6381_ACEOF 6382cat confdefs.h >>conftest.$ac_ext 6383cat >>conftest.$ac_ext <<_ACEOF 6384/* end confdefs.h. */ 6385#include <sys/stat.h> 6386 6387int 6388main () 6389{ 6390static struct stat ac_aggr; 6391if (ac_aggr.st_gen) 6392return 0; 6393 ; 6394 return 0; 6395} 6396_ACEOF 6397rm -f conftest.$ac_objext 6398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6399 (eval $ac_compile) 2>conftest.er1 6400 ac_status=$? 6401 grep -v '^ *+' conftest.er1 >conftest.err 6402 rm -f conftest.er1 6403 cat conftest.err >&5 6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6405 (exit $ac_status); } && 6406 { ac_try='test -z "$ac_c_werror_flag" 6407 || test ! -s conftest.err' 6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6409 (eval $ac_try) 2>&5 6410 ac_status=$? 6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6412 (exit $ac_status); }; } && 6413 { ac_try='test -s conftest.$ac_objext' 6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6415 (eval $ac_try) 2>&5 6416 ac_status=$? 6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6418 (exit $ac_status); }; }; then 6419 ac_cv_member_struct_stat_st_gen=yes 6420else 6421 echo "$as_me: failed program was:" >&5 6422sed 's/^/| /' conftest.$ac_ext >&5 6423 6424cat >conftest.$ac_ext <<_ACEOF 6425/* confdefs.h. */ 6426_ACEOF 6427cat confdefs.h >>conftest.$ac_ext 6428cat >>conftest.$ac_ext <<_ACEOF 6429/* end confdefs.h. */ 6430#include <sys/stat.h> 6431 6432int 6433main () 6434{ 6435static struct stat ac_aggr; 6436if (sizeof ac_aggr.st_gen) 6437return 0; 6438 ; 6439 return 0; 6440} 6441_ACEOF 6442rm -f conftest.$ac_objext 6443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6444 (eval $ac_compile) 2>conftest.er1 6445 ac_status=$? 6446 grep -v '^ *+' conftest.er1 >conftest.err 6447 rm -f conftest.er1 6448 cat conftest.err >&5 6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6450 (exit $ac_status); } && 6451 { ac_try='test -z "$ac_c_werror_flag" 6452 || test ! -s conftest.err' 6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6454 (eval $ac_try) 2>&5 6455 ac_status=$? 6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6457 (exit $ac_status); }; } && 6458 { ac_try='test -s conftest.$ac_objext' 6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6460 (eval $ac_try) 2>&5 6461 ac_status=$? 6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6463 (exit $ac_status); }; }; then 6464 ac_cv_member_struct_stat_st_gen=yes 6465else 6466 echo "$as_me: failed program was:" >&5 6467sed 's/^/| /' conftest.$ac_ext >&5 6468 6469ac_cv_member_struct_stat_st_gen=no 6470fi 6471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6472fi 6473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6474fi 6475echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 6476echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6 6477if test $ac_cv_member_struct_stat_st_gen = yes; then 6478 6479cat >>confdefs.h <<_ACEOF 6480#define HAVE_STRUCT_STAT_ST_GEN 1 6481_ACEOF 6482 6483 6484fi 6485echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 6486echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6 6487if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then 6488 echo $ECHO_N "(cached) $ECHO_C" >&6 6489else 6490 cat >conftest.$ac_ext <<_ACEOF 6491/* confdefs.h. */ 6492_ACEOF 6493cat confdefs.h >>conftest.$ac_ext 6494cat >>conftest.$ac_ext <<_ACEOF 6495/* end confdefs.h. */ 6496#include <sys/stat.h> 6497 6498int 6499main () 6500{ 6501static struct stat ac_aggr; 6502if (ac_aggr.st_birthtime) 6503return 0; 6504 ; 6505 return 0; 6506} 6507_ACEOF 6508rm -f conftest.$ac_objext 6509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6510 (eval $ac_compile) 2>conftest.er1 6511 ac_status=$? 6512 grep -v '^ *+' conftest.er1 >conftest.err 6513 rm -f conftest.er1 6514 cat conftest.err >&5 6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6516 (exit $ac_status); } && 6517 { ac_try='test -z "$ac_c_werror_flag" 6518 || test ! -s conftest.err' 6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6520 (eval $ac_try) 2>&5 6521 ac_status=$? 6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6523 (exit $ac_status); }; } && 6524 { ac_try='test -s conftest.$ac_objext' 6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6526 (eval $ac_try) 2>&5 6527 ac_status=$? 6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6529 (exit $ac_status); }; }; then 6530 ac_cv_member_struct_stat_st_birthtime=yes 6531else 6532 echo "$as_me: failed program was:" >&5 6533sed 's/^/| /' conftest.$ac_ext >&5 6534 6535cat >conftest.$ac_ext <<_ACEOF 6536/* confdefs.h. */ 6537_ACEOF 6538cat confdefs.h >>conftest.$ac_ext 6539cat >>conftest.$ac_ext <<_ACEOF 6540/* end confdefs.h. */ 6541#include <sys/stat.h> 6542 6543int 6544main () 6545{ 6546static struct stat ac_aggr; 6547if (sizeof ac_aggr.st_birthtime) 6548return 0; 6549 ; 6550 return 0; 6551} 6552_ACEOF 6553rm -f conftest.$ac_objext 6554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6555 (eval $ac_compile) 2>conftest.er1 6556 ac_status=$? 6557 grep -v '^ *+' conftest.er1 >conftest.err 6558 rm -f conftest.er1 6559 cat conftest.err >&5 6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6561 (exit $ac_status); } && 6562 { ac_try='test -z "$ac_c_werror_flag" 6563 || test ! -s conftest.err' 6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6565 (eval $ac_try) 2>&5 6566 ac_status=$? 6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6568 (exit $ac_status); }; } && 6569 { ac_try='test -s conftest.$ac_objext' 6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6571 (eval $ac_try) 2>&5 6572 ac_status=$? 6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6574 (exit $ac_status); }; }; then 6575 ac_cv_member_struct_stat_st_birthtime=yes 6576else 6577 echo "$as_me: failed program was:" >&5 6578sed 's/^/| /' conftest.$ac_ext >&5 6579 6580ac_cv_member_struct_stat_st_birthtime=no 6581fi 6582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6583fi 6584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6585fi 6586echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 6587echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6 6588if test $ac_cv_member_struct_stat_st_birthtime = yes; then 6589 6590cat >>confdefs.h <<_ACEOF 6591#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 6592_ACEOF 6593 6594 6595fi 6596echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5 6597echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6 6598if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then 6599 echo $ECHO_N "(cached) $ECHO_C" >&6 6600else 6601 cat >conftest.$ac_ext <<_ACEOF 6602/* confdefs.h. */ 6603_ACEOF 6604cat confdefs.h >>conftest.$ac_ext 6605cat >>conftest.$ac_ext <<_ACEOF 6606/* end confdefs.h. */ 6607#include <sys/stat.h> 6608 6609int 6610main () 6611{ 6612static struct stat ac_aggr; 6613if (ac_aggr.st_birthtimensec) 6614return 0; 6615 ; 6616 return 0; 6617} 6618_ACEOF 6619rm -f conftest.$ac_objext 6620if { (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_cv_member_struct_stat_st_birthtimensec=yes 6642else 6643 echo "$as_me: failed program was:" >&5 6644sed 's/^/| /' conftest.$ac_ext >&5 6645 6646cat >conftest.$ac_ext <<_ACEOF 6647/* confdefs.h. */ 6648_ACEOF 6649cat confdefs.h >>conftest.$ac_ext 6650cat >>conftest.$ac_ext <<_ACEOF 6651/* end confdefs.h. */ 6652#include <sys/stat.h> 6653 6654int 6655main () 6656{ 6657static struct stat ac_aggr; 6658if (sizeof ac_aggr.st_birthtimensec) 6659return 0; 6660 ; 6661 return 0; 6662} 6663_ACEOF 6664rm -f conftest.$ac_objext 6665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6666 (eval $ac_compile) 2>conftest.er1 6667 ac_status=$? 6668 grep -v '^ *+' conftest.er1 >conftest.err 6669 rm -f conftest.er1 6670 cat conftest.err >&5 6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6672 (exit $ac_status); } && 6673 { ac_try='test -z "$ac_c_werror_flag" 6674 || test ! -s conftest.err' 6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6676 (eval $ac_try) 2>&5 6677 ac_status=$? 6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6679 (exit $ac_status); }; } && 6680 { ac_try='test -s conftest.$ac_objext' 6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6682 (eval $ac_try) 2>&5 6683 ac_status=$? 6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6685 (exit $ac_status); }; }; then 6686 ac_cv_member_struct_stat_st_birthtimensec=yes 6687else 6688 echo "$as_me: failed program was:" >&5 6689sed 's/^/| /' conftest.$ac_ext >&5 6690 6691ac_cv_member_struct_stat_st_birthtimensec=no 6692fi 6693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6694fi 6695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6696fi 6697echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5 6698echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6 6699if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then 6700 6701cat >>confdefs.h <<_ACEOF 6702#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1 6703_ACEOF 6704 6705 6706fi 6707echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5 6708echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6 6709if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then 6710 echo $ECHO_N "(cached) $ECHO_C" >&6 6711else 6712 cat >conftest.$ac_ext <<_ACEOF 6713/* confdefs.h. */ 6714_ACEOF 6715cat confdefs.h >>conftest.$ac_ext 6716cat >>conftest.$ac_ext <<_ACEOF 6717/* end confdefs.h. */ 6718#include <sys/stat.h> 6719 6720int 6721main () 6722{ 6723static struct stat ac_aggr; 6724if (ac_aggr.st_atim) 6725return 0; 6726 ; 6727 return 0; 6728} 6729_ACEOF 6730rm -f conftest.$ac_objext 6731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6732 (eval $ac_compile) 2>conftest.er1 6733 ac_status=$? 6734 grep -v '^ *+' conftest.er1 >conftest.err 6735 rm -f conftest.er1 6736 cat conftest.err >&5 6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6738 (exit $ac_status); } && 6739 { ac_try='test -z "$ac_c_werror_flag" 6740 || test ! -s conftest.err' 6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6742 (eval $ac_try) 2>&5 6743 ac_status=$? 6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6745 (exit $ac_status); }; } && 6746 { ac_try='test -s conftest.$ac_objext' 6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6748 (eval $ac_try) 2>&5 6749 ac_status=$? 6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6751 (exit $ac_status); }; }; then 6752 ac_cv_member_struct_stat_st_atim=yes 6753else 6754 echo "$as_me: failed program was:" >&5 6755sed 's/^/| /' conftest.$ac_ext >&5 6756 6757cat >conftest.$ac_ext <<_ACEOF 6758/* confdefs.h. */ 6759_ACEOF 6760cat confdefs.h >>conftest.$ac_ext 6761cat >>conftest.$ac_ext <<_ACEOF 6762/* end confdefs.h. */ 6763#include <sys/stat.h> 6764 6765int 6766main () 6767{ 6768static struct stat ac_aggr; 6769if (sizeof ac_aggr.st_atim) 6770return 0; 6771 ; 6772 return 0; 6773} 6774_ACEOF 6775rm -f conftest.$ac_objext 6776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6777 (eval $ac_compile) 2>conftest.er1 6778 ac_status=$? 6779 grep -v '^ *+' conftest.er1 >conftest.err 6780 rm -f conftest.er1 6781 cat conftest.err >&5 6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6783 (exit $ac_status); } && 6784 { ac_try='test -z "$ac_c_werror_flag" 6785 || test ! -s conftest.err' 6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6787 (eval $ac_try) 2>&5 6788 ac_status=$? 6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6790 (exit $ac_status); }; } && 6791 { ac_try='test -s conftest.$ac_objext' 6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6793 (eval $ac_try) 2>&5 6794 ac_status=$? 6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6796 (exit $ac_status); }; }; then 6797 ac_cv_member_struct_stat_st_atim=yes 6798else 6799 echo "$as_me: failed program was:" >&5 6800sed 's/^/| /' conftest.$ac_ext >&5 6801 6802ac_cv_member_struct_stat_st_atim=no 6803fi 6804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6805fi 6806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6807fi 6808echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5 6809echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6 6810if test $ac_cv_member_struct_stat_st_atim = yes; then 6811 6812cat >>confdefs.h <<_ACEOF 6813#define HAVE_STRUCT_STAT_ST_ATIM 1 6814_ACEOF 6815 6816 6817fi 6818echo "$as_me:$LINENO: checking for struct stat.st_mtimensec" >&5 6819echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6 6820if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then 6821 echo $ECHO_N "(cached) $ECHO_C" >&6 6822else 6823 cat >conftest.$ac_ext <<_ACEOF 6824/* confdefs.h. */ 6825_ACEOF 6826cat confdefs.h >>conftest.$ac_ext 6827cat >>conftest.$ac_ext <<_ACEOF 6828/* end confdefs.h. */ 6829#include <sys/stat.h> 6830 6831int 6832main () 6833{ 6834static struct stat ac_aggr; 6835if (ac_aggr.st_mtimensec) 6836return 0; 6837 ; 6838 return 0; 6839} 6840_ACEOF 6841rm -f conftest.$ac_objext 6842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6843 (eval $ac_compile) 2>conftest.er1 6844 ac_status=$? 6845 grep -v '^ *+' conftest.er1 >conftest.err 6846 rm -f conftest.er1 6847 cat conftest.err >&5 6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6849 (exit $ac_status); } && 6850 { ac_try='test -z "$ac_c_werror_flag" 6851 || test ! -s conftest.err' 6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6853 (eval $ac_try) 2>&5 6854 ac_status=$? 6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6856 (exit $ac_status); }; } && 6857 { ac_try='test -s conftest.$ac_objext' 6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6859 (eval $ac_try) 2>&5 6860 ac_status=$? 6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6862 (exit $ac_status); }; }; then 6863 ac_cv_member_struct_stat_st_mtimensec=yes 6864else 6865 echo "$as_me: failed program was:" >&5 6866sed 's/^/| /' conftest.$ac_ext >&5 6867 6868cat >conftest.$ac_ext <<_ACEOF 6869/* confdefs.h. */ 6870_ACEOF 6871cat confdefs.h >>conftest.$ac_ext 6872cat >>conftest.$ac_ext <<_ACEOF 6873/* end confdefs.h. */ 6874#include <sys/stat.h> 6875 6876int 6877main () 6878{ 6879static struct stat ac_aggr; 6880if (sizeof ac_aggr.st_mtimensec) 6881return 0; 6882 ; 6883 return 0; 6884} 6885_ACEOF 6886rm -f conftest.$ac_objext 6887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6888 (eval $ac_compile) 2>conftest.er1 6889 ac_status=$? 6890 grep -v '^ *+' conftest.er1 >conftest.err 6891 rm -f conftest.er1 6892 cat conftest.err >&5 6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6894 (exit $ac_status); } && 6895 { ac_try='test -z "$ac_c_werror_flag" 6896 || test ! -s conftest.err' 6897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6898 (eval $ac_try) 2>&5 6899 ac_status=$? 6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6901 (exit $ac_status); }; } && 6902 { ac_try='test -s conftest.$ac_objext' 6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6904 (eval $ac_try) 2>&5 6905 ac_status=$? 6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6907 (exit $ac_status); }; }; then 6908 ac_cv_member_struct_stat_st_mtimensec=yes 6909else 6910 echo "$as_me: failed program was:" >&5 6911sed 's/^/| /' conftest.$ac_ext >&5 6912 6913ac_cv_member_struct_stat_st_mtimensec=no 6914fi 6915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6916fi 6917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6918fi 6919echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimensec" >&5 6920echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6 6921if test $ac_cv_member_struct_stat_st_mtimensec = yes; then 6922 6923cat >>confdefs.h <<_ACEOF 6924#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1 6925_ACEOF 6926 6927 6928fi 6929 6930echo "$as_me:$LINENO: checking for struct statvfs.f_iosize" >&5 6931echo $ECHO_N "checking for struct statvfs.f_iosize... $ECHO_C" >&6 6932if test "${ac_cv_member_struct_statvfs_f_iosize+set}" = set; then 6933 echo $ECHO_N "(cached) $ECHO_C" >&6 6934else 6935 cat >conftest.$ac_ext <<_ACEOF 6936/* confdefs.h. */ 6937_ACEOF 6938cat confdefs.h >>conftest.$ac_ext 6939cat >>conftest.$ac_ext <<_ACEOF 6940/* end confdefs.h. */ 6941#include <sys/statvfs.h> 6942 6943int 6944main () 6945{ 6946static struct statvfs ac_aggr; 6947if (ac_aggr.f_iosize) 6948return 0; 6949 ; 6950 return 0; 6951} 6952_ACEOF 6953rm -f conftest.$ac_objext 6954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6955 (eval $ac_compile) 2>conftest.er1 6956 ac_status=$? 6957 grep -v '^ *+' conftest.er1 >conftest.err 6958 rm -f conftest.er1 6959 cat conftest.err >&5 6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6961 (exit $ac_status); } && 6962 { ac_try='test -z "$ac_c_werror_flag" 6963 || test ! -s conftest.err' 6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6965 (eval $ac_try) 2>&5 6966 ac_status=$? 6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6968 (exit $ac_status); }; } && 6969 { ac_try='test -s conftest.$ac_objext' 6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6971 (eval $ac_try) 2>&5 6972 ac_status=$? 6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6974 (exit $ac_status); }; }; then 6975 ac_cv_member_struct_statvfs_f_iosize=yes 6976else 6977 echo "$as_me: failed program was:" >&5 6978sed 's/^/| /' conftest.$ac_ext >&5 6979 6980cat >conftest.$ac_ext <<_ACEOF 6981/* confdefs.h. */ 6982_ACEOF 6983cat confdefs.h >>conftest.$ac_ext 6984cat >>conftest.$ac_ext <<_ACEOF 6985/* end confdefs.h. */ 6986#include <sys/statvfs.h> 6987 6988int 6989main () 6990{ 6991static struct statvfs ac_aggr; 6992if (sizeof ac_aggr.f_iosize) 6993return 0; 6994 ; 6995 return 0; 6996} 6997_ACEOF 6998rm -f conftest.$ac_objext 6999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7000 (eval $ac_compile) 2>conftest.er1 7001 ac_status=$? 7002 grep -v '^ *+' conftest.er1 >conftest.err 7003 rm -f conftest.er1 7004 cat conftest.err >&5 7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7006 (exit $ac_status); } && 7007 { ac_try='test -z "$ac_c_werror_flag" 7008 || test ! -s conftest.err' 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); }; } && 7014 { ac_try='test -s conftest.$ac_objext' 7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7016 (eval $ac_try) 2>&5 7017 ac_status=$? 7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7019 (exit $ac_status); }; }; then 7020 ac_cv_member_struct_statvfs_f_iosize=yes 7021else 7022 echo "$as_me: failed program was:" >&5 7023sed 's/^/| /' conftest.$ac_ext >&5 7024 7025ac_cv_member_struct_statvfs_f_iosize=no 7026fi 7027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7028fi 7029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7030fi 7031echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_iosize" >&5 7032echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_iosize" >&6 7033if test $ac_cv_member_struct_statvfs_f_iosize = yes; then 7034 7035cat >>confdefs.h <<_ACEOF 7036#define HAVE_STRUCT_STATVFS_F_IOSIZE 1 7037_ACEOF 7038 7039 7040fi 7041 7042 7043# Global variable decls. 7044echo "$as_me:$LINENO: checking whether optind is declared" >&5 7045echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6 7046if test "${ac_cv_have_decl_optind+set}" = set; then 7047 echo $ECHO_N "(cached) $ECHO_C" >&6 7048else 7049 cat >conftest.$ac_ext <<_ACEOF 7050/* confdefs.h. */ 7051_ACEOF 7052cat confdefs.h >>conftest.$ac_ext 7053cat >>conftest.$ac_ext <<_ACEOF 7054/* end confdefs.h. */ 7055 7056#include <stdio.h> 7057#include <stdlib.h> 7058#include <unistd.h> 7059 7060 7061int 7062main () 7063{ 7064#ifndef optind 7065 char *p = (char *) optind; 7066#endif 7067 7068 ; 7069 return 0; 7070} 7071_ACEOF 7072rm -f conftest.$ac_objext 7073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7074 (eval $ac_compile) 2>conftest.er1 7075 ac_status=$? 7076 grep -v '^ *+' conftest.er1 >conftest.err 7077 rm -f conftest.er1 7078 cat conftest.err >&5 7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7080 (exit $ac_status); } && 7081 { ac_try='test -z "$ac_c_werror_flag" 7082 || test ! -s conftest.err' 7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7084 (eval $ac_try) 2>&5 7085 ac_status=$? 7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7087 (exit $ac_status); }; } && 7088 { ac_try='test -s conftest.$ac_objext' 7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7090 (eval $ac_try) 2>&5 7091 ac_status=$? 7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7093 (exit $ac_status); }; }; then 7094 ac_cv_have_decl_optind=yes 7095else 7096 echo "$as_me: failed program was:" >&5 7097sed 's/^/| /' conftest.$ac_ext >&5 7098 7099ac_cv_have_decl_optind=no 7100fi 7101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7102fi 7103echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5 7104echo "${ECHO_T}$ac_cv_have_decl_optind" >&6 7105if test $ac_cv_have_decl_optind = yes; then 7106 7107cat >>confdefs.h <<_ACEOF 7108#define HAVE_DECL_OPTIND 1 7109_ACEOF 7110 7111 7112else 7113 cat >>confdefs.h <<_ACEOF 7114#define HAVE_DECL_OPTIND 0 7115_ACEOF 7116 7117 7118fi 7119echo "$as_me:$LINENO: checking whether optreset is declared" >&5 7120echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6 7121if test "${ac_cv_have_decl_optreset+set}" = set; then 7122 echo $ECHO_N "(cached) $ECHO_C" >&6 7123else 7124 cat >conftest.$ac_ext <<_ACEOF 7125/* confdefs.h. */ 7126_ACEOF 7127cat confdefs.h >>conftest.$ac_ext 7128cat >>conftest.$ac_ext <<_ACEOF 7129/* end confdefs.h. */ 7130 7131#include <stdio.h> 7132#include <stdlib.h> 7133#include <unistd.h> 7134 7135 7136int 7137main () 7138{ 7139#ifndef optreset 7140 char *p = (char *) optreset; 7141#endif 7142 7143 ; 7144 return 0; 7145} 7146_ACEOF 7147rm -f conftest.$ac_objext 7148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7149 (eval $ac_compile) 2>conftest.er1 7150 ac_status=$? 7151 grep -v '^ *+' conftest.er1 >conftest.err 7152 rm -f conftest.er1 7153 cat conftest.err >&5 7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7155 (exit $ac_status); } && 7156 { ac_try='test -z "$ac_c_werror_flag" 7157 || test ! -s conftest.err' 7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7159 (eval $ac_try) 2>&5 7160 ac_status=$? 7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7162 (exit $ac_status); }; } && 7163 { ac_try='test -s conftest.$ac_objext' 7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7165 (eval $ac_try) 2>&5 7166 ac_status=$? 7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7168 (exit $ac_status); }; }; then 7169 ac_cv_have_decl_optreset=yes 7170else 7171 echo "$as_me: failed program was:" >&5 7172sed 's/^/| /' conftest.$ac_ext >&5 7173 7174ac_cv_have_decl_optreset=no 7175fi 7176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7177fi 7178echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 7179echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6 7180if test $ac_cv_have_decl_optreset = yes; then 7181 7182cat >>confdefs.h <<_ACEOF 7183#define HAVE_DECL_OPTRESET 1 7184_ACEOF 7185 7186 7187else 7188 cat >>confdefs.h <<_ACEOF 7189#define HAVE_DECL_OPTRESET 0 7190_ACEOF 7191 7192 7193fi 7194 7195 7196echo "$as_me:$LINENO: checking whether sys_signame is declared" >&5 7197echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6 7198if test "${ac_cv_have_decl_sys_signame+set}" = set; then 7199 echo $ECHO_N "(cached) $ECHO_C" >&6 7200else 7201 cat >conftest.$ac_ext <<_ACEOF 7202/* confdefs.h. */ 7203_ACEOF 7204cat confdefs.h >>conftest.$ac_ext 7205cat >>conftest.$ac_ext <<_ACEOF 7206/* end confdefs.h. */ 7207#include <signal.h> 7208 7209int 7210main () 7211{ 7212#ifndef sys_signame 7213 char *p = (char *) sys_signame; 7214#endif 7215 7216 ; 7217 return 0; 7218} 7219_ACEOF 7220rm -f conftest.$ac_objext 7221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7222 (eval $ac_compile) 2>conftest.er1 7223 ac_status=$? 7224 grep -v '^ *+' conftest.er1 >conftest.err 7225 rm -f conftest.er1 7226 cat conftest.err >&5 7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7228 (exit $ac_status); } && 7229 { ac_try='test -z "$ac_c_werror_flag" 7230 || test ! -s conftest.err' 7231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7232 (eval $ac_try) 2>&5 7233 ac_status=$? 7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7235 (exit $ac_status); }; } && 7236 { ac_try='test -s conftest.$ac_objext' 7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7238 (eval $ac_try) 2>&5 7239 ac_status=$? 7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7241 (exit $ac_status); }; }; then 7242 ac_cv_have_decl_sys_signame=yes 7243else 7244 echo "$as_me: failed program was:" >&5 7245sed 's/^/| /' conftest.$ac_ext >&5 7246 7247ac_cv_have_decl_sys_signame=no 7248fi 7249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7250fi 7251echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_signame" >&5 7252echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6 7253if test $ac_cv_have_decl_sys_signame = yes; then 7254 7255cat >>confdefs.h <<_ACEOF 7256#define HAVE_DECL_SYS_SIGNAME 1 7257_ACEOF 7258 7259 7260else 7261 cat >>confdefs.h <<_ACEOF 7262#define HAVE_DECL_SYS_SIGNAME 0 7263_ACEOF 7264 7265 7266fi 7267 7268 7269 7270# Library functions (where a .h check isn't enough). 7271# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7272# for constant arguments. Useless! 7273echo "$as_me:$LINENO: checking for working alloca.h" >&5 7274echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 7275if test "${ac_cv_working_alloca_h+set}" = set; then 7276 echo $ECHO_N "(cached) $ECHO_C" >&6 7277else 7278 cat >conftest.$ac_ext <<_ACEOF 7279/* confdefs.h. */ 7280_ACEOF 7281cat confdefs.h >>conftest.$ac_ext 7282cat >>conftest.$ac_ext <<_ACEOF 7283/* end confdefs.h. */ 7284#include <alloca.h> 7285int 7286main () 7287{ 7288char *p = (char *) alloca (2 * sizeof (int)); 7289 ; 7290 return 0; 7291} 7292_ACEOF 7293rm -f conftest.$ac_objext conftest$ac_exeext 7294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7295 (eval $ac_link) 2>conftest.er1 7296 ac_status=$? 7297 grep -v '^ *+' conftest.er1 >conftest.err 7298 rm -f conftest.er1 7299 cat conftest.err >&5 7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7301 (exit $ac_status); } && 7302 { ac_try='test -z "$ac_c_werror_flag" 7303 || test ! -s conftest.err' 7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7305 (eval $ac_try) 2>&5 7306 ac_status=$? 7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7308 (exit $ac_status); }; } && 7309 { ac_try='test -s conftest$ac_exeext' 7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7311 (eval $ac_try) 2>&5 7312 ac_status=$? 7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7314 (exit $ac_status); }; }; then 7315 ac_cv_working_alloca_h=yes 7316else 7317 echo "$as_me: failed program was:" >&5 7318sed 's/^/| /' conftest.$ac_ext >&5 7319 7320ac_cv_working_alloca_h=no 7321fi 7322rm -f conftest.err conftest.$ac_objext \ 7323 conftest$ac_exeext conftest.$ac_ext 7324fi 7325echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 7326echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 7327if test $ac_cv_working_alloca_h = yes; then 7328 7329cat >>confdefs.h <<\_ACEOF 7330#define HAVE_ALLOCA_H 1 7331_ACEOF 7332 7333fi 7334 7335echo "$as_me:$LINENO: checking for alloca" >&5 7336echo $ECHO_N "checking for alloca... $ECHO_C" >&6 7337if test "${ac_cv_func_alloca_works+set}" = set; then 7338 echo $ECHO_N "(cached) $ECHO_C" >&6 7339else 7340 cat >conftest.$ac_ext <<_ACEOF 7341/* confdefs.h. */ 7342_ACEOF 7343cat confdefs.h >>conftest.$ac_ext 7344cat >>conftest.$ac_ext <<_ACEOF 7345/* end confdefs.h. */ 7346#ifdef __GNUC__ 7347# define alloca __builtin_alloca 7348#else 7349# ifdef _MSC_VER 7350# include <malloc.h> 7351# define alloca _alloca 7352# else 7353# if HAVE_ALLOCA_H 7354# include <alloca.h> 7355# else 7356# ifdef _AIX 7357 #pragma alloca 7358# else 7359# ifndef alloca /* predefined by HP cc +Olibcalls */ 7360char *alloca (); 7361# endif 7362# endif 7363# endif 7364# endif 7365#endif 7366 7367int 7368main () 7369{ 7370char *p = (char *) alloca (1); 7371 ; 7372 return 0; 7373} 7374_ACEOF 7375rm -f conftest.$ac_objext conftest$ac_exeext 7376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7377 (eval $ac_link) 2>conftest.er1 7378 ac_status=$? 7379 grep -v '^ *+' conftest.er1 >conftest.err 7380 rm -f conftest.er1 7381 cat conftest.err >&5 7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7383 (exit $ac_status); } && 7384 { ac_try='test -z "$ac_c_werror_flag" 7385 || test ! -s conftest.err' 7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7387 (eval $ac_try) 2>&5 7388 ac_status=$? 7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7390 (exit $ac_status); }; } && 7391 { ac_try='test -s conftest$ac_exeext' 7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7393 (eval $ac_try) 2>&5 7394 ac_status=$? 7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7396 (exit $ac_status); }; }; then 7397 ac_cv_func_alloca_works=yes 7398else 7399 echo "$as_me: failed program was:" >&5 7400sed 's/^/| /' conftest.$ac_ext >&5 7401 7402ac_cv_func_alloca_works=no 7403fi 7404rm -f conftest.err conftest.$ac_objext \ 7405 conftest$ac_exeext conftest.$ac_ext 7406fi 7407echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 7408echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 7409 7410if test $ac_cv_func_alloca_works = yes; then 7411 7412cat >>confdefs.h <<\_ACEOF 7413#define HAVE_ALLOCA 1 7414_ACEOF 7415 7416else 7417 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 7418# that cause trouble. Some versions do not even contain alloca or 7419# contain a buggy version. If you still want to use their alloca, 7420# use ar to extract alloca.o from them instead of compiling alloca.c. 7421 7422ALLOCA=alloca.$ac_objext 7423 7424cat >>confdefs.h <<\_ACEOF 7425#define C_ALLOCA 1 7426_ACEOF 7427 7428 7429echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 7430echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 7431if test "${ac_cv_os_cray+set}" = set; then 7432 echo $ECHO_N "(cached) $ECHO_C" >&6 7433else 7434 cat >conftest.$ac_ext <<_ACEOF 7435/* confdefs.h. */ 7436_ACEOF 7437cat confdefs.h >>conftest.$ac_ext 7438cat >>conftest.$ac_ext <<_ACEOF 7439/* end confdefs.h. */ 7440#if defined(CRAY) && ! defined(CRAY2) 7441webecray 7442#else 7443wenotbecray 7444#endif 7445 7446_ACEOF 7447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7448 $EGREP "webecray" >/dev/null 2>&1; then 7449 ac_cv_os_cray=yes 7450else 7451 ac_cv_os_cray=no 7452fi 7453rm -f conftest* 7454 7455fi 7456echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 7457echo "${ECHO_T}$ac_cv_os_cray" >&6 7458if test $ac_cv_os_cray = yes; then 7459 for ac_func in _getb67 GETB67 getb67; do 7460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7461echo "$as_me:$LINENO: checking for $ac_func" >&5 7462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7463if eval "test \"\${$as_ac_var+set}\" = set"; then 7464 echo $ECHO_N "(cached) $ECHO_C" >&6 7465else 7466 cat >conftest.$ac_ext <<_ACEOF 7467/* confdefs.h. */ 7468_ACEOF 7469cat confdefs.h >>conftest.$ac_ext 7470cat >>conftest.$ac_ext <<_ACEOF 7471/* end confdefs.h. */ 7472/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7473 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7474#define $ac_func innocuous_$ac_func 7475 7476/* System header to define __stub macros and hopefully few prototypes, 7477 which can conflict with char $ac_func (); below. 7478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7479 <limits.h> exists even on freestanding compilers. */ 7480 7481#ifdef __STDC__ 7482# include <limits.h> 7483#else 7484# include <assert.h> 7485#endif 7486 7487#undef $ac_func 7488 7489/* Override any gcc2 internal prototype to avoid an error. */ 7490#ifdef __cplusplus 7491extern "C" 7492{ 7493#endif 7494/* We use char because int might match the return type of a gcc2 7495 builtin and then its argument prototype would still apply. */ 7496char $ac_func (); 7497/* The GNU C library defines this for functions which it implements 7498 to always fail with ENOSYS. Some functions are actually named 7499 something starting with __ and the normal name is an alias. */ 7500#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7501choke me 7502#else 7503char (*f) () = $ac_func; 7504#endif 7505#ifdef __cplusplus 7506} 7507#endif 7508 7509int 7510main () 7511{ 7512return f != $ac_func; 7513 ; 7514 return 0; 7515} 7516_ACEOF 7517rm -f conftest.$ac_objext conftest$ac_exeext 7518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7519 (eval $ac_link) 2>conftest.er1 7520 ac_status=$? 7521 grep -v '^ *+' conftest.er1 >conftest.err 7522 rm -f conftest.er1 7523 cat conftest.err >&5 7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7525 (exit $ac_status); } && 7526 { ac_try='test -z "$ac_c_werror_flag" 7527 || test ! -s conftest.err' 7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7529 (eval $ac_try) 2>&5 7530 ac_status=$? 7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7532 (exit $ac_status); }; } && 7533 { ac_try='test -s conftest$ac_exeext' 7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7535 (eval $ac_try) 2>&5 7536 ac_status=$? 7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7538 (exit $ac_status); }; }; then 7539 eval "$as_ac_var=yes" 7540else 7541 echo "$as_me: failed program was:" >&5 7542sed 's/^/| /' conftest.$ac_ext >&5 7543 7544eval "$as_ac_var=no" 7545fi 7546rm -f conftest.err conftest.$ac_objext \ 7547 conftest$ac_exeext conftest.$ac_ext 7548fi 7549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7550echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7551if test `eval echo '${'$as_ac_var'}'` = yes; then 7552 7553cat >>confdefs.h <<_ACEOF 7554#define CRAY_STACKSEG_END $ac_func 7555_ACEOF 7556 7557 break 7558fi 7559 7560 done 7561fi 7562 7563echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 7564echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 7565if test "${ac_cv_c_stack_direction+set}" = set; then 7566 echo $ECHO_N "(cached) $ECHO_C" >&6 7567else 7568 if test "$cross_compiling" = yes; then 7569 ac_cv_c_stack_direction=0 7570else 7571 cat >conftest.$ac_ext <<_ACEOF 7572/* confdefs.h. */ 7573_ACEOF 7574cat confdefs.h >>conftest.$ac_ext 7575cat >>conftest.$ac_ext <<_ACEOF 7576/* end confdefs.h. */ 7577int 7578find_stack_direction () 7579{ 7580 static char *addr = 0; 7581 auto char dummy; 7582 if (addr == 0) 7583 { 7584 addr = &dummy; 7585 return find_stack_direction (); 7586 } 7587 else 7588 return (&dummy > addr) ? 1 : -1; 7589} 7590 7591int 7592main () 7593{ 7594 exit (find_stack_direction () < 0); 7595} 7596_ACEOF 7597rm -f conftest$ac_exeext 7598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7599 (eval $ac_link) 2>&5 7600 ac_status=$? 7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7604 (eval $ac_try) 2>&5 7605 ac_status=$? 7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7607 (exit $ac_status); }; }; then 7608 ac_cv_c_stack_direction=1 7609else 7610 echo "$as_me: program exited with status $ac_status" >&5 7611echo "$as_me: failed program was:" >&5 7612sed 's/^/| /' conftest.$ac_ext >&5 7613 7614( exit $ac_status ) 7615ac_cv_c_stack_direction=-1 7616fi 7617rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7618fi 7619fi 7620echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 7621echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 7622 7623cat >>confdefs.h <<_ACEOF 7624#define STACK_DIRECTION $ac_cv_c_stack_direction 7625_ACEOF 7626 7627 7628fi 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \ 7676 esetfunc fgetln flock fparseln futimes getopt getopt_long \ 7677 group_from_gid \ 7678 heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \ 7679 mkdtemp poll pread putc_unlocked pwcache_userdb pwrite random setenv \ 7680 setgroupent setprogname setpassent snprintf strlcat strlcpy strmode \ 7681 strsep strsuftoll strtoll \ 7682 user_from_uid vasprintf vasnprintf vsnprintf 7683do 7684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7685echo "$as_me:$LINENO: checking for $ac_func" >&5 7686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7687if eval "test \"\${$as_ac_var+set}\" = set"; then 7688 echo $ECHO_N "(cached) $ECHO_C" >&6 7689else 7690 cat >conftest.$ac_ext <<_ACEOF 7691/* confdefs.h. */ 7692_ACEOF 7693cat confdefs.h >>conftest.$ac_ext 7694cat >>conftest.$ac_ext <<_ACEOF 7695/* end confdefs.h. */ 7696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7697 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7698#define $ac_func innocuous_$ac_func 7699 7700/* System header to define __stub macros and hopefully few prototypes, 7701 which can conflict with char $ac_func (); below. 7702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7703 <limits.h> exists even on freestanding compilers. */ 7704 7705#ifdef __STDC__ 7706# include <limits.h> 7707#else 7708# include <assert.h> 7709#endif 7710 7711#undef $ac_func 7712 7713/* Override any gcc2 internal prototype to avoid an error. */ 7714#ifdef __cplusplus 7715extern "C" 7716{ 7717#endif 7718/* We use char because int might match the return type of a gcc2 7719 builtin and then its argument prototype would still apply. */ 7720char $ac_func (); 7721/* The GNU C library defines this for functions which it implements 7722 to always fail with ENOSYS. Some functions are actually named 7723 something starting with __ and the normal name is an alias. */ 7724#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7725choke me 7726#else 7727char (*f) () = $ac_func; 7728#endif 7729#ifdef __cplusplus 7730} 7731#endif 7732 7733int 7734main () 7735{ 7736return f != $ac_func; 7737 ; 7738 return 0; 7739} 7740_ACEOF 7741rm -f conftest.$ac_objext conftest$ac_exeext 7742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7743 (eval $ac_link) 2>conftest.er1 7744 ac_status=$? 7745 grep -v '^ *+' conftest.er1 >conftest.err 7746 rm -f conftest.er1 7747 cat conftest.err >&5 7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7749 (exit $ac_status); } && 7750 { ac_try='test -z "$ac_c_werror_flag" 7751 || test ! -s conftest.err' 7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7753 (eval $ac_try) 2>&5 7754 ac_status=$? 7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7756 (exit $ac_status); }; } && 7757 { ac_try='test -s conftest$ac_exeext' 7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7759 (eval $ac_try) 2>&5 7760 ac_status=$? 7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7762 (exit $ac_status); }; }; then 7763 eval "$as_ac_var=yes" 7764else 7765 echo "$as_me: failed program was:" >&5 7766sed 's/^/| /' conftest.$ac_ext >&5 7767 7768eval "$as_ac_var=no" 7769fi 7770rm -f conftest.err conftest.$ac_objext \ 7771 conftest$ac_exeext conftest.$ac_ext 7772fi 7773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7774echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7775if test `eval echo '${'$as_ac_var'}'` = yes; then 7776 cat >>confdefs.h <<_ACEOF 7777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7778_ACEOF 7779 7780fi 7781done 7782 7783 7784echo "$as_me:$LINENO: checking whether strsuftoll is declared" >&5 7785echo $ECHO_N "checking whether strsuftoll is declared... $ECHO_C" >&6 7786if test "${ac_cv_have_decl_strsuftoll+set}" = set; then 7787 echo $ECHO_N "(cached) $ECHO_C" >&6 7788else 7789 cat >conftest.$ac_ext <<_ACEOF 7790/* confdefs.h. */ 7791_ACEOF 7792cat confdefs.h >>conftest.$ac_ext 7793cat >>conftest.$ac_ext <<_ACEOF 7794/* end confdefs.h. */ 7795#include <stdlib.h> 7796 7797int 7798main () 7799{ 7800#ifndef strsuftoll 7801 char *p = (char *) strsuftoll; 7802#endif 7803 7804 ; 7805 return 0; 7806} 7807_ACEOF 7808rm -f conftest.$ac_objext 7809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7810 (eval $ac_compile) 2>conftest.er1 7811 ac_status=$? 7812 grep -v '^ *+' conftest.er1 >conftest.err 7813 rm -f conftest.er1 7814 cat conftest.err >&5 7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7816 (exit $ac_status); } && 7817 { ac_try='test -z "$ac_c_werror_flag" 7818 || test ! -s conftest.err' 7819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7820 (eval $ac_try) 2>&5 7821 ac_status=$? 7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7823 (exit $ac_status); }; } && 7824 { ac_try='test -s conftest.$ac_objext' 7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7826 (eval $ac_try) 2>&5 7827 ac_status=$? 7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7829 (exit $ac_status); }; }; then 7830 ac_cv_have_decl_strsuftoll=yes 7831else 7832 echo "$as_me: failed program was:" >&5 7833sed 's/^/| /' conftest.$ac_ext >&5 7834 7835ac_cv_have_decl_strsuftoll=no 7836fi 7837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7838fi 7839echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsuftoll" >&5 7840echo "${ECHO_T}$ac_cv_have_decl_strsuftoll" >&6 7841if test $ac_cv_have_decl_strsuftoll = yes; then 7842 7843cat >>confdefs.h <<_ACEOF 7844#define HAVE_DECL_STRSUFTOLL 1 7845_ACEOF 7846 7847 7848else 7849 cat >>confdefs.h <<_ACEOF 7850#define HAVE_DECL_STRSUFTOLL 0 7851_ACEOF 7852 7853 7854fi 7855 7856 7857 7858echo "$as_me:$LINENO: checking whether htobe16 is declared" >&5 7859echo $ECHO_N "checking whether htobe16 is declared... $ECHO_C" >&6 7860if test "${ac_cv_have_decl_htobe16+set}" = set; then 7861 echo $ECHO_N "(cached) $ECHO_C" >&6 7862else 7863 cat >conftest.$ac_ext <<_ACEOF 7864/* confdefs.h. */ 7865_ACEOF 7866cat confdefs.h >>conftest.$ac_ext 7867cat >>conftest.$ac_ext <<_ACEOF 7868/* end confdefs.h. */ 7869#include <sys/types.h> 7870 7871int 7872main () 7873{ 7874#ifndef htobe16 7875 char *p = (char *) htobe16; 7876#endif 7877 7878 ; 7879 return 0; 7880} 7881_ACEOF 7882rm -f conftest.$ac_objext 7883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7884 (eval $ac_compile) 2>conftest.er1 7885 ac_status=$? 7886 grep -v '^ *+' conftest.er1 >conftest.err 7887 rm -f conftest.er1 7888 cat conftest.err >&5 7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7890 (exit $ac_status); } && 7891 { ac_try='test -z "$ac_c_werror_flag" 7892 || test ! -s conftest.err' 7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7894 (eval $ac_try) 2>&5 7895 ac_status=$? 7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7897 (exit $ac_status); }; } && 7898 { ac_try='test -s conftest.$ac_objext' 7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7900 (eval $ac_try) 2>&5 7901 ac_status=$? 7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7903 (exit $ac_status); }; }; then 7904 ac_cv_have_decl_htobe16=yes 7905else 7906 echo "$as_me: failed program was:" >&5 7907sed 's/^/| /' conftest.$ac_ext >&5 7908 7909ac_cv_have_decl_htobe16=no 7910fi 7911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7912fi 7913echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe16" >&5 7914echo "${ECHO_T}$ac_cv_have_decl_htobe16" >&6 7915if test $ac_cv_have_decl_htobe16 = yes; then 7916 7917cat >>confdefs.h <<_ACEOF 7918#define HAVE_DECL_HTOBE16 1 7919_ACEOF 7920 7921 7922else 7923 cat >>confdefs.h <<_ACEOF 7924#define HAVE_DECL_HTOBE16 0 7925_ACEOF 7926 7927 7928fi 7929echo "$as_me:$LINENO: checking whether htobe32 is declared" >&5 7930echo $ECHO_N "checking whether htobe32 is declared... $ECHO_C" >&6 7931if test "${ac_cv_have_decl_htobe32+set}" = set; then 7932 echo $ECHO_N "(cached) $ECHO_C" >&6 7933else 7934 cat >conftest.$ac_ext <<_ACEOF 7935/* confdefs.h. */ 7936_ACEOF 7937cat confdefs.h >>conftest.$ac_ext 7938cat >>conftest.$ac_ext <<_ACEOF 7939/* end confdefs.h. */ 7940#include <sys/types.h> 7941 7942int 7943main () 7944{ 7945#ifndef htobe32 7946 char *p = (char *) htobe32; 7947#endif 7948 7949 ; 7950 return 0; 7951} 7952_ACEOF 7953rm -f conftest.$ac_objext 7954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7955 (eval $ac_compile) 2>conftest.er1 7956 ac_status=$? 7957 grep -v '^ *+' conftest.er1 >conftest.err 7958 rm -f conftest.er1 7959 cat conftest.err >&5 7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7961 (exit $ac_status); } && 7962 { ac_try='test -z "$ac_c_werror_flag" 7963 || test ! -s conftest.err' 7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7965 (eval $ac_try) 2>&5 7966 ac_status=$? 7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7968 (exit $ac_status); }; } && 7969 { ac_try='test -s conftest.$ac_objext' 7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7971 (eval $ac_try) 2>&5 7972 ac_status=$? 7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7974 (exit $ac_status); }; }; then 7975 ac_cv_have_decl_htobe32=yes 7976else 7977 echo "$as_me: failed program was:" >&5 7978sed 's/^/| /' conftest.$ac_ext >&5 7979 7980ac_cv_have_decl_htobe32=no 7981fi 7982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7983fi 7984echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe32" >&5 7985echo "${ECHO_T}$ac_cv_have_decl_htobe32" >&6 7986if test $ac_cv_have_decl_htobe32 = yes; then 7987 7988cat >>confdefs.h <<_ACEOF 7989#define HAVE_DECL_HTOBE32 1 7990_ACEOF 7991 7992 7993else 7994 cat >>confdefs.h <<_ACEOF 7995#define HAVE_DECL_HTOBE32 0 7996_ACEOF 7997 7998 7999fi 8000echo "$as_me:$LINENO: checking whether htobe64 is declared" >&5 8001echo $ECHO_N "checking whether htobe64 is declared... $ECHO_C" >&6 8002if test "${ac_cv_have_decl_htobe64+set}" = set; then 8003 echo $ECHO_N "(cached) $ECHO_C" >&6 8004else 8005 cat >conftest.$ac_ext <<_ACEOF 8006/* confdefs.h. */ 8007_ACEOF 8008cat confdefs.h >>conftest.$ac_ext 8009cat >>conftest.$ac_ext <<_ACEOF 8010/* end confdefs.h. */ 8011#include <sys/types.h> 8012 8013int 8014main () 8015{ 8016#ifndef htobe64 8017 char *p = (char *) htobe64; 8018#endif 8019 8020 ; 8021 return 0; 8022} 8023_ACEOF 8024rm -f conftest.$ac_objext 8025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8026 (eval $ac_compile) 2>conftest.er1 8027 ac_status=$? 8028 grep -v '^ *+' conftest.er1 >conftest.err 8029 rm -f conftest.er1 8030 cat conftest.err >&5 8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8032 (exit $ac_status); } && 8033 { ac_try='test -z "$ac_c_werror_flag" 8034 || test ! -s conftest.err' 8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8036 (eval $ac_try) 2>&5 8037 ac_status=$? 8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8039 (exit $ac_status); }; } && 8040 { ac_try='test -s conftest.$ac_objext' 8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8042 (eval $ac_try) 2>&5 8043 ac_status=$? 8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8045 (exit $ac_status); }; }; then 8046 ac_cv_have_decl_htobe64=yes 8047else 8048 echo "$as_me: failed program was:" >&5 8049sed 's/^/| /' conftest.$ac_ext >&5 8050 8051ac_cv_have_decl_htobe64=no 8052fi 8053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8054fi 8055echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe64" >&5 8056echo "${ECHO_T}$ac_cv_have_decl_htobe64" >&6 8057if test $ac_cv_have_decl_htobe64 = yes; then 8058 8059cat >>confdefs.h <<_ACEOF 8060#define HAVE_DECL_HTOBE64 1 8061_ACEOF 8062 8063 8064else 8065 cat >>confdefs.h <<_ACEOF 8066#define HAVE_DECL_HTOBE64 0 8067_ACEOF 8068 8069 8070fi 8071echo "$as_me:$LINENO: checking whether htole16 is declared" >&5 8072echo $ECHO_N "checking whether htole16 is declared... $ECHO_C" >&6 8073if test "${ac_cv_have_decl_htole16+set}" = set; then 8074 echo $ECHO_N "(cached) $ECHO_C" >&6 8075else 8076 cat >conftest.$ac_ext <<_ACEOF 8077/* confdefs.h. */ 8078_ACEOF 8079cat confdefs.h >>conftest.$ac_ext 8080cat >>conftest.$ac_ext <<_ACEOF 8081/* end confdefs.h. */ 8082#include <sys/types.h> 8083 8084int 8085main () 8086{ 8087#ifndef htole16 8088 char *p = (char *) htole16; 8089#endif 8090 8091 ; 8092 return 0; 8093} 8094_ACEOF 8095rm -f conftest.$ac_objext 8096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8097 (eval $ac_compile) 2>conftest.er1 8098 ac_status=$? 8099 grep -v '^ *+' conftest.er1 >conftest.err 8100 rm -f conftest.er1 8101 cat conftest.err >&5 8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8103 (exit $ac_status); } && 8104 { ac_try='test -z "$ac_c_werror_flag" 8105 || test ! -s conftest.err' 8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8107 (eval $ac_try) 2>&5 8108 ac_status=$? 8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8110 (exit $ac_status); }; } && 8111 { ac_try='test -s conftest.$ac_objext' 8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8113 (eval $ac_try) 2>&5 8114 ac_status=$? 8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8116 (exit $ac_status); }; }; then 8117 ac_cv_have_decl_htole16=yes 8118else 8119 echo "$as_me: failed program was:" >&5 8120sed 's/^/| /' conftest.$ac_ext >&5 8121 8122ac_cv_have_decl_htole16=no 8123fi 8124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8125fi 8126echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole16" >&5 8127echo "${ECHO_T}$ac_cv_have_decl_htole16" >&6 8128if test $ac_cv_have_decl_htole16 = yes; then 8129 8130cat >>confdefs.h <<_ACEOF 8131#define HAVE_DECL_HTOLE16 1 8132_ACEOF 8133 8134 8135else 8136 cat >>confdefs.h <<_ACEOF 8137#define HAVE_DECL_HTOLE16 0 8138_ACEOF 8139 8140 8141fi 8142echo "$as_me:$LINENO: checking whether htole32 is declared" >&5 8143echo $ECHO_N "checking whether htole32 is declared... $ECHO_C" >&6 8144if test "${ac_cv_have_decl_htole32+set}" = set; then 8145 echo $ECHO_N "(cached) $ECHO_C" >&6 8146else 8147 cat >conftest.$ac_ext <<_ACEOF 8148/* confdefs.h. */ 8149_ACEOF 8150cat confdefs.h >>conftest.$ac_ext 8151cat >>conftest.$ac_ext <<_ACEOF 8152/* end confdefs.h. */ 8153#include <sys/types.h> 8154 8155int 8156main () 8157{ 8158#ifndef htole32 8159 char *p = (char *) htole32; 8160#endif 8161 8162 ; 8163 return 0; 8164} 8165_ACEOF 8166rm -f conftest.$ac_objext 8167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8168 (eval $ac_compile) 2>conftest.er1 8169 ac_status=$? 8170 grep -v '^ *+' conftest.er1 >conftest.err 8171 rm -f conftest.er1 8172 cat conftest.err >&5 8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8174 (exit $ac_status); } && 8175 { ac_try='test -z "$ac_c_werror_flag" 8176 || test ! -s conftest.err' 8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8178 (eval $ac_try) 2>&5 8179 ac_status=$? 8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8181 (exit $ac_status); }; } && 8182 { ac_try='test -s conftest.$ac_objext' 8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8184 (eval $ac_try) 2>&5 8185 ac_status=$? 8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8187 (exit $ac_status); }; }; then 8188 ac_cv_have_decl_htole32=yes 8189else 8190 echo "$as_me: failed program was:" >&5 8191sed 's/^/| /' conftest.$ac_ext >&5 8192 8193ac_cv_have_decl_htole32=no 8194fi 8195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8196fi 8197echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole32" >&5 8198echo "${ECHO_T}$ac_cv_have_decl_htole32" >&6 8199if test $ac_cv_have_decl_htole32 = yes; then 8200 8201cat >>confdefs.h <<_ACEOF 8202#define HAVE_DECL_HTOLE32 1 8203_ACEOF 8204 8205 8206else 8207 cat >>confdefs.h <<_ACEOF 8208#define HAVE_DECL_HTOLE32 0 8209_ACEOF 8210 8211 8212fi 8213echo "$as_me:$LINENO: checking whether htole64 is declared" >&5 8214echo $ECHO_N "checking whether htole64 is declared... $ECHO_C" >&6 8215if test "${ac_cv_have_decl_htole64+set}" = set; then 8216 echo $ECHO_N "(cached) $ECHO_C" >&6 8217else 8218 cat >conftest.$ac_ext <<_ACEOF 8219/* confdefs.h. */ 8220_ACEOF 8221cat confdefs.h >>conftest.$ac_ext 8222cat >>conftest.$ac_ext <<_ACEOF 8223/* end confdefs.h. */ 8224#include <sys/types.h> 8225 8226int 8227main () 8228{ 8229#ifndef htole64 8230 char *p = (char *) htole64; 8231#endif 8232 8233 ; 8234 return 0; 8235} 8236_ACEOF 8237rm -f conftest.$ac_objext 8238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8239 (eval $ac_compile) 2>conftest.er1 8240 ac_status=$? 8241 grep -v '^ *+' conftest.er1 >conftest.err 8242 rm -f conftest.er1 8243 cat conftest.err >&5 8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8245 (exit $ac_status); } && 8246 { ac_try='test -z "$ac_c_werror_flag" 8247 || test ! -s conftest.err' 8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8249 (eval $ac_try) 2>&5 8250 ac_status=$? 8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8252 (exit $ac_status); }; } && 8253 { ac_try='test -s conftest.$ac_objext' 8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8255 (eval $ac_try) 2>&5 8256 ac_status=$? 8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8258 (exit $ac_status); }; }; then 8259 ac_cv_have_decl_htole64=yes 8260else 8261 echo "$as_me: failed program was:" >&5 8262sed 's/^/| /' conftest.$ac_ext >&5 8263 8264ac_cv_have_decl_htole64=no 8265fi 8266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8267fi 8268echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole64" >&5 8269echo "${ECHO_T}$ac_cv_have_decl_htole64" >&6 8270if test $ac_cv_have_decl_htole64 = yes; then 8271 8272cat >>confdefs.h <<_ACEOF 8273#define HAVE_DECL_HTOLE64 1 8274_ACEOF 8275 8276 8277else 8278 cat >>confdefs.h <<_ACEOF 8279#define HAVE_DECL_HTOLE64 0 8280_ACEOF 8281 8282 8283fi 8284echo "$as_me:$LINENO: checking whether be16toh is declared" >&5 8285echo $ECHO_N "checking whether be16toh is declared... $ECHO_C" >&6 8286if test "${ac_cv_have_decl_be16toh+set}" = set; then 8287 echo $ECHO_N "(cached) $ECHO_C" >&6 8288else 8289 cat >conftest.$ac_ext <<_ACEOF 8290/* confdefs.h. */ 8291_ACEOF 8292cat confdefs.h >>conftest.$ac_ext 8293cat >>conftest.$ac_ext <<_ACEOF 8294/* end confdefs.h. */ 8295#include <sys/types.h> 8296 8297int 8298main () 8299{ 8300#ifndef be16toh 8301 char *p = (char *) be16toh; 8302#endif 8303 8304 ; 8305 return 0; 8306} 8307_ACEOF 8308rm -f conftest.$ac_objext 8309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8310 (eval $ac_compile) 2>conftest.er1 8311 ac_status=$? 8312 grep -v '^ *+' conftest.er1 >conftest.err 8313 rm -f conftest.er1 8314 cat conftest.err >&5 8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8316 (exit $ac_status); } && 8317 { ac_try='test -z "$ac_c_werror_flag" 8318 || test ! -s conftest.err' 8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8320 (eval $ac_try) 2>&5 8321 ac_status=$? 8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8323 (exit $ac_status); }; } && 8324 { ac_try='test -s conftest.$ac_objext' 8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8326 (eval $ac_try) 2>&5 8327 ac_status=$? 8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8329 (exit $ac_status); }; }; then 8330 ac_cv_have_decl_be16toh=yes 8331else 8332 echo "$as_me: failed program was:" >&5 8333sed 's/^/| /' conftest.$ac_ext >&5 8334 8335ac_cv_have_decl_be16toh=no 8336fi 8337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8338fi 8339echo "$as_me:$LINENO: result: $ac_cv_have_decl_be16toh" >&5 8340echo "${ECHO_T}$ac_cv_have_decl_be16toh" >&6 8341if test $ac_cv_have_decl_be16toh = yes; then 8342 8343cat >>confdefs.h <<_ACEOF 8344#define HAVE_DECL_BE16TOH 1 8345_ACEOF 8346 8347 8348else 8349 cat >>confdefs.h <<_ACEOF 8350#define HAVE_DECL_BE16TOH 0 8351_ACEOF 8352 8353 8354fi 8355echo "$as_me:$LINENO: checking whether be32toh is declared" >&5 8356echo $ECHO_N "checking whether be32toh is declared... $ECHO_C" >&6 8357if test "${ac_cv_have_decl_be32toh+set}" = set; then 8358 echo $ECHO_N "(cached) $ECHO_C" >&6 8359else 8360 cat >conftest.$ac_ext <<_ACEOF 8361/* confdefs.h. */ 8362_ACEOF 8363cat confdefs.h >>conftest.$ac_ext 8364cat >>conftest.$ac_ext <<_ACEOF 8365/* end confdefs.h. */ 8366#include <sys/types.h> 8367 8368int 8369main () 8370{ 8371#ifndef be32toh 8372 char *p = (char *) be32toh; 8373#endif 8374 8375 ; 8376 return 0; 8377} 8378_ACEOF 8379rm -f conftest.$ac_objext 8380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8381 (eval $ac_compile) 2>conftest.er1 8382 ac_status=$? 8383 grep -v '^ *+' conftest.er1 >conftest.err 8384 rm -f conftest.er1 8385 cat conftest.err >&5 8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8387 (exit $ac_status); } && 8388 { ac_try='test -z "$ac_c_werror_flag" 8389 || test ! -s conftest.err' 8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8391 (eval $ac_try) 2>&5 8392 ac_status=$? 8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8394 (exit $ac_status); }; } && 8395 { ac_try='test -s conftest.$ac_objext' 8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8397 (eval $ac_try) 2>&5 8398 ac_status=$? 8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8400 (exit $ac_status); }; }; then 8401 ac_cv_have_decl_be32toh=yes 8402else 8403 echo "$as_me: failed program was:" >&5 8404sed 's/^/| /' conftest.$ac_ext >&5 8405 8406ac_cv_have_decl_be32toh=no 8407fi 8408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8409fi 8410echo "$as_me:$LINENO: result: $ac_cv_have_decl_be32toh" >&5 8411echo "${ECHO_T}$ac_cv_have_decl_be32toh" >&6 8412if test $ac_cv_have_decl_be32toh = yes; then 8413 8414cat >>confdefs.h <<_ACEOF 8415#define HAVE_DECL_BE32TOH 1 8416_ACEOF 8417 8418 8419else 8420 cat >>confdefs.h <<_ACEOF 8421#define HAVE_DECL_BE32TOH 0 8422_ACEOF 8423 8424 8425fi 8426echo "$as_me:$LINENO: checking whether be64toh is declared" >&5 8427echo $ECHO_N "checking whether be64toh is declared... $ECHO_C" >&6 8428if test "${ac_cv_have_decl_be64toh+set}" = set; then 8429 echo $ECHO_N "(cached) $ECHO_C" >&6 8430else 8431 cat >conftest.$ac_ext <<_ACEOF 8432/* confdefs.h. */ 8433_ACEOF 8434cat confdefs.h >>conftest.$ac_ext 8435cat >>conftest.$ac_ext <<_ACEOF 8436/* end confdefs.h. */ 8437#include <sys/types.h> 8438 8439int 8440main () 8441{ 8442#ifndef be64toh 8443 char *p = (char *) be64toh; 8444#endif 8445 8446 ; 8447 return 0; 8448} 8449_ACEOF 8450rm -f conftest.$ac_objext 8451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8452 (eval $ac_compile) 2>conftest.er1 8453 ac_status=$? 8454 grep -v '^ *+' conftest.er1 >conftest.err 8455 rm -f conftest.er1 8456 cat conftest.err >&5 8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8458 (exit $ac_status); } && 8459 { ac_try='test -z "$ac_c_werror_flag" 8460 || test ! -s conftest.err' 8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8462 (eval $ac_try) 2>&5 8463 ac_status=$? 8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8465 (exit $ac_status); }; } && 8466 { ac_try='test -s conftest.$ac_objext' 8467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8468 (eval $ac_try) 2>&5 8469 ac_status=$? 8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8471 (exit $ac_status); }; }; then 8472 ac_cv_have_decl_be64toh=yes 8473else 8474 echo "$as_me: failed program was:" >&5 8475sed 's/^/| /' conftest.$ac_ext >&5 8476 8477ac_cv_have_decl_be64toh=no 8478fi 8479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8480fi 8481echo "$as_me:$LINENO: result: $ac_cv_have_decl_be64toh" >&5 8482echo "${ECHO_T}$ac_cv_have_decl_be64toh" >&6 8483if test $ac_cv_have_decl_be64toh = yes; then 8484 8485cat >>confdefs.h <<_ACEOF 8486#define HAVE_DECL_BE64TOH 1 8487_ACEOF 8488 8489 8490else 8491 cat >>confdefs.h <<_ACEOF 8492#define HAVE_DECL_BE64TOH 0 8493_ACEOF 8494 8495 8496fi 8497echo "$as_me:$LINENO: checking whether le16toh is declared" >&5 8498echo $ECHO_N "checking whether le16toh is declared... $ECHO_C" >&6 8499if test "${ac_cv_have_decl_le16toh+set}" = set; then 8500 echo $ECHO_N "(cached) $ECHO_C" >&6 8501else 8502 cat >conftest.$ac_ext <<_ACEOF 8503/* confdefs.h. */ 8504_ACEOF 8505cat confdefs.h >>conftest.$ac_ext 8506cat >>conftest.$ac_ext <<_ACEOF 8507/* end confdefs.h. */ 8508#include <sys/types.h> 8509 8510int 8511main () 8512{ 8513#ifndef le16toh 8514 char *p = (char *) le16toh; 8515#endif 8516 8517 ; 8518 return 0; 8519} 8520_ACEOF 8521rm -f conftest.$ac_objext 8522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8523 (eval $ac_compile) 2>conftest.er1 8524 ac_status=$? 8525 grep -v '^ *+' conftest.er1 >conftest.err 8526 rm -f conftest.er1 8527 cat conftest.err >&5 8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8529 (exit $ac_status); } && 8530 { ac_try='test -z "$ac_c_werror_flag" 8531 || test ! -s conftest.err' 8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8533 (eval $ac_try) 2>&5 8534 ac_status=$? 8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8536 (exit $ac_status); }; } && 8537 { ac_try='test -s conftest.$ac_objext' 8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8539 (eval $ac_try) 2>&5 8540 ac_status=$? 8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8542 (exit $ac_status); }; }; then 8543 ac_cv_have_decl_le16toh=yes 8544else 8545 echo "$as_me: failed program was:" >&5 8546sed 's/^/| /' conftest.$ac_ext >&5 8547 8548ac_cv_have_decl_le16toh=no 8549fi 8550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8551fi 8552echo "$as_me:$LINENO: result: $ac_cv_have_decl_le16toh" >&5 8553echo "${ECHO_T}$ac_cv_have_decl_le16toh" >&6 8554if test $ac_cv_have_decl_le16toh = yes; then 8555 8556cat >>confdefs.h <<_ACEOF 8557#define HAVE_DECL_LE16TOH 1 8558_ACEOF 8559 8560 8561else 8562 cat >>confdefs.h <<_ACEOF 8563#define HAVE_DECL_LE16TOH 0 8564_ACEOF 8565 8566 8567fi 8568echo "$as_me:$LINENO: checking whether le32toh is declared" >&5 8569echo $ECHO_N "checking whether le32toh is declared... $ECHO_C" >&6 8570if test "${ac_cv_have_decl_le32toh+set}" = set; then 8571 echo $ECHO_N "(cached) $ECHO_C" >&6 8572else 8573 cat >conftest.$ac_ext <<_ACEOF 8574/* confdefs.h. */ 8575_ACEOF 8576cat confdefs.h >>conftest.$ac_ext 8577cat >>conftest.$ac_ext <<_ACEOF 8578/* end confdefs.h. */ 8579#include <sys/types.h> 8580 8581int 8582main () 8583{ 8584#ifndef le32toh 8585 char *p = (char *) le32toh; 8586#endif 8587 8588 ; 8589 return 0; 8590} 8591_ACEOF 8592rm -f conftest.$ac_objext 8593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8594 (eval $ac_compile) 2>conftest.er1 8595 ac_status=$? 8596 grep -v '^ *+' conftest.er1 >conftest.err 8597 rm -f conftest.er1 8598 cat conftest.err >&5 8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8600 (exit $ac_status); } && 8601 { ac_try='test -z "$ac_c_werror_flag" 8602 || test ! -s conftest.err' 8603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8604 (eval $ac_try) 2>&5 8605 ac_status=$? 8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8607 (exit $ac_status); }; } && 8608 { ac_try='test -s conftest.$ac_objext' 8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8610 (eval $ac_try) 2>&5 8611 ac_status=$? 8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8613 (exit $ac_status); }; }; then 8614 ac_cv_have_decl_le32toh=yes 8615else 8616 echo "$as_me: failed program was:" >&5 8617sed 's/^/| /' conftest.$ac_ext >&5 8618 8619ac_cv_have_decl_le32toh=no 8620fi 8621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8622fi 8623echo "$as_me:$LINENO: result: $ac_cv_have_decl_le32toh" >&5 8624echo "${ECHO_T}$ac_cv_have_decl_le32toh" >&6 8625if test $ac_cv_have_decl_le32toh = yes; then 8626 8627cat >>confdefs.h <<_ACEOF 8628#define HAVE_DECL_LE32TOH 1 8629_ACEOF 8630 8631 8632else 8633 cat >>confdefs.h <<_ACEOF 8634#define HAVE_DECL_LE32TOH 0 8635_ACEOF 8636 8637 8638fi 8639echo "$as_me:$LINENO: checking whether le64toh is declared" >&5 8640echo $ECHO_N "checking whether le64toh is declared... $ECHO_C" >&6 8641if test "${ac_cv_have_decl_le64toh+set}" = set; then 8642 echo $ECHO_N "(cached) $ECHO_C" >&6 8643else 8644 cat >conftest.$ac_ext <<_ACEOF 8645/* confdefs.h. */ 8646_ACEOF 8647cat confdefs.h >>conftest.$ac_ext 8648cat >>conftest.$ac_ext <<_ACEOF 8649/* end confdefs.h. */ 8650#include <sys/types.h> 8651 8652int 8653main () 8654{ 8655#ifndef le64toh 8656 char *p = (char *) le64toh; 8657#endif 8658 8659 ; 8660 return 0; 8661} 8662_ACEOF 8663rm -f conftest.$ac_objext 8664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8665 (eval $ac_compile) 2>conftest.er1 8666 ac_status=$? 8667 grep -v '^ *+' conftest.er1 >conftest.err 8668 rm -f conftest.er1 8669 cat conftest.err >&5 8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8671 (exit $ac_status); } && 8672 { ac_try='test -z "$ac_c_werror_flag" 8673 || test ! -s conftest.err' 8674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8675 (eval $ac_try) 2>&5 8676 ac_status=$? 8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8678 (exit $ac_status); }; } && 8679 { ac_try='test -s conftest.$ac_objext' 8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8681 (eval $ac_try) 2>&5 8682 ac_status=$? 8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8684 (exit $ac_status); }; }; then 8685 ac_cv_have_decl_le64toh=yes 8686else 8687 echo "$as_me: failed program was:" >&5 8688sed 's/^/| /' conftest.$ac_ext >&5 8689 8690ac_cv_have_decl_le64toh=no 8691fi 8692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8693fi 8694echo "$as_me:$LINENO: result: $ac_cv_have_decl_le64toh" >&5 8695echo "${ECHO_T}$ac_cv_have_decl_le64toh" >&6 8696if test $ac_cv_have_decl_le64toh = yes; then 8697 8698cat >>confdefs.h <<_ACEOF 8699#define HAVE_DECL_LE64TOH 1 8700_ACEOF 8701 8702 8703else 8704 cat >>confdefs.h <<_ACEOF 8705#define HAVE_DECL_LE64TOH 0 8706_ACEOF 8707 8708 8709fi 8710 8711 8712 8713echo "$as_me:$LINENO: checking whether bswap16 is declared" >&5 8714echo $ECHO_N "checking whether bswap16 is declared... $ECHO_C" >&6 8715if test "${ac_cv_have_decl_bswap16+set}" = set; then 8716 echo $ECHO_N "(cached) $ECHO_C" >&6 8717else 8718 cat >conftest.$ac_ext <<_ACEOF 8719/* confdefs.h. */ 8720_ACEOF 8721cat confdefs.h >>conftest.$ac_ext 8722cat >>conftest.$ac_ext <<_ACEOF 8723/* end confdefs.h. */ 8724#include <machine/bswap.h> 8725 8726int 8727main () 8728{ 8729#ifndef bswap16 8730 char *p = (char *) bswap16; 8731#endif 8732 8733 ; 8734 return 0; 8735} 8736_ACEOF 8737rm -f conftest.$ac_objext 8738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8739 (eval $ac_compile) 2>conftest.er1 8740 ac_status=$? 8741 grep -v '^ *+' conftest.er1 >conftest.err 8742 rm -f conftest.er1 8743 cat conftest.err >&5 8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8745 (exit $ac_status); } && 8746 { ac_try='test -z "$ac_c_werror_flag" 8747 || test ! -s conftest.err' 8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8749 (eval $ac_try) 2>&5 8750 ac_status=$? 8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8752 (exit $ac_status); }; } && 8753 { ac_try='test -s conftest.$ac_objext' 8754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8755 (eval $ac_try) 2>&5 8756 ac_status=$? 8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8758 (exit $ac_status); }; }; then 8759 ac_cv_have_decl_bswap16=yes 8760else 8761 echo "$as_me: failed program was:" >&5 8762sed 's/^/| /' conftest.$ac_ext >&5 8763 8764ac_cv_have_decl_bswap16=no 8765fi 8766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8767fi 8768echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap16" >&5 8769echo "${ECHO_T}$ac_cv_have_decl_bswap16" >&6 8770if test $ac_cv_have_decl_bswap16 = yes; then 8771 8772cat >>confdefs.h <<_ACEOF 8773#define HAVE_DECL_BSWAP16 1 8774_ACEOF 8775 8776 8777else 8778 cat >>confdefs.h <<_ACEOF 8779#define HAVE_DECL_BSWAP16 0 8780_ACEOF 8781 8782 8783fi 8784echo "$as_me:$LINENO: checking whether bswap32 is declared" >&5 8785echo $ECHO_N "checking whether bswap32 is declared... $ECHO_C" >&6 8786if test "${ac_cv_have_decl_bswap32+set}" = set; then 8787 echo $ECHO_N "(cached) $ECHO_C" >&6 8788else 8789 cat >conftest.$ac_ext <<_ACEOF 8790/* confdefs.h. */ 8791_ACEOF 8792cat confdefs.h >>conftest.$ac_ext 8793cat >>conftest.$ac_ext <<_ACEOF 8794/* end confdefs.h. */ 8795#include <machine/bswap.h> 8796 8797int 8798main () 8799{ 8800#ifndef bswap32 8801 char *p = (char *) bswap32; 8802#endif 8803 8804 ; 8805 return 0; 8806} 8807_ACEOF 8808rm -f conftest.$ac_objext 8809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8810 (eval $ac_compile) 2>conftest.er1 8811 ac_status=$? 8812 grep -v '^ *+' conftest.er1 >conftest.err 8813 rm -f conftest.er1 8814 cat conftest.err >&5 8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8816 (exit $ac_status); } && 8817 { ac_try='test -z "$ac_c_werror_flag" 8818 || test ! -s conftest.err' 8819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8820 (eval $ac_try) 2>&5 8821 ac_status=$? 8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8823 (exit $ac_status); }; } && 8824 { ac_try='test -s conftest.$ac_objext' 8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8826 (eval $ac_try) 2>&5 8827 ac_status=$? 8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8829 (exit $ac_status); }; }; then 8830 ac_cv_have_decl_bswap32=yes 8831else 8832 echo "$as_me: failed program was:" >&5 8833sed 's/^/| /' conftest.$ac_ext >&5 8834 8835ac_cv_have_decl_bswap32=no 8836fi 8837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8838fi 8839echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap32" >&5 8840echo "${ECHO_T}$ac_cv_have_decl_bswap32" >&6 8841if test $ac_cv_have_decl_bswap32 = yes; then 8842 8843cat >>confdefs.h <<_ACEOF 8844#define HAVE_DECL_BSWAP32 1 8845_ACEOF 8846 8847 8848else 8849 cat >>confdefs.h <<_ACEOF 8850#define HAVE_DECL_BSWAP32 0 8851_ACEOF 8852 8853 8854fi 8855echo "$as_me:$LINENO: checking whether bswap64 is declared" >&5 8856echo $ECHO_N "checking whether bswap64 is declared... $ECHO_C" >&6 8857if test "${ac_cv_have_decl_bswap64+set}" = set; then 8858 echo $ECHO_N "(cached) $ECHO_C" >&6 8859else 8860 cat >conftest.$ac_ext <<_ACEOF 8861/* confdefs.h. */ 8862_ACEOF 8863cat confdefs.h >>conftest.$ac_ext 8864cat >>conftest.$ac_ext <<_ACEOF 8865/* end confdefs.h. */ 8866#include <machine/bswap.h> 8867 8868int 8869main () 8870{ 8871#ifndef bswap64 8872 char *p = (char *) bswap64; 8873#endif 8874 8875 ; 8876 return 0; 8877} 8878_ACEOF 8879rm -f conftest.$ac_objext 8880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8881 (eval $ac_compile) 2>conftest.er1 8882 ac_status=$? 8883 grep -v '^ *+' conftest.er1 >conftest.err 8884 rm -f conftest.er1 8885 cat conftest.err >&5 8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8887 (exit $ac_status); } && 8888 { ac_try='test -z "$ac_c_werror_flag" 8889 || test ! -s conftest.err' 8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8891 (eval $ac_try) 2>&5 8892 ac_status=$? 8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8894 (exit $ac_status); }; } && 8895 { ac_try='test -s conftest.$ac_objext' 8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8897 (eval $ac_try) 2>&5 8898 ac_status=$? 8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8900 (exit $ac_status); }; }; then 8901 ac_cv_have_decl_bswap64=yes 8902else 8903 echo "$as_me: failed program was:" >&5 8904sed 's/^/| /' conftest.$ac_ext >&5 8905 8906ac_cv_have_decl_bswap64=no 8907fi 8908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8909fi 8910echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap64" >&5 8911echo "${ECHO_T}$ac_cv_have_decl_bswap64" >&6 8912if test $ac_cv_have_decl_bswap64 = yes; then 8913 8914cat >>confdefs.h <<_ACEOF 8915#define HAVE_DECL_BSWAP64 1 8916_ACEOF 8917 8918 8919else 8920 cat >>confdefs.h <<_ACEOF 8921#define HAVE_DECL_BSWAP64 0 8922_ACEOF 8923 8924 8925fi 8926 8927 8928 8929echo "$as_me:$LINENO: checking whether fstatvfs is declared" >&5 8930echo $ECHO_N "checking whether fstatvfs is declared... $ECHO_C" >&6 8931if test "${ac_cv_have_decl_fstatvfs+set}" = set; then 8932 echo $ECHO_N "(cached) $ECHO_C" >&6 8933else 8934 cat >conftest.$ac_ext <<_ACEOF 8935/* confdefs.h. */ 8936_ACEOF 8937cat confdefs.h >>conftest.$ac_ext 8938cat >>conftest.$ac_ext <<_ACEOF 8939/* end confdefs.h. */ 8940#include <sys/statvfs.h> 8941 8942int 8943main () 8944{ 8945#ifndef fstatvfs 8946 char *p = (char *) fstatvfs; 8947#endif 8948 8949 ; 8950 return 0; 8951} 8952_ACEOF 8953rm -f conftest.$ac_objext 8954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8955 (eval $ac_compile) 2>conftest.er1 8956 ac_status=$? 8957 grep -v '^ *+' conftest.er1 >conftest.err 8958 rm -f conftest.er1 8959 cat conftest.err >&5 8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8961 (exit $ac_status); } && 8962 { ac_try='test -z "$ac_c_werror_flag" 8963 || test ! -s conftest.err' 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); }; } && 8969 { ac_try='test -s conftest.$ac_objext' 8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8971 (eval $ac_try) 2>&5 8972 ac_status=$? 8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8974 (exit $ac_status); }; }; then 8975 ac_cv_have_decl_fstatvfs=yes 8976else 8977 echo "$as_me: failed program was:" >&5 8978sed 's/^/| /' conftest.$ac_ext >&5 8979 8980ac_cv_have_decl_fstatvfs=no 8981fi 8982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8983fi 8984echo "$as_me:$LINENO: result: $ac_cv_have_decl_fstatvfs" >&5 8985echo "${ECHO_T}$ac_cv_have_decl_fstatvfs" >&6 8986if test $ac_cv_have_decl_fstatvfs = yes; then 8987 8988cat >>confdefs.h <<_ACEOF 8989#define HAVE_DECL_FSTATVFS 1 8990_ACEOF 8991 8992 8993else 8994 cat >>confdefs.h <<_ACEOF 8995#define HAVE_DECL_FSTATVFS 0 8996_ACEOF 8997 8998 8999fi 9000 9001 9002 9003echo "$as_me:$LINENO: checking whether setgroupent is declared" >&5 9004echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6 9005if test "${ac_cv_have_decl_setgroupent+set}" = set; then 9006 echo $ECHO_N "(cached) $ECHO_C" >&6 9007else 9008 cat >conftest.$ac_ext <<_ACEOF 9009/* confdefs.h. */ 9010_ACEOF 9011cat confdefs.h >>conftest.$ac_ext 9012cat >>conftest.$ac_ext <<_ACEOF 9013/* end confdefs.h. */ 9014 9015#include <sys/types.h> 9016#include <grp.h> 9017#include <pwd.h> 9018 9019 9020int 9021main () 9022{ 9023#ifndef setgroupent 9024 char *p = (char *) setgroupent; 9025#endif 9026 9027 ; 9028 return 0; 9029} 9030_ACEOF 9031rm -f conftest.$ac_objext 9032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9033 (eval $ac_compile) 2>conftest.er1 9034 ac_status=$? 9035 grep -v '^ *+' conftest.er1 >conftest.err 9036 rm -f conftest.er1 9037 cat conftest.err >&5 9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9039 (exit $ac_status); } && 9040 { ac_try='test -z "$ac_c_werror_flag" 9041 || test ! -s conftest.err' 9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9043 (eval $ac_try) 2>&5 9044 ac_status=$? 9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9046 (exit $ac_status); }; } && 9047 { ac_try='test -s conftest.$ac_objext' 9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9049 (eval $ac_try) 2>&5 9050 ac_status=$? 9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9052 (exit $ac_status); }; }; then 9053 ac_cv_have_decl_setgroupent=yes 9054else 9055 echo "$as_me: failed program was:" >&5 9056sed 's/^/| /' conftest.$ac_ext >&5 9057 9058ac_cv_have_decl_setgroupent=no 9059fi 9060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9061fi 9062echo "$as_me:$LINENO: result: $ac_cv_have_decl_setgroupent" >&5 9063echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6 9064if test $ac_cv_have_decl_setgroupent = yes; then 9065 9066cat >>confdefs.h <<_ACEOF 9067#define HAVE_DECL_SETGROUPENT 1 9068_ACEOF 9069 9070 9071else 9072 cat >>confdefs.h <<_ACEOF 9073#define HAVE_DECL_SETGROUPENT 0 9074_ACEOF 9075 9076 9077fi 9078echo "$as_me:$LINENO: checking whether setpassent is declared" >&5 9079echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6 9080if test "${ac_cv_have_decl_setpassent+set}" = set; then 9081 echo $ECHO_N "(cached) $ECHO_C" >&6 9082else 9083 cat >conftest.$ac_ext <<_ACEOF 9084/* confdefs.h. */ 9085_ACEOF 9086cat confdefs.h >>conftest.$ac_ext 9087cat >>conftest.$ac_ext <<_ACEOF 9088/* end confdefs.h. */ 9089 9090#include <sys/types.h> 9091#include <grp.h> 9092#include <pwd.h> 9093 9094 9095int 9096main () 9097{ 9098#ifndef setpassent 9099 char *p = (char *) setpassent; 9100#endif 9101 9102 ; 9103 return 0; 9104} 9105_ACEOF 9106rm -f conftest.$ac_objext 9107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9108 (eval $ac_compile) 2>conftest.er1 9109 ac_status=$? 9110 grep -v '^ *+' conftest.er1 >conftest.err 9111 rm -f conftest.er1 9112 cat conftest.err >&5 9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9114 (exit $ac_status); } && 9115 { ac_try='test -z "$ac_c_werror_flag" 9116 || test ! -s conftest.err' 9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9118 (eval $ac_try) 2>&5 9119 ac_status=$? 9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9121 (exit $ac_status); }; } && 9122 { ac_try='test -s conftest.$ac_objext' 9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9124 (eval $ac_try) 2>&5 9125 ac_status=$? 9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9127 (exit $ac_status); }; }; then 9128 ac_cv_have_decl_setpassent=yes 9129else 9130 echo "$as_me: failed program was:" >&5 9131sed 's/^/| /' conftest.$ac_ext >&5 9132 9133ac_cv_have_decl_setpassent=no 9134fi 9135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9136fi 9137echo "$as_me:$LINENO: result: $ac_cv_have_decl_setpassent" >&5 9138echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6 9139if test $ac_cv_have_decl_setpassent = yes; then 9140 9141cat >>confdefs.h <<_ACEOF 9142#define HAVE_DECL_SETPASSENT 1 9143_ACEOF 9144 9145 9146else 9147 cat >>confdefs.h <<_ACEOF 9148#define HAVE_DECL_SETPASSENT 0 9149_ACEOF 9150 9151 9152fi 9153 9154 9155 9156# regcomp() and regexec() are also names of functions in the old V8 9157# regexp package. To avoid them, we need to find out who has regfree(). 9158 9159 9160echo "$as_me:$LINENO: checking for regfree in -lregex" >&5 9161echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6 9162if test "${ac_cv_lib_regex_regfree+set}" = set; then 9163 echo $ECHO_N "(cached) $ECHO_C" >&6 9164else 9165 ac_check_lib_save_LIBS=$LIBS 9166LIBS="-lregex $LIBS" 9167cat >conftest.$ac_ext <<_ACEOF 9168/* confdefs.h. */ 9169_ACEOF 9170cat confdefs.h >>conftest.$ac_ext 9171cat >>conftest.$ac_ext <<_ACEOF 9172/* end confdefs.h. */ 9173 9174/* Override any gcc2 internal prototype to avoid an error. */ 9175#ifdef __cplusplus 9176extern "C" 9177#endif 9178/* We use char because int might match the return type of a gcc2 9179 builtin and then its argument prototype would still apply. */ 9180char regfree (); 9181int 9182main () 9183{ 9184regfree (); 9185 ; 9186 return 0; 9187} 9188_ACEOF 9189rm -f conftest.$ac_objext conftest$ac_exeext 9190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9191 (eval $ac_link) 2>conftest.er1 9192 ac_status=$? 9193 grep -v '^ *+' conftest.er1 >conftest.err 9194 rm -f conftest.er1 9195 cat conftest.err >&5 9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9197 (exit $ac_status); } && 9198 { ac_try='test -z "$ac_c_werror_flag" 9199 || test ! -s conftest.err' 9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9201 (eval $ac_try) 2>&5 9202 ac_status=$? 9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9204 (exit $ac_status); }; } && 9205 { ac_try='test -s conftest$ac_exeext' 9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9207 (eval $ac_try) 2>&5 9208 ac_status=$? 9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9210 (exit $ac_status); }; }; then 9211 ac_cv_lib_regex_regfree=yes 9212else 9213 echo "$as_me: failed program was:" >&5 9214sed 's/^/| /' conftest.$ac_ext >&5 9215 9216ac_cv_lib_regex_regfree=no 9217fi 9218rm -f conftest.err conftest.$ac_objext \ 9219 conftest$ac_exeext conftest.$ac_ext 9220LIBS=$ac_check_lib_save_LIBS 9221fi 9222echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regfree" >&5 9223echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6 9224if test $ac_cv_lib_regex_regfree = yes; then 9225 cat >>confdefs.h <<_ACEOF 9226#define HAVE_LIBREGEX 1 9227_ACEOF 9228 9229 LIBS="-lregex $LIBS" 9230 9231fi 9232 9233echo "$as_me:$LINENO: checking for library containing regfree" >&5 9234echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6 9235if test "${ac_cv_search_regfree+set}" = set; then 9236 echo $ECHO_N "(cached) $ECHO_C" >&6 9237else 9238 ac_func_search_save_LIBS=$LIBS 9239ac_cv_search_regfree=no 9240cat >conftest.$ac_ext <<_ACEOF 9241/* confdefs.h. */ 9242_ACEOF 9243cat confdefs.h >>conftest.$ac_ext 9244cat >>conftest.$ac_ext <<_ACEOF 9245/* end confdefs.h. */ 9246 9247/* Override any gcc2 internal prototype to avoid an error. */ 9248#ifdef __cplusplus 9249extern "C" 9250#endif 9251/* We use char because int might match the return type of a gcc2 9252 builtin and then its argument prototype would still apply. */ 9253char regfree (); 9254int 9255main () 9256{ 9257regfree (); 9258 ; 9259 return 0; 9260} 9261_ACEOF 9262rm -f conftest.$ac_objext conftest$ac_exeext 9263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9264 (eval $ac_link) 2>conftest.er1 9265 ac_status=$? 9266 grep -v '^ *+' conftest.er1 >conftest.err 9267 rm -f conftest.er1 9268 cat conftest.err >&5 9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9270 (exit $ac_status); } && 9271 { ac_try='test -z "$ac_c_werror_flag" 9272 || test ! -s conftest.err' 9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9274 (eval $ac_try) 2>&5 9275 ac_status=$? 9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9277 (exit $ac_status); }; } && 9278 { ac_try='test -s conftest$ac_exeext' 9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9280 (eval $ac_try) 2>&5 9281 ac_status=$? 9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9283 (exit $ac_status); }; }; then 9284 ac_cv_search_regfree="none required" 9285else 9286 echo "$as_me: failed program was:" >&5 9287sed 's/^/| /' conftest.$ac_ext >&5 9288 9289fi 9290rm -f conftest.err conftest.$ac_objext \ 9291 conftest$ac_exeext conftest.$ac_ext 9292if test "$ac_cv_search_regfree" = no; then 9293 for ac_lib in rx posix; do 9294 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9295 cat >conftest.$ac_ext <<_ACEOF 9296/* confdefs.h. */ 9297_ACEOF 9298cat confdefs.h >>conftest.$ac_ext 9299cat >>conftest.$ac_ext <<_ACEOF 9300/* end confdefs.h. */ 9301 9302/* Override any gcc2 internal prototype to avoid an error. */ 9303#ifdef __cplusplus 9304extern "C" 9305#endif 9306/* We use char because int might match the return type of a gcc2 9307 builtin and then its argument prototype would still apply. */ 9308char regfree (); 9309int 9310main () 9311{ 9312regfree (); 9313 ; 9314 return 0; 9315} 9316_ACEOF 9317rm -f conftest.$ac_objext conftest$ac_exeext 9318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9319 (eval $ac_link) 2>conftest.er1 9320 ac_status=$? 9321 grep -v '^ *+' conftest.er1 >conftest.err 9322 rm -f conftest.er1 9323 cat conftest.err >&5 9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9325 (exit $ac_status); } && 9326 { ac_try='test -z "$ac_c_werror_flag" 9327 || test ! -s conftest.err' 9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9329 (eval $ac_try) 2>&5 9330 ac_status=$? 9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9332 (exit $ac_status); }; } && 9333 { ac_try='test -s conftest$ac_exeext' 9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9335 (eval $ac_try) 2>&5 9336 ac_status=$? 9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9338 (exit $ac_status); }; }; then 9339 ac_cv_search_regfree="-l$ac_lib" 9340break 9341else 9342 echo "$as_me: failed program was:" >&5 9343sed 's/^/| /' conftest.$ac_ext >&5 9344 9345fi 9346rm -f conftest.err conftest.$ac_objext \ 9347 conftest$ac_exeext conftest.$ac_ext 9348 done 9349fi 9350LIBS=$ac_func_search_save_LIBS 9351fi 9352echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5 9353echo "${ECHO_T}$ac_cv_search_regfree" >&6 9354if test "$ac_cv_search_regfree" != no; then 9355 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS" 9356 9357fi 9358 9359 9360cat >confcache <<\_ACEOF 9361# This file is a shell script that caches the results of configure 9362# tests run on this system so they can be shared between configure 9363# scripts and configure runs, see configure's option --config-cache. 9364# It is not useful on other systems. If it contains results you don't 9365# want to keep, you may remove or edit it. 9366# 9367# config.status only pays attention to the cache file if you give it 9368# the --recheck option to rerun configure. 9369# 9370# `ac_cv_env_foo' variables (set or unset) will be overridden when 9371# loading this file, other *unset* `ac_cv_foo' will be assigned the 9372# following values. 9373 9374_ACEOF 9375 9376# The following way of writing the cache mishandles newlines in values, 9377# but we know of no workaround that is simple, portable, and efficient. 9378# So, don't put newlines in cache variables' values. 9379# Ultrix sh set writes to stderr and can't be redirected directly, 9380# and sets the high bit in the cache file unless we assign to the vars. 9381{ 9382 (set) 2>&1 | 9383 case `(ac_space=' '; set | grep ac_space) 2>&1` in 9384 *ac_space=\ *) 9385 # `set' does not quote correctly, so add quotes (double-quote 9386 # substitution turns \\\\ into \\, and sed turns \\ into \). 9387 sed -n \ 9388 "s/'/'\\\\''/g; 9389 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9390 ;; 9391 *) 9392 # `set' quotes correctly as required by POSIX, so do not add quotes. 9393 sed -n \ 9394 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 9395 ;; 9396 esac; 9397} | 9398 sed ' 9399 t clear 9400 : clear 9401 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9402 t end 9403 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9404 : end' >>confcache 9405if diff $cache_file confcache >/dev/null 2>&1; then :; else 9406 if test -w $cache_file; then 9407 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 9408 cat confcache >$cache_file 9409 else 9410 echo "not updating unwritable cache $cache_file" 9411 fi 9412fi 9413rm -f confcache 9414 9415test "x$prefix" = xNONE && prefix=$ac_default_prefix 9416# Let make expand exec_prefix. 9417test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9418 9419# VPATH may cause trouble with some makes, so we remove $(srcdir), 9420# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 9421# trailing colons and then remove the whole line if VPATH becomes empty 9422# (actually we leave an empty line to preserve line numbers). 9423if test "x$srcdir" = x.; then 9424 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 9425s/:*\$(srcdir):*/:/; 9426s/:*\${srcdir}:*/:/; 9427s/:*@srcdir@:*/:/; 9428s/^\([^=]*=[ ]*\):*/\1/; 9429s/:*$//; 9430s/^[^=]*=[ ]*$//; 9431}' 9432fi 9433 9434DEFS=-DHAVE_CONFIG_H 9435 9436ac_libobjs= 9437ac_ltlibobjs= 9438for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9439 # 1. Remove the extension, and $U if already installed. 9440 ac_i=`echo "$ac_i" | 9441 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 9442 # 2. Add them. 9443 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 9444 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 9445done 9446LIBOBJS=$ac_libobjs 9447 9448LTLIBOBJS=$ac_ltlibobjs 9449 9450 9451 9452: ${CONFIG_STATUS=./config.status} 9453ac_clean_files_save=$ac_clean_files 9454ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9455{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 9456echo "$as_me: creating $CONFIG_STATUS" >&6;} 9457cat >$CONFIG_STATUS <<_ACEOF 9458#! $SHELL 9459# Generated by $as_me. 9460# Run this file to recreate the current configuration. 9461# Compiler output produced by configure, useful for debugging 9462# configure, is in config.log if it exists. 9463 9464debug=false 9465ac_cs_recheck=false 9466ac_cs_silent=false 9467SHELL=\${CONFIG_SHELL-$SHELL} 9468_ACEOF 9469 9470cat >>$CONFIG_STATUS <<\_ACEOF 9471## --------------------- ## 9472## M4sh Initialization. ## 9473## --------------------- ## 9474 9475# Be Bourne compatible 9476if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 9477 emulate sh 9478 NULLCMD=: 9479 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 9480 # is contrary to our usage. Disable this feature. 9481 alias -g '${1+"$@"}'='"$@"' 9482elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 9483 set -o posix 9484fi 9485DUALCASE=1; export DUALCASE # for MKS sh 9486 9487# Support unset when possible. 9488if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9489 as_unset=unset 9490else 9491 as_unset=false 9492fi 9493 9494 9495# Work around bugs in pre-3.0 UWIN ksh. 9496$as_unset ENV MAIL MAILPATH 9497PS1='$ ' 9498PS2='> ' 9499PS4='+ ' 9500 9501# NLS nuisances. 9502for as_var in \ 9503 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 9504 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 9505 LC_TELEPHONE LC_TIME 9506do 9507 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 9508 eval $as_var=C; export $as_var 9509 else 9510 $as_unset $as_var 9511 fi 9512done 9513 9514# Required to use basename. 9515if expr a : '\(a\)' >/dev/null 2>&1; then 9516 as_expr=expr 9517else 9518 as_expr=false 9519fi 9520 9521if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 9522 as_basename=basename 9523else 9524 as_basename=false 9525fi 9526 9527 9528# Name of the executable. 9529as_me=`$as_basename "$0" || 9530$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9531 X"$0" : 'X\(//\)$' \| \ 9532 X"$0" : 'X\(/\)$' \| \ 9533 . : '\(.\)' 2>/dev/null || 9534echo X/"$0" | 9535 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 9536 /^X\/\(\/\/\)$/{ s//\1/; q; } 9537 /^X\/\(\/\).*/{ s//\1/; q; } 9538 s/.*/./; q'` 9539 9540 9541# PATH needs CR, and LINENO needs CR and PATH. 9542# Avoid depending upon Character Ranges. 9543as_cr_letters='abcdefghijklmnopqrstuvwxyz' 9544as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9545as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9546as_cr_digits='0123456789' 9547as_cr_alnum=$as_cr_Letters$as_cr_digits 9548 9549# The user is always right. 9550if test "${PATH_SEPARATOR+set}" != set; then 9551 echo "#! /bin/sh" >conf$$.sh 9552 echo "exit 0" >>conf$$.sh 9553 chmod +x conf$$.sh 9554 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 9555 PATH_SEPARATOR=';' 9556 else 9557 PATH_SEPARATOR=: 9558 fi 9559 rm -f conf$$.sh 9560fi 9561 9562 9563 as_lineno_1=$LINENO 9564 as_lineno_2=$LINENO 9565 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 9566 test "x$as_lineno_1" != "x$as_lineno_2" && 9567 test "x$as_lineno_3" = "x$as_lineno_2" || { 9568 # Find who we are. Look in the path if we contain no path at all 9569 # relative or not. 9570 case $0 in 9571 *[\\/]* ) as_myself=$0 ;; 9572 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9573for as_dir in $PATH 9574do 9575 IFS=$as_save_IFS 9576 test -z "$as_dir" && as_dir=. 9577 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9578done 9579 9580 ;; 9581 esac 9582 # We did not find ourselves, most probably we were run as `sh COMMAND' 9583 # in which case we are not to be found in the path. 9584 if test "x$as_myself" = x; then 9585 as_myself=$0 9586 fi 9587 if test ! -f "$as_myself"; then 9588 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 9589echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 9590 { (exit 1); exit 1; }; } 9591 fi 9592 case $CONFIG_SHELL in 9593 '') 9594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9595for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 9596do 9597 IFS=$as_save_IFS 9598 test -z "$as_dir" && as_dir=. 9599 for as_base in sh bash ksh sh5; do 9600 case $as_dir in 9601 /*) 9602 if ("$as_dir/$as_base" -c ' 9603 as_lineno_1=$LINENO 9604 as_lineno_2=$LINENO 9605 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 9606 test "x$as_lineno_1" != "x$as_lineno_2" && 9607 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 9608 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 9609 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 9610 CONFIG_SHELL=$as_dir/$as_base 9611 export CONFIG_SHELL 9612 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 9613 fi;; 9614 esac 9615 done 9616done 9617;; 9618 esac 9619 9620 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 9621 # uniformly replaced by the line number. The first 'sed' inserts a 9622 # line-number line before each line; the second 'sed' does the real 9623 # work. The second script uses 'N' to pair each line-number line 9624 # with the numbered line, and appends trailing '-' during 9625 # substitution so that $LINENO is not a special case at line end. 9626 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 9627 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 9628 sed '=' <$as_myself | 9629 sed ' 9630 N 9631 s,$,-, 9632 : loop 9633 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 9634 t loop 9635 s,-$,, 9636 s,^['$as_cr_digits']*\n,, 9637 ' >$as_me.lineno && 9638 chmod +x $as_me.lineno || 9639 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 9640echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 9641 { (exit 1); exit 1; }; } 9642 9643 # Don't try to exec as it changes $[0], causing all sort of problems 9644 # (the dirname of $[0] is not the place where we might find the 9645 # original and so on. Autoconf is especially sensible to this). 9646 . ./$as_me.lineno 9647 # Exit status is that of the last command. 9648 exit 9649} 9650 9651 9652case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 9653 *c*,-n*) ECHO_N= ECHO_C=' 9654' ECHO_T=' ' ;; 9655 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 9656 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 9657esac 9658 9659if expr a : '\(a\)' >/dev/null 2>&1; then 9660 as_expr=expr 9661else 9662 as_expr=false 9663fi 9664 9665rm -f conf$$ conf$$.exe conf$$.file 9666echo >conf$$.file 9667if ln -s conf$$.file conf$$ 2>/dev/null; then 9668 # We could just check for DJGPP; but this test a) works b) is more generic 9669 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 9670 if test -f conf$$.exe; then 9671 # Don't use ln at all; we don't have any links 9672 as_ln_s='cp -p' 9673 else 9674 as_ln_s='ln -s' 9675 fi 9676elif ln conf$$.file conf$$ 2>/dev/null; then 9677 as_ln_s=ln 9678else 9679 as_ln_s='cp -p' 9680fi 9681rm -f conf$$ conf$$.exe conf$$.file 9682 9683if mkdir -p . 2>/dev/null; then 9684 as_mkdir_p=: 9685else 9686 test -d ./-p && rmdir ./-p 9687 as_mkdir_p=false 9688fi 9689 9690as_executable_p="test -f" 9691 9692# Sed expression to map a string onto a valid CPP name. 9693as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 9694 9695# Sed expression to map a string onto a valid variable name. 9696as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 9697 9698 9699# IFS 9700# We need space, tab and new line, in precisely that order. 9701as_nl=' 9702' 9703IFS=" $as_nl" 9704 9705# CDPATH. 9706$as_unset CDPATH 9707 9708exec 6>&1 9709 9710# Open the log real soon, to keep \$[0] and so on meaningful, and to 9711# report actual input values of CONFIG_FILES etc. instead of their 9712# values after options handling. Logging --version etc. is OK. 9713exec 5>>config.log 9714{ 9715 echo 9716 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 9717## Running $as_me. ## 9718_ASBOX 9719} >&5 9720cat >&5 <<_CSEOF 9721 9722This file was extended by libnbcompat $as_me noversion, which was 9723generated by GNU Autoconf 2.59. Invocation command line was 9724 9725 CONFIG_FILES = $CONFIG_FILES 9726 CONFIG_HEADERS = $CONFIG_HEADERS 9727 CONFIG_LINKS = $CONFIG_LINKS 9728 CONFIG_COMMANDS = $CONFIG_COMMANDS 9729 $ $0 $@ 9730 9731_CSEOF 9732echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 9733echo >&5 9734_ACEOF 9735 9736# Files that config.status was made for. 9737if test -n "$ac_config_files"; then 9738 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 9739fi 9740 9741if test -n "$ac_config_headers"; then 9742 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 9743fi 9744 9745if test -n "$ac_config_links"; then 9746 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 9747fi 9748 9749if test -n "$ac_config_commands"; then 9750 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 9751fi 9752 9753cat >>$CONFIG_STATUS <<\_ACEOF 9754 9755ac_cs_usage="\ 9756\`$as_me' instantiates files from templates according to the 9757current configuration. 9758 9759Usage: $0 [OPTIONS] [FILE]... 9760 9761 -h, --help print this help, then exit 9762 -V, --version print version number, then exit 9763 -q, --quiet do not print progress messages 9764 -d, --debug don't remove temporary files 9765 --recheck update $as_me by reconfiguring in the same conditions 9766 --file=FILE[:TEMPLATE] 9767 instantiate the configuration file FILE 9768 --header=FILE[:TEMPLATE] 9769 instantiate the configuration header FILE 9770 9771Configuration files: 9772$config_files 9773 9774Configuration headers: 9775$config_headers 9776 9777Report bugs to <bug-autoconf@gnu.org>." 9778_ACEOF 9779 9780cat >>$CONFIG_STATUS <<_ACEOF 9781ac_cs_version="\\ 9782libnbcompat config.status noversion 9783configured by $0, generated by GNU Autoconf 2.59, 9784 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 9785 9786Copyright (C) 2003 Free Software Foundation, Inc. 9787This config.status script is free software; the Free Software Foundation 9788gives unlimited permission to copy, distribute and modify it." 9789srcdir=$srcdir 9790_ACEOF 9791 9792cat >>$CONFIG_STATUS <<\_ACEOF 9793# If no file are specified by the user, then we need to provide default 9794# value. By we need to know if files were specified by the user. 9795ac_need_defaults=: 9796while test $# != 0 9797do 9798 case $1 in 9799 --*=*) 9800 ac_option=`expr "x$1" : 'x\([^=]*\)='` 9801 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 9802 ac_shift=: 9803 ;; 9804 -*) 9805 ac_option=$1 9806 ac_optarg=$2 9807 ac_shift=shift 9808 ;; 9809 *) # This is not an option, so the user has probably given explicit 9810 # arguments. 9811 ac_option=$1 9812 ac_need_defaults=false;; 9813 esac 9814 9815 case $ac_option in 9816 # Handling of the options. 9817_ACEOF 9818cat >>$CONFIG_STATUS <<\_ACEOF 9819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9820 ac_cs_recheck=: ;; 9821 --version | --vers* | -V ) 9822 echo "$ac_cs_version"; exit 0 ;; 9823 --he | --h) 9824 # Conflict between --help and --header 9825 { { echo "$as_me:$LINENO: error: ambiguous option: $1 9826Try \`$0 --help' for more information." >&5 9827echo "$as_me: error: ambiguous option: $1 9828Try \`$0 --help' for more information." >&2;} 9829 { (exit 1); exit 1; }; };; 9830 --help | --hel | -h ) 9831 echo "$ac_cs_usage"; exit 0 ;; 9832 --debug | --d* | -d ) 9833 debug=: ;; 9834 --file | --fil | --fi | --f ) 9835 $ac_shift 9836 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 9837 ac_need_defaults=false;; 9838 --header | --heade | --head | --hea ) 9839 $ac_shift 9840 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 9841 ac_need_defaults=false;; 9842 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9843 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9844 ac_cs_silent=: ;; 9845 9846 # This is an error. 9847 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 9848Try \`$0 --help' for more information." >&5 9849echo "$as_me: error: unrecognized option: $1 9850Try \`$0 --help' for more information." >&2;} 9851 { (exit 1); exit 1; }; } ;; 9852 9853 *) ac_config_targets="$ac_config_targets $1" ;; 9854 9855 esac 9856 shift 9857done 9858 9859ac_configure_extra_args= 9860 9861if $ac_cs_silent; then 9862 exec 6>/dev/null 9863 ac_configure_extra_args="$ac_configure_extra_args --silent" 9864fi 9865 9866_ACEOF 9867cat >>$CONFIG_STATUS <<_ACEOF 9868if \$ac_cs_recheck; then 9869 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 9870 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9871fi 9872 9873_ACEOF 9874 9875 9876 9877 9878 9879cat >>$CONFIG_STATUS <<\_ACEOF 9880for ac_config_target in $ac_config_targets 9881do 9882 case "$ac_config_target" in 9883 # Handling of arguments. 9884 "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;; 9885 "nbtool_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;; 9886 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 9887echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 9888 { (exit 1); exit 1; }; };; 9889 esac 9890done 9891 9892# If the user did not use the arguments to specify the items to instantiate, 9893# then the envvar interface is used. Set only those that are not. 9894# We use the long form for the default assignment because of an extremely 9895# bizarre bug on SunOS 4.1.3. 9896if $ac_need_defaults; then 9897 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9898 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9899fi 9900 9901# Have a temporary directory for convenience. Make it in the build tree 9902# simply because there is no reason to put it here, and in addition, 9903# creating and moving files from /tmp can sometimes cause problems. 9904# Create a temporary directory, and hook for its removal unless debugging. 9905$debug || 9906{ 9907 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 9908 trap '{ (exit 1); exit 1; }' 1 2 13 15 9909} 9910 9911# Create a (secure) tmp directory for tmp files. 9912 9913{ 9914 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 9915 test -n "$tmp" && test -d "$tmp" 9916} || 9917{ 9918 tmp=./confstat$$-$RANDOM 9919 (umask 077 && mkdir $tmp) 9920} || 9921{ 9922 echo "$me: cannot create a temporary directory in ." >&2 9923 { (exit 1); exit 1; } 9924} 9925 9926_ACEOF 9927 9928cat >>$CONFIG_STATUS <<_ACEOF 9929 9930# 9931# CONFIG_FILES section. 9932# 9933 9934# No need to generate the scripts if there are no CONFIG_FILES. 9935# This happens for instance when ./config.status config.h 9936if test -n "\$CONFIG_FILES"; then 9937 # Protect against being on the right side of a sed subst in config.status. 9938 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 9939 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 9940s,@SHELL@,$SHELL,;t t 9941s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 9942s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 9943s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 9944s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 9945s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 9946s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 9947s,@exec_prefix@,$exec_prefix,;t t 9948s,@prefix@,$prefix,;t t 9949s,@program_transform_name@,$program_transform_name,;t t 9950s,@bindir@,$bindir,;t t 9951s,@sbindir@,$sbindir,;t t 9952s,@libexecdir@,$libexecdir,;t t 9953s,@datadir@,$datadir,;t t 9954s,@sysconfdir@,$sysconfdir,;t t 9955s,@sharedstatedir@,$sharedstatedir,;t t 9956s,@localstatedir@,$localstatedir,;t t 9957s,@libdir@,$libdir,;t t 9958s,@includedir@,$includedir,;t t 9959s,@oldincludedir@,$oldincludedir,;t t 9960s,@infodir@,$infodir,;t t 9961s,@mandir@,$mandir,;t t 9962s,@build_alias@,$build_alias,;t t 9963s,@host_alias@,$host_alias,;t t 9964s,@target_alias@,$target_alias,;t t 9965s,@DEFS@,$DEFS,;t t 9966s,@ECHO_C@,$ECHO_C,;t t 9967s,@ECHO_N@,$ECHO_N,;t t 9968s,@ECHO_T@,$ECHO_T,;t t 9969s,@LIBS@,$LIBS,;t t 9970s,@CC@,$CC,;t t 9971s,@CFLAGS@,$CFLAGS,;t t 9972s,@LDFLAGS@,$LDFLAGS,;t t 9973s,@CPPFLAGS@,$CPPFLAGS,;t t 9974s,@ac_ct_CC@,$ac_ct_CC,;t t 9975s,@EXEEXT@,$EXEEXT,;t t 9976s,@OBJEXT@,$OBJEXT,;t t 9977s,@CPP@,$CPP,;t t 9978s,@EGREP@,$EGREP,;t t 9979s,@BSHELL@,$BSHELL,;t t 9980s,@ALLOCA@,$ALLOCA,;t t 9981s,@LIBOBJS@,$LIBOBJS,;t t 9982s,@LTLIBOBJS@,$LTLIBOBJS,;t t 9983CEOF 9984 9985_ACEOF 9986 9987 cat >>$CONFIG_STATUS <<\_ACEOF 9988 # Split the substitutions into bite-sized pieces for seds with 9989 # small command number limits, like on Digital OSF/1 and HP-UX. 9990 ac_max_sed_lines=48 9991 ac_sed_frag=1 # Number of current file. 9992 ac_beg=1 # First line for current file. 9993 ac_end=$ac_max_sed_lines # Line after last line for current file. 9994 ac_more_lines=: 9995 ac_sed_cmds= 9996 while $ac_more_lines; do 9997 if test $ac_beg -gt 1; then 9998 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 9999 else 10000 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 10001 fi 10002 if test ! -s $tmp/subs.frag; then 10003 ac_more_lines=false 10004 else 10005 # The purpose of the label and of the branching condition is to 10006 # speed up the sed processing (if there are no `@' at all, there 10007 # is no need to browse any of the substitutions). 10008 # These are the two extra sed commands mentioned above. 10009 (echo ':t 10010 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 10011 if test -z "$ac_sed_cmds"; then 10012 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 10013 else 10014 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 10015 fi 10016 ac_sed_frag=`expr $ac_sed_frag + 1` 10017 ac_beg=$ac_end 10018 ac_end=`expr $ac_end + $ac_max_sed_lines` 10019 fi 10020 done 10021 if test -z "$ac_sed_cmds"; then 10022 ac_sed_cmds=cat 10023 fi 10024fi # test -n "$CONFIG_FILES" 10025 10026_ACEOF 10027cat >>$CONFIG_STATUS <<\_ACEOF 10028for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 10029 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 10030 case $ac_file in 10031 - | *:- | *:-:* ) # input from stdin 10032 cat >$tmp/stdin 10033 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10034 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10035 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10036 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10037 * ) ac_file_in=$ac_file.in ;; 10038 esac 10039 10040 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 10041 ac_dir=`(dirname "$ac_file") 2>/dev/null || 10042$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10043 X"$ac_file" : 'X\(//\)[^/]' \| \ 10044 X"$ac_file" : 'X\(//\)$' \| \ 10045 X"$ac_file" : 'X\(/\)' \| \ 10046 . : '\(.\)' 2>/dev/null || 10047echo X"$ac_file" | 10048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10049 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10050 /^X\(\/\/\)$/{ s//\1/; q; } 10051 /^X\(\/\).*/{ s//\1/; q; } 10052 s/.*/./; q'` 10053 { if $as_mkdir_p; then 10054 mkdir -p "$ac_dir" 10055 else 10056 as_dir="$ac_dir" 10057 as_dirs= 10058 while test ! -d "$as_dir"; do 10059 as_dirs="$as_dir $as_dirs" 10060 as_dir=`(dirname "$as_dir") 2>/dev/null || 10061$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10062 X"$as_dir" : 'X\(//\)[^/]' \| \ 10063 X"$as_dir" : 'X\(//\)$' \| \ 10064 X"$as_dir" : 'X\(/\)' \| \ 10065 . : '\(.\)' 2>/dev/null || 10066echo X"$as_dir" | 10067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10068 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10069 /^X\(\/\/\)$/{ s//\1/; q; } 10070 /^X\(\/\).*/{ s//\1/; q; } 10071 s/.*/./; q'` 10072 done 10073 test ! -n "$as_dirs" || mkdir $as_dirs 10074 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 10075echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 10076 { (exit 1); exit 1; }; }; } 10077 10078 ac_builddir=. 10079 10080if test "$ac_dir" != .; then 10081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 10082 # A "../" for each directory in $ac_dir_suffix. 10083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 10084else 10085 ac_dir_suffix= ac_top_builddir= 10086fi 10087 10088case $srcdir in 10089 .) # No --srcdir option. We are building in place. 10090 ac_srcdir=. 10091 if test -z "$ac_top_builddir"; then 10092 ac_top_srcdir=. 10093 else 10094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 10095 fi ;; 10096 [\\/]* | ?:[\\/]* ) # Absolute path. 10097 ac_srcdir=$srcdir$ac_dir_suffix; 10098 ac_top_srcdir=$srcdir ;; 10099 *) # Relative path. 10100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 10101 ac_top_srcdir=$ac_top_builddir$srcdir ;; 10102esac 10103 10104# Do not use `cd foo && pwd` to compute absolute paths, because 10105# the directories may not exist. 10106case `pwd` in 10107.) ac_abs_builddir="$ac_dir";; 10108*) 10109 case "$ac_dir" in 10110 .) ac_abs_builddir=`pwd`;; 10111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 10112 *) ac_abs_builddir=`pwd`/"$ac_dir";; 10113 esac;; 10114esac 10115case $ac_abs_builddir in 10116.) ac_abs_top_builddir=${ac_top_builddir}.;; 10117*) 10118 case ${ac_top_builddir}. in 10119 .) ac_abs_top_builddir=$ac_abs_builddir;; 10120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 10121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 10122 esac;; 10123esac 10124case $ac_abs_builddir in 10125.) ac_abs_srcdir=$ac_srcdir;; 10126*) 10127 case $ac_srcdir in 10128 .) ac_abs_srcdir=$ac_abs_builddir;; 10129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 10130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 10131 esac;; 10132esac 10133case $ac_abs_builddir in 10134.) ac_abs_top_srcdir=$ac_top_srcdir;; 10135*) 10136 case $ac_top_srcdir in 10137 .) ac_abs_top_srcdir=$ac_abs_builddir;; 10138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 10139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 10140 esac;; 10141esac 10142 10143 10144 10145 if test x"$ac_file" != x-; then 10146 { echo "$as_me:$LINENO: creating $ac_file" >&5 10147echo "$as_me: creating $ac_file" >&6;} 10148 rm -f "$ac_file" 10149 fi 10150 # Let's still pretend it is `configure' which instantiates (i.e., don't 10151 # use $as_me), people would be surprised to read: 10152 # /* config.h. Generated by config.status. */ 10153 if test x"$ac_file" = x-; then 10154 configure_input= 10155 else 10156 configure_input="$ac_file. " 10157 fi 10158 configure_input=$configure_input"Generated from `echo $ac_file_in | 10159 sed 's,.*/,,'` by configure." 10160 10161 # First look for the input files in the build tree, otherwise in the 10162 # src tree. 10163 ac_file_inputs=`IFS=: 10164 for f in $ac_file_in; do 10165 case $f in 10166 -) echo $tmp/stdin ;; 10167 [\\/$]*) 10168 # Absolute (can't be DOS-style, as IFS=:) 10169 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10170echo "$as_me: error: cannot find input file: $f" >&2;} 10171 { (exit 1); exit 1; }; } 10172 echo "$f";; 10173 *) # Relative 10174 if test -f "$f"; then 10175 # Build tree 10176 echo "$f" 10177 elif test -f "$srcdir/$f"; then 10178 # Source tree 10179 echo "$srcdir/$f" 10180 else 10181 # /dev/null tree 10182 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10183echo "$as_me: error: cannot find input file: $f" >&2;} 10184 { (exit 1); exit 1; }; } 10185 fi;; 10186 esac 10187 done` || { (exit 1); exit 1; } 10188_ACEOF 10189cat >>$CONFIG_STATUS <<_ACEOF 10190 sed "$ac_vpsub 10191$extrasub 10192_ACEOF 10193cat >>$CONFIG_STATUS <<\_ACEOF 10194:t 10195/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10196s,@configure_input@,$configure_input,;t t 10197s,@srcdir@,$ac_srcdir,;t t 10198s,@abs_srcdir@,$ac_abs_srcdir,;t t 10199s,@top_srcdir@,$ac_top_srcdir,;t t 10200s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 10201s,@builddir@,$ac_builddir,;t t 10202s,@abs_builddir@,$ac_abs_builddir,;t t 10203s,@top_builddir@,$ac_top_builddir,;t t 10204s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 10205" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 10206 rm -f $tmp/stdin 10207 if test x"$ac_file" != x-; then 10208 mv $tmp/out $ac_file 10209 else 10210 cat $tmp/out 10211 rm -f $tmp/out 10212 fi 10213 10214done 10215_ACEOF 10216cat >>$CONFIG_STATUS <<\_ACEOF 10217 10218# 10219# CONFIG_HEADER section. 10220# 10221 10222# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 10223# NAME is the cpp macro being defined and VALUE is the value it is being given. 10224# 10225# ac_d sets the value in "#define NAME VALUE" lines. 10226ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 10227ac_dB='[ ].*$,\1#\2' 10228ac_dC=' ' 10229ac_dD=',;t' 10230# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 10231ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 10232ac_uB='$,\1#\2define\3' 10233ac_uC=' ' 10234ac_uD=',;t' 10235 10236for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 10237 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 10238 case $ac_file in 10239 - | *:- | *:-:* ) # input from stdin 10240 cat >$tmp/stdin 10241 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10242 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10243 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10244 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10245 * ) ac_file_in=$ac_file.in ;; 10246 esac 10247 10248 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 10249echo "$as_me: creating $ac_file" >&6;} 10250 10251 # First look for the input files in the build tree, otherwise in the 10252 # src tree. 10253 ac_file_inputs=`IFS=: 10254 for f in $ac_file_in; do 10255 case $f in 10256 -) echo $tmp/stdin ;; 10257 [\\/$]*) 10258 # Absolute (can't be DOS-style, as IFS=:) 10259 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10260echo "$as_me: error: cannot find input file: $f" >&2;} 10261 { (exit 1); exit 1; }; } 10262 # Do quote $f, to prevent DOS paths from being IFS'd. 10263 echo "$f";; 10264 *) # Relative 10265 if test -f "$f"; then 10266 # Build tree 10267 echo "$f" 10268 elif test -f "$srcdir/$f"; then 10269 # Source tree 10270 echo "$srcdir/$f" 10271 else 10272 # /dev/null tree 10273 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10274echo "$as_me: error: cannot find input file: $f" >&2;} 10275 { (exit 1); exit 1; }; } 10276 fi;; 10277 esac 10278 done` || { (exit 1); exit 1; } 10279 # Remove the trailing spaces. 10280 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 10281 10282_ACEOF 10283 10284# Transform confdefs.h into two sed scripts, `conftest.defines' and 10285# `conftest.undefs', that substitutes the proper values into 10286# config.h.in to produce config.h. The first handles `#define' 10287# templates, and the second `#undef' templates. 10288# And first: Protect against being on the right side of a sed subst in 10289# config.status. Protect against being in an unquoted here document 10290# in config.status. 10291rm -f conftest.defines conftest.undefs 10292# Using a here document instead of a string reduces the quoting nightmare. 10293# Putting comments in sed scripts is not portable. 10294# 10295# `end' is used to avoid that the second main sed command (meant for 10296# 0-ary CPP macros) applies to n-ary macro definitions. 10297# See the Autoconf documentation for `clear'. 10298cat >confdef2sed.sed <<\_ACEOF 10299s/[\\&,]/\\&/g 10300s,[\\$`],\\&,g 10301t clear 10302: clear 10303s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 10304t end 10305s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 10306: end 10307_ACEOF 10308# If some macros were called several times there might be several times 10309# the same #defines, which is useless. Nevertheless, we may not want to 10310# sort them, since we want the *last* AC-DEFINE to be honored. 10311uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 10312sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 10313rm -f confdef2sed.sed 10314 10315# This sed command replaces #undef with comments. This is necessary, for 10316# example, in the case of _POSIX_SOURCE, which is predefined and required 10317# on some systems where configure will not decide to define it. 10318cat >>conftest.undefs <<\_ACEOF 10319s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 10320_ACEOF 10321 10322# Break up conftest.defines because some shells have a limit on the size 10323# of here documents, and old seds have small limits too (100 cmds). 10324echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 10325echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 10326echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 10327echo ' :' >>$CONFIG_STATUS 10328rm -f conftest.tail 10329while grep . conftest.defines >/dev/null 10330do 10331 # Write a limited-size here document to $tmp/defines.sed. 10332 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 10333 # Speed up: don't consider the non `#define' lines. 10334 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 10335 # Work around the forget-to-reset-the-flag bug. 10336 echo 't clr' >>$CONFIG_STATUS 10337 echo ': clr' >>$CONFIG_STATUS 10338 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 10339 echo 'CEOF 10340 sed -f $tmp/defines.sed $tmp/in >$tmp/out 10341 rm -f $tmp/in 10342 mv $tmp/out $tmp/in 10343' >>$CONFIG_STATUS 10344 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 10345 rm -f conftest.defines 10346 mv conftest.tail conftest.defines 10347done 10348rm -f conftest.defines 10349echo ' fi # grep' >>$CONFIG_STATUS 10350echo >>$CONFIG_STATUS 10351 10352# Break up conftest.undefs because some shells have a limit on the size 10353# of here documents, and old seds have small limits too (100 cmds). 10354echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 10355rm -f conftest.tail 10356while grep . conftest.undefs >/dev/null 10357do 10358 # Write a limited-size here document to $tmp/undefs.sed. 10359 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 10360 # Speed up: don't consider the non `#undef' 10361 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 10362 # Work around the forget-to-reset-the-flag bug. 10363 echo 't clr' >>$CONFIG_STATUS 10364 echo ': clr' >>$CONFIG_STATUS 10365 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 10366 echo 'CEOF 10367 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 10368 rm -f $tmp/in 10369 mv $tmp/out $tmp/in 10370' >>$CONFIG_STATUS 10371 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 10372 rm -f conftest.undefs 10373 mv conftest.tail conftest.undefs 10374done 10375rm -f conftest.undefs 10376 10377cat >>$CONFIG_STATUS <<\_ACEOF 10378 # Let's still pretend it is `configure' which instantiates (i.e., don't 10379 # use $as_me), people would be surprised to read: 10380 # /* config.h. Generated by config.status. */ 10381 if test x"$ac_file" = x-; then 10382 echo "/* Generated by configure. */" >$tmp/config.h 10383 else 10384 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 10385 fi 10386 cat $tmp/in >>$tmp/config.h 10387 rm -f $tmp/in 10388 if test x"$ac_file" != x-; then 10389 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 10390 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 10391echo "$as_me: $ac_file is unchanged" >&6;} 10392 else 10393 ac_dir=`(dirname "$ac_file") 2>/dev/null || 10394$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10395 X"$ac_file" : 'X\(//\)[^/]' \| \ 10396 X"$ac_file" : 'X\(//\)$' \| \ 10397 X"$ac_file" : 'X\(/\)' \| \ 10398 . : '\(.\)' 2>/dev/null || 10399echo X"$ac_file" | 10400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10401 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10402 /^X\(\/\/\)$/{ s//\1/; q; } 10403 /^X\(\/\).*/{ s//\1/; q; } 10404 s/.*/./; q'` 10405 { if $as_mkdir_p; then 10406 mkdir -p "$ac_dir" 10407 else 10408 as_dir="$ac_dir" 10409 as_dirs= 10410 while test ! -d "$as_dir"; do 10411 as_dirs="$as_dir $as_dirs" 10412 as_dir=`(dirname "$as_dir") 2>/dev/null || 10413$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10414 X"$as_dir" : 'X\(//\)[^/]' \| \ 10415 X"$as_dir" : 'X\(//\)$' \| \ 10416 X"$as_dir" : 'X\(/\)' \| \ 10417 . : '\(.\)' 2>/dev/null || 10418echo X"$as_dir" | 10419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10420 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10421 /^X\(\/\/\)$/{ s//\1/; q; } 10422 /^X\(\/\).*/{ s//\1/; q; } 10423 s/.*/./; q'` 10424 done 10425 test ! -n "$as_dirs" || mkdir $as_dirs 10426 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 10427echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 10428 { (exit 1); exit 1; }; }; } 10429 10430 rm -f $ac_file 10431 mv $tmp/config.h $ac_file 10432 fi 10433 else 10434 cat $tmp/config.h 10435 rm -f $tmp/config.h 10436 fi 10437done 10438_ACEOF 10439 10440cat >>$CONFIG_STATUS <<\_ACEOF 10441 10442{ (exit 0); exit 0; } 10443_ACEOF 10444chmod +x $CONFIG_STATUS 10445ac_clean_files=$ac_clean_files_save 10446 10447 10448# configure is writing to config.log, and then calls config.status. 10449# config.status does its own redirection, appending to config.log. 10450# Unfortunately, on DOS this fails, as config.log is still kept open 10451# by configure, so config.status won't be able to write to it; its 10452# output is simply discarded. So we exec the FD to /dev/null, 10453# effectively closing config.log, so it can be properly (re)opened and 10454# appended to by config.status. When coming back to configure, we 10455# need to make the FD available again. 10456if test "$no_create" != yes; then 10457 ac_cs_success=: 10458 ac_config_status_args= 10459 test "$silent" = yes && 10460 ac_config_status_args="$ac_config_status_args --quiet" 10461 exec 5>/dev/null 10462 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 10463 exec 5>>config.log 10464 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10465 # would make configure fail if this is the last instruction. 10466 $ac_cs_success || { (exit 1); exit 1; } 10467fi 10468 10469