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